How can i add an app in android firmware? - android

I am having my firmware and I want to change the default launcher and start up logo of the phone? where should I add my .apk file and animations

Logo tool you change the start-up logo by changing the bootaniamtion.zip in firmware with this tool.

All apk after installation goes to data/data folder, your launcher if registered to call event will come as one of the option to end user, if your launcher is the only launcher in your firmware, then by default ur launcher will be picked up.
By adding the categories android.intent.category.HOME and android.intent.category.DEFAULT to the intent-filter group, the associated Activity behaves like a launcher and shows up as an option when you press the device's home button
You just need to install apk , it doesn't matter from where you install it.
More details about how you can develop launcer
http://code.tutsplus.com/tutorials/build-a-custom-launcher-on-android--cms-21358

Related

Partially changed launcher icon of android app

I have completed my first app and having problem with launcher icon.
I have repalced the default ic_launcher icon in mipmap folder with my own icon.
When i install the app, it shows the correct icon in phone's menu. But when i open application manager in phone , there it shows the default icon.
Also when i open shareit or xender there also my app has default icon.....
I have spent two days searching for answer and tried all suggestions..But none of them are working.....Please give me a solution....
It is bad practice to just overwrite the icon this way. It is advisable to edit the AndroidManifest.xml file. In the application tag you will find android:icon="#drawable/ic_launcher", change it to the icon you want that is placed in the drawable folder. That way it will be applied everywhere.
For more information: How to change the launcher logo of an app in Android Studio?

How to add shortcut to All Apps screen

is there a way to programmatically create (after installation) a new shortcut in the All apps screen (menu, list of all installed applications).
I know that I can define shortcuts in AndroidManifest.xml, but that is not what I want. I want that users of my app were able to create them in my app settings.
I've found out that this is possible for Home screen (launcher shortcut), how to do it for All apps screen? Is it even possible?
The code you just defined includes both of these.
Programatically
If you had read the Intent documentation you'd find this:
Intent.ACTION_CREATE_SHORTCUT
Just send an intent with this information and you're good to go.
Manifest
Also ifyou want your application to show up in the ALl Apps screen, then in your manifest you'd define one of your activities to be set into the launcher category.
However; after installation it is NOT possible to add a shortcut to the All Apps Screen. As there is no API to allow this at all. You CAN create a shortcut on the Launcher desktop, but that is as far as the SDK can take you.

Create Shortcut of our own application

I have just downloaded an application from the android market. When I have installed the application, at the same a time shortcut of that application has been created on the default desktop.
So, my question is: how can we create a shortcut of our application at the time of installation?
You're question is very similar to this one.
Give that one a try, it also creates an icon on the home screen, but not during installation. Of course you could make it so it creates this icon during the first run of the app if you want.
The icon being created during the installation is something the user can set in their options, it's not something you have influence on, so you'll have to use an option like above.
That's an option in the Android System settings for the end user. User can choose to have shortcuts created automatically. That's not something you can do as a developer.

Delete android launcher and replace it with my own

I have an app which I want to use instead of the standard android launcher. When I start my device I want it to show up instead of the launcher. I noticed this was possible and it works except if I press the "Home" button both my launcher app and the standard android app are shown. I want to delete the launcher from my tablet either programatically or manually so the only app I can use the tablet for is my launcher app. Any help is appreciated.
You can't. Otherwise this would be a huge security risk. If the user checks the checkbox "Always use" (I think), that dialog won't appear again.
You have to be rooted.
Open fx (make sure you have the root add-on)
Go to system/custpack/unremovable/withoutlibs
Delete the launcher apk

group multiple apps under the same icon in Application launcher

I want to group multiple apps under the same icon in the application launcher.
For example, 5 apps each displaying 1 different image. But those 5 apps should appear as separate apps on the Android market, therefore they need to have different package name.
But different package name, means that on the Android device they will appear as 5 separate apps in the application launcher, which I am trying to avoid.
The closest solution that I found is to listen for PACKAGE_ADDED broadcast event, and every time another app from those 5 are installed on the device, all the already installed apps would call setApplicationEnabledSetting from PackageManager to hide their icons and let the app that was just installed to handle things.
But the icons are hidden only after rebooting the device.
Is there a way to force the application launcher to refresh at runtime?
Or is there any other way to solve my goal?
I am running out of options. Thanks!
Miha,
What about having one main application, with the other 4 being add-ons (i.e., not shown in the launcher)? You would then have only one launcher icon, and the other applications would be started from the main app. By checking whether the other apps were installed, you could adjust your buttons/views accordingly.
As far as I know, there is no way to force the launcher to refresh. However, you could implement your applications as you described -- having each app hide it's icon when I new one is installed. The user would get an application not installed error though, which is probably not something you want.
Personally, I used the first method: have a main keyboard and then install add-ons which can then be loaded from the main app.
Hope this helps.

Categories

Resources