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!!
It sounds like the directory containing the Android command line tools isn't in your path, so the mksdcard program isn't being found. You'll need to edit your PATH environment variable and add the "tools" directory location to it. The "tools" directory is in the Android SDK directory on your computer, at the same level as the "platforms", "docs", "add-ons", and other such directories.
More details can be found on this under the "Download and Install the SDK" section of the Android developers website at http://developer.android.com/sdk/installing.html
Related
my question is this, say for example I have my phone setup just as I like with the theme of my choosing, htc music app instead of the stock android app in the cyanogen mod. i would like to be able to create a rom from this setup that I could then just load on my phone as oppsed to loading a cm mod, then installing music player, then installing the theme. before the flaming begins, i tried the search to no avail. i am aware of how to sign the zip and all of that. just a point in the right direction would be MUCH appreciated.
Its something I would like to be able to do as well. According to Haykuros twitter hes going to be making a video about android rom cooking soon so that should help
jholt0130 said:
my question is this, say for example I have my phone setup just as I like with the theme of my choosing, htc music app instead of the stock android app in the cyanogen mod. i would like to be able to create a rom from this setup that I could then just load on my phone as oppsed to loading a cm mod, then installing music player, then installing the theme. before the flaming begins, i tried the search to no avail. i am aware of how to sign the zip and all of that. just a point in the right direction would be MUCH appreciated.
Click to expand...
Click to collapse
This should've gone in the Q&A section. Will probably get locked soon.
But in response to your question, I guess you could grab the CM rom, then grab the theme you use and overwrite the files in the rom, and then overwrite the music app with the HTC music. Resign and you got your update.zip customized how you want it.
xidominicanoix said:
This should've gone in the Q&A section. Will probably get locked soon.
But in response to your question, I guess you could grab the CM rom, then grab the theme you use and overwrite the files in the rom, and then overwrite the music app with the HTC music. Resign and you got your update.zip customized how you want it.
Click to expand...
Click to collapse
Thanks for the help and my apologies for the wrong section
how do you resign it?
joey3002 said:
how do you resign it?
Click to expand...
Click to collapse
by searching.
Stericson said:
Automatic version!
Do not use this to sign APK files in Vista or windows 7! It will cause your theme to loop phones when placed on a device. Only use this to sign update files if your using those O/S's
Note, this will not work if your SDK or the path that you place this in has any spaces in the dir name!
An Example of this is c:\users\Nikki and Stephen\sdk\tools
Try to put the SDK and the contents of the zip in a dir where the names are all together and not like the one above.
I have made a batch file that will automate the entire process of setting up to use the signing tool made by JF. This batch file will set the CLASSPATH, set the PATH, install the registries, and will even allow you to sign files manually if you wish. I plan on building onto this batch file to include other things. However, for the moment, it will only include what you see here.
In order to use this you should have downloaded the sdk already. Simply extract all of the files into the tools dir of your sdk, and run autosign.bat follow the instructions and go through the options one by one, starting with 1 working through 4. You can however, put the contents of this zip anywhere on your computer and it will work. It is just better to put them into the tools dir of your SDK. Especially for the consideration of future versions.
Autosign .zip: http://www.fightforthepits.com/Androidstuff/signing.zip
Want to set up the signing tool manually?
Here is the link for the signing tool: Http://www.FightForthePits.com/testsign(2).zip
Before using this you need to know how to set this up:
Now you will need to add the tools dir of your sdk to the environment variable CLASSPATH.
FOR XP:
Right click on My Computer click properties, then choose the tab that says advanced.
Click the button that says environmental variables.
Go to system variables find the one that says CLASSPATH
double click it
go to the end of variable value.
There should be a semicolon ; at the end, type in the path to the testsign.jar located in the tools directory of your SDK
for example the path to my testsign.jar was c:\sdk\android-sdk-windows-1.0_r1\tools\testsign.jar
If CLASSPATH is not in your system variables then create it.
Secondly, Find the system variable called PATH and add to the end of it, the full path to your sdk directory.
For example, mine was c:\sdk\android-sdk-windows-1.0_r2\tools
FOR VISTA:
Open a cmd prompt.
Replace THEEXACTPATHTO-TESTSIGN with the path to the dir that holds the file testsign.jar.
Type:
echo %CLASSPATH%
If it is returns %CLASSPATH%
Type the following:
set CLASSPATH=THEXACTPATHTO-TESTSIGN\testsign.jar
If it comes back with something else then
Type the following:
set CLASSPATH=%CLASSPATH%;.;THEXACTPATHTO-TESTSIGN\testsign.jar
For Example, when I type this it looks like:
set CLASSPATH=%CLASSPATH%;.;c:\Android\SDK\tools\tests ign.jar
To set the PATH
Replace THEEXACTPATHTO-SDK with the path to the tools dir of your SDK.
Now type:
set PATH=%PATH%;.;THEXACTPATHTO-SDK\tools
For example, when I type this out it looks like this:
path-%PATH%;.;c:\Android\SDK\tools
Now through doing this you have done two things, first off you have made the resigning process extremely easy, secondly you will not have to cd to the tools dir of the sdk to use adb or any other tool in the sdk.
Signing the Files:
Now right click the reg file that you extracted and choose to install it, or merge.
Now, right click an apk, do you see an option that says ResignApk? That's how you will resign your .apks and .zips.
When you choose it a cmd window should open for a few seconds and then close. the file you signed will be overwritten with the new resigned file.
If you find the right click menu not working for some reason you can type the following in cmd to sign your files: java testsign whateverfiletosign
Click to expand...
Click to collapse
.apk's not showing up after flash in resigned .zip
Ok, so I've created a ROM to my liking. All the .apk's I normally use and got rid of the ones I don't. My problem is after I customized the ROM and flashed it none of the .apk's I added showed up. The only ones that showed up were the paid apps. I never opened the .apk's and made changes. I assume I don't need to change them to .zip resign and back to apk. Do I? I am using Windows 7 though and am able to resign no problem. Thanks to anyone who replies.
Im trying to root my hero but im stuck =/
How can i "make your way to the Android SDK tools folder where the file adb is located " im so lost I save the folder on my desktop.
Can someone help me please and thank you.
go to Start->Run and type in "cmd" and hit enter. It should default you into your user's folder so...
From there type in "cd Desktop"
and then "cd [whatever the folder is called where you unzipped the sdk]"
Navigating file structures via command line is a good thing to know when messing around in your Phone's OS. It might be wise to google around and brush up on this (Esspecially navigating linux command lines) before attempting too much on the phone.
Thanks but I figured it out lmao =]]
I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
androidmonkey said:
I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
Click to expand...
Click to collapse
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms
xidominicanoix said:
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms
Click to expand...
Click to collapse
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...
androidmonkey said:
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...
Click to expand...
Click to collapse
the install never did this afaik ... does ddms work now though?
xidominicanoix said:
the install never did this afaik ... does ddms work now though?
Click to expand...
Click to collapse
ddms loads just fine now but my phone doesnt show up. My phone is connected with "USB debugging connected" enabled.
Any ideas?
did you mount your sd card?
Got it working, the windows driver wasnt installed.
I didnt realize I just needed to use the cmd line to install Navigation, not ddms. Thanks for the help
all you need is the command line to run ddms. Just put it where you have adb, go there via command line, and type"
ddms
Tada. eidt: it's not perfect, but it's mostly there.
Cannot mount SD card in terminal / console
delete ......
Ok so, my old HD crashed, completely unrecoverable. I now have a new laptop with W7HP. I set up the SDK folder and when I try to do ADB commands it fails. I get - ADB is not recognized as an internal or external command, operable program or batch file.
Can anyone help me?
Pauper7 said:
Ok so, my old HD crashed, completely unrecoverable. I now have a new laptop with W7HP. I set up the SDK folder and when I try to do ADB commands it fails. I get - ADB is not recognized as an internal or external command, operable program or batch file.
Can anyone help me?
Click to expand...
Click to collapse
R u in the sdk tools folder or have u set it up to run adb from any folder. If not that could be a reason why. Also make sure u install the Java jdk and jde files too.
Papa Smurf151 said:
R u in the sdk tools folder or have u set it up to run adb from any folder. If not that could be a reason why. Also make sure u install the Java jdk and jde files too.
Click to expand...
Click to collapse
I was following the instructions in this thread here - (Regaws ROOT instructions)
http://forum.xda-developers.com/showthread.php?t=694572
My phone is Rooted already. Im currently running on Darch's Froyo Nightly 8/23.
Also, I am not sure what you mean by the Java jdk and jde files...
Pauper7 said:
I was following the instructions in this thread here - (Regaws ROOT instructions)
http://forum.xda-developers.com/showthread.php?t=694572
My phone is Rooted already. Im currently running on Darch's Froyo Nightly 8/23.
Also, I am not sure what you mean by the Java jdk and jde files...
Click to expand...
Click to collapse
In order for adb to work I believe u need to install the Java development kit and Java runtime environment. U can find them both at either the Java webisite (Google search for Java JdK) or in my thread everything android in the dev forum. Which is a package of all the tools u need to mess with ur phone. Either way I believe that the Java stuff needs to be put on first
You need to have the tool folder in the path setting on your computer and the android sdk installed.
Or actually be in the tool folder directly.
That should be all that's needed.
Sent from my HTC Desire using XDA App
Papa Smurf151 said:
In order for adb to work I believe u need to install the Java development kit and Java runtime environment. U can find them both at either the Java webisite (Google search for Java JdK) or in my thread everything android in the dev forum. Which is a package of all the tools u need to mess with ur phone. Either way I believe that the Java stuff needs to be put on first
Click to expand...
Click to collapse
Found the Java stuff. do I extract it INTO the android tools folder or just right to the c Drive?
Just install java on your pc & make sure your path is set for the sdk & see where that puts you.
Sent from my phone.
had the same exact issue. all it did to fix it was:
re-unpack the sdk to the C:\ drive
install the HTC sync from the root thread you posted
REBOOT COMPUTER
plus in phone let it do its thing with drivers and such
and BOOM working.
Windows 7 x64
Being new to Java, Android OS and Android Studio, I am a bit overwhelmed by all the information and hope I am asking the right questions on the right forum. I am developing an application where the user creates and edits files of a specific format. I want to include example files in my deployment so that the user can play with them right away. Now my questions are:
How do I include those files with Android Studio?
How do I define/create a directory for these files?
What would be standard locations for this directory which allow the user to access the files with a file manager?
frank-floripa said:
Being new to Java, Android OS and Android Studio, I am a bit overwhelmed by all the information and hope I am asking the right questions on the right forum. I am developing an application where the user creates and edits files of a specific format. I want to include example files in my deployment so that the user can play with them right away. Now my questions are:
How do I include those files with Android Studio?
How do I define/create a directory for these files?
What would be standard locations for this directory which allow the user to access the files with a file manager?
Click to expand...
Click to collapse
I've not yet made the transition to Android Studio, but in Eclipse there's a folder called /assets in the project structure. That folder gets built into the root of the APK. You can then access files in the /assets folder with the AssetManager.
Android puts tight controls on your access to devices resources. Each application has a default location for files that it can manage. You can retrieve the default working directory through the app Context. Check out Context.getFilesDir(). The application has the necessary privileges to read and write files to that location.
The crucial thing about internet search is keywords. The one I didn't know is "assets". Together with "android studio" I found a wealth of valuable links. Thanks for the help!