i'm working on an sms management application, it works instead of native android sms manager but i want to show my app on home(main) -i mean 1st screen-programatically.My application now seems on 6th screen and diffullt to reach to write a message.How can i put my app on home(main) screen?
I think you just need to move the app starter to the desired place. Moving an app starter can be done with long click on the app starter icon and then move it to the right place.
If a new android application is installed it automatically places it to the end of the app list on your phone. You have to move it then manually...
I agree with Lorenz, you cannot force your application to specific place in application list.
But you can add a shortcut to Home Screen whenever you launch the application, so that application is always accessible from HOME.
Try this for adding shortcut.
Related
I would like to have an app (LMT from XDA specifically) Bundled in AOSP/LineageOS.
I can do it via adding it in a Android.mk file , so that's not an issue.
My issue is that I want to have this app launch every time I reboot and unlock my phone.
The reason being I disable the navigation bar and use LMT to navigate, but I cannot use it every time I start my phone as LMT does not auto start.
I am on Android 10.
Can anyone help me figure out a way to tell the system to start LMT every boot?
The app that starts first and shows your Home screen, App drawer etc. is called a Launcher.
You can either:
Have your new app be a Launcher app. You'll need to modify it to add the HOME intent, and also set it as the default launcher of the system.
Or modify your current Launcher app to open your app as soon as it itself starts.
This is the first question I am asking on stack overflow so go easy on me.
I have been assigned the task of building a large android app and I have thought of the following architecture owing to the large size of the app:
There will be a master app that user will download from the play store and this app will have symbols of multiple apps which user will have to download when she will use it for the first time. And only those sub-apps will run which user will use at the particular instant.
The problem is that I don't want to show the sub-apps in the user phone i.e. I want to hide all those small apps and want to show only the master app.
Is it possible? I am not able to find anything on Google.
There are two main places where apps show up: the home screen (particularly its launcher), and the Settings app.
You cannot hide these "smaller apps" from the user with respect to the Settings app.
However, you do not necessarily have to have an activity in those "smaller apps" that has the MAIN/LAUNCHER <intent-filter>. In that case, the home screen's launcher will not show any icons for those "smaller apps".
Your "master app" would need to know how to start some activity associated with each "smaller app", such as via a custom category (instead of android.intent.category.LAUNCHER use com.kia.intent.category.SMALL_APP_LAUNCHER or something).
i just want to know how can i detect if the user opens an app so an activity of mine launches as well.
For example, the user opens the sms app and right after a kind of lockscreen appears.
You can create a service which will run int the background and you can use this API to determine which activity is visible. That's how many app lock works.
As far as I understand the Android system, it is not possible unless you are making a custom firmware.
I have developed an application set as a home onto my Android device. On my device I set it as the default home application. That way, each time I click the home button, I am redirected to this app.
The problem I have is that I have to produce some updates. But when the app has been updated, the device ask to define the default home once anew.
I would like the update to be performed without the user having to define the default home again.
There isnt a way to do this. Each time your app is updated the user will have the opportunity to chose whether they want to keep it as the default home application. It is a means of Android showing a user he or she is in control of there device at all times.
If im wrong someone please correct me.
Is there any way we can launch the android widget from our application immediately application installation or by showing button(eg:- 'Add Widget') within the application. So it like automatically add widget to our home screen using code.
Thanks
Prakhs
I'm not sure I understand the question fully, but I'll give it a try:
There is no way to start an application automatically after it was installed.
There is the ACTION_PACKAGE_ADDED Broadcast Intent, but the application being installed doesn't receive this.
Android applications can not add App Widgets to the home screen. Applications can define App Widgets, but user has to add them manually to the home screen.