REG: CSS style sheets

by Santha » Tue, 20 Apr 2010 18:56:05 GMT

Sponsored Links
 Can we import the CSS style sheets in to our android application.


REG: CSS style sheets

by Felipe Silveira » Tue, 20 Apr 2010 20:38:21 GMT

 Well, I'm not sure if it is what you want, but you can use the WebView
component ( )
to load a HTML page inside your application. (and, of course, the CSS used
by the HTML page)

Felipe Silveira 


Sponsored Links

REG: CSS style sheets

by patbenatar » Wed, 21 Apr 2010 03:28:42 GMT

 The above idea to use a WebView would work and be quite a quick and
easy solution for styling your application. Unfortunately, your
application will look like a webpage and not a native Android app. To
style natively, you cannot use CSS but rather must use Android styles
and themes: 
.. these have a bit of a learning curve for a HTML/CSS UI designer,
but in the end your app will feel native, a characteristic users tend
to like.


> >

REG: CSS style sheets

by Santha » Wed, 21 Apr 2010 13:59:34 GMT

 Thank you so much..

> > >

Other Threads

1. App shutdown during package reinstall

I'm working on the upgrade process for an Android app and am having a
hard time ensuring a graceful shutdown of the old version. Can someone
explain how the old version of the app is killed and if there is
anything we can do to hook into the process?

In more detail:

We notice that a new version of our app is available and launch a new
activity with Intent.ACTION_VIEW pointing to the new apk file (or to the
marketplace, once our app is there). However, the user has 2 chances to
abort the install (once at the warning about reinstalling the app, and
the second when warned about the permissions our app needs). My
understanding is that I can't use startActivityForResult() with
ACTION_VIEW, so I can't find out if the Action is aborted or not. So we
can't tell if/when the install has been started.

We'd like to ensure that our app shuts down cleanly since we use a lot
of native code and threads. We could kill our app proactively, as soon
as we launch the ACTION_VIEW activity, but then we're left in a bad
state if the user aborts. We could wait for the installer to remove our
files, prior to installing the new version, but that's a hack. Is there
any clean way to do this? Our main window is never seeing an
onDestroy(), btw.



2. Web-Browser in Emulator

Hello to all,

the Web-Browser in the Emulator apparently does not accept cookies
from sites, which resides on development-Servers in my LAN.
For example: when I want to login to the CMS Plone on one of my dev-
servers, on the startpage of Plone the Info "Cookies are not
enabled ..." pops up.
Firefox on the same machine, on which the emulator works, is able to
But the Android-Browser accepts cookies from sites residing in the
For example: using the Android-Browser, I am able to login to the
backend of another CMS, which requires cookies, on its demo-site in
the WWW. Login to the backend of this CMS fails, when it resides on
one of my dev-servers in my LAN.
Before I am going to invest more time in solving this issue, I want to
ask here, if anyone knows a simple reason for the browsers behaviour.



3. Showing places near current location

4. access resource strings from non-android classes?

5. Setting the Android G2 on AT&T data plan

6. access resource strings from non-android classes?

7. How do I keep an application alive?