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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:21:44+00:00 2026-05-23T09:21:44+00:00

I want to make an app with 2 html files at my asset folder:

  • 0

I want to make an app with 2 html files at my asset folder:
one.html and two.html
Then when some body type in my edittext: one, it opens the one.html.

Is that possible and how can i do that.
I have this code but i don’t now what to do with it:

AssetManager assetManager = getAssets();
String[] files = null;
try {
    files = assetManager.list("");
} catch (IOException e) {
    Log.e("Error loading assets", e.getMessage());
}
for (String file : files) {
    if (file.equals("one.html")) {
        Open the html with webview
    else if (file.equals("two.html")) {
        Open the html with webview
}
}

So do you now how i can search trough my asset folder with an EditText?

  • 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-05-23T09:21:44+00:00Added an answer on May 23, 2026 at 9:21 am

    create one edittext and one webview. if you write file name in edit text then your webview will load the file from assets folder and show it

    Sudo code

    String str = editText.getText().toString() +".html"
    webview.loadUrl("file:///android_asset/"+str);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI all I want to make one app for iPhone 2.2.* and for version
I want to make a really simple iphone app: one screen with a single
i want to make a php app that let people submit photos/videos/sounds Now, everything
I want to make a simple app, where a UIWebView with custom content will
I want to make a little tk app that continuous ping an ip and
I want to make an iPhone OS app for a Wordpress blog, and I'm
I want to make a right click menu for my winforms app. It will
Im learning Rails by building apps. I want to make my first authenticated app:
Let's say I want make some of my sources publicly available via my blog
I want to make an App Engine connected Android app, and I'm beginning with

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.