It try to exchange objects of type android.os.Message between services
in different processes. I add a bundle to each message. This bundle
contains MyMessage object, which implements the Parcelable interface.
I do it like this:
Message message = new Message();
Bundle bundle = new Bundle();
Uri.*withAppendedPath*(MediaSt ore.Audio.Media.*EXTERNAL_CONT ENT_URI*,"1");
But what if i want to pass the name of the song with complete path from
sdcard? Because sending the song id gives me wrong songs sometimes.
On the other hand, even if we cannot switch themes, I would like to try to
I have a list view to list some categories. I need to list the
products under each category in a new list. I used arrayList to the
adapter, I am able to list the category names . but I cant pass the
keys (categoryIds) to the next view for getting the products.
Please help me in this regard.
I have a question about grid view: is there any chance to stretch
GridView vertically. What I'm trying to do is to create a screen with
a limited number of items (6). I need exactly 2 columns and 3 rows (or
3x2 in landscape mode) to fill all the screen.
In a grid view I can control columns number, and columns stretching
Here is very simple code to get a web page
HttpClient client = new DefaultHttpClient();
HttpGet getMethod = new HttpGet
(strURL);
HttpResponse response = client.execute(getMethod);
String res = EntityUtils.toString(response. getEntity());
However, smth like "table of styles" still would be useful (style and
screenshot).
Regarding process death and preferences, I thought the same thing so I
scaled back my persistence code to only save preferences in an onPause
(). It was my understanding that even when a task is killed, the
onPause is called before the process is terminated - is that not the
FYI - The default font is DroidSans.ttf (when you don't specify a
typeface object). All of the UI fonts (there are 7 currently) in turn
reference DroidSansFallback.ttf for characters that they don't contain.
mike
Hi,
I already sent this message to android-framework group, but since I
2. Whenever i try to create socket with port and IPaddress i get
IOException which points to a SocketException which gives a message
"unknown socket error -1" , it would be nice if someone could tell the
root cause for this problem. i guess this is something to do with TCP
If so, we could catch the exception and explain to the users that an
error occurred reading the preferences, therefore we need to collect
them again, or reset their preferences to the defaults.
Thanks for the link..
Key question is are the hooks to those library apis already in Android
Sdk?
I am a little confused about the difference between services and
processes in Android. From what I understood:
- each package may run as one process
- therefore an activity is a process
- a service runs in the main thread of an activity (therefore it
needs to run in the same process)
My idea was to use the Brightkite API but they are nto integrated
with Google cloud so not the most ideal solution.
My thrust was to use the clouds to avoid heavy server infrastructures
and thus one of the huge costs of doing a Loopt clone..
Recent comments
43 weeks 6 days ago
45 weeks 4 days ago
46 weeks 5 days ago
46 weeks 5 days ago