homescreen

Android Launcher Shortcuts

对着背影说爱祢 提交于 2019-12-01 13:58:35
I have made a simple punch in / punch out time clock application. I want to add the user the option of making a shortcut on the homescreen that will toggle the state of the app(time out / time in) but I don't want this shortcut to open up the app on the screen at all. here is my setupShortcut() private void setupShortcut() { Intent shortcutIntent = new Intent(this, Toggle.class); // shortcutIntent.setClassName(this, Toggle.class.getName()); shortcutIntent.putExtra(EXTRA_KEY, "ToggleShortcut"); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Intent intent = new Intent(); intent

Android Launcher Shortcuts

為{幸葍}努か 提交于 2019-12-01 12:53:19
问题 I have made a simple punch in / punch out time clock application. I want to add the user the option of making a shortcut on the homescreen that will toggle the state of the app(time out / time in) but I don't want this shortcut to open up the app on the screen at all. here is my setupShortcut() private void setupShortcut() { Intent shortcutIntent = new Intent(this, Toggle.class); // shortcutIntent.setClassName(this, Toggle.class.getName()); shortcutIntent.putExtra(EXTRA_KEY, "ToggleShortcut")

Android Home Screen like effect flickering problem when set child.setvisibility(View.Visible)

六眼飞鱼酱① 提交于 2019-12-01 10:11:24
问题 I have made a sample application to flip through different layouts in a viewflipper. XML is basically (pseudo-code) <ViewFlipper> <LinearLayout><TextView text:"this is the first page" /></LinearLayout> <LinearLayout><TextView text:"this is the second page" /></LinearLayout> <LinearLayout><TextView text:"this is the third page" /></LinearLayout> </ViewFlipper> And in Java code, public boolean onTouchEvent(MotionEvent event) case MotionEvent.ACTION_DOWN { oldTouchValue = event.getX() } case

How to remove application shortcut from home screen on uninstall automatically?

天大地大妈咪最大 提交于 2019-12-01 05:15:44
I'm developing an application that should add its shortcut to home screen after installation and remove it after the application is being uninstalled. The application will be preinstalled on the end user device, but still should have an option for uninstall). The task looks very simple but I've faced lots of troubles implementing it. What I have done: Add shortcut to the home screen using com.android.launcher.action.INSTALL_SHORTCUT on app first launch or on newt device reboot. MANUALLY remove shortcut using com.android.launcher.action.UNINSTALL_SHORTCUT. What I can't (and almost giving up):

Android: get Widget Data from database

余生颓废 提交于 2019-12-01 01:56:28
I want to make a homescreen-widget which displays a random Receipt from a database. Actually I got an error on the command which opens the database. So what I can do to make it work? Usually this code work in a normal activity....but as widget?? package com.droidfish.apps.acli; import java.util.Random; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.database.Cursor; import android.util.Log; import android.widget.RemoteViews; import android.widget.Toast; public class RecieptOfTheDayWidget extends

Understanding custom lock implementation on Android via home screen replacement technique

喜欢而已 提交于 2019-11-30 21:38:08
I've been researching about this question a lot. I asked a related question this week.The most helpful and relevant links in the area are this and this . I want to understand how it works and all, if implemented as home screen replacement app. Quick questions: If implemented which screen should be set as default? Our home screen replacement or original home screen? Please read the comments after the answer of this question where asker figured out a way to do it. In the end he says: "Figured it out! Gotta disable the manifest intent filter by using setComponentEnabledSetting(), and then turn it

Android | bookmark icons on homescreen

好久不见. 提交于 2019-11-30 21:11:23
bookmark and add to my homescreen 60x60 icon does not apprear. Make <link rel="apple-touch-icon" href="images/iphone.png"/> Size: 60x60 pixels. tried 8bit and 24bit ping! Does not work. Site is on a localhost and not 'online'. on http://news.bbc.co.uk/sport if I bookmark and add to my homescreen it works! Why? They use: <link rel="apple-touch-icon" href="/sol/shared/img/iphone-sport.png"/> Any help appreciated GeekYouUp For Android to pick up the icon you need a precomposed icon <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png"/> Also mentioned here Configuring

Android: get Widget Data from database

假如想象 提交于 2019-11-30 21:09:16
问题 I want to make a homescreen-widget which displays a random Receipt from a database. Actually I got an error on the command which opens the database. So what I can do to make it work? Usually this code work in a normal activity....but as widget?? package com.droidfish.apps.acli; import java.util.Random; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.database.Cursor; import android.util.Log; import android

Red dot (circle) next to the app name below the app icon on the iPhone Home Screen on iOS 8

…衆ロ難τιáo~ 提交于 2019-11-30 07:48:54
What does the red dot (circle) next to the app name below the app icon mean? I added a Today Extension (Widget) to the app. It appears only when I launch the app on the iOS 8, it does not appear on iOS 7 simulator. Even though I removed the extension and cleared the simulator, it still appears before the app name. An Orange dot next to an app normally means it's a beta version, as installed through Testflight. I have a couple of those at the moment, though one looks more red. Trying to find if there's a difference between an orange and a red dot, or if it's just an artefact of the colour of

Understanding custom lock implementation on Android via home screen replacement technique

可紊 提交于 2019-11-30 05:34:22
问题 I've been researching about this question a lot. I asked a related question this week.The most helpful and relevant links in the area are this and this. I want to understand how it works and all, if implemented as home screen replacement app. Quick questions: If implemented which screen should be set as default? Our home screen replacement or original home screen? Please read the comments after the answer of this question where asker figured out a way to do it. In the end he says: "Figured it