[Q] Android external display - Android Q&A, Help & Troubleshooting

Hi,
First at all I apologise for posting this topic here, I know that it is not in the correct forum, but I am not able to post in the developers forum... and dam it, I am a senior developer!
This is my scenario: I have a Nexus 4 rooted and I am running Ubuntu (desktop version, not Ubuntu Touch) on my device chrooting it.
To get access to my Ubuntu installation I can use ssh (command line) or VNC (desktop environment, in my case LXDE). However, I'd like to automatically run Ubuntu when I connect my device to an external monitor, something similar to "Ubuntu for Android".
Thanks to the new Android 4.2 "Secondary Displays" API I can detect when an external display is connected but I don't know if I can access to this display from my Ubuntu chroot directly or I'll need to continue using VNC.
So, my question is:
Is there any way to access my second display from my chrooted Ubuntu and configure X11 to output on this display?
Thank you very much in advance

Related

[Q] dual-booting android 2.2 or higher on my W7HP laptop?

I have a Toshiba Satellite L505, running Windows 7 Home Premium (dual core 1st gen i3).
Recent events have made me need to run android-only programs on a semi-daily basis. Combined with the cool factor, I am seriously considering buying a Honeycomb tablet. However, money is limited and I can't really afford it, so I would most likely wind up with a rooted nook color, or just upgrading my phone (LG Vortex). Not terrible options, but my sister has suggested something that would work just as well, if not better, for free.
I know there's at least some version of android that is compatible with x86 processors, and i could get my laptop to dual-boot W7HP and Android, that would be wonderful. Obviously I would want 3.0 Honeycomb, but I would be willing to install 2.4, 2.3, or 2.2. if something newer is not available.
The problem is, I have scoured google and found nothing about this, at all. I have heard of people installing android on their laptops, and some netbooks/laptops are even sold dual-booting, so I know its possible. Now, how on earth would I go about installing android as a secondary OS on my computer? So far I have only been able to find instructions to create an Android Live CD/SD/flash drive, but i need something permanently on my computer, where i can actually save my work and apps to the hard drive. WiFi, keyboard, trackpad, and USB drivers are required, CD and SD would be greatly appreciated as well.
How would i accomplish this? Any and all help would be massively appreciated.
um, hello? anyone?
Yeah thats because only google has a bootable version of their os on a pc. They implement their virtual tool with sdk tool so thats how they want you do it its crazy..There is probably a way though you just have to modify the boot.ini file on your hard drive thus pointing it to the android os. First youll probably need a new hard drive if it can be done on a usb it can be done on a hard drive plain and simple. Dual booting is done through the bios. The bios is what loads the HD which loads the boot.ini file telling it what to boot. Not sure if that would work but its a start there might even be a windows app that will help you do this. Like I said if people are making bootable usb drives its the same process on a hard drive the bios is whats booting that usb so if you direct the bios to an extended hard drive thus booting the android os. Its the same process as it would be on a usb that would make it permanent and there is a program called EasyBCD which easily allows you to change the boot.ini which will basically allow you to have the selection of both operating systems on boot you can choose between the two once you get it working!
Actually it is so much easier. The Android x86 project uses grub. You can boot it and run from livecd, usb or install android to your home pc. I started doin this today to see what the performance benefits would be from a developer point of view.
Installation is pretty straight forward, with loads of tutorials on the website. Have a look at it here http://www.android-x86.org/
I have installed Prime OS classic 0.4.5 works fine on my L505-LS5014

[Q] Debian initial installation

Hello!
I have a Linux Ubuntu on my home PC.
I want to install Debian ARM on my FlyTouch 3 device but not on the Android, on a blank device.
I searched for instructions, but I found only the 'Installing Debian on device with Android'.
Please, help me with this.
Is it real?
The mounted Debian image for ARM I'm already have.
If it is, then, please, give me the instructions.
I'm not sure if that's what you're looking for, since Android will remain on your device (but won't run in the background, it will just remain inactive on your Flash memory), but Google gave me this:
http://www.androidtablets.net/forum...irmware-debian-v0-3-flytouch-sd-bootable.html
I've already saw this.
But I wanna install debian NOT apon the android.
Anybody here?

[Q] Can I develop for my tablet on my tablet?

Basically the title..
Im wondering if there is any sort of android IDE app that can create and manage projects? I use my tablet as my primary pc since I no longer have a computer for the time being.
If there isnt an app, I wonder if it would be possible by booting into ubuntu and compiling code there. Although then Id have no way to run the app, would I?
exploitz said:
Basically the title..
Im wondering if there is any sort of android IDE app that can create and manage projects? I use my tablet as my primary pc since I no longer have a computer for the time being.
If there isnt an app, I wonder if it would be possible by booting into ubuntu and compiling code there. Although then Id have no way to run the app, would I?
Click to expand...
Click to collapse
Both options work. ...
If you know how to work via a shell, you should have a look at http://forum.xda-developers.com/showthread.php?t=1340852. It includes everything to get an android application up-and-running on your device from your device itself. It includes the java compiler, dex, signer, ... even vim as a text editor. Very cool.
Ubuntu works also, but is a bit heavier. You will need at least a giga byte of space. But then you can use most of the usual tools. But I didn't find a working SDK for android for the arm version of Ubuntu. So it's mainly useable to create applications that will have to run inside that Ubuntu. It is also possible to use it with a GUI throug VNC, but I don't feel that it is useable enough for real development.
Good luck ...

[Q] Electrify, ADB, and Windows 8

I'm trying to get adb to detect my Electrify on Windows 8, it would seem rooting and/or installing ROMs is impossible without adb, I have my phone plugged in and all the drivers installed except one "Motorola ADB Interface" of course. The manual driver installer errors out on "Cannot detect Operating System" is there anyway around this, either forcing the driver in, or not using ADB to root?
Use a linux live cd and install the android sdk, or use something like vmware, or try to extract the driver and force it to install in device manager, or dual boot an os that isnt in beta...
Sent from my MB855
The linux live cd should actually work I didnt think about that
I found this
http://forum.xda-developers.com/showthread.php?t=741824
It says its for use with HTC phones but could it possibly work with mine?
Its a year and a half old
Will the driver for my phone be installed/available?
I would post this there but its kind of a dead thread
If you have a spare thumb drive of 4gb or larger laying around you can do a persistent install of ubuntu (or just about any other distro) using LinuxLive USB Creator, which can be found here: http://www.linuxliveusb.com/
If you're not very familiar with linux, persistence is like having your linux operating system on a thumb drive with the advantage over a live cd being that any changes you make (such as installations or saved files) are not lost upon shutdown. So you could install the android sdk (which is all you should need) and then whenever you needed it you could just boot from your thumb drive. If you need help setting up (such as installing the sdk and setting the path and what not) let me know.
-devx

[Q] USB Boot Ubuntu

I have a Windows 7 64-bit Desktop with a 3.1 GHz AMD Athlon processor, and around 4GB of RAM. I was wondering if someone could point me in the right direction. I want to learn to build android from source, but the better step-by-step guides are for ubuntu. If I were to get ubuntu, I would want to boot from a USB flash drive. Would an 8GB USB flash drive be sufficient for setting up ubuntu, the android sdk, and building a rom? Can I use my PC's harddrive for storage while ubuntu is running from the USB? I have found that Ubuntu 10.04 is recommended for android development from source. The only problem is that there are so many different downloads and files with different file sizes no matter how much I search. If someone could answer my questions and post a link with the ubuntu image, and perhaps a guide on how to install it on my usb, I would be very joyous.
Codename13 said:
I have a Windows 7 64-bit Desktop with a 3.1 GHz AMD Athlon processor, and around 4GB of RAM. I was wondering if someone could point me in the right direction. I want to learn to build android from source, but the better step-by-step guides are for ubuntu. If I were to get ubuntu, I would want to boot from a USB flash drive. Would an 8GB USB flash drive be sufficient for setting up ubuntu, the android sdk, and building a rom? Can I use my PC's harddrive for storage while ubuntu is running from the USB? I have found that Ubuntu 10.04 is recommended for android development from source. The only problem is that there are so many different downloads and files with different file sizes no matter how much I search. If someone could answer my questions and post a link with the ubuntu image, and perhaps a guide on how to install it on my usb, I would be very joyous.
Click to expand...
Click to collapse
you could run ubuntu live off of a usb, but it would be painfully slow. Especially when you are doing cpu/ram intensive tasks like compiling.
Id recomend doing one of the folllowing things:
First/Better option: install ubuntu onto your computer in a dualboot with windows 7
-it will be faster because it will be installed on your computer rather than having to read from the usb
-also faster because all of your cpu and ram are being dedicated to ubuntu
-some people see the word dualbooting and immediately think that its too hard but it isnt. Watch this tutorial: Click here for tutorial
Second option: install ubuntu in a virtual machine within windows 7
-this will be slower because you need to share your computers hardware with windows 7 and ubuntu at the same time
-heres a tutorial on how to do this: Click here for tutorial
Also heres the download link for ubuntu 12.10 (the newest version 64 bit): http://releases.ubuntu.com/quantal/ubuntu-12.10-desktop-amd64.iso
Some people say that 10.04 is better, but i know lots of devs that use 12.10.
If you still want 10.04 here it is: http://releases.ubuntu.com/lucid/ubuntu-10.04.4-desktop-amd64.iso
Yup...true..you can run ubuntu live cd/pendrive but it will be really slow as said earlier.
So wat u do is to download that ubuntu image files.
Then you can use 'unetbootin' for making bootable pendrive.
And 8gb is enough(though 4 will also not be problem in anyway).
For easy installation partition your harddrive to make some 'unused' space(not free..delete the partition as ubuntu needs diffrent partition table,we don't need ntfs partition) for ubuntu.
Now install ubuntu with option 'install ubuntu alongside windows' and you are done with ubuntu part.
Now install android development kit and start working..all the best.
:thumbup::::thumbup:
Sent from my A52 using xda app-developers app

Categories

Resources