adding an icon to launcher without installing - android

I have certain apps which i want to show on launcher . When i click on it it should say app not installed . Is that possible ? I checked AllAppsList.java of ICS . I think we need to provide ApplicationInfo object for that . Is there any alternate ?

Please correct me if I am wrong.
As far as I have understood it this is not possible unless you control the launcher itself. The launcher will add Apps that have the "android.intent.action.MAIN" and "android.intent.category.LAUNCHER" in their manifest to the App drawer.
If there was a good way to add shortcuts to the launchers app drawer I am pretty sure the Ad Networks would use that to inject Ads there.
I guess your most viable option is to create shortcuts on the homescreen.
If you manage to find a solution for it though it would be awesome.
Good luck!

It ISN'T possible. Unless I am misunderstanding the question. Perhaps make a seperate app altogether, with the same name and the same icon, but instead of any content in it, just link it to the market where the full app resides; Or something along those lines.

Related

Android SoftKeyboard shortcut

I have a question. I wanted to develop an app that would add a shortcut to the keyboard (Samsung SoftKeyboard).
The shortcut should be accessible via the dots at the top right (see attachment).
I would like to add a circle ("floating") over my app, as shown in the picture on the right.
Something specific should then be carried out via this circle (but that's not the point yet).
I've done a little research, but don't really know what to look for.
I hope you can help me.
thanks in advance
Example
afaik there is no such possibility to add anything in there. it's another app with own custom settings and options, you can't edit such or change in any way. your last chance is possibility of published API/some communication way for that app, which would allow to add such actions, but I very doubt Samsung made such API for own keyboard app and allowed ANY 3rd-party app to mess in their software... (btw. that would be very insecure for user)

Find componentInfo name for custom icon

I have been trying to customize ameixa, an open-source icon pack to add some missing icons.
The source I base myself on with can be found here.
I do not intend to add new icons (yet), only to re-use existing ones for some applications that are not supported yet.
For that purpose, I have been adding entries to src/main/res/xml/appfilter.xml
In order to find the ComponentInfo's name, I have been using openlauncher's "hide apps" feature, which gives me the full package name and activity of apps he can see (for instance, com.myapp.app/com.myapp.app.activity.Activity).
My problem is that some of the apps I use don't mention an activity name, but only the app (for instance, com.myapp.app/). I have tried using both this, as well as some obvious activity names (com.myapp.app/com.myapp.app.(App/acitivity.MainActivity...), but none of those worked.
By trying to compare with some other apps that already are shown without a right-hand definition in the already-existing source code, I don't see an obvious pattern to try.
Do any of you know how I can figure out the exact ComponentInfo name I need to enter to a given app icon ?
I ended up figuring out a solution, maybe not the best but it works.
I have been building locally my own version of openlauncher (any other launcher should do), and checked in the code where the list of app is built.
By putting a breakpoint there and debugging my application, I could access the properties "package name" and "activity name" which are enough as a name for the ComponentInfo definition.
Maybe there is a faster/easier way to achieve that, but that's what ended up working for me.
One option is to download Nova Launcher. Long press on an icon to bring up a menu, and then press "Edit". This will show the icon along with the ComponentInfo below it. You can long press on this to copy the text.

Android: how to create a "shop" limited version of Android

I try to explain better:
I want to put some tablets in my shop for my customers. I want them to use only a few apps that I've created.
So I need an Android version (or a launcher version, maybe?) where you can only choose between some apps to be played. All the settings, all the other apps and everything else must be unreachable (or, better, only reachable if you know the password).
Anyone has any suggestion on how to do it or where do I start?
Thanks a lot.
One Google search led me to the following:
https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher&hl=en
https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher&hl=en
Just whichever one you want and and hide the apps you don't want. It will hide them in the drawer as well. Nova Launcher already looks like stock Android, or close enough if you want that. In fact they both do.

Android launch app inside view

Alright so I have an app that I would like to have utilize other apps. For example I have an app that does quite a number of things except for a directory look up since there is already an app that does that for my school. I know I can launch the application with intents, but that also brings them away from the navigation menu for my application. Is there anyway that I could run an app inside a view layout. I am not hopeful for this but I figured I would chance asking it anyway.
This is technically possible by using widgets. You can implement an AppWidgetHost, and other applications can create App Widgets to use inside your own app. This is how the launcher screen in Android works.
This, of course, will only work if other applications in question implement widgets. So, the general answer to your question would be no, it is not possible to host arbitrary applications or Views/Activities from other applications inside your own.
This not the Android design philosophy. You should send an Intent to the directory app, which I hope is designed to look up a result and then return it to you. The mechanism is startActivityForResult() in your app, and setResult() in the directory app.

Shortcut of your app in to home, automatically

How can I create automatically, once installed, a shortcut for my app in the home of the launcher in use?
Check this page which has a tutorial on how to accomplish this. But mind you, this is undocumented, and might not work on all devices. Also check this answer to a related question on SO. I also believe that since Android 4.0, the os automatically does this for newly installed apps if it could find enough space for a short cut on a home screen.

Categories

Resources