activity

ActivityNotFoundException: No Activity found to handle Intent

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This report I recive from google play, my app crash on : android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.google.android.gms.common.account.CHOOSE_ACCOUNT (has extras) } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1518) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1390) at android.app.Activity.startActivityForResult(Activity.java:3204) at com.example.uploadvideo.MainUploadToYoutube.authenticate(MainUploadToYoutube.java:287) at com.example

how to solve Unable to find explicit activity in firebase AuthUi?

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: While working with firebase UI I am getting Unable to find explicit activity class com.firebase.ui.auth.KickoffActivity protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FirebaseApp.initializeApp(this); setContentView(R.layout.activity_main); FirebaseApp.initializeApp(this); mAuth=FirebaseAuth.getInstance(); mAuthListner=new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser user=firebaseAuth.getCurrentUser(); if(user!=null){

Dagger - class has no injectable members

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to integrate Dagger into my application. And I ran into a problem. I'm getting this error at runtime: java . lang . IllegalStateException : Errors creating object graph : com . app . NavigationController has no injectable members . Do you want to add an injectable constructor ? required by class com . app . fragments . LoginFragment I tried looking into other, similar answers, but nothing helped me so far... Everything related to graph construction is implemented pretty much like in Android Activity Graphs example. I

Minimize activity on back key press

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: OnBack Key press i want to minimize the application, How can i do this??? public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { //Here i want to put minimize code.. pls give me this statement return true; } return super.onKeyDown(keyCode, event); } Thanks 回答1: public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { this.moveTaskToBack(true); return true; } return super.onKeyDown(keyCode, event); } This will send the activity to

Execution failed for task ':app:processDebugManifest' after Android Studio 2.2 update

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:28:13-72 is also present at [com.facebook.android:facebook-android-sdk:4.16.0] AndroidManifest.xml:32:13-63 value=(@style/com_facebook_activity_theme) Suggestion: add 'tools:replace="android:theme"' to element at AndroidManifest.xml:24:9-28:75 to override Manifest file: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns

No String-argument constructor/factory method to deserialize from String value (&#039;&#039;)

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm running into a json parsing issue when using the ObjectMapper class from the com.fasterxml.jackson.databind package, and the error that I'm getting is: com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.graybar.utilities.ups.beans.Address: no String-argument constructor/factory method to deserialize from String value ('') The web application where this problem is occurring is a Spring MVC application using an AngularJS front end, but I can duplicate the issue with a much smaller, all java program. Here

WPF inactivity and activity

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to handle user inactivity and activity in a WPF application to fade some stuff in and out. After a lot of research, I decided to go with the (at least in my opinion) very elegant solution Hans Passant posted here . There's only one downside: As long as the cursor stays on top of the window, the PreProcessInput event gets continously fired. I'm having a full-screen application, so this kills it. Any ideas how I can bypass this behaviour would be most appreciated. public partial class MainWindow : Window { readonly DispatcherTimer

Dagger 2.10 Android subcomponents and builders

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Using the new (in 2.10) dagger.android classes, I'm trying to inject things using a Subcomponent that depends on other Modules, and, therefore, has a Builder with setters for those modules. The documentation on https://google.github.io/dagger/android.html describes this, but is not clear on how to actually write and/or invoke those setters. Quoting from the above link: AndroidInjection.inject() gets a DispatchingAndroidInjector from the Application and passes your activity to inject(Activity). The DispatchingAndroidInjector looks up the

Android中返回Activity的两种方法

允我心安 提交于 2019-12-03 08:26:12
finish返回 finish(): 在你的activity动作完成的时候,或者Activity需要关闭的时候,调用此方法。 当你调用此方法的时候,系统只是将最上面的Activity移出了栈,并没有及时的调用onDestory()方法,其占用的资源也没有被及时释放。因为移出了栈,所以当你点击手机上面的返回按键的时候,也不会再找到这个Activity。 onDestory(): 系统销毁了这个Activity的实例在内存中占据的空间。 在Activity的生命周期中,onDestory()方法是他生命的最后一步,资源空间等就被回收了。当重新进入此Activity的时候,必须重新创建,执行onCreate()方法。‍ intent返回 intent用于界面跳转,并不存在数据的传输,本界面到onStop()结束,下一个界面从onCreate()开始。 本次遇到的问题: 由于本界面有频繁请求,每次finish后再返回此界面就会出现延迟现象,显示数据就出现不实时现象。将finish修改为intent方式就避免了此种问题的产生。 但是我还不太明白使用intent跳转返回的弊端,会不会该界面的线程一直在跑,影响到手机运行内存呢? 来源: https://www.cnblogs.com/ksp-/p/11784935.html

Uipath如何将截图粘贴到Excel

风格不统一 提交于 2019-12-03 08:22:54
东京IT青年前线 http://www.rpatokyo.com/ Uipath如何处理截图 Uipath如何把画面局部截图贴到Excel里 使用Take Screenshot Activity 点击Indicate on screen抓取你想要的图片 在Take Screenshot Activity的返回值中定义一个image类型的变量 使用Invoke Method Activity将截取的图片保存在剪贴板中 在Invoke Method 中设置参数 Target Type: System.windows.Forms.Clipboard Method Name: SetImage 设置Parameters的入力参数 然后使用Excel Application Scope打开指定Excel选中单元格,使用Send Hotkey 粘贴Ctrl + V即可。 ------------------------------------------------------------------ 来源: https://www.cnblogs.com/huaweijapan/p/11784883.html