I have webservice setup http://168.187.121.70/WSJAWW/service.asmx
How can I call it?
I want to call it on buton click sendmessage
public void sendMessage(View view) {
// Do something in response to button
Intent intent = new Intent(this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.edit_message);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
}
I have done this
Code:
package com.example.myfirstapp;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends Activity {
public final static String EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE";
private static final String SOAP_ACTION = "http://tempuri.org/GetAlbums";
private static final String METHOD_NAME = "GetAlbums";
private static final String NAMESPACE = "http://tempuri.org/";
private static final String URL = "http://168.187.121.70/WSJAWW/service.asmx";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return super.onCreateOptionsMenu(menu);
}
public void sendMessage(View view) {
// Do something in response to button
/* Intent intent = new Intent(this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.edit_message);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);*/
try
{
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("ArtistId", "-1");
request.addProperty("StartId", "1");
request.addProperty("CatId", "1");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet=true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
Object result = (Object)envelope.getResponse();
Toast.makeText(this, result.toString(), Toast.LENGTH_LONG).show();
Intent intent = new Intent(this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.edit_message);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
} catch (Exception e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();
}
}
public boolean onOptionsItemSelected(MenuItem item) {
// Handle presses on the action bar items
switch (item.getItemId()) {
case R.id.action_search:
// openSearch();
return true;
case R.id.action_settings:
// openSettings();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
}
Click to expand...
Click to collapse
I get socket failed :EACCES (Permission denied)
krikor1 said:
I have done this
I get socket failed :EACCES (Permission denied)
Click to expand...
Click to collapse
I think you need to include <uses-permission android:name="android.permission.INTERNET"/> in your app's manifest file.
ndp_singe said:
I think you need to include <uses-permission android:name="android.permission.INTERNET"/> in your app's manifest file.
Click to expand...
Click to collapse
yes that did it, however when i debug i get stuck at [2013-09-19 18:38:02 - MYFirstApp] Attempting to connect debugger to 'com.example.myfirstapp' on port 8600
I wanna debug, coz i dont see anything i am doing system.out.println
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("ArtistId", "-1");
request.addProperty("StartId", "1");
request.addProperty("CatId", "1");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet=true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
System.out.println("krirkrirk");
Object result = (Object)envelope.getResponse();
Toast.makeText(this, result.toString(), Toast.LENGTH_LONG).show();
somewhere here its crashing imo
it crashes at androidHttpTransport.call(SOAP_ACTION, envelope);
dunno why.any help?
krikor1 said:
yes that did it, however when i debug i get stuck at [2013-09-19 18:38:02 - MYFirstApp] Attempting to connect debugger to 'com.example.myfirstapp' on port 8600
I wanna debug, coz i dont see anything i am doing system.out.println
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("ArtistId", "-1");
request.addProperty("StartId", "1");
request.addProperty("CatId", "1");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet=true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
System.out.println("krirkrirk");
Object result = (Object)envelope.getResponse();
Toast.makeText(this, result.toString(), Toast.LENGTH_LONG).show();
somewhere here its crashing imo
Click to expand...
Click to collapse
I think you cannot do System.out.println() on Android.
Use Log.d("myTag", "myMessage") instead.
nikwen said:
I think you cannot do System.out.println() on Android.
Use Log.d("myTag", "myMessage") instead.
Click to expand...
Click to collapse
I do that, i get my first app has to be stopped
Code:
09-19 18:47:05.798: E/AndroidRuntime(29848): FATAL EXCEPTION: main
09-19 18:47:05.798: E/AndroidRuntime(29848): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View$1.onClick(View.java:3633)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View.performClick(View.java:4240)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.os.Looper.loop(Looper.java:137)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:05.798: E/AndroidRuntime(29848): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:47:05.798: E/AndroidRuntime(29848): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:47:05.798: E/AndroidRuntime(29848): at dalvik.system.NativeStart.main(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View$1.onClick(View.java:3628)
09-19 18:47:05.798: E/AndroidRuntime(29848): ... 11 more
09-19 18:47:05.798: E/AndroidRuntime(29848): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.util.Log.println_native(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.util.Log.d(Log.java:138)
09-19 18:47:05.798: E/AndroidRuntime(29848): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:47:05.798: E/AndroidRuntime(29848): ... 14 more
09-19 18:47:30.955: E/AndroidRuntime(30168): FATAL EXCEPTION: main
09-19 18:47:30.955: E/AndroidRuntime(30168): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View$1.onClick(View.java:3633)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View.performClick(View.java:4240)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.os.Looper.loop(Looper.java:137)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:30.955: E/AndroidRuntime(30168): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:47:30.955: E/AndroidRuntime(30168): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:47:30.955: E/AndroidRuntime(30168): at dalvik.system.NativeStart.main(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View$1.onClick(View.java:3628)
09-19 18:47:30.955: E/AndroidRuntime(30168): ... 11 more
09-19 18:47:30.955: E/AndroidRuntime(30168): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.util.Log.println_native(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.util.Log.d(Log.java:138)
09-19 18:47:30.955: E/AndroidRuntime(30168): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:47:30.955: E/AndroidRuntime(30168): ... 14 more
09-19 18:49:17.259: E/AndroidRuntime(30750): FATAL EXCEPTION: main
09-19 18:49:17.259: E/AndroidRuntime(30750): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View$1.onClick(View.java:3633)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View.performClick(View.java:4240)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.os.Looper.loop(Looper.java:137)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:49:17.259: E/AndroidRuntime(30750): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:49:17.259: E/AndroidRuntime(30750): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:49:17.259: E/AndroidRuntime(30750): at dalvik.system.NativeStart.main(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View$1.onClick(View.java:3628)
09-19 18:49:17.259: E/AndroidRuntime(30750): ... 11 more
09-19 18:49:17.259: E/AndroidRuntime(30750): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.util.Log.println_native(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.util.Log.e(Log.java:231)
09-19 18:49:17.259: E/AndroidRuntime(30750): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:49:17.259: E/AndroidRuntime(30750): ... 14 more
09-19 18:50:39.907: E/AndroidRuntime(31052): FATAL EXCEPTION: main
09-19 18:50:39.907: E/AndroidRuntime(31052): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View$1.onClick(View.java:3633)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View.performClick(View.java:4240)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.os.Looper.loop(Looper.java:137)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:50:39.907: E/AndroidRuntime(31052): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:50:39.907: E/AndroidRuntime(31052): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:50:39.907: E/AndroidRuntime(31052): at dalvik.system.NativeStart.main(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View$1.onClick(View.java:3628)
09-19 18:50:39.907: E/AndroidRuntime(31052): ... 11 more
09-19 18:50:39.907: E/AndroidRuntime(31052): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.util.Log.println_native(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.util.Log.println(Log.java:332)
09-19 18:50:39.907: E/AndroidRuntime(31052): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:50:39.907: E/AndroidRuntime(31052): ... 14 more
09-19 18:51:10.640: E/AndroidRuntime(31288): FATAL EXCEPTION: main
09-19 18:51:10.640: E/AndroidRuntime(31288): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View$1.onClick(View.java:3633)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View.performClick(View.java:4240)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.os.Looper.loop(Looper.java:137)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:51:10.640: E/AndroidRuntime(31288): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:51:10.640: E/AndroidRuntime(31288): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:51:10.640: E/AndroidRuntime(31288): at dalvik.system.NativeStart.main(Native Method)
09-19 18:51:10.640: E/AndroidRuntime(31288): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View$1.onClick(View.java:3628)
09-19 18:51:10.640: E/AndroidRuntime(31288): ... 11 more
09-19 18:51:10.640: E/AndroidRuntime(31288): Caused by: java.lang.NullPointerException
09-19 18:51:10.640: E/AndroidRuntime(31288): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:51:10.640: E/AndroidRuntime(31288): ... 14 more
09-19 18:54:51.165: E/AndroidRuntime(31543): FATAL EXCEPTION: main
09-19 18:54:51.165: E/AndroidRuntime(31543): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View$1.onClick(View.java:3633)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View.performClick(View.java:4240)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.os.Looper.loop(Looper.java:137)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:54:51.165: E/AndroidRuntime(31543): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:54:51.165: E/AndroidRuntime(31543): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:54:51.165: E/AndroidRuntime(31543): at dalvik.system.NativeStart.main(Native Method)
09-19 18:54:51.165: E/AndroidRuntime(31543): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View$1.onClick(View.java:3628)
09-19 18:54:51.165: E/AndroidRuntime(31543): ... 11 more
09-19 18:54:51.165: E/AndroidRuntime(31543): Caused by: java.lang.NullPointerException
09-19 18:54:51.165: E/AndroidRuntime(31543): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:54:51.165: E/AndroidRuntime(31543): ... 14 more
this is error i get in my logcat.
when I call androidHttpTransport.call(SOAP_ACTION, envelope);
I get exception null, and i enter catch statement. why? any help?
krikor1 said:
I do that, i get my first app has to be stopped
Code:
09-19 18:47:05.798: E/AndroidRuntime(29848): FATAL EXCEPTION: main
09-19 18:47:05.798: E/AndroidRuntime(29848): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View$1.onClick(View.java:3633)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View.performClick(View.java:4240)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.os.Looper.loop(Looper.java:137)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:05.798: E/AndroidRuntime(29848): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:47:05.798: E/AndroidRuntime(29848): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:47:05.798: E/AndroidRuntime(29848): at dalvik.system.NativeStart.main(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.view.View$1.onClick(View.java:3628)
09-19 18:47:05.798: E/AndroidRuntime(29848): ... 11 more
09-19 18:47:05.798: E/AndroidRuntime(29848): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.util.Log.println_native(Native Method)
09-19 18:47:05.798: E/AndroidRuntime(29848): at android.util.Log.d(Log.java:138)
09-19 18:47:05.798: E/AndroidRuntime(29848): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:47:05.798: E/AndroidRuntime(29848): ... 14 more
09-19 18:47:30.955: E/AndroidRuntime(30168): FATAL EXCEPTION: main
09-19 18:47:30.955: E/AndroidRuntime(30168): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View$1.onClick(View.java:3633)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View.performClick(View.java:4240)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.os.Looper.loop(Looper.java:137)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:30.955: E/AndroidRuntime(30168): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:47:30.955: E/AndroidRuntime(30168): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:47:30.955: E/AndroidRuntime(30168): at dalvik.system.NativeStart.main(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.view.View$1.onClick(View.java:3628)
09-19 18:47:30.955: E/AndroidRuntime(30168): ... 11 more
09-19 18:47:30.955: E/AndroidRuntime(30168): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.util.Log.println_native(Native Method)
09-19 18:47:30.955: E/AndroidRuntime(30168): at android.util.Log.d(Log.java:138)
09-19 18:47:30.955: E/AndroidRuntime(30168): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:47:30.955: E/AndroidRuntime(30168): ... 14 more
09-19 18:49:17.259: E/AndroidRuntime(30750): FATAL EXCEPTION: main
09-19 18:49:17.259: E/AndroidRuntime(30750): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View$1.onClick(View.java:3633)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View.performClick(View.java:4240)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.os.Looper.loop(Looper.java:137)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:49:17.259: E/AndroidRuntime(30750): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:49:17.259: E/AndroidRuntime(30750): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:49:17.259: E/AndroidRuntime(30750): at dalvik.system.NativeStart.main(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.view.View$1.onClick(View.java:3628)
09-19 18:49:17.259: E/AndroidRuntime(30750): ... 11 more
09-19 18:49:17.259: E/AndroidRuntime(30750): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.util.Log.println_native(Native Method)
09-19 18:49:17.259: E/AndroidRuntime(30750): at android.util.Log.e(Log.java:231)
09-19 18:49:17.259: E/AndroidRuntime(30750): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:49:17.259: E/AndroidRuntime(30750): ... 14 more
09-19 18:50:39.907: E/AndroidRuntime(31052): FATAL EXCEPTION: main
09-19 18:50:39.907: E/AndroidRuntime(31052): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View$1.onClick(View.java:3633)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View.performClick(View.java:4240)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.os.Looper.loop(Looper.java:137)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:50:39.907: E/AndroidRuntime(31052): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:50:39.907: E/AndroidRuntime(31052): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:50:39.907: E/AndroidRuntime(31052): at dalvik.system.NativeStart.main(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.view.View$1.onClick(View.java:3628)
09-19 18:50:39.907: E/AndroidRuntime(31052): ... 11 more
09-19 18:50:39.907: E/AndroidRuntime(31052): Caused by: java.lang.NullPointerException: println needs a message
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.util.Log.println_native(Native Method)
09-19 18:50:39.907: E/AndroidRuntime(31052): at android.util.Log.println(Log.java:332)
09-19 18:50:39.907: E/AndroidRuntime(31052): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:50:39.907: E/AndroidRuntime(31052): ... 14 more
09-19 18:51:10.640: E/AndroidRuntime(31288): FATAL EXCEPTION: main
09-19 18:51:10.640: E/AndroidRuntime(31288): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View$1.onClick(View.java:3633)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View.performClick(View.java:4240)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.os.Looper.loop(Looper.java:137)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:51:10.640: E/AndroidRuntime(31288): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:51:10.640: E/AndroidRuntime(31288): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:51:10.640: E/AndroidRuntime(31288): at dalvik.system.NativeStart.main(Native Method)
09-19 18:51:10.640: E/AndroidRuntime(31288): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:51:10.640: E/AndroidRuntime(31288): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:51:10.640: E/AndroidRuntime(31288): at android.view.View$1.onClick(View.java:3628)
09-19 18:51:10.640: E/AndroidRuntime(31288): ... 11 more
09-19 18:51:10.640: E/AndroidRuntime(31288): Caused by: java.lang.NullPointerException
09-19 18:51:10.640: E/AndroidRuntime(31288): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:51:10.640: E/AndroidRuntime(31288): ... 14 more
09-19 18:54:51.165: E/AndroidRuntime(31543): FATAL EXCEPTION: main
09-19 18:54:51.165: E/AndroidRuntime(31543): java.lang.IllegalStateException: Could not execute method of the activity
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View$1.onClick(View.java:3633)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View.performClick(View.java:4240)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View$PerformClick.run(View.java:17721)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.os.Handler.handleCallback(Handler.java:730)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.os.Handler.dispatchMessage(Handler.java:92)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.os.Looper.loop(Looper.java:137)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:54:51.165: E/AndroidRuntime(31543): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-19 18:54:51.165: E/AndroidRuntime(31543): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 18:54:51.165: E/AndroidRuntime(31543): at dalvik.system.NativeStart.main(Native Method)
09-19 18:54:51.165: E/AndroidRuntime(31543): Caused by: java.lang.reflect.InvocationTargetException
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 18:54:51.165: E/AndroidRuntime(31543): at java.lang.reflect.Method.invoke(Method.java:525)
09-19 18:54:51.165: E/AndroidRuntime(31543): at android.view.View$1.onClick(View.java:3628)
09-19 18:54:51.165: E/AndroidRuntime(31543): ... 11 more
09-19 18:54:51.165: E/AndroidRuntime(31543): Caused by: java.lang.NullPointerException
09-19 18:54:51.165: E/AndroidRuntime(31543): at com.example.myfirstapp.MainActivity.sendMessage(MainActivity.java:82)
09-19 18:54:51.165: E/AndroidRuntime(31543): ... 14 more
this is error i get in my logcat.
Click to expand...
Click to collapse
According to the logcat, you didn't enter a message.
---------- Post added at 06:09 PM ---------- Previous post was at 06:09 PM ----------
krikor1 said:
when I call androidHttpTransport.call(SOAP_ACTION, envelope);
I get exception null, and i enter catch statement. why? any help?
Click to expand...
Click to collapse
This might help you finding the reason for the NPE: http://forum.xda-developers.com/showthread.php?t=2325164
Unfortunately, i donot have an Android device on hand. I was trying to run the sample Geofencing app provided on Android Developer.
However, the app crashes as soon as it is initiated. The emulator details are (PLATFORM = Android 4.4.2, API = 19, CPU = ARM)
I get this LogCat error:
Code:
05-29 09:28:08.633: E/AndroidRuntime(1375): FATAL EXCEPTION: main
05-29 09:28:08.633: E/AndroidRuntime(1375): Process: com.example.android.geofence, PID: 1375
05-29 09:28:08.633: E/AndroidRuntime(1375): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.geofence/com.example.android.geofence.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.android.geofence.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.geofence-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.android.geofence-1, /system/lib]]
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.access$800(ActivityThread.java:135)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.os.Handler.dispatchMessage(Handler.java:102)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.os.Looper.loop(Looper.java:136)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.main(ActivityThread.java:5017)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.reflect.Method.invokeNative(Native Method)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.reflect.Method.invoke(Method.java:515)
05-29 09:28:08.633: E/AndroidRuntime(1375): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
05-29 09:28:08.633: E/AndroidRuntime(1375): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
05-29 09:28:08.633: E/AndroidRuntime(1375): at dalvik.system.NativeStart.main(Native Method)
05-29 09:28:08.633: E/AndroidRuntime(1375): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.android.geofence.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.geofence-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.android.geofence-1, /system/lib]]
05-29 09:28:08.633: E/AndroidRuntime(1375): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
05-29 09:28:08.633: E/AndroidRuntime(1375): ... 11 more
05-29 09:28:12.323: I/Process(1375): Sending signal. PID: 1375 SIG: 9
I'm getting a weird error using the Aviary SDK for some users who are using ART. I'm confused on why this happening (only on 4.4.x obviously) as the app works perfectly when calling this SDK on Dalvik. Any one have any have any ideas to solve this? Aviary claims it's PhoneGap/Cordova issue (our base), but I don't think that's the issue here as it only fires when the activity is launched.
HTML:
06-06 09:45:36.037: D/Aviary(27701): Pictures folder: /storage/emulated/0/Pictures
06-06 09:45:36.037: D/Aviary(27701): show
06-06 09:45:36.037: D/Aviary(27701): VERSION => 3.0.4
06-06 09:45:36.037: D/Aviary(27701): VERSION => 157
06-06 09:45:36.041: I/ActivityManager(741): START u0 {dat=file:///storage/emulated/0/DCIM/Camera/1402062335694.jpg cmp=com.XXXX.app/com.aviary.android.feather.FeatherActivity (has extras)} from pid 27701
06-06 09:45:36.054: W/CursorWrapperInner(27701): Cursor finalized without prior close()
06-06 09:45:36.058: I/CordovaLog(27701): Changing log level to ERROR(6)
06-06 09:45:36.087: I/ActivityManager(741): Start proc com.XXXX.app:standalone for activity com.XXXX.app/com.aviary.android.feather.FeatherActivity: pid=28285 uid=10060 gids={50060, 3003, 1028, 1015}
06-06 16:20:12.473 W/art (188): Could not get current activity
......
06-06 09:45:36.320: E/art(28285): Verification failed on class com.aviary.android.feather.library.external.tracking.LocalyticsSession$UploadHandler in /data/app/com.XXXXXXX.apk because: Verifier rejected class com.aviary.android.feather.library.external.tracking.LocalyticsSession$UploadHandler due to bad method void com.aviary.android.feather.library.external.tracking.LocalyticsSession$UploadHandler.deleteBlobsAndSessions(com.aviary.android.feather.library.external.tracking.LocalyticsProvider)
06-06 09:45:36.320: E/AndroidRuntime(28285): FATAL EXCEPTION: SessionHandler
06-06 09:45:36.320: E/AndroidRuntime(28285): Process: com.XXXXX.app:standalone, PID: 28285
06-06 09:45:36.320: E/AndroidRuntime(28285): java.lang.VerifyError: Verifier rejected class com.aviary.android.feather.library.external.tracking.LocalyticsSession$UploadHandler due to bad method void com.aviary.android.feather.library.external.tracking.LocalyticsSession$UploadHandler.deleteBlobsAndSessions(com.aviary.android.feather.library.external.tracking.LocalyticsProvider) (declaration of 'com.aviary.android.feather.library.external.tracking.LocalyticsSession$UploadHandler' appears in /data/app/com.XXXXXXX.apk)
06-06 09:45:36.320: E/AndroidRuntime(28285): at com.aviary.android.feather.library.external.tracking.LocalyticsSession$SessionHandler.init(LocalyticsSession.java:1427)
06-06 09:45:36.320: E/AndroidRuntime(28285): at com.aviary.android.feather.library.external.tracking.LocalyticsSession$SessionHandler.handleMessage(LocalyticsSession.java:1124)
06-06 09:45:36.320: E/AndroidRuntime(28285): at android.os.Handler.dispatchMessage(Handler.java:102)
06-06 09:45:36.320: E/AndroidRuntime(28285): at android.os.Looper.loop(Looper.java:136)
06-06 09:45:36.320: E/AndroidRuntime(28285): at android.os.HandlerThread.run(HandlerThread.java:61)
06-06 09:45:36.320: W/ActivityManager(741): Force finishing activity com.XXXXXX.app/com.aviary.android.feather.FeatherActivity
I'm trying to make QuickMemo work on CM... So far it's not going anywhere as I'm kinda noob with Android... And I'm hoping someone with more knowledge can help me!
I copied LGQMemo.apk to /system/priv-app and was able to run it through Secure settings Launch activity and here is what I got in return:
06-11 11:54:48.412 I/ActivityManager( 826): START u0 {flg=0x10000000 cmp=com.lge.QuickClip/.QuickClipActivity} from pid 8370
06-11 11:54:48.422 I/SecureSettings.ActionService( 8370): onHandleIntent::Action Success
06-11 11:54:48.422 V/Zygote ( 8527): Switching descriptor 42 to /dev/null
06-11 11:54:48.422 V/Zygote ( 8527): Switching descriptor 9 to /dev/null
06-11 11:54:48.422 I/ActivityManager( 826): Start proc com.lge.QuickClip for activity com.lge.QuickClip/.QuickClipActivity: pid=8527 uid=10149 gids={50149, 1028, 1015}
06-11 11:54:48.462 I/dalvikvm( 8527): DexOpt: mismatch dep name: '/data/dalvik-cache/[email protected]@[email protected]' vs. '/system/framework/core.odex'
06-11 11:54:48.462 E/dalvikvm( 8527): /system/priv-app/LGQMemo.apk odex has stale dependencies
06-11 11:54:48.462 D/ActivityThread( 8527): handleBindApplication:com.lge.QuickClip
06-11 11:54:48.462 D/ActivityThread( 8527): setTargetHeapUtilization:0.75
06-11 11:54:48.462 D/ActivityThread( 8527): setTargetHeapMinFree:2097152
06-11 11:54:48.462 W/dalvikvm( 8527): Unable to resolve superclass of Lcom/lge/QuickClip/QuickClipActivity; (270)
06-11 11:54:48.462 W/dalvikvm( 8527): Link of class 'Lcom/lge/QuickClip/QuickClipActivity;' failed
06-11 11:54:48.462 D/AndroidRuntime( 8527): Shutting down VM
06-11 11:54:48.462 W/dalvikvm( 8527): threadid=1: thread exiting with uncaught exception (group=0x419b2ce0)
06-11 11:54:48.472 E/AndroidRuntime( 8527): FATAL EXCEPTION: main
06-11 11:54:48.472 E/AndroidRuntime( 8527): Process: com.lge.QuickClip, PID: 8527
06-11 11:54:48.472 E/AndroidRuntime( 8527): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.lge.QuickClip/com.lge.QuickClip.QuickClipActivity}: java.lang.ClassNotFoundException: Didn't find class "com.lge.QuickClip.QuickClipActivity" on path: DexPathList[[zip file "/system/priv-app/LGQMemo.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2120)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2253)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.access$800(ActivityThread.java:145)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.os.Handler.dispatchMessage(Handler.java:102)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.os.Looper.loop(Looper.java:136)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.main(ActivityThread.java:5128)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.reflect.Method.invokeNative(Native Method)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.reflect.Method.invoke(Method.java:515)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at dalvik.system.NativeStart.main(Native Method)
06-11 11:54:48.472 E/AndroidRuntime( 8527): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.lge.QuickClip.QuickClipActivity" on path: DexPathList[[zip file "/system/priv-app/LGQMemo.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
06-11 11:54:48.472 E/AndroidRuntime( 8527): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2111)
06-11 11:54:48.472 E/AndroidRuntime( 8527): ... 12 more
06-11 11:54:48.472 W/ActivityManager( 826): Force finishing activity com.lge.QuickClip/.QuickClipActivity
06-11 11:54:48.472 W/InputMethodManagerService( 826): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
06-11 11:54:48.972 W/ActivityManager( 826): Activity pause timeout for ActivityRecord{424ae208 u0 com.lge.QuickClip/.QuickClipActivity t15 f}
06-11 11:54:49.022 I/Timeline( 1458): Timeline: Activity_idle id: [email protected] time:413509
06-11 11:54:49.482 D/qcom_sensors_hal( 826): hal_sensor1_data_cb: msg_type 2
06-11 11:54:49.922 I/Process ( 8527): Sending signal. PID: 8527 SIG: 9
06-11 11:54:49.932 D/PhoneStatusBar( 1239): disable: < expand icons alerts ticker system_info back home recent CLOCK* search >
06-11 11:54:49.932 W/InputMethodManagerService( 826): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$S[email protected] attribute=null, token = [email protected]
06-11 11:54:49.932 I/ActivityManager( 826): Process com.lge.QuickClip (pid 8527) has died.
Click to expand...
Click to collapse
Since I cannot install it directly, I was wondering why can the Secure Settings find the application and it's main activity but in the logcat it says it cannot be found?
Thanks in advance! (QMemo and QMemo.odex taken from latest CloudyFlex 2.4)
You may want to look for his people got the remote working. Pretty sure it looks for the eula being agreed to before it works
Sent from my LG-VS980 using Tapatalk
Hummm... But wouldn't it need to be shown on the EULA when you first start the system? As I recall, only the remote and VuTalk where shown...
I tried copying some files the the system/framework folder and got a reboot AND system format for free! Had to reinstall CM! Damn! (as I said I'm not a android/linux expert hehehe)
I just updated CM from M9 to M11 and it brought me some trouble. Every time I open Play Store (thus starting automatic updates and downloads), the app crashes. Here's what Catlog gave me:
Code:
10-29 08:39:06.487 E/AndroidRuntime(9020): FATAL EXCEPTION: download-manager-thread
10-29 08:39:06.487 E/AndroidRuntime(9020): Process: com.android.vending, PID: 9020
10-29 08:39:06.487 E/AndroidRuntime(9020): java.lang.SecurityException: Invalid value for is_public_api: null
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.os.Parcel.readException(Parcel.java:1465)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:475)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.content.ContentResolver.insert(ContentResolver.java:1190)
10-29 08:39:06.487 E/AndroidRuntime(9020): at com.google.android.finsky.download.DownloadManagerLegacyImpl$2.run(DownloadManagerLegacyImpl.java:177)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.os.Handler.handleCallback(Handler.java:733)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.os.Handler.dispatchMessage(Handler.java:95)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.os.Looper.loop(Looper.java:136)
10-29 08:39:06.487 E/AndroidRuntime(9020): at android.os.HandlerThread.run(HandlerThread.java:61)
Anyone have a clue how to fix this?
Fixed by flashing GApps stock pack again.