[Q] nOOb: export apk from Eclipse IDE? - Motorola Droid 3

So, I've been doing some Android development tutorials, as I have almost no experience in any sort of coding. I'm working in Ubuntu 11.10 with android-sdk-linux, Eclipse IDE, & java version 1.6
Things are going ok, but...
I tried to export a signed apk of my application project from Eclipse yesterday, and when I try to install it on my D3 I get this error:
HTML:
Error Parsing Package
What am I doing wrong?
thanks in advance...

lunacie said:
So, I've been doing some Android development tutorials, as I have almost no experience in any sort of coding. I'm working in Ubuntu 11.10 with android-sdk-linux, Eclipse IDE, & java version 1.6
Things are going ok, but...
I tried to export a signed apk of my application project from Eclipse yesterday, and when I try to install it on my D3 I get this error:
HTML:
Error Parsing Package
What am I doing wrong?
thanks in advance...
Click to expand...
Click to collapse
Sorry bro, I have no idea. You might get more help Android Development and Hacking or more specifically Android Software Development which is a subforum of the first link. Sorry I personally can't help you out more than that, wish I could.

If your device is recognized as a development device, you should be able to just hit the 'Run' button and it should compile your app, install it to the device and automatically launch it. Your device needs to have USB debugging turned on and you need to have the ADB driver installed (need to get it from Motorola if this is a Moto device, it won't install automatically like the rest of the storage drivers).

My Droid3 shows up as ???????? in adb. I was exporting a signed apk to install because I can't get the device to recognize. Am I missing a configuration of some kind? I'm guessing there's some kind of vendor code or something that I need for ADB to work properly with my phone?
tnx
EDIT: think I figured it out. it's the udev rules, looks like i'm on the right track....
EDIT 2: Got it! Thanks for the heads up.

Related

Nexus One DDMS - only com.cooliris.media showing

hi all.
The title of the thread says it all.
My ddms only shows com.cooliris.media as a running application.
Has anyone similar problems? Or even a solution for it?
cheerio n3utrino
PS: Running Ubuntu Linux. ADB and everything else is working. But those darn threads won't show.
I had this problem for some time. I solved it but I'm not exactly sure how. Try updating adb and ddms to the most recent sdk. Also, an existing adb session such as from eclipse seems to cause it on occasion.
I had this problem before but after updating to the latest ERE27 N1 ROM everything are showed in DDMS as normal. May be you should give it a try.
n3utrino said:
PS: Running Ubuntu Linux. ADB and everything else is working. But those darn threads won't show.
Click to expand...
Click to collapse
I'm assuming you've tried rebooting your computer, but if not...try `adb kill-server', and if that doesn't work, try rebooting. Sucks but sometimes it's the only way (even in Linux).
[SOLVED]
Rooting my phone did the trick.
Now all threads are showing.
Thanks for the suggestions.
hi all.
I'm still in this trouble.
How did you solve this? > n3utrino
BR.
Addition
To solve the problem one must
Declare your application as "debuggable" in your Android Manifest.
In Eclipse, you can do this from the Application tab when viewing the Manifest (on the right side, set Debuggable to true). Otherwise, in the AndroidManifest.xml file, add android:debuggable="true" to the <application> element.
Click to expand...
Click to collapse
if you dont want to root your phone.

[TUT] Ubuntu on Adam Methods - 03/12/11

PLEASE READ FIRST
This post will have info on the chroot method. To find out info on running Ubuntu natively on the Adam, click this link for post #2 below. Enjoy
chroot Method:
chroot Ubuntu on Adam Beta1...
For now project files for chroot method will be located at this Google Code Project site. Files will be posted shortly, stay tuned.
DO NOT attempt this yet until specified as alpha or beta or otherwise stated as ready for testing!!
Liability:
I'm not responsible for what you do with your device, this is a guide or tutorial for general purposes only.
If you do not have a strong understanding of rooting and how to recover a device from scratch DO NOT attempt this until we are our of beta stages. Wait till you see RC status at least.
Verified working with bugs
Directions:
I'm not sure what file format is needed on the SD card, so make sure it has the stock file format from Android.
Make sure you are rooted using the methods listed here or Notion Ink Hacks Forum.
Download necessary files:
- Main scripts: Download from Google Code Project webpage. http://code.google.com/p/chroot-ubuntu-ni-adam-tablet/
- Ubuntu.img file: Download from MegaUpload. http://www.megaupload.com/?d=3ZQTCUUN
Create a folder on root of your Adam SD card called "ubuntu" and download the files from the Google Code Project site to this folder.
Unzip "ubuntu.img.zip" package and copy or move "ubuntu.img" file to the ubuntu folder you created above. Delete all the rest of the files. Do this to make sure you do not confuse the scripts I've put together for the Adam.
Plug Adam into your computer and make sure you have a connection to it.
Android SDK installed on a local computer with ADB functioning.
Make sure you do not have the SD card mounted on your computer. Also make sure USB Debugging is turned on, which I think you need for ADB.
Change the name of "bootubuntu[x].[x]" to just "bootubuntu"! DO NOT use the original "bootubuntu" file.
If you haven't already open a command prompt and type:
Code:
adb shell
Enter superuser mode:
Code:
su
Change directory to the "ubuntu" folder:
Code:
cd /sdcard/ubuntu
Run the setup script (You should only have to run this once or whenever new updates to the files are released):
Code:
sh ./ubuntu.sh
Once the script finished you should be good to go, type the following to run Ubuntu:
Code:
bootubuntu
If you see something like the following below, job well done!
Code:
[email protected]:/#
Troubleshooting:
If you get any errors, please FIRST, try rebooting Adam and start back at "adb shell" step 7 and try again.
More to come
If you get any errors, please post at what step number you got an error and post as much detailed info as you can about the error. Myself and others will do what we can to help.
Resources:
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
http://tegradeveloper.nvidia.com/tegra/forum/workaround-run-ubuntu-now
Native Ubuntu Method:
More to come, holding this place for future use...
No problem for testing it ... but not before the end of next week
My Adam will be send on 31st of January
There is nothing to test yet. Not until more research is done and files gathered. Not to mention we still need full root and unlock first.
Do not attempt to run the files in that link.
Sent from my Evo
For Rooting Adam it seems that it's done ?
And Don't worry i will not try to use fill that wasn't for Adam.
If you need help ... to search, test ... I will be part of ;o)
Thanks Gkar! Just be sure to follow this thread as any updates will appear here.
Also, root methods have been started but there are bugs. We need Adam users to help with that process first before helping here. Once that process works consistently I plan to get started on this.
Sent from my Evo
Pfffff ... I've just seen on pre-order page that my date has been pulled to 14th feb 2011 and then i will have to wait to test !!
Ubuntu netbook edition
Btw, I am sure you have seen this, but Ubuntu does have a Netbook Edition. It brings all the advantages of Ubuntu to a netbook – using Unity, an innovative user interface super-optimised for smaller screens and also convenient for touch screens.
So, this may be the best version to port to Adam if we can get it going. I unfortunately have no development knowledge to know if it is possible.
Mmmmmh .... i'm using Netbook edition on EEE 901 for my kids but unity isn't mature.
I prefer old version of Netbook edition (10.04 LTS) ... and that's the version used to create Ubuntu Distro for HD2.
Maybe we can ask them for some help.
I'm interested on this too. For the record, I'm keen to get an Adam and wipe Eden, replacing it with Ubuntu. I think Ubuntu 11.04 will be an awesome distro to run on a tablet, and currently Notion Ink's Adam is the only one being made that meets the stats I'd like to see.
The current hacks that exist to get Ubuntu running on the Nexus One (have done that) require running a modified server version from the sdcard, the using VNC to run a virtual session. Has it's plusses (running within Android, for instance), but I'm keen to see Ubuntu running natively. Android isn't mature enough to be a main system yet, whilst Ubuntu is. Cheers.
hope a port is cooming soon
Yeah, I'm very eager to try this too
Maybe a dual boot with Android ?
Looking forward to it
Thanks for your patience everyone. I've been swamped. This weekend I plan to hunt down some files, look at the scripts, and hopefully we can start trying this shortly!
This is one of the main reasons I have been waiting for the Adam for so long. Hopefully we can dual boot Ubuntu as that is what I would prefer, but if not, oh well. I want to have a tablet that acts more like a computer then a glorified smartphone without phone capabilities... Can't wait to see the development of this!
TreTuna said:
This is one of the main reasons I have been waiting for the Adam for so long. Hopefully we can dual boot Ubuntu as that is what I would prefer, but if not, oh well. I want to have a tablet that acts more like a computer then a glorified smartphone without phone capabilities... Can't wait to see the development of this!
Click to expand...
Click to collapse
Dual booting is always preferred yes, but that is not what my method will do. This method will be a bootloader running on top of Android. For many reasons this will be easiest for now.
I'm very excited about this, can't wait to have my Adam and following the developent of ubuntu.
I really think, on another hand, that Android and Ubuntu are majors players in the open-source OS and should therefore communicate better.
I want Adam to be the best friend of my Ubuntu desktop. There are so many possible ways to make these OS interact, at least the way iOS talk to Mac OS X.
i can't wait for my Adam to be here to write apps in this direction!
I love that idea as well. Would be cool if there was a way to integrate Ubuntu netbook edition and Android.
Sent from my PC36100 using XDA App
Ubuntu netbook edition and the desktop version are now the same thing with the upcoming release. Actually, the whole UI of Ubuntu is getting a major overhaul to be touch centric. Currently, my nexus one running cyanogenmod DOES talk to my Ubuntu netbook. And server. Very well in fact. Tomdroid for notes reads all off my desktop tomboy notes, and Funambol, with syncevolution syncs my calendar and address book.
Have just ordered an Adam with a friend, and plan to hack it extensively until Ubuntu is running in full, natively, as it's primary operating system. Android is useful, but doesn't have the functionality of Ubuntu. Would be useful having android as a secondary system, or within Ubuntu, but I won't hold my breathe.
I agree though, the first step seems to be getting Ubuntu running within android. I'm starting to research how the bootloader needs to be hacked to recognise a usb or dvd drive to boot from, and how it would "see" ubuntu installed on one of the internal drives. Will post back with more info soon, even though this is further down the track.
tillum said:
Ubuntu netbook edition and the desktop version are now the same thing with the upcoming release. Actually, the whole UI of Ubuntu is getting a major overhaul to be touch centric. Currently, my nexus one running cyanogenmod DOES talk to my Ubuntu netbook. And server. Very well in fact. Tomdroid for notes reads all off my desktop tomboy notes, and Funambol, with syncevolution syncs my calendar and address book.
Have just ordered an Adam with a friend, and plan to hack it extensively until Ubuntu is running in full, natively, as it's primary operating system. Android is useful, but doesn't have the functionality of Ubuntu. Would be useful having android as a secondary system, or within Ubuntu, but I won't hold my breathe.
I agree though, the first step seems to be getting Ubuntu running within android. I'm starting to research how the bootloader needs to be hacked to recognise a usb or dvd drive to boot from, and how it would "see" ubuntu installed on one of the internal drives. Will post back with more info soon, even though this is further down the track.
Click to expand...
Click to collapse
I ordered my Adam Once I saw it figure in XDA forum. My experience with XDA especially with SGS phone has been immensely satisfying. The way Things are going I am sure Adam will be an object of envy before long.

[Q] I got it to flash back to stock GB 2.3.5 with Odin, but..

I got my Cap to stock GB 2.3.5 finally, after it being in the "firmware upgrade fail" screen. I flashed the file with no bootloader, since I was already on GB before. All went well until I tried to get rooted through Super One Click, short fuse 1.9.1.0. I got everything started and tapped the Captivate tab and it went through the whole process and in the end, failed . Once more, same thing. Tried universal tab, driver check, some kind of windows pop up saying either stop now or sect continue. I continued and tapped root tab and killing adb, starting adb, daemon not running, daemon started successfully waiting for device, failed to get root. One more try, same thing. Now my battery is showing very low, like in the red low. So I left the phone plugged in the wall charger while I reinstalled the Samsung drivers, and that is when I noticed the phone went black and when I connected it to the laptop to try Super One Click with new drivers ans the laptop doesn't recognize the device. Says no drivers are installed, etc...,etc... . One click starts though recognizing the phone and starts trying the root sequence and everything is good until after daemon starts successfully, it says OK, waiting for device... - that's it. I can't get it into download mode even with with the USB jig. I had already sent this phone in and had the unbrickable mod done by Josh at Mobiletech video. So, does anyone have any suggestions or answers, as to how I get this phone working
Use this...[Utility]KK4 Easy Root to get Root.
Sent from my SAMSUNG-SGH-I777 using xda premium
Thanks for that link. I've got bigger issues than trying to get root though. My phone won't go into download, even when I use a USB jig. I have nothing but a black screen. I can't get recovery, my computer recognizes it but only as a Samsung USB device with no drivers installed. I've installed drivers from Kies, from Samsung, and from Gingerbread rom. I have unbutu installed, but I have no idea how to input commands. I have had the phone repaired and had the unbrickable mod performed on it by Josh at Mobiletechvideo back in February. I can't get unbrickable resurrector to work because I don't know how to run Linux / Unbutu. So now I'm out of ideas/options that I'm capable of implementing. If anyone that may read this has an idea of what I should do next, please let me know.
Sent from my SGH-T989 using xda premium
I did a quick google search on this unbrickable resurrector and it looks to be just a .jar file that is able to discover what mode the captivate is in and correct issues. I do not have experience with this exact program but I did find a thread with documentation / how-to. You should be able to follow those instructions + adapt for your device. If you have any specific questions pertaining to ubuntu / linux, let me know.
http://forum.xda-developers.com/showthread.php?t=1397393
broknbottle said:
I did a quick google search on this unbrickable resurrector and it looks to be just a .jar file that is able to discover what mode the captivate is in and correct issues. I do not have experience with this exact program but I did find a thread with documentation / how-to. You should be able to follow those instructions + adapt for your device. If you have any specific questions pertaining to ubuntu / linux, let me know.
http://forum.xda-developers.com/showthread.php?t=1397393
Click to expand...
Click to collapse
I appreciate you trying to help. I hit the "Thanks " button so you will have your first on your meter. LOL. I already read that post and it didn't quite get me what I needed unfortunately. I may have to send it back to Josh at MobileTechVideo and let him see what he can do. But I'm still trying to do it myself in the meantime.
khkaiser13 said:
I appreciate you trying to help. I hit the "Thanks " button so you will have your first on your meter. LOL. I already read that post and it didn't quite get me what I needed unfortunately. I may have to send it back to Josh at MobileTechVideo and let him see what he can do. But I'm still trying to do it myself in the meantime.
Click to expand...
Click to collapse
Do you have java & the .jar file downloaded? If so just open up a terminal and try these commands, substituting file for the actual filename
Code:
cd ~/Downloads
-- This is assuming you've left the .jar file in Downloads directory
Code:
chmod +x file.jar
-- This will give the file execute permissions
Code:
java -jar file.jar
-- This will run the java jar file.
You will need java installed, If you don't have it installed run these commands.
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Code:
sudo java -version
-- will display the version of java installed.
Let me know if you need anymore help.

jelly bean root way over my head

just wanted to let all you developers know you kick ass..... i had a jb rooted ahd running batakang rom and loved it until it had an unfortunate meeting with the tire of my fullsize truck this morning....replacement from att store come with stock jb on it ....ive never used linux before and really dont think i can handle the root process for jb (especially after reading the posts from ppl alot smarter than me that were having problems.....looking forward to a simpler method like motofail....thanks again for all of your help and looking forward to making my ahd scream again
jaydheat said:
just wanted to let all you developers know you kick ass..... i had a jb rooted ahd running batakang rom and loved it until it had an unfortunate meeting with the tire of my fullsize truck this morning....replacement from att store come with stock jb on it ....ive never used linux before and really dont think i can handle the root process for jb (especially after reading the posts from ppl alot smarter than me that were having problems.....looking forward to a simpler method like motofail....thanks again for all of your help and looking forward to making my ahd scream again
Click to expand...
Click to collapse
It is a piece of cake trust me. Before I rooted my AHD I had never used Ubuntu or any form of Linux. I download Unbuntu and made the liveCD, and literally copied and pasted every command from the thread into the terminal in Ubuntu, then just followed the instructions on how to connect the phone. Worked first time, no issues. Just grab a cup of coffee, take your time, copy and paste and you will have root in no time,
brett_day said:
It is a piece of cake trust me. Before I rooted my AHD I had never used Ubuntu or any form of Linux. I download Unbuntu and made the liveCD, and literally copied and pasted every command from the thread into the terminal in Ubuntu, then just followed the instructions on how to connect the phone. Worked first time, no issues. Just grab a cup of coffee, take your time, copy and paste and you will have root in no time,
Click to expand...
Click to collapse
The hardest part is probably making the liveCD :laugh:
this is a one-click tool for the "hardest" part..
enjoy!
http://www.linuxliveusb.com/
jaydheat said:
just wanted to let all you developers know you kick ass..... i had a jb rooted ahd running batakang rom and loved it until it had an unfortunate meeting with the tire of my fullsize truck this morning....replacement from att store come with stock jb on it ....ive never used linux before and really dont think i can handle the root process for jb (especially after reading the posts from ppl alot smarter than me that were having problems.....looking forward to a simpler method like motofail....thanks again for all of your help and looking forward to making my ahd scream again
Click to expand...
Click to collapse
I rooted my AHD tonight and it was my first experience ever using Ubuntu. It took me a while to figure it out, but once I got started it was a cake walk. Like someone else said, the hardest part is probably making the LiveCd/usb. I'm not sure why, but I couldn't ever get Ubuntu to work properly in VirtualBox so I ended up just booting my LiveUSB and opening the instructions on my tablet and doing it. It's super easy. Just do exactly what it says.
Oh, and it took me a little while to figure out just how to open a terminal in Ubuntu (ctrl+alt+T). If you're as much of a noob with this as I am knowing how to open a terminal will save you some time right from the get-go.
Good luck!
Google is your friend
any help?
ok so I ran Ubuntu and i cannot get my AHD to connect to the remote server i have entered everything as the instructions said all i get is an error that says that i need to repair my network is there a way to fix this?I really want my root back guys any help ?
EDIT:I have fix this by restarting my router excuse my my questions
very sorry
jelly bean root issues
hey guys just a few questions trying to root my ahd....im using ubuntu 12.04lts live cd
just a few issues
first
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba : Depends: samba-common (= 2:3.6.3-2ubuntu2) but 2:3.6.3-2ubuntu2.3 is to be installed
Depends: libwbclient0 (= 2:3.6.3-2ubuntu2) but 2:3.6.3-2ubuntu2.3 is to be installed
Recommends: tdb-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
[email protected]:~$ sudo gedit /etc/samba/smb.conf
this is what i get when i install samba
also when i try to restart it says
[email protected]:~$ sudo restart smbd
restart: Unknown job: smbd
also prolly a stupid question but when i try to do the file manager it says cannot connect to remote host,
ive tried resetting my router and restarting both my phone and computer and nothing works...help
:
So yeah...
I was wondering, if any "recent" version of Ubuntu would work for the root...
Main reason for asking this was because I had a Live USB With 10.04
That and the PC i'm stuck with ATM just can't seem to handle 12.04...
[EDIT]
Never mind, I'm getting Lubuntu...
[EDIT]
I keep getting this error when trying to install samba in my lubuntu (persistent) usb...
Personally, I find these errors to be very annoying, as all I want to do is root my phone...
So, at the moment, I can't install Samba, can't "sudo gedit..."
[email protected]:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba : Depends: samba-common (= 2:3.6.6-3ubuntu1) but 2:3.6.6-3ubuntu5 is to be installed
Depends: libwbclient0 (= 2:3.6.6-3ubuntu1) but 2:3.6.6-3ubuntu5 is to be installed
E: Unable to correct problems, you have held broken packages.
[email protected]:~$
i got it...
thanks for all your help, you guys roick finally rooted on stock jelly bean btw used ubuntu 12.10 on usb worked great first time no problems
Lubuntu Variant
I noticed for Lubuntu, its a slight variant as opposed to the basic Ubuntu instructions...
Instead of gedit, you can substitute leafpad instead...
"sudo leafpad /etc/samba/smb.conf"
Oh and I think I solved my earlier problem after installing the "sessioninstaller" from the Synaptic Package Manager... (Use the search function.)
My only issue ATM is when I'm in the terminal and I try and use "sudo restart smbd" and it doesn't seem to work.
It merely tells me smbd isn't a process...

*remove this thread*

REMOVED
abhimortal6 said:
Got Broken Screen ??
Need To Backup Data or Still Want To Use Your Phone As a Zombie Machine??
Here's The Solution.
Now Fully Control Your Zombie Android's Touch Screen Without Installing Crappy APK.
Or Configuring Your PC Network To Work It Out.
Debugging Must Be On In Order To Use This
Directions To Control Broken Screen. Please Read Very Carefully.
Download .zip Given Below
Extract .zip
Double Click On "RUNME.bat"
Yes That's it ....!
Note : Java Is Required To Run This Program.
For Windows
For Android 2.2+
Download
For Android 4.0+
Download
For Mac/Linux
For Android 2.2+
Download
For Android 4.0+
Download
Mac/Linux Users : Start adb Manually
Hey Don't Forget To Hit Thanks
More Info.
Whats This Program?
Its Android Screen Cast Developed By Unknown Developer Very Long Ago.
But Android Screen Cast Was OutDated And Very Buggy
But After Hours of Tweaking With Source . I Managed To Work It On Latest Java
Bugs Fixed
Issue Fixed Causing Error In Java7+
Android 4.0+ Support Added
Standalone Jar (Still Needs To Run ADB Before Jar Execution)
Click to expand...
Click to collapse
You don't bring anything new except ADB supplied in ZIP
It's simple copy of https://code.google.com/p/androidscreencast/ project (and developers are pointed there)
And even don't open sources...
xSAVIKx said:
You don't bring anything new except ADB supplied in ZIP
It's simple copy of https://code.google.com/p/androidscreencast/ project (and developers are pointed there)
And even don't open sources...
Click to expand...
Click to collapse
*HATER*
Do You Even Read!!
abhimortal6 said:
Got Broken Screen ??
Need To Backup Data or Still Want To Use Your Phone As a Zombie Machine??
Here's The Solution.
Now Fully Control Your Zombie Android's Touch Screen Without Installing Crappy APK.
Or Configuring Your PC Network To Work It Out.
Debugging Must Be On In Order To Use This
Directions To Control Broken Screen. Please Read Very Carefully.
Download .zip Given Below
Extract .zip
Double Click On "RUNME.bat"
Yes That's it ....!
Note : Java Is Required To Run This Program.
For Windows
For Android 2.2+
Download
For Android 4.0+
Download
For Mac/Linux
For Android 2.2+
Download
For Android 4.0+
Download
Mac/Linux Users : Start adb Manually
Hey Don't Forget To Hit Thanks
More Info.
Whats This Program?
Its Android Screen Cast Developed By Unknown Developer Very Long Ago.
But Android Screen Cast Was OutDated And Very Buggy
But After Hours of Tweaking With Source . I Managed To Work It On Latest Java
Bugs Fixed
Issue Fixed Causing Error In Java7+
Android 4.0+ Support Added
Standalone Jar (Still Needs To Run ADB Before Jar Execution)
Click to expand...
Click to collapse
Hi ^^
i can see my Oneplus One with KK 4.4 but i can't control it with my Windows 8 with Java 8.45. I'm root.
Any idea?
Thx in advance ^^
OP removed information
Thread closed

Categories

Resources