launcher

how to keep my Launcher out of being kill by OS?

只愿长相守 提交于 2019-12-22 20:28:19
问题 I am working on a project of 3rd-party Android Launcher. I find it being killed often by OS when running in background, even it is the default Launcher. OS will kill many apps when available memory is not enough, I guest that the reason why my Launcher is killed. So my question is what should I do to decrease the chance of being killed ? 回答1: Nothing. You should find a way to handle the event where the OS kills your process, using a hacky approach to keep it in memory is bad, bad design and

how to keep my Launcher out of being kill by OS?

亡梦爱人 提交于 2019-12-22 20:24:44
问题 I am working on a project of 3rd-party Android Launcher. I find it being killed often by OS when running in background, even it is the default Launcher. OS will kill many apps when available memory is not enough, I guest that the reason why my Launcher is killed. So my question is what should I do to decrease the chance of being killed ? 回答1: Nothing. You should find a way to handle the event where the OS kills your process, using a hacky approach to keep it in memory is bad, bad design and

Android - Creating Resizable View

↘锁芯ラ 提交于 2019-12-22 06:39:32
问题 I am currently working on a Dashboard with movable and resizable views. The problem I have now is that I want to resize the view by touch gestures. Therefore, I thought of a Point which I add to a view on selection, which can be dragged to resize the selected view. This is similar to the resizing procedure on the Android Homescreen. Even after a long research, I could not come up with a solution on how to overlay another view, which has its own DragListener. I could imagine putting the

Android Launcher分析和修改2——Icon修改、界面布局调整、壁纸设置

筅森魡賤 提交于 2019-12-22 05:49:59
上一篇文章说了如何修改Android自带Launcher2的默认界面设置( http://www.cnblogs.com/mythou/p/3153880.html )。 今天主要是说说Launcher里面图标、布局、壁纸等的设置问题。毕竟我们一般修改Launcher,这些都是需要修改的地方,也是比较容易修改的部分。按照效果图(效果图在上一篇文章),分开说明如何修改,以及里面涉及的逻辑分析。 原创博文,转载请标明出处: http://www.cnblogs.com/mythou/p/3155692.html 1、图标大小和标题大小 Android原生图标大小都是通过配置文件设置,配置文件路径是/res/values/dimens.xml 。需要注意的是,values对应的文件夹很多,因为是多国语言支持。而 dimens .xml在默认的values文件夹下面或者values-land和values-port(针对不同分辨率和平板类型,需要根据你运行情况找对应的dimens修改,如果需要使用多种分辨率,最好所有dimens都修改好)。下面是配置workspace的按钮属性配置。下面是针对 values-land修改的cell大小。 //Edited by mythou//http://www.cnblogs.com/mythou/ <!-- Workspace cell size -

Can i use a jpeg image for launching Screen

折月煮酒 提交于 2019-12-22 05:42:14
问题 i was currently in to an app development and i have added a launcher screen in JPEG format which is displayed both in simulator and device .. but does it create any problem with apple approval guidelines ? 回答1: Update for iOS 8+: you can now use XIB-based launch assets, which is by far the best approach to reduce file size and re-use the same assets for multiple screens sizes. Also, since XIBs support JPG assets, you can always embed JPGs onto XIB files now too! The Apple documentation pre

Android open phone call application

懵懂的女人 提交于 2019-12-21 19:51:05
问题 I just want to open phone call application of android device. I dont want to provide that application a phone number. Just want to open it. I am using phone application's package name to open it. Because I am able to open any application I want through that package name with the code below. Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.android.contacts"); startActivity(launchIntent); I am not able to open Phone and Contacts application with the above code. What can

Make a dynamic launcher icon

好久不见. 提交于 2019-12-21 14:08:37
问题 I want to create a launcher icon similar to the native Messaging application in Android. The icon of this app has an image but also have a dynamically changing number(a counter of some sort that corresponds to the number of unread messages). Also this icon it is not an widget, as it's an actual icon that's present in the application drawer. Can someone explain to me how I can go about to achieve this? I found some solution that includes a widget with the dimensions set to 1x1 but I do not

Install launcher icon in home screen once

有些话、适合烂在心里 提交于 2019-12-20 12:30:37
问题 When a user installs an Android app, a launcher icon is created in the apps menu. Many users I talk to expect that when they install an app, an icon should appear automatically on their home screen ("launch pad"). A lot of apps achieve this somehow. My preference would be to have a window appear on install asking the user "Do you want to add a shortcut?" If that's not possible, any code that auto-adds the shortcut will do. Android gives a bunch of code here: http://developer.android.com

How to start an Intent from a ResolveInfo

穿精又带淫゛_ 提交于 2019-12-20 09:34:46
问题 I'm trying to make a custom launcher for android, and I'm trying to figure out how to launch a different application form mine. I figured the way to do it was intents, and I've found a post on it here: Open another application from your own (intent) I don't really understand the answer though! Can someone give me a concise snippet or series of steps to go from a single ResolveInfo to launching the app represented by that ResolveInfo? 回答1: Given a ResolveInfo named launchable : ActivityInfo

垃圾IDEA

不问归期 提交于 2019-12-19 23:58:39
垃圾IDEA太不人性化了,做啥都不方便。看不惯他有干不死他。 啥操作都不方便。 今天建个Android项目。找半天都不知道咋运行。 垃圾。网上都没教程。连建个空activity都不行。 org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'MyApplication'. at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:94) at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:66) at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34) at org.gradle.configuration.project.LifecycleProjectEvaluator