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.
Related
When I long click on Audible (an app for e-book listening) it has an option My Library which takes me straight to the Library section of the app. I can hold and drag it out onto the home screen, but the name and icon is fixed as per the screenshot.
In order to customize it I am using Shortcut Maker, but I cannot find the proper link to Audible's My Library anywhere, so I've come to the conclusion that I probably need to edit the intent.
The good news is that we know it's possible to create a shortcut to My Library, but the bad news is that I'm too stupid to figure out how.
I have an Android an Android Mobile Application with a good userbase . Lets say the name is "A". I wanted to change the Icon as well as the Name (to say "B"). What are the best practices here? Should I first update the icon followed by another release with name change?
I do not have any push notification framework. Hence if an user suddenly doesnt see the old app and icon (since app autoupdated) he might get confused and keep searching in local search of Android phone and coudnt find.
Just name it B formerly A. Your users can find your app searching for A.
Then a few months later remove the formerly A from to name. So you give people some time to get used to the new name.
this might sound like a simple question, but I haven't been able to find a solution to this:
I created an app that I now want to publish, but while debugging, this app had an incorrect name.
Now, ofcourse I can change the namespace and / or label in my MainActivity, so that the app on my phone gets the right name assigned to - but if you check this app under "application" it still has its original name.
Is there anyway how I can change all of my Apps name in like "one click"? I did find a few instances, in which the "old" name still appeared, but changing one led to this app no longer debugging.
I'm using Visual Studio :)
THANKS!
You should change it in the AndroidManifest.xml
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.
I would like my application icon to be available to other applications.
I understand this is a bit unclear so will try explain:
Applications such as Astros program manager lists applications with their icon. For all apps this is the correct icon as on the launcher, except mine which is displaying the standard android icon. I have set my icon as the manifest using: android:icon="#drawable/runninglate"
This works on the launcher but Astro still shows the default icon from when I create the project (which I deleted a long time ago). I have also tried renaming my icon file to icon.png in case this was a standard. This also failed to work.
I am clearly doing something wrong, or have missed a setting somewhere, can some one point me in the right direction.
Make sure you have your icon in the <application> element, perhaps in addition to having it in the <activity> element of the activity that should appear in the Launcher.
Seems it was a caching issue. I re-flashed my phone today for an update and the correct Icon was shown using the same APK as I was using when it wasn't showing. Maybe a clear data on the displaying app was all that was required!