android.hardware

by Ivan Longin » Fri, 23 Apr 2010 08:04:47 GMT


Sponsored Links
 Hi!

Does anyone know where to find source code for android.hardware
package? I need to make some modification in SensorManager for my
application and possible modification in other classes from that
package. Google didn't help me a lot so I'm asking here.

Thanks!

--



android.hardware

by Ivan Longin » Fri, 23 Apr 2010 08:04:57 GMT


 Hi!

Does anyone know where to find source code for android.hardware
package? I need to make some modification in SensorManager for my
application and possible modification in other classes from that
package. Google didn't help me a lot so I'm asking here.

Thanks!

--


Sponsored Links


Other Threads

1. How to get the WebView UserAgent (without having a Context)

Hi,

  I am downloading web pages off of the internet and some of those sites
want to format their content for the actual user agent used.

  I want to use the user agent that is later on used to display the stuff I
donwnload.

  I can ask WebView.getWebSettings().getUserAgentString() to get the user
agent, but this doesn't work all that well for my app as I need to
instantiate a WebView first even though I don't need. Furthermore to do that
I need to have a UI context, which I don't as this part of the app doesn't
have a UI.

  Is there another way to get to the User Agent?

  I found in WebSettings:

    // User agent strings.
    private static final String DESKTOP_USERAGENT =
            "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en)"
            + " AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2"
            + " Safari/525.20.1";
    private static final String IPHONE_USERAGENT =
            "Mozilla/5.0 (iPhone; U; CPU iPhone 2_1 like Mac OS X; en)"
            + " AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2"
            + " Mobile/5F136 Safari/525.20.1";

  But of course, this is private. Any other idea?

Cheers,
Mariano

-- 

2. WebView "web page not available" after running awhile:

Hey there!
   So, I have this simple app that contains a WebView object. My code
basically tells my WebView object to load some pages every minute or
so. The problem is, after the application runs for about 9-10 sites,
every time I ask the WebView object to load a new URL I get a "Web
page not available" error. Why is this happening?

-- 

3. Adding Custom Data Types to Contacts

4. Location of current desktop/wallpaper file?

5. USB ADB Device connected notification icon still present even after device removed

6. Cannot receive UDP in mobile network

7. Does Android has a Touchscreen requirement?