Help creating virtual sdcard for android emulator - G1 Android Development

Hi, I'm fairly new at developing android. Im having the hardest time making a virtual sdcard. can someone please give a some tips or a walkthrough. i've read all the how to's n googles dev forum.
ive gotten to the point where im in cmd.exe on windows
i opened the mksdcard.exe
the when i go to type in mksdcard 64M sdcard.iso
it says its not recogized as an internal or external command, operable program or batch file.
CAN ANYONE PLZ tell me whats going wrong. im so anxious to start deving for android!!

SimPRoBer20 said:
Hi, I'm fairly new at developing android. Im having the hardest time making a virtual sdcard. can someone please give a some tips or a walkthrough. i've read all the how to's n googles dev forum.
ive gotten to the point where im in cmd.exe on windows
i opened the mksdcard.exe
the when i go to type in mksdcard 64M sdcard.iso
it says its not recogized as an internal or external command, operable program or batch file.
CAN ANYONE PLZ tell me whats going wrong. im so anxious to start deving for android!!
Click to expand...
Click to collapse
You need to either add the sdk\tools folder to your path (PATH environment variable), or actually cd to the tools folder or fully specify the path. The error is Windows telling you it has no idea what this mksdcard thing you're talking about is because it can't find it.
This is pretty basic command line stuff, not Android specific--you can develop without knowing about it, but it's worth spending some time learning. (I recommend DOS for Dummies for DOS 6.2, if you can find it. Seriously. I've probably read that book a dozen times and I don't think there's anything like it for Windows. The modern cmd.exe isn't that different from command.com.)
Of course, you can also specify a virtual SD card when creating an AVD from the graphical SDK and AVD Manager, and skip the command line business.

ok i get what ur saying.
like i find the file through
c:\android-sdk-windows\tools\mksdcard.exe
then when it finds it
c:\android-sdk-windows\tools\mksdcard.exe mksdcard 64M sdcard.iso?
im confused
and when i make a sdcard in avd manager or watever its called my emulator cant find the sdcard. and even droid explorer cant see any of the emulators files. an idea what the problem could be or am i just blatently missing something?

SimPRoBer20 said:
ok i get what ur saying.
like i find the file through
c:\android-sdk-windows\tools\mksdcard.exe
then when it finds it
c:\android-sdk-windows\tools\mksdcard.exe mksdcard 64M sdcard.iso?
im confused
and when i make a sdcard in avd manager or watever its called my emulator cant find the sdcard. and even droid explorer cant see any of the emulators files. an idea what the problem could be or am i just blatently missing something?
Click to expand...
Click to collapse
You're making it too complicated.
Code:
> c:\android-sdk-windows\tools\mksdcard 64M sdcard.iso
Where "> " is just the prompt that's already printed on the screen. You only need the name of the command once.

ok so after i do that. it just gives me a fresh cmd line like i never typed anything in in the first place.
and when i go to look for the file its nowhere to b found.
is this normal?

wait!! i think i may have just found them
whats the most common method of emulating zip files that ppl make?

Related

ABD for MAC users PLEASE HELP

Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks
You mean adb, right?
The commands for adb are pretty much the same ones used on windows
Not development...post in general.
Anyways,
do you have the sdk set up as per these instructions? You dont need to worry about the eclipse stuff. The most important thing is getting the sdk downloaded, extracted and the /tools dir added to your path. From there, the command are exactly the same. eg:
Code:
adb push
adb pull
adb shell
adb shell reboot recovery
...
LostinThesauce said:
Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks
Click to expand...
Click to collapse
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.
hr00st said:
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.
Click to expand...
Click to collapse
You dont have to mount the folder. It may be easier but in the long run adding it to path will teach you more. Just do a google search on edit path osx and you will find how to create or edit the bash_profile to add the tols folder to your path. from there you just open terminal and adb away
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
add me as #2 who never went iphone. i stayed winmo until i could get a canadian spphire shipped to usa to run the htc sensui. btw...i use mac for me and pc at work and my macbook runs a virtual machine so i fire up xppro os in a dedicated "spaces" desktop so i do use sdk and copilot's nav interface in windows.
i guess i'm "bi". actually "tri" now
Good to go
got it running this is fun
LostinThesauce said:
got it running this is fun
Click to expand...
Click to collapse
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.
lpasq said:
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.
Click to expand...
Click to collapse
There is no need in this. Everyone can find all information on GOOGLE. It is easer then "Easy Button"
MAC+ANDROID=FRIENDS FOREVER!
Setting up ABD for OSX, Hackintosh, mac newbies like myself.
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.
Johnny Blaze said:
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.
Click to expand...
Click to collapse
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
really??i know of many people lol..macs are just better and less of a pain in the ass to use..and if you watch the google confrences..theyre using macs lol
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
i use a mac and love android. hate the iphone
lpasq said:
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"
Click to expand...
Click to collapse
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.
hr00st said:
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.
Click to expand...
Click to collapse
thank you. yes, respect and support

Batch File Help

I am creating a batch script for signing zips with a whole command interface. I need some help, where as I am stuck. This is also for learning,
I use setlocal enabledelayedexpansion in part of it, and then end that part with endlocal.
But even after endlocal, some of my commands aren't working, they return: (I need the java command to work)
'(command here)' is not recognized as an internal or external command, operable program, or batch file.
These commands will work before I use the set/endlocal variables, but not after.
Any help? I can pm you my bat file if you'd like.
anyone heard of this problem, or how to fix it?
have you looked into how mort scripts work?
Rudegar said:
have you looked into how mort scripts work?
Click to expand...
Click to collapse
no, are they specifically for winmo?
I'm running Android lol

[Q] I just dont get it... Need help

EVO 4G with 2.2, I've been trying to root this phone for hour's. Ive got everything downloaded and filed correctly on my computer. Using windows 7. Followed all of the steps as I should. When I get to the command prompt part of the procedure my computer tells me "adb is not recognised as an internal or external command" I've opened the adb in the tools folder and it does not say adb.exe. So I understand why my computer doesnt see it as a command file but why isnt it comming up as a command file. What am I doing wrong? Please help. Scott.
Are you holding the Shift key while right clicking on tools?
No I'm not holding the shift key.
also sounds like you are not in the right directory. Did you first do the cd to the path of the SDK and adk install?
I dont know. I tried to follow the instructions but to some one who doesn't understand command functions and how to use them, this stuff is very intimidiating. If some one could take the time to give me a more detailed step by step of how to move the files and make the folders do what they need to do I would really appreciate it. Kinda like making me a "rooting your evo for dummies" instruction. I realise this sounds silly but I'm just not doing some thing right. Thanks, Scott.

[Q] adb is not recognized as......

I rooted my hero on 2.1 before on a different computer a while back so im fairly familiar with this process. But i when i type in the file path for the C:\android-sdk-windows\tools and hit enter then type adb devices i get an error message that says
'adb' is not recognized as an internal or external command,
operable program or batch file.
I tried all the troubleshooting i can think of like
making sure its the right path to the tools final
making sure debugging is on
deleting the drivers
reinstalling htc sync
I dont know is this info is relevant but ill share it any way.
Im running windows xp
its an old work pc so idk if i have Admin rights(How do i check??)
If any of you can help thatd be much appreciated
Did u add tools directory to the PATH?
Sent from my HERO200 using XDA App
Hey bird, I had the same problem a few days ago. solution for me was, that adb is not located in the tools folder anymore. its located in another folder.I'm not in front of my pc right now.just check where in the windows sdk folder the adb.exe is located now.
Hope that helps you too.
Greetz ricola
Sent from my HTC HD2 using XDA App
if its the updated sdk you will have to update it. close and restart,and then reopen your run command and type in \platform\tools\. they changed the file path when they updated the new tools.
ricola7 said:
Hey bird, I had the same problem a few days ago. solution for me was, that adb is not located in the tools folder anymore. its located in another folder.I'm not in front of my pc right now.just check where in the windows sdk folder the adb.exe is located now.
Hope that helps you too.
Greetz ricola
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Thank you very much i searched for adb.exe and found it in the platforms-tools folder thank you.
If any of you can help thatd be much appreciated
Click to expand...
Click to collapse
I'm too tired to read the whole thread right now, so someone has probably answered this, but here goes..
Previous versions of the Android SDK, adb was located in the tools folder, ie: if you installed the android SDK at C:\android-sdk-win, it would be c:\android-sdk-win\tools
The new release of the android sdk, adb has been moved, and is now located in the \platform-tools folder , ie; c:\android-sdk-win\platform-tools
much like the forums, file search is your friend sometimes
take care

[Q] Rooting Inspire 4G on Macbook Pro

I have read like 15 different ways to root, S-off, and install custom ROM's on my phone, but i have a few questions.
To install a custom ROM, do i need to root my phone first?
I have read so many Root directions and i dont know which one to use, and idk how to make a goldcard on my mac, does anyone know a specific one that they have experience with.
I cannot find the CID number of my SD card and that is ruining my whole root experience.
please, do not treat me as rudely as people have before because of "stupid questions"..and dont refer me to videos because ive watched them all and have had no success.
Yes, you do need to root your phone before you can install a custom ROM, as for the other questions I can't answer them since I don't have any experience with the Inspire 4G. If you only have access to a mac and the tools are windows-oriented you could try running a windows OS in a VM (virtual machine)
oh, and another question, do you have to have a goldcard to to the root?
I have a Mac and I followed the instructions here to make my gold card
http://www.mikesouthby.co.uk/2010/08/htc-desire-creating-goldcard-using-mac-or-linux/
i tried to use this already before, but i cant find the CID number on my SD card and i downloaded astro file manager and everything. i have a samsung 8GB SD card.
noccaedm said:
i tried to use this already before, but i cant find the CID number on my SD card and i downloaded astro file manager and everything. i have a samsung 8GB SD card.
Click to expand...
Click to collapse
with the sd card in the phone and the phone plugged into your mac, in disk drive mode do this at a command prompt
adb shell cat /sys/class/mmc_host/mmc2/mmc2:*/cid
from your android sdk tools directory that should give CID
i appreciate all the help! im trying it now!
as i am new to this, how can i access adb? i cant find it anywhere in any folder i have...fml, i sound so stupid prob but hey, we're all beginners sometimes.
noccaedm said:
as i am new to this, how can i access adb? i cant find it anywhere in any folder i have...fml, i sound so stupid prob but hey, we're all beginners sometimes.
Click to expand...
Click to collapse
you have to have installed the android SDK on your computer.
http://developer.android.com/sdk/index.html
gunnyman said:
you have to have installed the android SDK on your computer.
http://developer.android.com/sdk/index.html
Click to expand...
Click to collapse
it's also part of the hack kit look in the tools/osx directory
i just installed the SDK and all i have in the ace hack kit V9 is adb and i cant do anything on it. it just runs and i cant enter anything into it. is there an app that i have to get on my phone?
noccaedm said:
i just installed the SDK and all i have in the ace hack kit V9 is adb and i cant do anything on it. it just runs and i cant enter anything into it
Click to expand...
Click to collapse
ok open a command prompt in the directory the hack kit is located
then type adb then the command
how do you open a command prompt in the directory. do i just go t the terminal application and type in adb shell cat /sys/class/mmc2/mmc2:*/cid
because i tried that in the terminal emulator on my phone and it says access denied
Open terminal on the Mac. Drag the advanced program to that window. Then type the rest of the command
Sent from my Desire HD using Tapatalk
what is the advanced program? im so sorry im asking stupid questions.
and another thing, should i place the hack kit on my phone's sd card?
Adb. Program. Stupid autocorrect. Btw have you read the hack kit readme?
Sent from my Desire HD using Tapatalk
noccaedm said:
and another thing, should i place the hack kit on my phone's sd card?
Click to expand...
Click to collapse
Create a folder on your desktop called "Inspire". Extract all of the files within the hack kit to this folder on your computer, not your SD card. Drag this folder to the terminal, hit Return. Now follow the instructions in the Linux/OSX readme (it will be one of the files you extracted)
i read the readme, and i guess things didnt make sense to me. im backing up my sd card again just for sure, then im going format it and try to get the CID number. i tested dragging the adb program into the terminal window and everything worked, but i didnt have my phone plugged it.
i dragged the adb command into terminal and typed in the command: adb shell cat /sys/class/mmc2/mmc2:*/cid
and i got the response: adb, no such file or directory. i just cant make the goldcard. wtf, i cant get the CID number, i mean really. i downloaded ace hack kit v9, and the sdk thing.
also, i just got the platform-tools folder for the sdk, so i will try the things in the folder.

Categories

Resources