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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:01:12+00:00 2026-06-13T22:01:12+00:00

This is my first ever app I’m trying to deploy using Apache Cordova (PhoneGap)

  • 0

This is my first ever app I’m trying to deploy using Apache Cordova (PhoneGap) and I’m having issues referencing the CSSs files. I followed this guide since I would like to work using IntelliJ Idea. As a first step, I’m trying to deploy the app on the Android emulator.

I’ve been able to deploy the app to the emulator successfully, the only problem is that it doesn’t seem to load the CSS files, so the result is a black and white unstyled application. I reference the CSS files using:

<link rel="stylesheet" href="_styles/main.css" />

The folder hierarchy is:
  – assets
    — www
      — _styles
        —- main.css
      — index.html

The main activity looks like the one in the guide:

public class MyActivity extends DroidGap
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        super.loadUrl("file:///android_asset/www/index.html");
    }
}

Please note that the same thing happens on Eclipse as well.

Any help greatly appreciated.

Thanks

  • 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-13T22:01:13+00:00Added an answer on June 13, 2026 at 10:01 pm

    You are running into an issue with AAPT. The Android package manager which compiles your app into a .apk file ignores any files or directories that start with ‘_’. Try renaming your directory to “styles” and updating your references. That should fix the issue with the CSS not being loaded.

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

Sidebar

Related Questions

Ok here goes. This is my first ever wicket application and I'm trying to
I am working on a wpf application using PRISM. This is my first ever
This is the first time ever I'm using AJAX, and I want to do
this is my first ever question. I am developing a iPad app that allows
Hello everyone I am a newbie to php and this is my first ever
Here's my HTML. Apologies for formatting - this is my first-ever question! <div id=Template>
Preface I've rarely ever been a JS developer and this is my first attempt
Using Dozer to map two objects, I have: /** /* This first class uses
How to create in-app step by step instructions? Like this ( first boot android
http://localhost:3000/genre I'm using Instant Rails, I'm introducing scaffolding for the first time ever. So

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.