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 8466487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:21:27+00:00 2026-06-10T15:21:27+00:00

I developed a game in HTML5. It contains JavaScript and HTML files. Now I

  • 0

I developed a game in HTML5. It contains JavaScript and HTML files. Now I want to add them to my Android app. How can I do this?

  • 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-10T15:21:29+00:00Added an answer on June 10, 2026 at 3:21 pm

    You need To add Webview to have HTML5 Files to be loaded this can be done like this

     public class HelloWebView extends Activity { 
    
         WebView webview;
    
         public void onCreate(Bundle savedInstanceState) { 
         super.onCreate(savedInstanceState); 
         setContentView(R.layout.main); 
    
         webview = (WebView) findViewById(R.id.webview); 
         webview.getSettings().setJavaScriptEnabled(true); 
         webview.setWebViewClient(new HelloWebViewClient()); 
         webview.loadUrl("file:///android_asset/test.html"); 
         WebSettings settings = webview.getSettings(); 
         settings.setJavaScriptEnabled(true); 
         settings.setDatabaseEnabled(true); 
         String databasePath = this.getApplicationContext().getDir("database",  Context.MODE_PRIVATE).getPath(); 
         settings.setDatabasePath(databasePath);
         webview.setWebChromeClient(new WebChromeClient() { 
         public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater) { 
                quotaUpdater.updateQuota(5 * 1024 * 1024); 
            } 
        }); 
        } 
    

    And place your HTML5 files inside assets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an android app, and have developed a game, but I now have
I have developed a game using HTML5 and Javascript/JQuery. This game is a Tile
I have developed a small administration page for game servers which you can add/remove/edit
I have developed tower of hanoi game in java script. Now, I want to
I have made a snake game using javascript and HTML5 Canvas element. It can
I just developed my first game on Google Android. I'm trying to submit it
I developed a game on Android. I am currently saving most of the game
I have developed a simple interactive Flash game, but now it appears that sometimes
I am new to HTML5+js game development or I can I am new to
This might sound super crazy but I really want to know if this can

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.