launcher

Android 一个apk多个ICON执行入口

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 08:53:11
方法一:使用Activity的属性process,不同的Activity是运行在不同的进程中 一个工程对应一个 Android Manifest.xml文件,这个文件中包含有该项目的一些设置,如权限、SDk版Activity、Service信息等。一般而言,这个文件中会有且仅有一个application节点,这个节点表示这是一个应用程序,不管它下面还有多少子节点如Activity、Service等等。形象的说,就是这个项目生成的apk安装到 Android 设备后,应用程序列表中会出现一个ICON,这个ICON就是这个程序的执行入口了。 但是,某些情况下,我们需要为我们的apk设置多个执行入口,也就是安装后在应用程序列表中出现多个ICON图标,各个ICON是APP不同模块的入口点,并且各个模块运行在不同的进程中。 可能这种需求很少见,但还是有一个现实的例子:系统中的联系人和电话这两个程序。表面看来这是两个独立的应用程序,但实际上它们只是一个应用程序的两个执行入口而已,点击联系人图标就会进入联系人界面,点击电话图标就会进入拨号界面,这都是通过设置该项目下Activity的属性来实现的。 Activity有一个重要的属性process,这个属性是指定Activity运行时所在的进程。没有指定此属性的话,所有程序组件运行在应用程序默认的进程中,这个进程名跟应用程序的包名一致

Android-programmatically bypass remove default lock screen

拜拜、爱过 提交于 2019-12-06 08:33:44
I've defined a default application as a launcher with a HOME intent so it always runs when I boot the device. But I still see the default lock screen(with clock) first when I power up. Is there a way to remove the lock screen entirely when the device powers up? Using following command you can disable the existing lockscreen of course if it doesn't contain any security(like patterns and pin code): KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE); KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE); lock.disableKeyguard(); you need

ubuntu Eclipse 启动提示internal error:SHA-a not avaliable 和eclipse默认root启动

风格不统一 提交于 2019-12-06 08:30:08
Eclipse 启动提示internal error:SHA-a not avaliable 和eclipse默认root启动 今天准备在Ubuntu下搭建Eclipse开发环境,下载好相应的软件并解压到相应的目录。在启动时却出现如下错误: 查看命令行日志,(使用命令行启动即可看到相应的信息): [plain] view plain copy An exception occurred while writing to the platform log: java.lang.NullPointerException at org.eclipse.equinox.launcher.Main.openLogFile(Main.java:2559) at org.eclipse.equinox.launcher.Main.log(Main.java:2392) at org.eclipse.equinox.launcher.Main.run(Main.java:1461) at org.eclipse.equinox.launcher.Main.main(Main.java:1426) Logging to the console instead. !ENTRY org.eclipse.equinox.launcher 4 0 2014-06-01 00:30:05.824

Eclipse启动报错:An internal error occurred during: "Building workspace".

我与影子孤独终老i 提交于 2019-12-06 08:29:44
启动Eclipse时发现右下角的building workspce走到2%时,不动了,Eclipse好长时间没反应,然后弹出错误信息:An internal error occurred during: "Building workspace". GC overhead limit exceeded。 如下图: 上网搜了一下,说是要修改一下Eclipse安装下的eclipse.ini文件,增加Eclipse实例的内存分配,。打开eclipse.ini文件,内容如下: [html] view plain copy -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize

Android hidden app [duplicate]

ⅰ亾dé卋堺 提交于 2019-12-06 03:19:50
This question already has answers here : Closed 6 years ago . Possible Duplicate: Application without app icon I want to create security - app. I want to hide the icon of app on launcher (user can't see them) after configuration. I tried to use service, but this isn't good solution, because I see still icon . I heard about editing mainfest, but i can't make them.Please, help me, and don't remove my post. Thanks, This looks like an answer to your needs: http://androidsnips.blogspot.com/2011/11/create-android-application-with-no.html?m=0 One possible way is removing the line <category android

JSmooth question on bundling a JRE

夙愿已清 提交于 2019-12-06 01:20:32
问题 I'm trying to bundle a JRE with my jar file so that I can run my application on any windows computer, regardless of if it has Java or not. The jsmooth manual says: For the option to work correctly, you have to put a JRE in a directory near the EXE (generally in a subdirectory called "jre" or whatever). Once the exe is generated, it will FIRST try to locate the JRE at the location mentioned. If it can't be found there, then it will fallback in the normal jre look-up mode (search for a jre or a

Using relative paths for Gnome launcher

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 00:44:10
We're developing an app that needs to run on a removable device (e.g. USB stick). On Linux, we're using Gnome launchers to place a shortcut to the app on the root of the device. However, we need to use relative paths for the executable and icon since we don't know in advance where the device will mount. In the .desktop file I have something like: Exec=../myapp/myexecutable Icon=../myapp/myicon.png Neither the executable or icon is found. I read the spec on icon lookup in .desktop files (http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#icon_lookup) but it didn't

Android: How to create a launcher

人盡茶涼 提交于 2019-12-05 22:29:23
问题 I've never developed for Android before, so please consider me 100% dumb when you answer :) I would like to create an application launcher that will open the default web browser to a given url. In other words, I want to make an icon with my website logo, and when you click on it, it opens the site in your default web browser. Could someone direct me towards a tutorial/documentation page to achieve this? Or if it's really simple, maybe show me some code here? Thanks for your time! P 回答1: If I

spark-submit脚本分析

本秂侑毒 提交于 2019-12-05 19:54:57
执行任务 ./spark-submit \ --class cn.com.dtmobile.spark.DebugTest \ --master yarn \ --deploy-mode client \ --num-executors 3 \ --executor-cores 2 \ --executor-memory 1G \ /home/etluser/kong/debugTest/pucchSinr.jar ${SPARK_HOME}/bin/spark-submit脚本 if [ -z "${SPARK_HOME}" ]; then source "$(dirname "$0")"/find-spark-home fi # disable randomized hash for string in Python 3.3+ export PYTHONHASHSEED=0 exec "${SPARK_HOME}"/bin/spark-class org.apache.spark.deploy.SparkSubmit "$@" $@表示所有接收的参数: $@= --class cn.com.dtmobile.spark.DebugTest --master yarn --deploy-mode client --num-executors 3 --executor-cores

Want to get back to last Activity after pressing Launcher Icon for my app

旧城冷巷雨未停 提交于 2019-12-05 19:25:12
Suppose I have an activity A that starts activity B and kills itself. Now I press the Home button (or leave the app some other way) (causing onPause->onStop for activity B) and I click the app icon in the launcher again. What happens is that activity A is started again (of course because I specified that intent-filter in the manifest XML). Is there an easy way to just get back to activity B without starting activity A again? I basically want to get to onStart->onResume in activity B when I reopen the app. My intent-filter looks like this: <intent-filter> <action android:name="android.intent