Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Unable to start activity ComponentInfo{***.LoginActivity}: java.lang.IllegalArgumentException: Illegal URL

charels:

I'm having this error in my app in my LoginActivity:-


Unable to start activity ComponentInfo{*.LoginActivity}: java.lang.IllegalArgumentException: Illegal URL
crash_throwable: java.lang.RuntimeException: Unable to start activity ComponentInfo{*.LoginActivity}: java.lang.IllegalArgumentException: Illegal URL:
crash_stack_trace: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2773)
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2834)
android.app.ActivityThread.-wrap12(ActivityThread.java)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1558)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:154)
android.app.ActivityThread.main(ActivityThread.java:6295)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:790)

There are two ways to jump into LoginActivity:


startActivity(new Intent(this, LoginActivity.class));

and


Context context = MyApplication.getContext();
Intent intent = new Intent(context, LoginActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
try {
context.startActivity(intent);
} catch (IllegalArgumentException ex) {
}

How can I fix this? Thank you for reading!



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Unable to start activity ComponentInfo{***.LoginActivity}: java.lang.IllegalArgumentException: Illegal URL

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×