Atlast I got to solve this. This is happening because one of my files
in assets/www/ folder are more than 1MB in size and Android was trying
to compress them using aapt or so. I renamed my file (which is more
than 1MB in size) to a previously-compressed format (.jet) as
instructed in this link (http://ponystyle.com/blog/2010/03/26/dealing-
with-asset-compression-in-android-apps/). Finally I got my app to run
on Android 2.1 and 2.2 also.
Hope the answer helps.
On Dec 9, 2:35 pm, Sam <dhavalasanj...@gmail.com> wrote:
> Does compiling this app in Eclipse for Mac differ from compiling it in
> Eclipse for Windows?
>
> I am currently working on Mac. There are no ads/external links, so I
> guess the internet connection is not a problem.
>
> On Dec 9, 11:53 am, Derrick <dfranc3...@gmail.com> wrote:
>
>
>
>
>
>
>
> > The issue is the ads. If you are getting this error it is because you
> > have no internet connection and your ad script is trying to connect to
> > a outside page. You can use a check for internet to make sure and then
> > let it try or not.
>
> > On Dec 8, 8:48 am, Sam <dhavalasanj...@gmail.com> wrote:
>
> > > Hi,
>
> > > I wrote a PhoneGap app and it runs fine on iOS. When it comes to
> > > Android, it runs fine on 2.3.3 and 2.3.6. But it shows Application
> > > Error (android_asset/www/index.html) and quits. The index.html is
> > > being used as a splash screen which has a setTimeout() function that
> > > redirects the page to another html page.
>
> > > Can anyone help me with this ASAP please?
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
In phonegap development multiple html files won't work unless you use
some javascript ajax or jquery or jquerymobile.com
What you should do is have page elements. in jquerymobile.com you
define a page with data-role="page" and id tag. All the div tag pages
are in one html file. Then you use javascript to switch between them.
Have a look at this:
http://jquerymobile.com/demos/1.0/docs/api/events.html
<div data-role="page" id="welcome">
<div data-role="content">
<img src="splash.jpg" />
</div>
</div>
<div data-role="page" id="aftersplash">
<div data-role="content">
Some content after splash
</div>
</div>
On Dec 8, 8:48 am, Sam <dhavalasanj...@gmail.com> wrote:
I am currently working on Mac. There are no ads/external links, so I
guess the internet connection is not a problem.
On Dec 9, 11:53 am, Derrick <dfranc3...@gmail.com> wrote:
Hope the answer helps.
On Dec 9, 2:35 pm, Sam <dhavalasanj...@gmail.com> wrote: