homescreen

Overlay screen on Android

安稳与你 提交于 2019-12-03 05:01:55
How is it possible to add Views/Images to my homescreen? The best example is the facebook messenger: If you long-click at a chat item, you can choose "pop out cheat head", then you have a small button overlaying your screen. There are also apps like screen-breakers, an image from a broken display overlays everything from the phone. I've searched for it, but I have no idea what it is called. I hope you guys are able to understand my english. Answer is SYSTEM_ALERT_WINDOW, this give you capability to draw over any thing in android, same feature facebook is using for drawing its chat heads. http:

How do you force an iPad home screen bookmarked web app to refresh?

最后都变了- 提交于 2019-12-03 04:46:38
问题 I've run into a problem where I add a web app to my iPad home screen (iOS 5.0.1 iPad 2), and when I open it it appears to be caching something behind the scenes, independent of Safari. I've cleared out everything from Safari that's available in Settings (Clear History and Clear Cookies & Data), and when I navigate to the web app with Safari I see the app in its current state. However if I open the home screen bookmark I get the app in a pre-changed state. I've seen a lot of information about

open android own launcher from my application

不想你离开。 提交于 2019-12-03 03:26:21
hi Its been 2 days looking for this simple problem. I want to launch Android own launcher from my application EVEN if its not set as default. final PackageManager packageManager=getPackageManager(); Intent intent = packageManager.getLaunchIntentForPackage("com.android.launcher"); this return null for Android own launcher but if I try custom launcher is give me successfully Found the solution, after investigating source code of getLaunchIntentForPackage . As per documentation, The current implementation will look first for a main activity in the category CATEGORY_INFO, next for a main activity

Add icon to home screen like Safari

杀马特。学长 韩版系。学妹 提交于 2019-12-03 00:47:47
I saw the Bug Me iPhone app and was intrigued by the ability to add icons to the home screen. I figured it would work similar to the way that Safari achieves it. There as a similar question here that said it was not possible: Implementing "Add to Home Screen", ala Safari Clearly there is a way and I am not looking in the right places. Has anyone else worked it out yet? You have to use Safari. BugMe saves the note on home screen by: Upload the note to their server. Launch Safari by -openURL: with a URL to their server. In Safari, the user is instructed to press the "+" key to add a special

How do you force an iPad home screen bookmarked web app to refresh?

不羁岁月 提交于 2019-12-02 17:59:46
I've run into a problem where I add a web app to my iPad home screen (iOS 5.0.1 iPad 2), and when I open it it appears to be caching something behind the scenes, independent of Safari. I've cleared out everything from Safari that's available in Settings (Clear History and Clear Cookies & Data), and when I navigate to the web app with Safari I see the app in its current state. However if I open the home screen bookmark I get the app in a pre-changed state. I've seen a lot of information about using a cache.manifest to cache resources for offline use, but I'm not sure if that's relevant to this

How to get all homescreens in Android?

和自甴很熟 提交于 2019-12-02 14:36:04
问题 I am new to android development. I know that every homescreen is a Workspace in Launcher. I want to get all the position info of all application icons on the screen, so is there any way to get a list of these screen objects and their icon info? ADD: What I expect more is the relationships between app icon and screen. For example, I want the position info of a certain app icon, including which screen it appears on(that is the index of the screen list). 回答1: first create a bean to store app

How to get all homescreens in Android?

99封情书 提交于 2019-12-02 11:43:56
I am new to android development. I know that every homescreen is a Workspace in Launcher. I want to get all the position info of all application icons on the screen, so is there any way to get a list of these screen objects and their icon info? ADD: What I expect more is the relationships between app icon and screen. For example, I want the position info of a certain app icon, including which screen it appears on(that is the index of the screen list). Rohit Goswami first create a bean to store app info like this public class Bean { String appName; String packName; Drawable icon; Date

Calabash Android: how to send app to the background (simulate device/hardware Home button)?

别来无恙 提交于 2019-12-02 08:56:52
Is there a way in Calabash Android where I can send my app to the background? In other words, simulate the device/hardware Home button? Secondly, can the app be brought back into the foreground? This can be done in the following way: Then /^I go home$/ do system "#{default_device.adb_command} shell input keyevent KEYCODE_HOME" end P.S. You can also add sleep <some_value_in_seconds> if necessary, after system "..." line. As far as I know, that action does not currently exist. You can find (mostly) all of the available operations here https://github.com/calabash/calabash-android/tree/master/ruby

Force URL to open in a Web Clip if installed?

本秂侑毒 提交于 2019-12-01 21:26:44
问题 Let's say I have a web app that calls out to a native app via a custom URL scheme, and after the native app has done its thing it returns to my web app by opening a callback URL. This all works fine when my web app is running in Safari. But what happens if a user saves the web app to the home screen (creating a "Web Clip")? In that case it runs in a separate process from regular safari, and has separate cookies and cache. So when the native app tries to return to the web app, the URL will

Security exception while calling bindAppWidgetId

£可爱£侵袭症+ 提交于 2019-12-01 21:06:09
问题 While developing a Launcher (Homescreen) application for Android, I've come into a security exception I don't understand. When calling the [bindAppWidgetId()][1] method from within my Launcher Activity, I get this security exception : 08-19 11:30:11.689: ERROR/AndroidRuntime(6032): java.lang.SecurityException: bindGagetId appWidgetId=99 provider=ComponentInfo{com.android.music/com.android.music.MediaAppWidgetProvider}: User 10034 does not have android.permission.BIND_APPWIDGET. I first