activity

startActivityForResult doesn't seem to call onActivityResult

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When The user Click on the button it want to call the dialog- that dialog contain list of product in ListView.After user slect the product it should come to previuous activity. I have done using startActivityForResult () . There aresome issue.My calling activity is in normal tab activity that normal tab activty in Tab Activity Group. Actualy i want to do in drrop down(Spinner).In my scanerio i couldn't get context.It awalys give Android Spinner Error : android.view.WindowManager$BadTokenException: Unable to add window So I have change to my

Android - How to animate an activity transition when the default back button is pressed

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In my activity, I have a button with the following click listener that is working great: final ImageButton startOverButton = ( ImageButton ) findViewById ( R . id . start_over_button ); startOverButton . setOnClickListener ( new View . OnClickListener (){ @Override public void onClick ( final View v ) { finish (); //go back to the previous Activity overridePendingTransition ( R . anim . comming_in , R . anim . comming_out ); } }); It animates the return to the previous activity the way I want. However, when the user presses the

implement expandablelistview in navigation drawer activity made by android studio [closed]

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to implement expandablelistview to my built in navigation drawer activity. i want like this.. Home Category submenucategory submenucategory2 submenucategory3 My Account About MainActivity.java package com.example.administrator.mosbeau; import android.app.Activity; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.app.Fragment; import android.app.FragmentManager; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem;

Launch an activity on pressing a number on dial pad

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to launch my activity as soon as I press certain number on dial pad (e.g #123#). The whole scenario is- 1- User press certain keys on dial pad. 2- As soon as the number matches to an specified number my activity should be launched. 3- The dial pad must go off the screen. Help please. Thanx. 回答1: Yes you can check it out : launching an activity from a broadcast receiver that listens to outgoing call public void onReceive(Context context, final Intent intent) { if (intent.getAction().equals(Intent.ACTION_NEW_OUTGOING_CALL)) { String

Pass reference of one Activity to another Activity

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know that I can pass some values between Activities using intent. However, if I want to pass whole Activity to another Activity I think it is not good approach. Is there another way to do that? I have Settings Activity in which I am changing some Colors. So after I come back to my Main Activity I would like to apply those colors. To do this, I need access to MainActivity fields after I change Color value, so inside PreferenceActivity. In other words, I want to have access to Main activity fields from PreferenceActivity class. Any ideas?

Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

匿名 (未验证) 提交于 2019-12-03 00:54:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have android application. When I run or debug app on my eclipse it Works smoothly with no error no warnings.After then I get apk for Google play. Useres are getting below errors when they downloaded it from Google play market. Please help me I was not able to solve this problem. It can not find some classes. This is errors which getting from developer console; java.lang.NoClassDefFoundError: Failed resolution of: Lcom/versus/hit/yeni/JSONParser; at com.versus.hit.yeni.Signin$CheckUser.<init>(Signin.java:211) at com.versus.hit.yeni.Signin$2

how to achieve something like “finish” in a non-activity class in android?

匿名 (未验证) 提交于 2019-12-03 00:54:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This dialog asks whether you want to install some other app...so when onclicked no button it must go back to the previous screen downloadDialog . setNegativeButton ( stringButtonNo , new DialogInterface . OnClickListener () { public void onClick ( DialogInterface dialogInterface , int i ) { finish (); } }); this gives the error: The method finish() is undefined for the type new DialogInterface.OnClickListener(){} how can i achieve what i wanted??? package com . Android . barcode ; import android . app . Activity ; import android .

Kotlin + Dagger inject issue depending on device&#039;s Android Version / SDK (?)

匿名 (未验证) 提交于 2019-12-03 00:53:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Last week, while implementing Dagger in my current Kotlin MVP project, I was testing it on oldy phone with KitKat 4.4.2 (yep, it still supports all major material features and stuff :)) due to primary phone's maintenance. So that week I was having typical issues rather than something unusual and fixed them more or less quickly by investigating provided errors. At long last, code compiled, current project version was built without issues and ran without major bugs on KitKat with UI interacting. But when I took main phone with Nougat 7.1.2

Error: Activity class {} does not exist

匿名 (未验证) 提交于 2019-12-03 00:53:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My application launches well both on Nexus 7 and Nook Tablet, but doesn't start on Kindle Fire with the following error: Error: Activity class {com.js.pathoflight/com.js.pathoflight.JSNativeActivity} does not exist. Here is my manifest complete: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.js.pathoflight" android:versionCode="3" android:versionName="0.8.3"> <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="18" /> <uses-permission android:name="android

WebRTC, Capture Screen

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: my current problem is, that I want to find a way to capture a frame/screenshot during a webrtc connection on Android. I know there are already some solutions to this here but none were working for me. With my current approach I followed this Gist . The problem is that it returns a black bitmap. I will append my approach but it basically is the same as the Gist. If anybody has any ideas how to solve this, thanks in advance. Activity SingleFrameCapturer.BitmapListener gotFrameListener = new SingleFrameCapturer.BitmapListener() { @Override