Showing posts with label android studio. Show all posts
Showing posts with label android studio. Show all posts

Sunday, November 15, 2015

How to change app icon in android studio?

How to change app icon in android studio?

We have the default icon for every app. But if we want to change the app icon, we need to do the following steps:

Get a 512*512 icon created (in png format). This is the main requirement.

In Android studio, right click on res folder (under app > src > main) and select "New > Image Asset"



Take the default image file folder and push in your new image (in that location).
Select the new image in the "Image File"option.
Click next and click finish.
You can also check the AndroidManifest.xml file if the "android:icon" value has changed or not.
You can also change the icon name there.

Your new icon will get reflected in the next code build.

How to change android version for successive deployments to google play store

How to change android version for successive deployments to google play store?

Once you have uploaded an apk file and if you fix a bug, you may need to re-upload (redeploy) your apk file to google play store.

One will need to update the version number of the release.

How do you do it?

In Android Studio, look for build.gradle under app (not under gradle)



Change the version code and version number to a higher value (default is 1)



Now proceed to generate a signed apk and upload the new apk to google play store.

Wednesday, September 23, 2015

Rename package in Android Studio

How do you rename a package in Android Studio?

In the project pane click on the gear icon

 

Uncheck the "Compact Empty Middle Packages"



The package will be now shown as separate directories.

Go to the directory that you want to rename and right click
Select Refractor and then Rename

 

Select Rename Directory










Click Rename Package




Enter new name and click Refractor (if asked do a rename-All)

Update the application ID in the grade Build File (build.grade)

Rebuild.