Android studio copy assets folder to device - Android Studio

I am working with databases, and when i try to run the program android studio wont copy the content of assets folder to data/data/packagename/ . Is there any part of code that i need to insert to tell android studio to copy the content (database) to phone?

Nikola010 said:
I am working with databases, and when i try to run the program android studio wont copy the content of assets folder to data/data/packagename/ . Is there any part of code that i need to insert to tell android studio to copy the content (database) to phone?
Click to expand...
Click to collapse
Sent from my SM-J110H using XDA Free mobile app

Related

[TUTORIAL] Selectable Browser User Agent

BACKGROUND
If you use an Android tablet to surf the web, you often face the issue that if you visit a web site that has a mobile version, the server checks your User Agent and says "Android, eh? You're a phone!" - and bumps you to mobile.nfl.com instead of www.nfl.com, which sucks because phone optimized web sites tend to look bad on a 10.1" 1280x800. For example, you want this not this.
So, you can handle that quite easily, you ask the browser to present itself as something else.
CAUSE
Default, my tablet presents itself as...
Mozilla/5.0 (Linux; U; Android 3.1; en-gb; GT-P7500 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
...and that's when all the web sites say "Android, aha! You're a phone!"
But I can instruct the tablet browser to present itself as anything else, for example...
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1
...which is handy because it makes all the web sites say "Aha! You're a Chrome browser running on MacOS X 10.7 Lion!", therefore showing me the proper web sites.
ONE SOLUTION
You can do this by decompiling /system/framework/framework-res.apk
Open /res/values/strings.xml, search for the string "web_user_agent" and you'll see this:
<string name="web_user_agent" formatted="false">Mozilla/5.0 (Linux; U; Android %s) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 %sSafari/534.13</string>
You can change this blue string into whatever you want.
However, if you do this you're stuck without a proper "android" user agent.
That could be a pain in the ass if you've got an app that relies on a hidden browser window to complete a sign-in authentication, checking the user agent in the process...*cough*NFLGamePassForAndroidTablet*cough*
ANOTHER, MORE ELEGANT, SOLUTION
The more elegant version, however is decompiling /system/app/Browser.apk
Open the file /res/xml/advanced_preferences.xml if you want the menu item in Advanced settings
or open the file /res/xml/general_preferences.xml if you want the menu item in General settings
Insert this…
<ListPreference android:entries="@array/pref_development_ua_choices" android:title="@string/pref_development_uastring" android:key="user_agent" android:defaultValue="0" android:entryValues="@array/pref_development_ua_values" />
... somewhere, between/above/below some other node. I've put it over the ...
<com.android.browser.search.SearchEnginePreference …
... node, giving me this new menu item in Advanced...
... opening this menu ...
Compile it back and there you go.
This fix is basically just shortcutting around the about:debug route by moving the option out of the hidden debug menu, but it's quite convenient to have the option easily accessible without entering debug mode, and you're not stuck without an "Android" user agent.
HOW TO DO THIS, STEP BY STEP.
(mirrored from post #25)
Teaching has never been my strong feat but I'll give it a shot.
Please note:
The "Setup to build" part is for Windows, recreated from memory, and may be inaccurate. I love you guys but I'm not gonna wipe my system and start over just to retrace my steps
For the entire guide, I'm pre-supposing basic computer skills, a rudimentary understanding of ADB, folder structures, file management, text editing and "what do you mean command line??!"
== Set up to build:
If you don't have Java installed, download and install Java from java.com
Download APK Manager 5 and remember to thank the guy.
Place it in a folder in C:\ so you have a directory stucture like this:
C:\apkmanager5
C:\apkmanager5\other
C:\apkmanager5\place-apk-here-for-modding
...etc
C:\apkmanager5 is the home dir for our purposes, so from now on assume we're in C:\apkmanager5 unless I say otherwise.
Run Script.bat
Select 24 "Exit"
(this should create any dirs and logfiles that may be missing)
== Get the required files and prepare for editing
Pull the following .APKs from your phone via ADB or extract them from your ROM.zip to /place-apk-here-for-modding in our homedir. You should make a backup of at least Browser.apk, just in case.
/system/app/Browser.apk
/system/framework/framework-res.apk
/system/framework/twframework-res.apk
Run the following commands from a command prompt in our home dir:
java -jar other/apktool.jar if place-apk-here-for-modding/framework-res.apk
java -jar other/apktool.jar if place-apk-here-for-modding/twframework-res.apk
The command line will return:
I: Framework installed to: C:\Users\((username))\apktool\framework\1.apk
I: Framework installed to: C:\Users\((username))\apktool\framework\2.apk
== Decompile and edit
Run Script.bat
(this will open the apkmanager window)
Enter 19 "Select compression level for apk's"
Enter 0 (compression=0)
Enter 22 "Set current project"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Select the number for "Browser.apk"
Select 9 "Decompile apk"
It'll say "Decompiling apk" and hang for a while.
Open a file explorer/total commander/whatever on your computer, and go to /projects in our home dir. You'll see that we now have the decompiled Browser.apk in there.
Go to /projects/Browser.apk/res/xml/ and open general_preferences.xml with a text editor. Notepad, Notepad++, Ultraedit or something, not Word
Add the purple code, so the content looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Indigo"][I][B]<ListPreference android:entries="@array/pref_development_ua_choices" android:title="@string/pref_development_uastring" android:key="user_agent" android:defaultValue="0" android:entryValues="@array/pref_development_ua_values" />[/B][/I][/COLOR]
<com.android.browser.BrowserHomepagePreference android:hint="@string/http" android:maxLength="8192" android:title="@string/pref_content_homepage" android:key="homepage" android:inputType="textMultiLine|textUri" />
<PreferenceCategory android:title="@string/pref_general_sync_title">
<Preference android:title="@string/pref_personal_sync_with_chrome" android:key="sync_with_chrome" android:summary="@string/pref_personal_sync_with_chrome_summary" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_general_autofill_title">
<CheckBoxPreference android:title="@string/pref_autofill_enabled" android:key="autofill_enabled" android:summary="@string/pref_autofill_enabled_summary" android:defaultValue="true" />
<PreferenceScreen android:title="@string/pref_autofill_profile_editor" android:key="autofill_profile" android:summary="@string/pref_autofill_profile_editor_summary" android:fragment="com.android.browser.AutoFillSettingsFragment" />
</PreferenceCategory>
</PreferenceScreen>
The purple code shows the UAstring item in General Preferences just above the "Set homepage" item.
== Compile
Go back to the apkmanager window.
Select 11 "Compile apk"
It'll output "Building Apk" and think about it for a while.
Apkmanager will ask, "Is this a system Apk?"
"y" - yes it is.
Then it will ask, "Aside from the signatures, would you like to copy over any additional files that you didn't modify from the original apk in order to ensure least # of errors?"
"y" - yes, you want to do that.
apkmanager will extract those original files and then present you with this screen:
Read that, then I'll explain it
Right. At this point apkmanager has made a copy of the original, compiled Browser.apk files in C:\apkmanager5\keep
As the name "keep" suggests, whatever is in here will be kept and carried on to your new build, so:
For every file that you have changed in /projects/Browser.apk/, you need to delete the counterpart in /keep/.
That way, apkmanager knows to keep your unchanged files unchanged but grab your changed file(s) from /projects/Browser.apk. It may seem like dumb way of doing it but it makes sense that you don't want your computer to compile more than it has to. Compiling takes time and CPU, and...well...the less is done, the less can go wrong.
In this case you edited /projects/Browser.apk/res/xml/general_preferences.xml
So you have to delete /keep/res/xml/general_preferences.xml
AND you have to delete /keep/resources.arsc as well!
Whenever you have changed any XML in an .apk, you also have to delete /keep/resources.arsc when compiling. The apk's resource table is compiled into resources.arsc, so if you dont delete it from keep/, you're gonna keep that and carry it over into your new, modified Browser.apk, and your changes won't come through
Ok, after deleting those two files, you "Press any key to continue ...", all the resources are compressed, and now you have a modified Browser.apk in place-apk-here-for-modding/
Wrap it in a flashable zip and flash it.
("How" is outside the scope of this guide)
As it turns out, this is actually a rather general guide on decompiling, editing and recompiling stuff for honeycomb. You can use the exact same method to edit other apks like, framework-res.apk and SystemUI.apk.
Flashble zip?
Credits to the original devs who found these? (DocRambone,alterbridge86) Otherwise nice guide.
PhantomHacker said:
Credits to the original devs who found these? (DocRambone,alterbridge86) Otherwise nice guide.
Click to expand...
Click to collapse
lol, i love how you give the credits. Phantom.... you are a posterchild!
task650 said:
lol, i love how you give the credits. Phantom.... you are a posterchild!
Click to expand...
Click to collapse
I try.
Sent from my GT-P7510 using Tapatalk
Can someone tell me how to decompile in win7?
Preferably the very easiest way with the easiest tool.
Thanks.
Sent from my GT-P7500 using Tapatalk
PhantomHacker said:
Credits to the original devs who found these? (DocRambone,alterbridge86) Otherwise nice guide.
Click to expand...
Click to collapse
Thanks.
As for credits, I assure you I've figured this out all by myself, so how about I give myself a pat on the back then?
I know that DocRambone has a thread where he supplies flashable zips of the the fix in framework-res.apk/res/values/strings.xml but as far as I can see, he doesn't share how. I asked him in PM but he didn't answer, and all he writes in his thread seems to be "You have to decompile the apk and change some of the xml's and then recompile it again.".
So I had to figure it out myself, and it wasn't exactly hard. So far so good.
The selectable browser version is a fairly straightforward solution, since I'm simply moving an existing setting out in the open from a hidden debug menu, but I cannot for the life of me see any other published info about it.
So again, I haven't published anything I haven't figured out myself, and as I've been unfortunate enough to see my own original creation in someone else's 2 dollar Market app, I'm slightly sensitive to the issue of copying.
If you were trolling, consider me trolled.
Hooolm said:
doesn't share how
Click to expand...
Click to collapse
ot: Its a bit like that these days... It seems a lot harder to gather needed information than it was in WM6.X times.
pkoper said:
ot: Its a bit like that these days... It seems a lot harder to gather needed information than it was in WM6.X times.
Click to expand...
Click to collapse
Yeah, it's just... I've never stolen anything, and I get really pissed spending a couple of hours figuring out something cool, and sharing it with the community then being told "pretty pictures - now credit those who told you how"
Edit..
All good, but I need to learn to do more search before asking, iam sorry
And here is a little offtopic question. Why does it look like this in rootexplorer when iam about to edit the xml file
Sent from my GT-P7510 using xda premium
Hooolm said:
Yeah, it's just... I've never stolen anything, and I get really pissed spending a couple of hours figuring out something cool, and sharing it with the community then being told "pretty pictures - now credit those who told you how"
Click to expand...
Click to collapse
I didn't see an issue with your original post. It would have been different if you had posted Doc's zips as your own creation, but you didn't. Yours was simply a tutorial to teach and explain how such a thing could be done. It's the difference between you showing me a Ferrari Italia and telling me you built it, versus simply telling me HOW they built it.
In any case, you mention Doc never answered your requests. Does anybody know what the heck happened to him? I stopped following his threads when he went MIA.
bd85 said:
Edit..
All good, but I need to learn to do more search before asking, iam sorry
And here is a little offtopic question. Why does it look like this in rootexplorer when iam about to edit the xml file
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
Prob cuz root explorer isnt an xml viewer/editor?
DT3CH said:
Prob cuz root explorer isnt an xml viewer/editor?
Click to expand...
Click to collapse
In can open the andrpidmanifest.Xml that is in browser apk just fine, but when I go to the xml res folder and open the xml there it looks like my earlier Screenshots.
This works but not the xml i want to edit, strange
Sent from my GT-P7510 using xda premium
bd85 said:
In can open the andrpidmanifest.Xml that is in browser apk just fine, but when I go to the xml res folder and open the xml there it looks like my earlier Screenshots.
This works but not the xml i want to edit, strange
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
The resource table is compiled into resources.arsc
You have to decompile the entire .apk to edit the xml and compile again afterwards.
Use something like apkmanager, it's real easy to set up. There's a thread for it in the 10.1 dev forum ;-)
i hope phantomhacker can include this in the 3.2 rom don't really want to try this out myself in case i screw this up
Hooolm said:
The resource table is compiled into resources.arsc
You have to decompile the entire .apk to edit the xml and compile again afterwards.
Use something like apkmanager, it's real easy to set up. There's a thread for it in the 10.1 dev forum ;-)
Click to expand...
Click to collapse
Have you actually done this, does it work? I'm interested, and tried with apkmanager, but the recompiled browser wont work. I think its a problem with my install of apkmanager, but I'm not sure.
blulite said:
Have you actually done this, does it work? I'm interested, and tried with apkmanager, but the recompiled browser wont work. I think its a problem with my install of apkmanager, but I'm not sure.
Click to expand...
Click to collapse
Yeah, I've done it several times. For task650 v6.1, stock XWKH7 and XXKI1.
I decompile it with framework-res.apk and twframework-res.apk installed and compile it back as a system app.
Edit:
I've used this ApkManager 4.9 HC edition without problems
bd85 said:
In can open the andrpidmanifest.Xml that is in browser apk just fine, but when I go to the xml res folder and open the xml there it looks like my earlier Screenshots.
This works but not the xml i want to edit, strange
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
Ahh, weird indeed
decompile works great on my mac, but compile does not work.
Please make your decision: 10
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
i've also tried this:
http://forum.xda-developers.com/showpost.php?p=7064736&postcount=447
didnt work
My Mac isn't set up to build, I can't help you there.
I'm building on a Windows Server remotely.
How about asking in the apkmanager thread? I'm sure they know more about it

[Guide] How to install Java (.jar,.jad)apps right on your Android Phone

Yes we can install java apps on our android phone & it is possible with the application JBED.
What is JBED?
JBED is an .apk Android application which Run
Java Games and Apps on our Android Device.
JBED is a Java Android Java Emulator, by using
this application we can install .JAR/.JAD/Java/
J2ME/MIDP games on Android phones. Now
We can use all of our favorite .JAR
application in our phones.
Steps to Install Jar on Android:
1. Download JBED http://forum.xda-developers.com/attachment.php?attachmentid=754635&d=1319050135
2. Download lib jbedvm .so www.4shared.com/file/laOKHPjO/libjbedvm.htm
place it in system\lib
folder
3. Install the JBED.apk application and don’t play
it.
4. Restart the phone
5. Launch JBED application. Press menu button
and choose SD card.
6. Select your .JAR/.JAD file that you want to
install and run.
7. Now install the chosen application through
JBED.
6. Now open the installed java application to run.
Thats all 
Thanks to the Brilliant Dev who created the app JBED
Ive needed this for ages! Thanks.
Sent from my GT-S5830i
Ive already seen you post this in Ace's Development section(which is wrong ) and now here.
Just Great buddy! Bravo :good:
But its good to know. Good work OP
Sent from Batman's Bat-Phone.
nayser said:
Yes we can install java apps on our android phone & it is possible with the application JBED.
What is JBED?
JBED is an .apk Android application which Run
Java Games and Apps on our Android Device.
JBED is a Java Android Java Emulator, by using
this application we can install .JAR/.JAD/Java/
J2ME/MIDP games on Android phones. Now
We can use all of our favorite .JAR
application in our phones.
Steps to Install Jar on Android:
1. Download JBED http://forum.xda-developers.com/attachment.php?attachmentid=754635&d=1319050135
2. Download lib jbedvm .so www.4shared.com/file/laOKHPjO/libjbedvm.htm
place it in system\lib
folder
3. Install the JBED.apk application and don’t play
it.
4. Restart the phone
5. Launch JBED application. Press menu button
and choose SD card.
6. Select your .JAR/.JAD file that you want to
install and run.
7. Now install the chosen application through
JBED.
6. Now open the installed java application to run.
Thats all 
Thanks to the Brilliant Dev who created the app JBED
Click to expand...
Click to collapse
I tried & its working!!!
But if someone is trying to install java games then install screentouch games only.. Or else you cant operate the game
summzz said:
I tried & its working!!!
But if someone is trying to install java games then install screentouch games only.. Or else you cant operate the game
Click to expand...
Click to collapse
+1
Sent from my GT-S5830i using xda app-developers app
It doesn't work for me. When I launch the Java app the screen goes black then the status bar freezes and I have to hold in the power button until the phone turns off as the phone stops responding.
Sent from my GT-N7100 using Tapatalk 4
not working
nayser said:
Yes we can install java apps on our android phone & it is possible with the application JBED.
What is JBED?
JBED is an .apk Android application which Run
Java Games and Apps on our Android Device.
JBED is a Java Android Java Emulator, by using
this application we can install .JAR/.JAD/Java/
J2ME/MIDP games on Android phones. Now
We can use all of our favorite .JAR
application in our phones.
Steps to Install Jar on Android:
1. Download JBED http://forum.xda-developers.com/attachment.php?attachmentid=754635&d=1319050135
2. Download lib jbedvm .so www.4shared.com/file/laOKHPjO/libjbedvm.htm
place it in system\lib
folder
3. Install the JBED.apk application and don’t play
it.
4. Restart the phone
5. Launch JBED application. Press menu button
and choose SD card.
6. Select your .JAR/.JAD file that you want to
install and run.
7. Now install the chosen application through
JBED.
6. Now open the installed java application to run.
Thats all 
Thanks to the Brilliant Dev who created the app JBED
Click to expand...
Click to collapse
not working in my shv e210s
It's possible to launch an Nokia Sybian (JAVA Apps) on Android phone ?
Have somebody Diamond rush screentouch latest 320x480 version?
When I tried to paste lib file in system/lib it says not enough memory I checked as only 684KB left in system folder I uninstalled many apps but still memory lacks help guys
Sent from my GT-S5302 using xda app-developers app
Dimpyik13 said:
When I tried to paste lib file in system/lib it says not enough memory I checked as only 684KB left in system folder I uninstalled many apps but still memory lacks help guys
Sent from my GT-S5302 using xda app-developers app
Click to expand...
Click to collapse
Do not mess with your system uselessly, or you might end up bricking your phone.
Maybe, you're a newbie or not I don't know but, take advice from an expert of your phone's section.
I really dont know what makes you think that people will shell a their money and call you ....
Please dont do this in future and it isnt appropriate to share your personal number in 5+ million community ..
( @xHausx ... Cant report via Tapatapa )
nayser said:
Yes we can install java apps on our android phone & it is possible with the application JBED.
What is JBED?
JBED is an .apk Android application which Run
Java Games and Apps on our Android Device.
JBED is a Java Android Java Emulator, by using
this application we can install .JAR/.JAD/Java/
J2ME/MIDP games on Android phones. Now
We can use all of our favorite .JAR
application in our phones.
Steps to Install Jar on Android:
1. Download JBED http://forum.xda-developers.com/attachment.php?attachmentid=754635&d=1319050135
2. Download lib jbedvm .so www.4shared.com/file/laOKHPjO/libjbedvm.htm
place it in system\lib
folder
3. Install the JBED.apk application and don’t play
it.
4. Restart the phone
5. Launch JBED application. Press menu button
and choose SD card.
6. Select your .JAR/.JAD file that you want to
install and run.
7. Now install the chosen application through
JBED.
6. Now open the installed java application to run.
Thats all 
Thanks to the Brilliant Dev who created the app JBED
Click to expand...
Click to collapse
hey this is weird but can we have JDK (Java Development Kit) on android? i need that not games
lib jbedvm.so link dead
What the hell is that
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
myaservip said:
What the hell is that
Click to expand...
Click to collapse
That is new rom Kitkat
Flamestorm said:
That is new rom Kitkat
Click to expand...
Click to collapse
:good: +1
Nup its inside j bed
Android 4.2.2 Samsung S2 Plus(Time Wasted)
Please don't waste your time as i did, if you are using android 4.x .JBED will not work.
I tried all the steps , rooted the phone, copied lib..so in the system\lib folder , "Unfortunately java has stopped"............................wasted a lot of time on it............................According to some people it works on Android 2.2 something, there is a youtube vedio also which shows it running on it.
I still realy need to run it , is it possible to install Android Froyo(2.2) on my Samsung s2 plus?(so i can run JBED)
where is this system lib folder
please tell me where is this system lib folder and what to place in it.

[GUIDE]Migrating from Eclipse to Android Studio

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
On Google I/O 2013, Google has launched new IDE based on IntelliJ IDEA, called Android Studio. I'm really interested in Android Studio, given that I usually using Eclipse in developing Android application. I find that this IDE is really good (or should I say awesome!). But some of my friends said that they're having difficulties in using Android Studio, and prefer the 'good but old' Eclipse. Yes, Eclipse is good, but Google is more supporting the Android Studio. So with this articles, I want to share my experiences in migrating from Eclipse to Android Studio. I also included Google's official guide from d.android.com/
Let's start with pros and cons of Android Studio:
PROS:
- Better UI in designing and coding
- ProGuard and app-signing capabilities.
- Gradle-based build support (For you that has already get used to it)
CONS:
- Hard to manage multiple projects. (For example: to delete a project you have to delete from the explorer)
- Gradle-based build support (For you that's not get used to it)
- Still in EAP (Early Access Preview)
If you have something to say about PROS-&-CONS, I'm glad to hear from you.
Now move along to installing Android Studio. It's very easy.
First of all, go to http://developer.android.com/sdk/installing/studio.html and download the installer.
Windows:
- Launch the downloaded EXE file, android-studio-bundle-<version>.exe.
- Follow the setup wizard to install Android Studio.
- Known issue: On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location. Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21.
Mac OS X:
- Open the downloaded DMG file, android-studio-bundle-<version>.dmg.
- Drag and drop Android Studio into the Applications folder.
- Known issue: Depending on your security settings, when you attempt to open Android Studio, you might see a warning that says the package is damaged and should be moved to the trash. If this happens, go to System Preferences > Security & Privacy and under Allow applications downloaded from, select Anywhere. Then open Android Studio again.
Linux:
- Unpack the downloaded Tar file, android-studio-bundle-<version>.tgz, into an appropriate location for your applications.
- To launch Android Studio, navigate to the android-studio/bin/ directory in a terminal and execute studio.sh.
- You may want to add android-studio/bin/ to your PATH environmental variable so that you can start Android Studio from any directory.
After you installed Android Studio, let your journey begin. But first, you must remember that Android Studio is still in EAP, so there will be many bugs/glitches/errors/whatever-you-call-it that can be annoying. But if you patient enough, you will find it very fun.
How to create project?
It's easy! Just use File -> New Project...
Or, if it's your first time using Android Studio, you will be welcomed with options to "Create New project"
Exploring your projects
File system is quite different with Eclipse. Considering that your android apps will be Gradle-based. So you just have to modify everything inside main project folder (See picture, file under "DMap" is main project folder). Unless you're an expert in Gradle and Intellij.
After you get used to the UI and layout, you can start coding & designing your app.
Designing Layout using Android Studio is Better?
Yes! You can see pictures below that you have 2 options to design layout. First by typing it directly through "Text" mode, or "Drag-and-drop" design. Both of them enable you to preview your design. Just have a 15-minutes experiments with your preview, and you will feel the power!
Let me give you some examples:
Design with "Text" mode
Design with "Drag and Drop" mode
How to include support library?
Another beautiful thing that announced in Google I/O 2013 is ActionBar Compat. I'm waiting it for a long time, because using "Sherlock ActionBar" is a little bit complicated. And now it's released. Download it with your SDK Manager.
Then include it in your project. How? Because this is Gradle-based, it's quite simple. Open "build.gradle" in your main project folder.
For Android-Support v4:
- It's automatically included when you created new project. But if not, use second step.
- Add this line:
Code:
dependencies {
...
compile "com.android.support:support-v4:18.0.+"
}
For Android-Support v7:
- Add this line:
Code:
dependencies {
...
compile "com.android.support:appcompat-v7:18.0.+"
}
How tot test your app?
Just like Eclipse, Android Studio support 2 way of testing. By using AVD (Android Virtual Devices) or by real devices. To edit configurations, go to "Run" -> "Edit Configurations". I recommend you to choose "Target Device" -> "Show chooser dialog", to give you more freedom in testing.
For AVD:
- You have to create at least one AVD. To create AVD, go to "Tools" -> "Android" -> "AVD Manager"
- In the chooser dialog, select AVD, and choose your devices.
For Real Device:
- You have to enable USB Debugging in your devices! Enable it, then go forward.
- Connect it through USB. In chooser dialog, you will see your device there.
Known issue: Sometimes the driver is not right. You should use Google USB Driver for testing app in Android. Or sometime, your device won't be detected if it's in sleep/locked mode.
How to generate a signed APK?
This is also easy! Android Studio is provided with App-signing capability so you don't have to open up your keytool or do somewhat-complicated task.
Here's some steps:
- Go to "Build" -> "Generate Signed APK..."
- Click "Create new..."
- To make a new keystore, just put a non-exist keystore in "Key store path:" (The folder MUST exist, while the file MUST NOT exist). And other details.
- It will automatically completed our last dialog in keystore. Just click "Next"
- And "Finish"
TIPS & TRICKS
If you want to change to Darcula Look and Feel, (in Windows) just press: "Ctrl + ~" -> "Switch Look and Feel" -> "Darcula".
This look and feel is very interesting, and I like it so much.
End of articles
It's easy doesn't it? There will be many improvements in the future that I don't know. But let's waiting for it. If you have any suggestions, questions, or even critics, just ask me. And also if you find it helpful, please click "Thanks" or "Donate". I will appreciate it very much.
Also check this official video from Google I/O 2013. About what's new in Android Studio
Multiple Projects
I currently have 8 active projects open in eclipse and during a single day I will work on at least 2-3 of them.
Does anyone know if android-studio will support this?
From what I have seen so far, it will only allow 1 project to be open at a time, this would mean have 4/5 android studios open at once just so that I can switch between projects.
Andy.
p.s. another question is : Can we use eclipse keystores for signing apps? if not what do we do about existing applications?
The thing that kept me off this was that it was impossible to correctly import an Eclipse project, when I tried it... I might give it a try by your instructions later.
Hi Andy,
Android Studio will separate your projects into multiple windows. But not multiple instances. So don't worry it will not consume your memory excessively.
And based on my experiences, Java keystore will be saved as (.keystore) file. So yes, even though you're using Eclipse or Android Studio both of them are the same. Just locate your keystore file, and "Choose existing...".
aspellclark said:
I currently have 8 active projects open in eclipse and during a single day I will work on at least 2-3 of them.
Does anyone know if android-studio will support this?
From what I have seen so far, it will only allow 1 project to be open at a time, this would mean have 4/5 android studios open at once just so that I can switch between projects.
Andy.
p.s. another question is : Can we use eclipse keystores for signing apps? if not what do we do about existing applications?
Click to expand...
Click to collapse
d.android.com has provided a useful solution for your problems, I think. Try this tips for export/import android projects from Eclipse to Android Studio. http://developer.android.com/sdk/installing/migrate.html
bassie1995 said:
The thing that kept me off this was that it was impossible to correctly import an Eclipse project, when I tried it... I might give it a try by your instructions later.
Click to expand...
Click to collapse
JoshieGeek said:
d.android.com has provided a useful solution for your problems, I think. Try this tips for export/import android projects from Eclipse to Android Studio. http://developer.android.com/sdk/installing/migrate.html
Click to expand...
Click to collapse
This way of working was not correctly working for me...
Have you checked that you do it right? For example: Have you export it from Eclipse first, then import it from Android Studio? And not import it directly from Android Studio?
Or do you have any specific screenshot for logs / things that can give me some clues?
bassie1995 said:
This way of working was not correctly working for me...
Click to expand...
Click to collapse
JoshieGeek said:
Have you checked that you do it right? For example: Have you export it from Eclipse first, then import it from Android Studio? And not import it directly from Android Studio?
Or do you have any specific screenshot for logs / things that can give me some clues?
Click to expand...
Click to collapse
I followed the steps, but long ago. I'm going to try again soonish.
Sent from my GT-I9300 using Tapatalk 4
Could someone give me a little guidance?
i checked that path and there isnt even a config folder.
Never mind, figured it out myself.
Has to make it run as administrator
Sent from my Galaxy Nexus
That's why if I'm using windows 7 (or above), I will not install some development-related programs to C partition. But another, it will be much more flexible to edit and something like that. By the way, you do a good job to solve your problems by yourself. Experimenting the problems is a good way to learn.
:good:
Garridon said:
Never mind, figured it out myself.
Has to make it run as administrator
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
JoshieGeek said:
For Android-Support v4:
- It's automatically included when you created new project. But if not, use second step.
- Add this line:
Code:
dependencies {
...
compile "com.android.support:support-v4:18.0.+"
}
For Android-Support v7:
- Add this line:
Code:
dependencies {
...
compile "com.android.support:appcompat-v7:18.0.+"
}
Click to expand...
Click to collapse
Thank you !
I think you mean "Android-AppCompat v7" not "Android-Support v7"
BTW when to use support-v4 vs appcompat-v7 ? What's the difference? Should I use both?
The difference is that appcompat-v7 will cover many more support libraries (for example: ActionBar compat). But your minimum version of App will be 7. So I recommend you to use appcompat-v7 than support-v4. Because there're not so many users that still using < v7.
From my experiences after I declare that dependencies, I got android support v4 and android v7. But still the minimum version MUST 7.
Have any questions? Feel free to ask me, I would be glad to help.
ceefour said:
Thank you !
I think you mean "Android-AppCompat v7" not "Android-Support v7"
BTW when to use support-v4 vs appcompat-v7 ? What's the difference? Should I use both?
Click to expand...
Click to collapse
JoshieGeek said:
The difference is that appcompat-v7 will cover many more support libraries (for example: ActionBar compat). But your minimum version of App will be 7. So I recommend you to use appcompat-v7 than support-v4. Because there're not so many users that still using < v7.
From my experiences after I declare that dependencies, I got android support v4 and android v7. But still the minimum version MUST 7.
Have any questions? Feel free to ask me, I would be glad to help.
Click to expand...
Click to collapse
Thanks Joshie! So appcompat-v7 it is...
So ActionBar is now provided by Google? So long Sherlock (it's still very nice though! yet I'm happy Google finally implements it too)
Yupz. And also implementation of Google's ActionBarCompat is very easy. So I prefer Google's to Sherlock..
But yeah, Sherlock is a good alternatives when Google has not even been releasing it.
Sent from my Nexus 4 using xda app-developers app
JoshieGeek said:
Yupz. And also implementation of Google's ActionBarCompat is very easy. So I prefer Google's to Sherlock..
But yeah, Sherlock is a good alternatives when Google has not even been releasing it.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
I switched to the Google one, too. However, there is this annoying bug: http://code.google.com/p/android/issues/detail?id=58321
And it does not provide a PreferenceActivity with the ActionBar.
Waiting for the next version...
Yupz.. Wait for the next version... It's quite a small bugs, and they promise will fix it in next release..
nikwen said:
I switched to the Google one, too. However, there is this annoying bug: http://code.google.com/p/android/issues/detail?id=58321
And it does not provide a PreferenceActivity with the ActionBar.
Waiting for the next version...
Click to expand...
Click to collapse
Sent from my Nexus 4 using xda app-developers app
JoshieGeek said:
Yupz.. Wait for the next version... It's quite a small bugs, and they promise will fix it in next release..
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Well, if you want to implement multi-selection with it, it won't work.
However, a fixed version can be found here: https://github.com/CyberEagle/SupportLibraryV7AppCompatPatched
I'll use that till they publish the new version.
Starter choice : Eclipse or Android Studio?
Hi,
I'm currently an Enterprise Java developer and want to start building some apps in mobile space. As a new mobile developer, which one should I get start with now; Eclipse or Android Studio?
Regards

[GUIDE]GUI - SignApk Jar File Tutorial to Sign and Align APKs

Hello guys,
I am here with an easy to use application about creating your own keystore to sign APKs and align them.
Requirements:
JDK - Download from www.java.com
sign.jar - Download HERE - APK-Signer 1.8.3 by Hai Bison - working link as of 05/03/2016
Please note that you need to have JDK installed in system for jar files to work.
INITIAL SETUPS
Assuming that you have JDK installed, download sign.jar and extract in anywhere you can navigate easy.
I have it in "C:/apktool"
Open Command Prompt (click Start > type cmd in search box and press enter)
Navigate to folder where you extracted jar file, in my case "c:\>cd apktool".
Type, "java -jar sign.jar"
The writing things ends here and you will see application opened in GUI - as follows
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
CREATE KEYSTORE
Now, we will need to first create a keystore file,
Click on "Save As" in Target Tab and name the file anything, i named it "signedOne"
Click on Save Button
Now We will need to fill the form a little,
In Password, type any password you may remember
in Alias, type any name, usually that should be similar to your UNSIGNED apk file name
Give an Alias Password (for ease, keep it same as password above)
In Name field, Type your first and last name,
This is the minimum required in form, if you want to fill full form, thats upto you.
Click on Button "Generate Keyfile"
Wait until message appears, "Keyfile Generated Successfully". Press OK
SIGN APK
Now its time to sign the APK. - Click on "Signer" Tab.
First, Click on button "Load Keyfile"
Browse for the same keystore file you created, in our case, if you kept the name same as mine, that will be "signedOne.keystore"
Type the password you gave while creating the keystore file.
You will see alias name appearing automatically below if password was correct.
type the alias password you gave earlier.
Click on "Load Target File" and browse for the APK file you want to sign. In my case "whatsapp.apk"
Click on "Sign" button
Wait until the dialog appears, "File Signed"
You will see a new file whatsapp_SIGNED_UNALIGNED.apk in the same folder where whatsapp.apk was already present
ALIGN APK
Click on APK Alignment Tab
Click on "Load APK file" button
Browse for "whatsapp_SIGNED_UNALIGNED.apk
Click on "Align" button
Wait until the message appears "Alignment done, output file: "whatsapp_SIGNED_ALIGNED.apk"
Optional - If you want to verify the alignment, click on "whatsapp_SIGNED_UNALIGNED" button - note that after the alignment, the button name remained same
browse for "whatsapp_SIGNED_ALIGNED.apk
Click on button verify
it will give you a message, "Verification succesful"
TROUBLESHOOTING​
If you get java,util exception error, you need to use JDK-6 or lower and give its path in JDK target adress bar
JDK-7 and plus have changed something for which APK signer doesnt sign APKs
Plz click Thanks buttong if it helped u
???
Hey you wouldn't happen to know what im doing wrong in resigning the latest flash player ics.apk from http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html im trying to change the user agent and version with a hex editor. So I thought that editing the lib file was goofing it up so I just tried to simple extract the apk and resign it and it still wont work.
Any ideas what wrong?
delete
seraphim5 said:
Hey you wouldn't happen to know what im doing wrong in resigning the latest flash player ics.apk from http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html im trying to change the user agent and version with a hex editor. So I thought that editing the lib file was goofing it up so I just tried to simple extract the apk and resign it and it still wont work.
Any ideas what wrong?
Click to expand...
Click to collapse
Its better to compile the apk back using apktool.
If you are first time using this tutorial above, maybe youare are not creating the keystore file. Can you post the apk here for me to look at it?
Sent from my GT-I9100 using xda app-developers app
Download Zipsigner from playstore . It will help you to sign your app through your mob. device .
Sent from my GT-S7562 using XDA Premium 4 mobile app
hello
broken apk signer link fixed.
thanks
Error while signing file. Details:
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date(2040-04-01) or after and future revocation date.
End of line
No signed apk is created. Any ideas?
bwarrington85 said:
Error while signing file. Details:
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date(2040-04-01) or after and future revocation date.
End of line
No signed apk is created. Any ideas?
Click to expand...
Click to collapse
Its because you need to create a key first, before signing the apk
Sent from my TURBO DG2014 using XDA Free mobile app
munnibhai said:
Its because you need to create a key first, before signing the apk
Sent from my TURBO DG2014 using XDA Free mobile app
Click to expand...
Click to collapse
Well I followed the directions above.. Hmm
bwar85 said:
Well I followed the directions above.. Hmm
Click to expand...
Click to collapse
Were you able to resolve the issue? Or else please attach your apk and i have a look on it
Sent from my TURBO DG2014 using XDA Free mobile app
munnibhai said:
Were you able to resolve the issue? Or else please attach your apk and i have a look on it
Sent from my TURBO DG2014 using XDA Free mobile app
Click to expand...
Click to collapse
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
jar file is working perfectly, there is some problem with your theme, keystore file most probably. how did you extraxt the apk? with 7zip or apktool?
munnibhai said:
jar file is working perfectly, there is some problem with your theme, keystore file most probably. how did you extraxt the apk? with 7zip or apktool?
Click to expand...
Click to collapse
I used apktool. I give up on trying to edit apks. There are no tutorials that work.
bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
bwar85 said:
I used apktool. I give up on trying to edit apks. There are no tutorials that work.
Click to expand...
Click to collapse
I am sorry to hear about that, well, apk editing isnt diffictult, apart from decoding java files and then actually coding them again (lets leave it to java programmers)
About editing graphics and XMLs in apk, its easy, ask me anything you want.
bwar85 said:
No, I am trying to mod a cm12 theme from the playstore. I am simply trying to replace images in the apk. I am NOT trying to release the modded apk, it is for my enjoyment only. Isnt that what your jar does?
Click to expand...
Click to collapse
ok, I got to the root of error.
The problem is JDK8 and 7 too probably. The jarsigner provided with these 2 versions, is timestamped now and while we try to sign an apk using the sign.jar, jarsogner isnt finding any timestamp on it.
So you will either need to downgrade to JDK6 (just install as additional and give path to it in sign.jar) and it will work
munnibhai said:
ok, I got to the root of error.
The problem is JDK8 and 7 too probably. The jarsigner provided with these 2 versions, is timestamped now and while we try to sign an apk using the sign.jar, jarsogner isnt finding any timestamp on it.
So you will either need to downgrade to JDK6 (just install as additional and give path to it in sign.jar) and it will work
Click to expand...
Click to collapse
I was using either 8 or 7.
I will try 6 and post results
bwar85 said:
I was using either 8 or 7.
I will try 6 and post results
Click to expand...
Click to collapse
Well your sign.jar completed all tasks with no errors and the app installs but is then rejected by the cm12 theme engine and automatically uninstalls.
So I took the original cm12 theme apk, removed the Meta-inf folder, used sign.jar, and it works.
My error must be in editing the .pngs images within the theme I'm guessing. Im using photoshop 7 to invert colors on the .pngs and saving. Why does changing the .pngs affect the apk from installing I wonder?
So I'll give thanks, your sign.jar does infact work with JDK 6
*edit: Cant give thanks? Hmm no thanks button...
bwar85 said:
Well your sign.jar completed all tasks with no errors and the app installs but is then rejected by the cm12 theme engine and automatically uninstalls.
So I took the original cm12 theme apk, removed the Meta-inf folder, used sign.jar, and it works.
My error must be in editing the .pngs images within the theme I'm guessing. Im using photoshop 7 to invert colors on the .pngs and saving. Why does changing the .pngs affect the apk from installing I wonder?
So I'll give thanks, your sign.jar does infact work with JDK 6
*edit: Cant give thanks? Hmm no thanks button...
Click to expand...
Click to collapse
I am glad that it worked afterall.
1. About the PNGs, there are some with .9 extension in them, if you noticed, they have those black lines around them which must not be touched, they have to be with #000 color. This could be one of problems while you just changed colors.
2. Another issue maybe RGB profile (I am not sure if this setting is available in Ph.7) of photoshop, so goto Edit : Color Settings : RGB : <select "Monitor RGB">. Save and Restart.
Let me know if it worked.
munnibhai said:
I am glad that it worked afterall.
1. About the PNGs, there are some with .9 extension in them, if you noticed, they have those black lines around them which must not be touched, they have to be with #000 color. This could be one of problems while you just changed colors.
2. Another issue maybe RGB profile (I am not sure if this setting is available in Ph.7) of photoshop, so goto Edit : Color Settings : RGB : <select "Monitor RGB">. Save and Restart.
Let me know if it worked.
Click to expand...
Click to collapse
It was the .9.pngs. Messed up the black lines... Fixed and it all works! Thanks for the cool jar!
Please help "FileNotFoundException: .x509.pem"
Thank you, your method works well good for all app.
But for this application "Advanced Permission Manager" by steelworks on google playstore.
Signed process working well, app initially runs good but app main function not working after repacking apk and signed.
It will throw exception "FileNotFoundException: .x509.pem"
What is that exception? I tried every method, I searched whole internet no single solution.

[GUIDE] Make your own Themes for your Samsung device

Hi all!
I make this guide for those who want to make their own themes for Samsung Devices. This uses Samsung My Theme, a software developed by Samsung.
The devices supported by this method are devices compatible with TouchWiz Theme Engine (like my A5 2015 for example)
Things you'll need:
Samsung My Theme Software, it has the following system requirements:
• A PC running Windows 7 or later.
• A Samsung device using Samsung Theme Engine.
• Android SDK for Android 4.4 or higher should be installed on the PC.
• Java JDK version 1.6-7.0 (not 8.0).
1. Downloading the required software.
You can download my version of Samsung My Theme here:
https://mega.nz/#!yl8VSZyK!-wUHQ5eQ8xcn-2VgZ9LbkW_g-ilLPuyjD-L_h0DY0Oo
Unzip the .zip file, and put it on a location you can access easily. Simply unzip the tool and run
“SamsungMyTheme.exe”.
1.2 Downloading Java JDK & Android SDK.
*Android SDK does not currently support JDK 8.0. Use JDK versions 6.0 or 7.0 only.
- Download the Android SDK (version 4.4 only) just use the download.bat script in working folder (it will download all SDK automatically) or you can download it manually here:
http://developer.android.com/sdk/index.html
- Copy all files and folders in the Android SDK…\android\android-sdk folder to the \sdk
folder on your PC.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open Samsung_My_Theme folder and go to /sdk folder. Copy the files to this /sdk folder according to this below:
2. Choosing the correct resolution for your device and saving theme path.
Open the working folder and run SamsungMyTheme.exe
Wait few seconds, the components will be loaded. Once the app is loaded, select create a changeable theme.
2.1 Select the correct resolution for your device.
The software will ask you to choose your device resolution, if you don't know it, just search for specs of your Samsung device and you will find it.
Taking the example of A5, it uses 720x1280p so I choose it. Once all of that is done choose a name and a saving path for your Theme.
2.1 Adding Lockscreen and Home screen wallpaper.
After creating the theme file, you have to add your own resources to it.
You can use your resources to do that, download any picture you want and click on add image on the left side (see the picture below)
A popup will be opened, select your picture and click on open. You should now see your picture on the components. Use the adjustements tools on the right side to crop, rotate, adjust size or cut your pic to make it fit your device screen. Do the same procedure for the home screen wallpaper.
2.2 Adding your own icons.
Click on icon button.
Click on "+" to select the image you want to use as a icon for the app you want to change the icon.
Note: if you let a case empty, after Installing the theme to your device, it will use the stock icon.
Taking example here of music app icon.
Do as previous steps, use your own images. Crop the icon to make it fit the white square on the center. Adjust brightness if necessary. And do the same of the other icons you want to change.
3. Testing your Theme on your device.
Using SamsungThemePreview on your device
Go to your SamsungMyTheme folder, you should see an apk file named " SamsungThemePreview.apk", select it, plug your device to your PC and move the .apk file to your device. Use a file browser on your device, select the apk of SamsungThemePreview and install it as a normal apk.
- Now go to Settings > About device, touch 10 times build number, go back to settings, and now you should see a new option named "Developer options" click on the tile and enable USB debugging mode. Allow any popups on the device.
On your PC, click the Preview on phone button on the menu bar. When Theme Preview apk is installed, a preview of your theme will be displayed
automatically.
If you like your Theme, select file, click on save and then "Package the APK file"
It will open a new popup, set name for your Theme, package name, etc... And click on save.
It will take some time to build the apk file depending on the resources you used.
Once it's finished, you can directly apply the theme to the device or take it from working folder and /out.
Congratulations ! You made your own theme from your own resources.
Reserved
Reserved
Nice tutorial, thanks again :thumbup:
Pretty detailed. Thanks. Will try
Hi, I'm a noob here. I just wanted to know on where to download android sdk?
KR_ said:
Hi, I'm a noob here. I just wanted to know on where to download android sdk?
Click to expand...
Click to collapse
http://developer.android.com/sdk/index.html
Download from here
harsh09046 said:
http://developer.android.com/sdk/index.html
Download from here
Click to expand...
Click to collapse
Oh, thanks ☺?
Sent from my SM-A310F using XDA-Developers mobile app
doesn't work. when i open samsung my theme, everything is all gibberish and you can't click anything. any ideas?
mygalaxya said:
Hi all!
I make this guide for those who want to make their own themes for Samsung Devices. This uses Samsung My Theme, a software developed by Samsung.
The devices supported by this method are devices compatible with TouchWiz Theme Engine (like my A5 2015 for example)
Things you'll need:
Samsung My Theme Software, it has the following system requirements:
• A PC running Windows 7 or later.
• A Samsung device using Samsung Theme Engine.
• Android SDK for Android 4.4 or higher should be installed on the PC.
• Java JDK version 1.6-7.0 (not 8.0).
1. Downloading the required software.
You can download my version of Samsung My Theme here:
https://mega.nz/#!yl8VSZyK!-wUHQ5eQ8xcn-2VgZ9LbkW_g-ilLPuyjD-L_h0DY0Oo
Unzip the .zip file, and put it on a location you can access easily. Simply unzip the tool and run
“SamsungMyTheme.exe”.
1.2 Downloading Java JDK & Android SDK.
*Android SDK does not currently support JDK 8.0. Use JDK versions 6.0 or 7.0 only.
- Download the Android SDK (version 4.4 only) just use the download.bat script in working folder (it will download all SDK automatically) or you can download it manually here:
http://developer.android.com/sdk/index.html
- Copy all files and folders in the Android SDK…\android\android-sdk folder to the \sdk
folder on your PC.
Open Samsung_My_Theme folder and go to /sdk folder. Copy the files to this /sdk folder according to this below:
2. Choosing the correct resolution for your device and saving theme path.
Open the working folder and run SamsungMyTheme.exe
Wait few seconds, the components will be loaded. Once the app is loaded, select create a changeable theme.
2.1 Select the correct resolution for your device.
The software will ask you to choose your device resolution, if you don't know it, just search for specs of your Samsung device and you will find it.
Taking the example of A5, it uses 720x1280p so I choose it. Once all of that is done choose a name and a saving path for your Theme.
2.1 Adding Lockscreen and Home screen wallpaper.
After creating the theme file, you have to add your own resources to it.
You can use your resources to do that, download any picture you want and click on add image on the left side (see the picture below)
A popup will be opened, select your picture and click on open. You should now see your picture on the components. Use the adjustements tools on the right side to crop, rotate, adjust size or cut your pic to make it fit your device screen. Do the same procedure for the home screen wallpaper.
2.2 Adding your own icons.
Click on icon button.
Click on "+" to select the image you want to use as a icon for the app you want to change the icon.
Note: if you let a case empty, after Installing the theme to your device, it will use the stock icon.
Taking example here of music app icon.
Do as previous steps, use your own images. Crop the icon to make it fit the white square on the center. Adjust brightness if necessary. And do the same of the other icons you want to change.
3. Testing your Theme on your device.
Using SamsungThemePreview on your device
Go to your SamsungMyTheme folder, you should see an apk file named " SamsungThemePreview.apk", select it, plug your device to your PC and move the .apk file to your device. Use a file browser on your device, select the apk of SamsungThemePreview and install it as a normal apk.
- Now go to Settings > About device, touch 10 times build number, go back to settings, and now you should see a new option named "Developer options" click on the tile and enable USB debugging mode. Allow any popups on the device.
On your PC, click the Preview on phone button on the menu bar. When Theme Preview apk is installed, a preview of your theme will be displayed
automatically.
If you like your Theme, select file, click on save and then "Package the APK file"
It will open a new popup, set name for your Theme, package name, etc... And click on save.
It will take some time to build the apk file depending on the resources you used.
Once it's finished, you can directly apply the theme to the device or take it from working folder and /out.
Congratulations ! You made your own theme from your own resources.
Click to expand...
Click to collapse
Thanks brother i searching this thank you
---------- Post added at 10:18 PM ---------- Previous post was at 10:05 PM ----------
sufian.ahmed2007 said:
Thanks brother i searching this thank you
Click to expand...
Click to collapse
And can you tell me how to change apps background like calculator and phone calender etc it will helps alot
So after searching for ages I came across this thread downloaded and installed the application, played arpound with the app only to find to my disappointment - it only changes lock/home screen background and the icons. It dosent look this app did what I was hoping it would, namely allow me to edit all the backgrounds of the system apps to darker(kitkat) like.
In a nutshell, is there a way/app that will allow me to customise all the background, fonts and other UI elements on a TW based rom. My goal/aim is to remove/alter 'all' the white backgrounds in MM to darker, graduated-black or black (as per KK)
b1k3rdude said:
So after searching for ages I came across this thread downloaded and installed the application, played arpound with the app only to find to my disappointment - it only changes lock/home screen background and the icons. It dosent look this app did what I was hoping it would, namely allow me to edit all the backgrounds of the system apps to darker(kitkat) like.
In a nutshell, is there a way/app that will allow me to customise all the background, fonts and other UI elements on a TW based rom. My goal/aim is to remove/alter 'all' the white backgrounds in MM to darker, graduated-black or black (as per KK)
Click to expand...
Click to collapse
Yes this!
Well while we all wait for Samsung to stop being so obtuse, or better for someone to upload the SS tool so we can bypass SS and thier bloody theme store - I have a flashed Pheonix Rom for my S5 (G900F) which has ported S7 (G935F) features (i.e. theme store) and applied the 'Touchwiz6DMM' theme.
It has replaced 'almost' all the white backgrounds. only 3 occurances remain (notifications, when I manually install an APK, and some apps that interested with the OS in someway that they still use a white background.
Not understanding
Sir, can you please explain this?
- Copy all files and folders in the Android SDK…\android\android-sdk folder to the \sdk
folder on your PC.
Click to expand...
Click to collapse
a) I installed Android SDK and there is no such path like "Android SDK…\android\android-sdk"
b) which " \sdk folder on your PC"? You mean the one that is in the Samsung_My_Theme_1.0.5b_en program?
Open Samsung_My_Theme folder and go to /sdk folder. Copy the files to this /sdk folder according to this below:
Click to expand...
Click to collapse
You mean to copy from Android SDK installed in PC to Samsung Theme sdk folder? If yes The structure is different!
Android SDK Build Tools:
AppData\Local\Android\sdk\build-tools\24.0.3\....
Samsung Theme
Samsung_My_Theme_1.0.5b_en\sdk\build-tools\android-5.0.1\...
Can you detail?
Thanks
jayochs said:
doesn't work. when i open samsung my theme, everything is all gibberish and you can't click anything. any ideas?
Click to expand...
Click to collapse
did you get any solution? cz i am also facing same problem. but at first it was ok. but i think i messed up while configuring jdk
please help.
androidloveRs3104 said:
did you get any solution? cz i am also facing same problem. but at first it was ok. but i think i messed up while configuring jdk
please help.
Click to expand...
Click to collapse
Try reinstalling the jdk then. All should work fine
Thanks will this work on 7.1.1 and 4.4.4
Is this still applicable?
Really want to theme my GS8+ and I have a Masters in UX Design, but I can't get accepted into Samsung's Theme program.... lol.
CISGS said:
Is this still applicable?
Really want to theme my GS8+ and I have a Masters in UX Design, but I can't get accepted into Samsung's Theme program.... lol.
Click to expand...
Click to collapse
No, this is only applicable to devices that were released before Galaxy S6 (because they have the old theme engine).
But there should be the same software for new devices, check on XDA
sada
sad

Categories

Resources