homescreen

Javascript history function not working for web page served from homescreen on iOS 6

守給你的承諾、 提交于 2019-12-04 16:35:59
问题 I've seen some other posts about iOS 6's new behaviors with Web sites saved to / launched from the home screen. On iOS 5 (and earlier), we were able to use the Javascript History function for our in-app back button. In iOS 6, however, it works if you've only been to one page in the site. But if you have more than one page that you've visited, it throws a page-not-found error. It works fine in Safari (not from the homescreen), and it works if I remove the <meta name="apple-mobile-web-app

How to redirect User to default launcher in an android app?

若如初见. 提交于 2019-12-04 12:57:01
It's been now a long time since I try to figure out how to develop a android unlock screen app working with an NFC authentication. I am working with a Nexus S. After several researches on the Internet, I came to the conclusion that replacing the lock screen as a third party app is just not supported right now and that we need to modify the platform to do a decent implementation. This is the reason why I developed an home screen app that give the illusion of an unlockscreen app. But my problem is that I would like to be redirect to the default laucher at the end of the procedure. I first tried

Overlay screen on Android

亡梦爱人 提交于 2019-12-04 09:46:29
问题 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. 回答1: Answer is SYSTEM_ALERT_WINDOW, this give you

Is there any way to put an EditText/input field into a homescreen widget?

為{幸葍}努か 提交于 2019-12-04 03:36:02
I want my user to input something on the homescreen, but every time I add an Edittext to the widget it breaks. I did a little google searching to find that they apparently are not supported in widgets. There is a Google Search widget with an input field on every android phone though, so I am wondering if there is any way to have one in my widget. Thanks in advance EDIT: I noticed that the Google search bar doesn't actually have an input, instead it just opens an activity on touch. But there are still other apps like FriendStream which have input parts of their widgets. FriendStream can do it

What can I do to prevent iPhone 4 from cutting off my title when adding to home screen?

我们两清 提交于 2019-12-04 03:08:31
I have long web page title and when adding to home screen in iPhone older versions the whole title is visible in the confirmation dialog. When I add to home screen in iPhone 4 the title is cut off after the 12th symbol. Is there a way to stop this cutting so iPhone is showing the full title by default? Cody Gray No, there is no way to prevent that. Application names on the home screen are limited to a maximum of 12 characters. Anything beyond that will be truncated by placing an ellipsis in the middle of the name. You will need to keep the title of your website under 13 characters on the

Android widget get touch position

≯℡__Kan透↙ 提交于 2019-12-03 21:30:17
is it possible to get the position of a touch when the user touches my widget on the homescreen? TIA edit: my widget code: public class MyWidgetProvider extends AppWidgetProvider { public static String ACTION_WIDGET_MEMO = "comNgarsideMemoActionWidgetMemo"; public static String ACTION_WIDGET_PEN = "comNgarsideMemoActionWidgetPen"; public static String ACTION_WIDGET_ERASER = "comNgarsideMemoActionWidgetEraser"; public static String ACTION_WIDGET_UNDO = "comNgarsideMemoActionWidgetUndo"; public static String ACTION_WIDGET_REDO = "comNgarsideMemoActionWidgetRedo"; public static String ACTION

How to disable home button in Android like lock screen apps do?

血红的双手。 提交于 2019-12-03 19:07:19
问题 I know this question is asked many times but I found that none of the solution is working. I tried the code given below... protected void onPause() { super.onPause(); Intent intent = new Intent(this,LockActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT |Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } What it does is that it bring the current activity again to front when android home screen is launched but it takes almost 3-4 seconds to bring activity againt to

open android own launcher from my application

安稳与你 提交于 2019-12-03 13:31:43
问题 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 回答1: Found the solution, after investigating source code of getLaunchIntentForPackage. As per documentation, The current

Add icon to home screen like Safari

偶尔善良 提交于 2019-12-03 10:17:38
问题 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? 回答1: You have to use Safari. BugMe saves the note on home screen by: Upload the note to their server. Launch Safari by

Javascript history function not working for web page served from homescreen on iOS 6

对着背影说爱祢 提交于 2019-12-03 09:48:05
I've seen some other posts about iOS 6's new behaviors with Web sites saved to / launched from the home screen. On iOS 5 (and earlier), we were able to use the Javascript History function for our in-app back button. In iOS 6, however, it works if you've only been to one page in the site. But if you have more than one page that you've visited, it throws a page-not-found error. It works fine in Safari (not from the homescreen), and it works if I remove the <meta name="apple-mobile-web-app-capable" content="yes" /> tag. But then I get the ugly browser chrome that I'm trying to avoid. I've seen