homescreen

On Android 4.2.2, Intent INSTALL_SHORTCUT creates shortcut in the second page

雨燕双飞 提交于 2019-12-23 05:44:33
问题 I get a strange result when calling this code to simply create a shortcut in the home screen. The shortcut is created on the second page of the home screen (and the first page is empty so there is enought space!). Any ideas? public static void installShortcut(Context context, String packageName, String componentName, String shortcutName, Parcelable icon) { Intent shortcut = new Intent("com.android.launcher.action.INSTALL_SHORTCUT"); ComponentName cn = new ComponentName(packageName,

iPhone: Safari vs. launch from “Home Screen” bookmark

守給你的承諾、 提交于 2019-12-22 10:46:04
问题 What's the difference between these two? Do they both launch Safari (with the exception that the home-screen doesn't show a URL/tool bar? I've found weird quirks that appear in home screen version..do they have different rendering engines? For example, mailto: doesn't work in home-screen mode, and there are some small rendering/css-styling bugs that don't appear if I visit my web application from mobile Safari. Thanks! 回答1: Apple is using two different Runtime Environments for the Sarari

Debugging web apps added to home screen on iOS Safari

有些话、适合烂在心里 提交于 2019-12-22 03:23:19
问题 I'm trying to debug a web app that is added to home screen. I have enabled web inspector on safari. I am able to debug the app if I open in iOS safari but when I add the app to home screen and try to debug, it shows 'No Inspectable Applications'. Any help would be appreciated. iOS version: 11.2 MacOS Safari version: 11.0.1 回答1: You should put focus on the app first and then press: Option+Command+i So you do not open the inspector in advance in this case. This is not possible because you can

Site loses authentication if was open from link on iPhone home screen

夙愿已清 提交于 2019-12-22 00:03:30
问题 I have asp.net mvc site. User need to login for access. I found then when user added link to site on home screen of iPhone and after this user goes via this link. The site is opened in some limited sandbox(not Safari) - you can check there for different. It isn't problem. User log-in and redirected to main page. But when user clicks on any link on main page he is redirected to Safari. Sure user loses authentication in this case. How is possible to solve this? I see two way: Redirect user to

Custom Lock Screen Implementation Techniques

早过忘川 提交于 2019-12-17 19:00:07
问题 So, I have been exploring many similar questions across website (this, this and this and many more). People wanting to implement their own custom lock screen (not talking about widgets). So far there have been two implementation techniques which users are using. Home Screen Replacement . In this technique its suggested to create a home screen application, where after unlock logic the default screen shows up. I believe that in this situation developer has to disable Home, Search, Menu and Back

How to check if my application is the default launcher [duplicate]

[亡魂溺海] 提交于 2019-12-17 15:44:35
问题 This question already has answers here : Which launcher is running? (3 answers) Closed 4 months ago . I am developing a buissness-application that is essentially a Home-screen, and is supposed to be used as a Default Homescreen (being a "kiosk"-application). Is there any way of checking if my Launcher is the default Launcher? Thanks! Ps. Similar example, but for checking GPS-settings LocationManager alm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); if (alm

Use my own Android app/apk as launcher/Home Screen Replacement

风格不统一 提交于 2019-12-17 10:43:10
问题 I've created my own app and I want this one to be my launcher. It's a simple app, but it works. Is it possible to replace the default launcher with my app so that my app always starts by default after booting? 回答1: Setting the correct intent filters in your manifest will allow it be prompt you to use it as a replacement: <activity android:name="Home" ... android:launchMode="singleInstance" android:stateNotNeeded="true"> <intent-filter> <action android:name="android.intent.action.MAIN" />

editable textview in android widget

独自空忆成欢 提交于 2019-12-12 16:18:40
问题 Hi I am a novice in android programming. I am trying to create the home screen widget with input textbox. I searched around and I have found so far that EditText is not available for home screen. I also found that TextView is possible to make it editable, but I still have no idea how it works. So, I would like to make TextView editable. How I can do that? Thanks in advance... 回答1: In My opinion make an activity so When they tap the widget, display an activity that has an EditText . 来源: https:

Android - clear the recent app list (shown after long HOME press)

北战南征 提交于 2019-12-12 11:27:10
问题 I'm writing a custom launcher app. The problem is even after setting it as default, the long press of HOME button brings recent app list, including old launcher. Is it possible to clear the recent app list? 来源: https://stackoverflow.com/questions/6723132/android-clear-the-recent-app-list-shown-after-long-home-press

Unable to create application's shortcut on Home Screen upon installation in android

两盒软妹~` 提交于 2019-12-11 23:23:03
问题 I want to create a shortcut of the application on home screen when it is installed. I added this to AndroidManifest.xml <activity android:name="com.example.test.ShortCutActivity" android:icon="@drawable/ic_launcher" android:label="@string/title_activity_short_cut" > <intent-filter> <action android:name="android.intent.action.CREATE_SHORTCUT" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> Also I have a Actvity created with ShortCutActivity name in