Installing APK on Android Emulator - Nexus One Q&A, Help & Troubleshooting

I need to install my own APK on a Android 2.1 emulator, how do i do this?
What i need is to have the Emulator burned onto a CD, and when you open en Emulator file, it will start up containing my APK.

Maybe this is really a question for the forum Android development
-------------------------------------
Sent via the XDA Tapatalk App

Install via adb
adb -e install myapk.apk
Make sure the app receives the startup intent and shows the main activity when it does

Wow that easy? Thanks alot
-------------------------------------
Sent via the XDA Tapatalk App

Related

Mms

Why can't I download certain mms it tells me download was unsuccessful I don't get it. I'm running aosp rom latest version and handcent app.
Sent from my HERO200 using XDA App
its a bug running our heros on froyo
There's no fix?
Sent from my HERO200 using XDA App
only fix I know is run sense based rom. As far as a fix for froyo others will need to chime in.
xjayman said:
its a bug running our heros on froyo
Click to expand...
Click to collapse
I've never heard of this bug nor had any problems with MMS
If you're having problems with mms try clearing out the telephony database
Code:
adb remount
adb shell
rm /data/data/com.*.*.telephony/databases/telephony.db
adb reboot
Can u give me a little step by step please? I really just know the basics on this phone thanks
Sent from my HERO200 using XDA App
1tondiesel said:
Can u give me a little step by step please? I really just know the basics on this phone thanks
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Acutally seeing as the majority of rooted people probably just use the 'one click' apps it'd be easier to do this via Terminal Emulator.
Download Termial Emulator if you don't already have it on your phone
Open up terminal emulator
Then type out the following code box (at the end of each line you press 'Enter')
Code:
su
rm /data/data/com.*.*.telephony/databases/telephony.db
reboot
1tondiesel said:
Why can't I download certain mms it tells me download was unsuccessful I don't get it. I'm running aosp rom latest version and handcent app.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Try this Froyo MMS fix in my sig, just flash it from recovery
I tried it and it said it could not be found
Sent from my HERO200 using XDA App
1tondiesel said:
I tried it and it said it could not be found
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
What do you mean could not be found? Did you flash it?
No not yours I flashed your fix it didn't work I'm talking about kyouko
Sent from my HERO200 using XDA App
1tondiesel said:
I tried it and it said it could not be found
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
The location should exist...unless it was typed incorrectly or you have an incomplete flash /data/data/com.android.providers.telephony/databases/ should definitely be there.
If you have root explorer or estrongs files explorer with root access you can navigate to that location and delete using those apps too. Rebooting will rebuild the telephony.db file after its deleted.
If you still are having problems trying to find the database file send me a PM and I'll help you out when I can on gtalk.
Edit: Do this, open up terminal emulator and enter these lines in
Code:
su
cd /data/data/com.*.*.telephony/databases
ls
You should get a return line saying
Code:
mmssms.db telephony.db
And then reboot phone?
Sent from my HERO200 using XDA App
1tondiesel said:
And then reboot phone?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
If you're referring to my previous post where you navigate to the directory and enter "ls" to list the files in that directory, then no. Thats just to see if the files are indeed there.
If they are, then you should do that "rm" command I posted before where you delete the telephony.db
If they both weren't there, even after a reboot, then as I said before - either the command wasn't typed in correctly, or the flash was incomplete.
Post what the 'ls' command returned to you after entering it in (ie. mmssms.db and/or telephony.db)
Its telling me not found after I enter "telephony databases"
Sent from my HERO200 using XDA App
Well I got that command to work that deletes the telephony DB but I still cant download certain mms it says download was unsuccessful
Sent from my HERO200 using XDA App
Am I the only 1 who can't download mms on this phone?
Sent from my HERO200 using XDA App
Certain mms types will not work unless you're on a stock based rom. I believe it is the slideshows that are the problem.
Sent from my HERO200 using XDA App

[Q] Clockwork 3.0.0.5

Just wondering if someone could tell me how to flash this new clockwork
Sent from my HERO200 using Tapatalk
btaylor545 said:
Just wondering if someone could tell me how to flash this new clockwork
Sent from my HERO200 using Tapatalk
Click to expand...
Click to collapse
What rom are you using?
Twolazyg said:
What rom are you using?
Click to expand...
Click to collapse
Aosp 0.1.5
Sent from my Hero running GB aosp 0.1.5
Taylor use terminal emulator to flash it works perfect
Sent from my HERO200 using XDA App
Mk how exactly do I use terminal emulator to flash sry never used it before and still learning this stuff
Sent from my Hero running GB aosp 0.1.6
Ok no problem just open up terminal emulator. First type su and enter. Next you type this flash_image recovery /sdcard/recovery-clockwork-3.0.0.5-heroc.img then enter. BEFORE YOU DO ANY OF THIS MAKE SURE YOUR RECOVERY IS ON THE ROOT OF YOUR SDCARD.
Sent from my HERO200 using XDA App
Thanks for the help
Sent from my Hero running GB aosp 0.1.6
Np man for some reason its not reading my sd ext
Sent from my HERO200 using XDA App
I got an error saying there was no mem on device but I know there's at least 100 MB what's going on
Sent from my HERO200 using XDA App
hmm
I seem to be having a problem. Terminal emulator simply says that it cannot find the recovery image. the image is on the root of my sd card. Do I need to already have android 2.3 to be able to do this? or can I just go from android 2.2 (CM 6.1)?
The img file is not just 3.0.0.5-heroc.img or whatever, it includes a string of numbers and dates tacked on to the end. Try using a file manager to rename it and then try again with Terminal Emulator.
Sent from my sexy aospgingermod Heroc
I have no problem
I'm just wondering, what's the Difference between CW 3.0.0.5 and Let's Say what I Currently have.... CW 2.5.0.7????
Sent from my Hero using XDA App
From what I can tell, it is a customized version with less functionality than the official version.
I've been wrong before.
Sent from my HTC Hero CDMA using XDA App

[Q] htc vivid in virtualbox?

I know this might be a really dumb question but ill ask anyways..
Is there anyway i can run an htc vivid in virtual box?or some other kind of thing like that?
i tend to brick my phone a lot trying all these dumb things so i want
to find a way to test them somehow before i do it on my phone so i dont have to keep recovering it.
any help or ideas?
You can run android in an emulator but not for an exact phone
Sent from my HTC Holiday using xda premium
ZeRo2o9 said:
You can run android in an emulator but not for an exact phone
Sent from my HTC Holiday using xda premium
Click to expand...
Click to collapse
So I can't let's say, tweak a ROM and see if it'll run?
Sent from my HTC PH39100 using xda app-developers app
its called android x86
http://www.android-x86.org/
choose the asus ones because they usually are more compatible with other computers. you might have a problem with wifi though and will have to find a way to install the wifi drivers for your wifi antennae onto android.
DONT FORGET TO THANK MEE )
XxSHaDoWxSLaYeRxX said:
its called android x86
http://www.android-x86.org/
choose the asus ones because they usually are more compatible with other computers. you might have a problem with wifi though and will have to find a way to install the wifi drivers for your wifi antennae onto android.
DONT FORGET TO THANK MEE )
Click to expand...
Click to collapse
Thanks I'll try it out soon. I just gotta wait til I got some time
Sent from my HTC PH39100 using xda app-developers app
That's not running vivid software
Sent from my HTC PH39100 using xda premium
Apparently you can do this from the SDK emulator if you have the ROM in system.img format (which I believe dsixda's kitchen can do, don't remember off the top of my head). Probably won't work with an extracted system image though, but I've never tried so can't confirm.. anyway
Windows PC
1. Download the Android SDK (which includes the emulator) from here.
2. Extract the downloaded zip.
3. Run a command prompt, and change to the 'tools' directory of the SDK (or add the tools directory to your path).
4. Type 'android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type 'android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB.
8. Download your system.img
9. Copy the above file to the location of the enhanced.avd directory ('C:\Documents and Settings\\.android\enhanced.avd' on Windows XP, and 'C:\Users\\.android\enhanced.avd' on Windows Vista).
10. You're ready! Type 'emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system
Mac OSX
1. Download the Android SDK (which includes the emulator)
2. Extract the downloaded zip.
3. Run Terminal, and change to the 'tools' directory of the SDK (or add the tools directory to the path settings in ~/.profile).
4. Type './android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type './android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB.
8. Download your system.img
9. Copy the above file to ~/.android/avd/enhanced.avd/system.img (e.g. if you saved it to and unzipped it to downloads enter 'cp ~/Downloads/system.img ~/.android/avd/enhanced.avd/system.img')
10. You're ready! Type './emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system
ZeRo2o9 said:
That's not running vivid software
Sent from my HTC PH39100 using xda premium
Click to expand...
Click to collapse
Vivid runs android. Android x86 is android. You can always add in sense etc. After so yeah
Sent from my HTC PH39100 using xda app-developers app
XxSHaDoWxSLaYeRxX said:
Vivid runs android. Android x86 is android. You can always add in sense etc. After so yeah
Sent from my HTC PH39100 using xda app-developers app
Click to expand...
Click to collapse
Which option would you recommend for someone new to all this?
The androidx86 option or the other android sdk one?
Sent from my HTC PH39100 using xda app-developers app
eddied042092 said:
Which option would you recommend for someone new to all this?
The androidx86 option or the other android sdk one?
Sent from my HTC PH39100 using xda app-developers app
Click to expand...
Click to collapse
android x86. easy for n00bs, which i am assuming you are lol (no offense).
Guide located HERE: http://gbatemp.net/threads/how-to-dual-boot-android-with-almost-any-os.320554/
I was just saying android versions are different you'd need the HTC libs and framework for the vivid or else its jus vanilla android like a nexus
sent from my HTC Vivid
Yea ik sorry lol but technically if you added in those frameworks you'd have sense yay xD
Sent from my HTC PH39100 using xda app-developers app

[Q] Android Emulator?? :confused:

how can android emulator in the android system to start from my GT-I8190 Galaxy s3 mini???
and how can I run custom rom in android emulator???
can someone help me please??
jony1512 said:
how can android emulator in the android system to start from my GT-I8190 Galaxy s3 mini???
and how can I run custom rom in android emulator???
can someone help me please??
Click to expand...
Click to collapse
What?
There is no Android Emulator to emulate other ROMs.
Only emulator i know is Terminal Emulator app and its used to enter commands and other advanced operations.
Its impossible to run 2 versions of Android at the same time.
Sent from my GT-I8190 using xda app-developers app
ppero196 said:
What?
There is no Android Emulator to emulate other ROMs.
Only emulator i know is Terminal Emulator app and its used to enter commands and other advanced operations.
Its impossible to run 2 versions of Android at the same time.
Sent from my GT-I8190 using xda app-developers app
Click to expand...
Click to collapse
sorry my english is not so good
I meant that I'm looking for some emulator which I emulate my android software that I have on my mobile phone so I can not have flash whenever I have created new software
jony1512 said:
sorry my english is not so good
I meant that I'm looking for some emulator which I emulate my android software that I have on my mobile phone so I can not have flash whenever I have created new software
Click to expand...
Click to collapse
Nope.
Sent from my GT-I8190 using xda app-developers app

[Q] Eclipse ADT sees my device but adt debugging doesn't work

I used to write apps for my phone and run them through adb, but recently I tried to do it and I realized I can't. USB drivers are installed, eclipse sees my phone, in android console it writes that application is installed but on my phone the app is not installed and won't run. But if I install the apk manually and then try to run it, it runs without any problems so I don't think there's any error in the code. Can you please help me?
Hi fellow dev!
What version of Eclipse are you using?
Sent from my GT-I8190 using xda app-developers app
I'm using the one that comes with ADT bundle v21.1.0. I think the version of eclipse is 3.8.0
Sent from my GT-I8190 using xda app-developers app
mertcanekiz said:
I'm using the one that comes with ADT bundle v21.1.0. I think the version of eclipse is 3.8.0
Sent from my GT-I8190 using xda app-developers app
Click to expand...
Click to collapse
Tried reinstalling Android SDK?
Sent from my GT-I8190 using xda app-developers app
Fixed?
I am having the exact same problem. I have spent hours on this. Phone shows online but nothing launches. Did you find a solution?
Thanks,
Craig
mertcanekiz said:
I used to write apps for my phone and run them through adb, but recently I tried to do it and I realized I can't. USB drivers are installed, eclipse sees my phone, in android console it writes that application is installed but on my phone the app is not installed and won't run. But if I install the apk manually and then try to run it, it runs without any problems so I don't think there's any error in the code. Can you please help me?
Click to expand...
Click to collapse

Categories

Resources