News aggregator

Re: OutOfMemoryError when switching orientation

Android Developers Discussions - 1 hour 54 min ago
I'm not explicitly passing context around at all but I am using a
ContentProvider which calls getContext()... is that something I should
be handling too?
Categories: Android

Exchanging Messages between services containing Bundles with self developed Parcelables

Android Developers Discussions - 1 hour 59 min ago
Hello,

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();

Categories: Android

sdk 1.0 failed to correctly run code

Android Developers Discussions - 2 hours 1 min ago
I tried the code below in eclipse using android sdk 1.0, but always can't
get the
application to run correctly neither got any of the testing statements in
the logCat, i used to set appServer as the default activity and tried to run
using Run configurations, i'm asking what's wrong and if i have to run the
Categories: Android

Re: [android-developers] Re: how to start the default music application from my own application

Android Developers Discussions - 2 hours 10 min ago
hi Peli,
I tried that code where you have to pass the song number from you
content provider

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.

Categories: Android

Re: [android-developers] Re: Theme setting for all applications

Android Developers Discussions - 2 hours 23 min ago
Thanks for the reply:)I understand that at this point there is no support
for theme switch application which enables an end-user to choice theme from
multiple themes like Windows OS" I am looking forward to this feature to be
delivered from Google.

On the other hand, even if we cannot switch themes, I would like to try to

Categories: Android

Psssing keys for each value in a list view to another view

Android Developers Discussions - 2 hours 45 min ago
hi,

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.

Categories: Android

Re: Starting new Activity vs. setContentPane(newView)

Android Developers Discussions - 3 hours 14 min ago
I'm also not sold on the new Activity for each new screen framework.
Unless your new screen is very generic and can be reused by other
applications (I think this is a very very small minority of all
screens) you are better off using setContentView and/or ViewFlippers.
I first went down the road of new activity for new screens as per
Categories: Android

Re: unknown socket error -1

Android Developers Discussions - 3 hours 24 min ago
You need to add the INTERNET permission to your app in the Manifest.
That should solve the issue
Categories: Android

GridView

Android Developers Discussions - 3 hours 35 min ago
Hello all,

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

Categories: Android

Re: Getting information from the Internet

Android Developers Discussions - 3 hours 38 min ago
Look into HttpClient and related classes

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());

Categories: Android

Re: Standard widget styles

Android Developers Discussions - 3 hours 45 min ago
Yep, that makes sense. Thanks.

However, smth like "table of styles" still would be useful (style and
screenshot).

Categories: Android

Re: SharedPreferences problem

Android Developers Discussions - 3 hours 46 min ago
Ok, then SharePreferences should be ok in multi-threaded applications.

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

Categories: Android

Re: [android-developers] Fwd: Supported unicode characters

Android Developers Discussions - 3 hours 52 min ago
U+2603 is not currently in the android fonts.

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

Categories: Android

unknown socket error -1

Android Developers Discussions - 3 hours 55 min ago
1. Can anyone point me to simple TCP client/server program on
android ??

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

Categories: Android

Re: Windows driver for HTC G1 phone

Android Developers Discussions - 4 hours 21 min ago
On the 64-bit driver issue, [link]
gives a 64-bit version of the Android USB driver. The driver is
unsigned, so you have to run Vista in test mode if you want to use it.
Also, I saw somewhere else on the forum Dan Morrill saying that
Android is working on a 64-bit version of the driver. -- Jon Webb
Categories: Android

Re: SharedPreferences problem

Android Developers Discussions - 4 hours 24 min ago
Is there an exception thrown if the "... next time it is read it is
unable to parse the truncated file."?

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.

Categories: Android

Re: When an app needs Google account credentials...

Android Developers Discussions - 4 hours 32 min ago
Looks like the first and second options listed..

Thanks for the link..

Key question is are the hooks to those library apis already in Android
Sdk?

Categories: Android

(Service == Process)?

Android Developers Discussions - 4 hours 42 min ago
Hi guys,

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)

Categories: Android

Re: When an app needs Google account credentials...

Android Developers Discussions - 4 hours 53 min ago
I'm looking for this as well, to provide access to my google app
engine applications. I'm guessing they store the session
authorization token from AuthSub somewhere (take a look at AuthSub
here: [link]). It's probably
just a matter of understanding where the token is stored so it can be
Categories: Android

Re: When an app needs Google account credentials...

Android Developers Discussions - 5 hours 29 min ago
Yes, I am in need of this research also

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..

Categories: Android
Syndicate content