launcher

Android Launcher研究(二)-----------Launcher为何物,究竟是干什么的?

寵の児 提交于 2020-01-26 03:38:58
在上一节,我讲了如何下载Launcher的教程,今天这一节,我将重点讲一下什么Launcher,究竟它是什么神秘东东? Launcher俗称HomeScreen,也就是我们启动Android手机,第一眼看到的应用程序,而这个应用程序是比较特殊而且任务艰巨的。 它负责了我们除了应用本身操作以外的所有操作,它负责了我们有几个桌面,点击应用图标启动应用程序,长时间按桌面出现上下文菜单, 长时间按桌面的图标出现垃圾箱,拖动应用图标重新定位等等,一系列的操作。我将截些图让大家更容易理解! 图1:开机画面,Laucher的主界面 图2:打开抽屉,列出所有我们的所安装应用 图三:长按图标,抽屉变成垃圾箱了 图四:手指向左滑动进入另一个桌面 我就先截这几个图让大家感受感受,图2中我们列出的所有应用并不包括诸如:Launcher,Widget等应用,是因为我们我们列出的应用仅仅是在AndroidManifest.xml配置文件有这样标记的应用(如下代码:) <activity android:name=".HomeStyle" android:theme="@android:style/Theme.NoTitleBar" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent

Android device can't instantiate launcher activity

痞子三分冷 提交于 2020-01-25 15:34:33
问题 When I try run my current android project on my phone, after successfully build and deploy it, I am getting this error: E/AndroidRuntime(15869): FATAL EXCEPTION: main E/AndroidRuntime(15869): Process: org.hello, PID: 15869 E/AndroidRuntime(15869): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.hello/org.hello.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "org.hello.MainActivity" on path: DexPathList[[zip file "/data/app/org.hello-1.apk"]

how to add app launcher icon to homescreen on android oreo(8.0)?

淺唱寂寞╮ 提交于 2020-01-24 11:15:34
问题 I am making an android app on Android 8.0. I have read develop doc of shortcut changed before at Using Static Shortcuts but this doc has not method add launcher icon to home screen. I have used method before 8.0.: Intent i= new Intent(Intent.ACTION_MAIN); i.addCategory(Intent.CATEGORY_LAUNCHER); Intent intent = new Intent(); intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, i); intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, context.getResources().getString(R.string.app_name)); intent.putExtra(Intent

Vertx的命令行

偶尔善良 提交于 2020-01-24 04:23:11
IntelliJ----创建一个运行配置(Application), 用io.vertx.core.Launcher类作为主类,在程序参数输入:run your-verticle-fully-qualified-name--redeploy=**/*.class --launcher-class=io.vertx.core.Launcher。为了触发重布署,需要显示生成项目或者模块(Build menu->Make project)。 run your-verticle-fully-qualified-name--redeploy=**/*.class --launcher-class=io.vertx.core.Launcher Vertx的命令行 vertx命令被用于命令行与Vert.x进行交互。这是在运行Vert.x的 verticle的主要方式。为了运行命令行,需要下载并安装Vert.x发行版,并添加安装路径中的bin路径到PATH环境变量。同时必须确认安装了Java8的JDK,并在命令行可执行。 注意:需要JDK是为了支持运行时编译java代码。 运行Verticles 可以使用vertx run命令从命令行直接运行一个原生的Vert.x veticles。有一两个run命令的例子。 vertx run my-verticle.js (1) vertx run my

Android-programmatically bypass remove default lock screen

怎甘沉沦 提交于 2020-01-23 12:43:11
问题 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? 回答1: 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

Set Environment Variable At Eclipse workspace level for all launchers?

走远了吗. 提交于 2020-01-22 17:46:50
问题 Can I set a workspace wide setting to add an environment variable to all future launchers created in the workspace? Use Case Our unit tests require an environment variable to guide the test to certain resources. the variable varies with each version of our product Options - modify each junit launcher with the environment variable - create start up script that sets variable and launches eclipse - set globally Ideally, I'd like to provide a way for users to set it once per workspace. Does

Android Launcher 详解

扶醉桌前 提交于 2020-01-22 08:17:24
(1) Launcher的定义:Android系统启动后,加载的第一个程序,是其他应用程序的入口。 (2) Launcher的构成:HomeScreen(1.workspace(AppWidget,Wallpaper,Livefolder,ShortCut),2.HotSeats,3.AllApps/allApplist:GridView) (3) 针对Launcher的开发类型: 1. 开发自定义的Launcher 2. 与Workspace相关的开发(AppWidget,Wallpaper,Livefolder,ShortCut) (4) 解读Launcher源代码(以ShortCut为例),Launcher为系统级应用,位于Applications层。源代码位于MyAndroid\packages\apps\Launcher2中,可讲它导入eclipse中。 (5) 看Manifest文件可知,Launcher的主Activity为:com.android.launcher2.Launcher。下面是它的部分配置信息: <activity android:name="com.android.launcher2.Launcher" android:launchMode="singleTask"> <intent-filter> <action android:name=

Android Badge number on launcher icon for all mobile manufacturer

前提是你 提交于 2020-01-22 07:41:48
问题 I need a badge counter on my application launcher icon. I know the solution to get Badge counter inside the app, using TextView, But I need a solution to get the badge counter external to the app on the launcher icon. In iOS we get the badge number count by UIApplication.sharedApplication().applicationIconBadgeNumber I am wondering why Android has not included anything like this with their SDK which every developer need. Try 1 : Working only on sony mobiiles : Intent badgeIntent = new Intent(

Android Badge number on launcher icon for all mobile manufacturer

心已入冬 提交于 2020-01-22 07:41:06
问题 I need a badge counter on my application launcher icon. I know the solution to get Badge counter inside the app, using TextView, But I need a solution to get the badge counter external to the app on the launcher icon. In iOS we get the badge number count by UIApplication.sharedApplication().applicationIconBadgeNumber I am wondering why Android has not included anything like this with their SDK which every developer need. Try 1 : Working only on sony mobiiles : Intent badgeIntent = new Intent(

No Launcher activity found

你。 提交于 2020-01-22 03:41:10
问题 I can't find any problem but it keep giving me the error "No Launcher activity found!" and "The launch will only sync the application package on the device!" can anyone solve this problem??? This is my Maniest <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.example.saikoro.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android