runtimeexception

Flashlight (Torch) is opening but not closing

半城伤御伤魂 提交于 2019-12-23 05:27:34
问题 Following is the code which I used for opening Torch and closing it. But when I close it, it crashes. LogCat says " Runtime Exception : Fail to connect to camera service "! + hasFlash is not getting any value and is throwing Nullpointer exception. (I'm using it to check if the flash is present or not.) What am I doing Wrong? boolean hasFlash = this.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH); if(hasFlash==true) { if(s.equalsIgnoreCase("FlashLight On") || s

Flashlight (Torch) is opening but not closing

匆匆过客 提交于 2019-12-23 05:27:13
问题 Following is the code which I used for opening Torch and closing it. But when I close it, it crashes. LogCat says " Runtime Exception : Fail to connect to camera service "! + hasFlash is not getting any value and is throwing Nullpointer exception. (I'm using it to check if the flash is present or not.) What am I doing Wrong? boolean hasFlash = this.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH); if(hasFlash==true) { if(s.equalsIgnoreCase("FlashLight On") || s

Runtime exception not terminating the programm [closed]

馋奶兔 提交于 2019-12-23 05:17:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . As per my little-bit java knowledge Program supposed to be terminated after it throws runtime exception. But in my application after throwing runtime exception it is not terminating ,and as i am executing it on linux i have to use ctrl+c to terminate it, Otherwise it just do not terminate. I am creating jar on

class extends ListActivity “whose id attribute is 'android.R.id.list'”

ⅰ亾dé卋堺 提交于 2019-12-22 15:00:18
问题 I'm trying to extend my main Activity to "ListActivity" (previously extends to: Activity) to use onListItemClick, but the logcat, send me "Your content must-have a ListView whose id attribute is 'android.r.id.list'". (i'm using SQLite for populate the ListView). mi xml is: <ListView android:id="@+id/list" // to "@id/android:list" or other styles (but nothing works) android:layout_width="fill_parent" android:layout_height="fill_parent"/> // or closing with </ListView> this is the complete xml

android uiautomator runtest error didn't find class

眉间皱痕 提交于 2019-12-22 07:39:09
问题 recent i tryied getting started with android uiautomation testing. The tutorial from the developer site I've worked through a few times and after having some problems and solving them now I have got a bigger issue. I created a project, imported the two jar files and builded a java testcase scenario (the one from the tutorial.) after that I created an uitest projekt with shell command line. updated the build.xml created a jar file and pushed it onto my device. As far as good everything worked

Android Tab Action Bar

可紊 提交于 2019-12-22 05:15:35
问题 I am trying out on the android action bar for 3.0, where I refer to http://www.youtube.com/watch?v=gMu8XhxUBl8 The code in the TabsActivity are as follow: package com.test.actionbar; import android.app.ActionBar; import android.app.ActionBar.Tab; import android.app.Activity; import android.app.Fragment; import android.app.FragmentTransaction; import android.os.Bundle; public class TabsActivity extends Activity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

kafka AdminClient API Timed out waiting for node assignment

北城余情 提交于 2019-12-22 04:24:06
问题 I'm new to Kafka and am trying to use the AdminClient API to manage the Kafka server running on my local machine. I have it setup exactly the same as in the quick start section of the Kafka documentation. The only difference being that I have not created any topics. I have no issues running any of the shell scripts on this setup but when I try to run the following java code: public class ProducerMain{ public static void main(String[] args) { Properties props = new Properties(); props

How to run a Xamarin.Forms Application on an Android Wear Device

↘锁芯ラ 提交于 2019-12-21 20:52:53
问题 How can I run a Xamarin.Forms.Platform.Android.FormsApplicationActivity on an Android Wear device? The call base.OnCreate(bundle) inside the onCreate method of my class always throws a RuntimeException "You cannot use indeterminate progress on a watch". Here is my code: namespace Test { [Activity (Label = "Temp.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] public class MainActivity : global::Xamarin.Forms

RuntimeException (Chromecast)

寵の児 提交于 2019-12-21 02:51:19
问题 I try to configure Chromecast but got RuntimeException and don't understant the reason. Here are logs from Fabric: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{... .activity.TVActivityPhone}: java.lang.RuntimeException: com.google.android.gms.dynamite.DynamiteModule$zza: Remote load failed. No local fallback found. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) at android.app.ActivityThread.handleLaunchActivity

java.lang.RuntimeException: Cannot initialize effect engine for type: 0bed4300-ddd6-11db-8f34-0002a5d5c51b Error: -3

你说的曾经没有我的故事 提交于 2019-12-18 19:23:14
问题 I am getting the following error in my equalizer app on Android MarshMellow, OnePlus. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.app.name/com.my.app.name.activity.MainActivity}: java.lang.RuntimeException: Cannot initialize effect engine for type: 0bed4300-ddd6-11db-8f34-0002a5d5c51b Error: -3 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510) at android.app