building android hidden code under frameworks/base/core/java/com/android/internal

by Dianne Hackborn » Mon, 03 Aug 2009 15:37:57 GMT


Sponsored Links
 All @hide does is prevent the associated symbols from being exposed in the
SDK.  The code is still built.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



building android hidden code under frameworks/base/core/java/com/android/internal

by Dianne Hackborn » Fri, 07 Aug 2009 03:02:15 GMT


 There are already a bunch of broadcasts about USB mass storage.  I don't
think there is any reason for applications to care about other USB things
going on at the SDK level at this point, which is probably why others aren't
available.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


Other Threads

1. Insanely slow read() from HttpsURLConnection...

> So I have the following code...

You could try:

http://www.exampledepot.com/egs/java.net/ReadFromURL.html

or:

http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

If you cannot get HttpsURLConnection to do what you want, you could try
switching to HttpClient and using the Response Handler pattern from:

http://hc.apache.org/httpcomponents-client/examples.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~

2. Notifications and Sound

Hi Everyone,

The reason Im posting this question is because I cannot make a
notification to reproduce a sound or a vibration sequence.

For the case of the vibration I have permissions properly set and
logcat do not show log message indicating a problem.

For the case of sound, I have an mp3 saved in the res/raw folder and I
always got an error saying: error loading sound in logcat.

I add an s{*filter*}t with the code Im using. Probably anyone can let me
know if I am making a newbie mistake.

        Notification note=new Notification(R.drawable.red_ball, "Status
message!", System.currentTimeMillis());

        note.vibrate = new long[] {100,200,150};

        Uri uri = Uri.parse("android.resource://com.pp/" +
R.raw.test_cbr);
        note.sound = uri;

        PendingIntent i=PendingIntent.getActivity(this, 0,
                        new Intent(this, NotifyMessage.class), 0);

        note.setLatestEventInfo(this, "Notification Title", "This is the
notification message", i);

        mgr.notify(NOTIFY_ME_ID, note);

Where com.pp is the package of my application.

I will be more than glad if someone can be me a hint or a working
s{*filter*}t about reproducing sound, vibration and lights. There is
actually very few documentation about how to make notifications work
properly.

Thanks in advance, Pablo

--~--~---------~--~----~------------~-------~--~----~

3. How to add radiobuttons in menu structure

4. Event when an outgoing call is being amswered?

5. subproject

6. Detect an outgoing call is being answered?

7. How to show Scrollbar on Left side of screen