I was wondering if it is possible to stop android studio creating the folder .AndroidStudio1.4 every time I run it. A way to change the location is also OK.
I asked this question on superuser and mentioned there I already succeeded in changing the locations of the subfolders. Now I just get an empty folder in my home directory.
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.
I'm attempting to "theme" (might be a stretch to call what i'm doing a theme) my first app. I started with intuitit's Launcher, modified the pull down icon and the background to suit my likings, dumped the image files back into the archive via 7zip. When I attempt to install to my phone I get this error in the command line:
[INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
Thinking this is because I didn't sign it after I made the changes? What is the best, most easiest way to sign my apps? I already have Eclipse installed, a workspace created, the most recent Android SDK files and the Android plugin's configured for Eclipse. But I'm thinking there is just some sort of batch file out there that will self sign the file.
Also, maybe this isn't a signing issue. If not, what is it?
DaveKid said:
I'm attempting to "theme" (might be a stretch to call what i'm doing a theme) my first app. I started with intuitit's Launcher, modified the pull down icon and the background to suit my likings, dumped the image files back into the archive via 7zip. When I attempt to install to my phone I get this error in the command line:
[INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
Thinking this is because I didn't sign it after I made the changes? What is the best, most easiest way to sign my apps? I already have Eclipse installed, a workspace created, the most recent Android SDK files and the Android plugin's configured for Eclipse. But I'm thinking there is just some sort of batch file out there that will self sign the file.
Also, maybe this isn't a signing issue. If not, what is it?
Click to expand...
Click to collapse
I use a script I found on the G1 boards...I'll zip it up for you and post it here...Its a modification of the zip signing thing, I use it all the time for Hello IM (horrible company multiple facets btw, no updates anymore they suck) and Chomp SMS
Simply extract the file to any directory, and in the root folder place ur customized APK file then run the sign.bat your file will be named your_app_signed.apk
sometimes I have to remove the META-INF from inside the APK then sign it for it to work (it recreates meta info)
have fun.
Also, you do not name a topic HOW TO unless you are offering a HOW TO, it is misleading...this is a question...you know that...it belongs in Q&A
AbsoluteDesignz said:
Also, you do not name a topic HOW TO unless you are offering a HOW TO, it is misleading...this is a question...you know that...it belongs in Q&A
Click to expand...
Click to collapse
your absolutely right! I sometimes am not sure where the best place is. and [HOW-TO] is definitely misleading.
thanks again for all your help.
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!
Hello,
Is it possible to make an app that when you tap the button on the screen it copy's "/sdcard/pic1.png" to "/sdcard/pictures/pic1.png (That is an example, not sure if that's the right directory format). I want to copy "fileA.txt" to "/text/fileA.txt" but I can not find out how. I have tried many ways. I believe I have all the permissions added. I'm just don't know how to copy the file.
I am working in an android project in android studio and I have created a database using SQLite and a table inside of this database.So I have a problem when I want to appear the database.I have installed the DB Browser for SQLite,and have followed the steps for finding database like;Tools-Android-Android Device Monitor-File Explorer; but when I go to the the folder 'data' it does contain nothing(it should contain the folder data,and then database). I am using an AVD for emulation.Why it is empty?