Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9131249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:06:45+00:00 2026-06-17T08:06:45+00:00

I use the following link for how to get back to android activity page

  • 0

I use the following link for how to get back to android activity page from webview

the solution works perfect to dispaly the Toast message only..

but here im facing issue is when try to start the new activity after the toast message im getting VM aborting error message.

public class JavaScriptInterface{
    Context mContext;

    /** Instantiate the interface and set the context */
    JavaScriptInterface(Context c) {
        mContext = c;
    }

    /** Show a toast from the web page */
    @JavascriptInterface
    public void showToast(String toast) {
        Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();
        menuScreenActivity  menu=new menuScreenActivity ();
        menu.logout();//here i try to call the logut method
    }
}

in the menuScreenActivity Activity i created method called logout

Method in the menuScreenActivity

public void logout(){
      Intent myIntent= new Intent(menuScreenActivity.this,LoginActivity.class);
      startActivity(myIntent);
    }

My Log cat says

 JNI WARNING: jarray 0x405a2478 points to non-array object (Ljava/lang/String;)
 "WebViewCoreThread" prio=5 tid=9 NATIVE
  | group="main" sCount=0 dsCount=0 obj=0x4058d718 self=0x1fecb0
  | sysTid=746 nice=0 sched=0/0 cgrp=default handle=5148120
   | schedstat=( 23519331303 11309830622 1216 )
at android.webkit.WebViewCore.nativeTouchUp(Native Method)
at android.webkit.WebViewCore.nativeTouchUp(Native Method)
at android.webkit.WebViewCore.access$3300(WebViewCore.java:53)
at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1158)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629)
at java.lang.Thread.run(Thread.java:1019)
VM aborting

Please let me know how to solve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:06:46+00:00Added an answer on June 17, 2026 at 8:06 am

    menuScreenActivity menu=new menuScreenActivity (); is almost certainly wrong. You should never create and Activity with new. It looks like you were doing that just to get a Context to pass to Intent. You already have a Context you save a reference to, so you can use that to launch the intent, assuming you passed an Activity context.

    /** Show a toast from the web page */
        @JavascriptInterface
        public void showToast(String toast) {
            Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();
            Intent myIntent= new Intent(mContext,LoginActivity.class);
            mContext.startActivity(myIntent);
        }  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the following link error: Undefined symbols for architecture armv7: _OBJC_CLASS_$_CIFilter, referenced from:
So we're required to use the following order for CSS anchor pseudo-classes a:link {
for example i use following command to find a record SELECT `users`.`mail` FROM `users`
I use the following code to make sure I go back to a particular
I'm getting the following error back when trying to get a google auth token
When I use the following command link: <h:commandLink action=student value=students /> And the following
The following setup kind of works, but it's not the proper use of TempData,
I've got the following link in my page, <a href=#dialog name=delete data-id=75351 id=delete-75351 >Delete</a>
Following this thread solution, I have managed to get a bunch of lists that
I use following style attribute so when i will start typing in text box

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.