I am very impressed with the stock Android 3.* Gmail app and I would like to find out how it's done.
The specifics of what I want to learn from the GMAIL app are:
How the list fragment of the various inbox/folders are styled
How the interaction beween the inbox/folder and the email list
How the tapping on the email item will hide the inbox/folders and display the email content, and the animation involved
How the action bars, context menu and other menus get displayed, controller and event handled.
Do you know any app -- which source is open for ppl to learn -- that come close to the Gmail app?
Afaik there is no Honeycomb source and the gmail app is closed source which is just pre installed on all official android devices.
There is no way to get the source code or the layouts of the Gmail Application.
My tip: search for an open source application that has similar features/behaviors and check the code there.
Related
I am working on an Android app and want to display a menu with some data about the app on a similar menu when you do a long click on the app logo in the main menu of the phone, like the one the YouTube app has, or other Android apps when pressed down.
I am working on Android Studio, and I've searched different sites for info on how to get to the menu, by default the android apps show a menu when long clicked, in which you can choose whether you want to delete the app or something else. I want to know how to access that menu.
At least I want to know the name of the menu so I can do more research, but if anyone knows how to interact with it, it would be great.
This blog explains it nicely
https://medium.com/#andreworobator/implementing-android-app-shortcuts-74feb524959b
Also FYI, With Q Android is doing some changes in shortcuts api. Do check that as well.
they're called Android App Shortcuts, this could help you answer your question How to create shortcut within app in Android?
Good luck! :)
I have a Google Sheet that we use to generate picking tickets for our warehouse. There are several columns that have barcodes. They are generated using the following function call:
=image("http://www.barcodesinc.com/generator/image.php?code=" & E3 & "&style=68&type=C128B&width=200&height=80&xres=1&font=0", 3)
This works perfectly and does exactly what we need it to do, which is using a PC to print the ticket and hand it off to the warehouse guys.
In my attempt to make the process more streamlined I want to replace the tickets with an Android tablet and let them scan from there. The benefit to that is that they can also manually update the Sheet with exceptions and other items that are not bar coded. Here is what I have run into:
On the android if I view the Sheet through the Chrome browser it I can see the bar codes fine, but as soon as I hit the edit button, it opens the sheet in the Sheets app and I can no longer see the bar codes.
If I open the sheet in the Sheets app I can edit the cells but can't see the bar codes.
Note, when using my PC workstation I can see the bar codes and edit the sheet with no problems.
So, not sure if this is actually a programming question or not, but what can I do in order to be able to view the bar codes in the Sheets app or to be able to edit the sheet in the browser like I do on my PC? Yes, I have requested the desktop site in options for Chrome.
Any help would be appreciated, I would really like to roll this out and save some paper.
I am now answering my own question in case anyone runs into this. You need to request the desktop site (in Chrome options) as soon as you log into Google Drive AND after you open the sheet. Now the sheet will switch from view only mode to edit mode in the browser.
Bonus question: Is there anyway you can force the browser to always open stuff in the desktop site? Specifically for Google stuff, but for any other site really since larger tablets can handle the 'full' site and don't need to be redirected to the m.version of the site.
How do I hide an android app from the app drawer
I have read some similar questions and suggests using the Android PackageManager.
I was able to successfully hide them but according to a reply in this link,
link
It says:
Keep in mind that this also disables the app, so it will not respond to any more intents etc.
I think he is right, I am having problems while opening my app from an intent.
Is it possible retain the same app functionalities even if I remove the launcher icon.
I would like to launch my android application from a contact menu which is displayed after clicking on a contact shortcut on android desktop, like on attached graphic.
I couldn't find any materials on this in docs, but I think it should be possible, as i.e. facebook application puts it's icon in this menu. I tried to find something in it's AndroidManifest.xml file but with no effect (I'm not familiar with android development so I don't even know what to look for - Activity, intent, intent-filter, provider?
I would appreciate link to docs or at least hint on terminology to google for.
//edit
It seems that my question is duplicate of : How to integrate your app in QUICK CONTACT on the native contact app on android? which has some helpful resources.
They are called quick actions in android by the way..
Here is a nice tutorial
I am building a simple checkout process on the phone and was wondering if there are prebuilt controls that are available in android apk:
Login Control: username, password, login button
Form View where the user can just submit all the info.
Some sort of the "More info" control that has a collapsed/expanded view for product description
Tabs control: something like iPhone music player tabs.
Thank you in advance.
No, there is no such thing in standard android library. I don't know about 3rd party stuff - internet is wast, you might find something.
There is the API Demos app in your android SDK. It shows all standard widgets provided in android. I believe AlertDialogSample is what you might be looking for.
There are also other demos showing how to use most (all?) functionality in android.