How to find a shortcut's intent? - android

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.

Related

Create menu that looks like Android App Shortcuts in App on button click

Basically, I'm trying to create the app shortcuts UI available in an android app.
I'll like to be able to have a similar popup when tapping the android basic activity (+) button, but the closest thing I've found is the ContextMenu.
I'm not certain if it's a context menu with styling or how to approach it. Any help would be appreciated.
I've had a good look around but could not find an answer.
Thanks!
Edit: To clarify since this was marked as a duplicate. I am not trying to create launcher shortcuts. I am trying to create a component that looks like launcher shortcuts in the app. For example if a Floating Action Button was pressed.
This launcher is part of AOSP and You're free to read thru the ArrowPopup.java source code.
It might take a bit of digging to find and extract referenced resources, but that's what it is.

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 - Show help to the user on how to use the application when launched for the first time

What is the best way to show help (or user guidelines) to the user when application is launched for the first time. Some applications show overlay text and arrows to inform about the various features available in the application. What is the best way to implement it ? Do I need separate activity or do I modify my homescreen xml or something else ?
Please suggest some good approch as well as specific query to search on google (I couldn't find any specific result on Google)
You can try this lib and have a look at how it's done: https://github.com/Espiandev/ShowcaseView
The ShowcaseView library is designed to highlight and showcase
specific parts of apps to the user with a distinctive and attractive
overlay. This library is great for pointing out points of interest for
users, gestures, or obscure but useful items.
The library is based on the "Cling" view found in the Launcher on Ice-Cream Sandwich and Jelly Bean, but extended to be easier to use.

Creating a "dashboard" homescreen in iOS

I'm creating my first app in iOS and I'm very accustomed to developing in eclipse for Android. My first step is that I need to create a dashboard as the homescreen. I'm a little "confused" as of which layout I should choose in xcode. In android I always select the most basic of settups, and I end up with a blank activity and a blank layout. That's where I would like to start, since that's what I'm used to. I'm wondering if any experienced iOS dev can point me in the right direction into which template to start with.
It seems really easy to just say to use an empty application, but If I'm going to have to do a lot more settup that is not worth my time, then please enlighten me.
You' probably want to go with a single view application. This will give you a template with a view controller and a blank interface file (your choice of xib or storyboard) that you can build from. From there you can add what ever you want.
Using this template you will immediately be able to build your app to the simulator or to your device. However, if you already have an idea of how you would like your app to work, you could choose tab based if your app should have multiple tabs and most of the work will be done for you, or a utility based app will give you two view controllers, one of which will be presented modally. Etc, etc...

Android - What is that popup called when you click a contact's icon?

On stock android, what is that thing called when you click a contact's picture and it brings up a list of quick links? this is also what you see when you long hold a icon in ADW Launcher.
More importantly though, i would like to know which png files in the folder frameworks/base/core/res/res/drawable-hdpi (from cm7 source, aka framework-res.apk) relate to that android view? (That is assuming they are in that folder, if not let me know).
I want to edit these but i cant for the life of me figure out which files relate to it. I have been searching around for a while and cant find anything on it.
This is known as Quick Contact Badge
See Here:
Android Quick Actions UI Pattern

Categories

Resources