Dalvik native libraries thread-safe?

by Pascal Merle » Tue, 03 Mar 2009 01:06:40 GMT

Sponsored Links
 I am using network sockets in a multi-threaded application, and I am
struggling with crashes. Using gdbclient/gdbserver I found it c
crashing in memory allocation. Looks like memory got corrupted

What is your experience/knowledge? Is it okay to run multi-threaded
networking applications on Android?

Dalvik native libraries thread-safe?

by Pascal Merle » Tue, 03 Mar 2009 03:23:35 GMT

 I already found the error in AudioRecord which I also used. Will
post a patch for code review soon.

Sponsored Links

Other Threads

1. Android + Google Apps

Hi all. I've been looking to post for a while but haven't exactly
found the right place to post. Since this is the "watercooler" of
Android, I thought I'd post here.

Now, first and foremost, my experiences with Android have been
positive. Although slow starting, Android is slowly coming into its
own and I think people are starting to realise that. However, it
hasn't been without its problems.

I'm talking about Google Apps (for domains). This is such a grey area
for the G1, surprisingly, and this is where most of my problems lie.
I'll start with the experiences I've had.

1. When first using the phone you are asked to sign into your Google
Account. "Fine", I tell myself. I'll use my Google Apps account. This
works, flawlessly. I'm ecstatic. I login and my contacts, calendar and
email are synced. Straight away. Amazing.

2. Let's check out the Market. Hang on, my Google Account isn't
supported. I've just logged in with my Google apps account and that's
fine but the Market refuses. After a few tries I end up going to my
computer and creating a Gmail account, specifically for the Market.
Fine, this is just for apps. Consider it a security feature,
protecting your apps. Brilliant, I'm buying and downloading apps to my
hearts content. 5 flashlights, 4 soundboards, 3 weather apps, 2 social
networking apps and 1 video player later and I'm happy.

I've been Youtube for a while now and had an old youtube account. I
was given the option to link the account with a Google account so I
used my Google Apps address. Doesn't work. Interesting.

I've kind of figured out by now that a Google apps account != Google
account. So I go off, create an actual google account with my Google
apps email address. That's fine. Created. Done. I have access to
webmaster tools, analytics etc.

I go back to Youtube and link the accounts. All done. My favourites
can be access by logging in with my Google Apps email address.

3. Time to checkout Youtube on the phone. It's all fine. I'm browsing,
I'm watching, I'm laughing. However, my favourites have disappeared.
Hmm. Not sure what's happening here. I press My Account and I'm
greeted with a login box again. "Some applications can't be access
with your x...@xxx.xxx account". I'm confused. I've created an actual
Google account with my hosted email, no different than using a hotmail
address, but it's not being accepted despite having the same
credentials. Okay, just login again. Not accepted. Okay, I'll use my
Youtube account. Not accepted. I get frustrated and exit the app.

Suddenly, a notification appears. Apparently there is now a Sign-in/
Sync error. "Your password isn't valid". There is no username box,
instead there is my Market email account. It's waiting for a password.
At this point I'm really confused, I haven't tried anything with my
Market account. I haven't changed the password, so why should it have
changed? I enter the password, it disappears. I assume this is for my
Youtube app. I re-enter the app and go to My Account. Once again, it
asks for a login.

Basically, I now can't use the account that I normally use to login to
the web based youtube. All my favourites, subscriptions, friends are
gone. I have to create a brand new account, which is highly annoying.

I've now given up. Some parts of the phone sync (admittedly, the
important parts). However, to this day, I'm still confused.

Why does Android accept a Google Apps account for some function but
not for others? Surely they all go through the same login procedure by
now. I've actually though about dumping Google Apps jsut so I can have
a fully integrated experience with my phone. Then again, I could just
go and get an iPhone. I don't want to, I have faith in Android for the
future, but at the moment it annoys the {*filter*}out of me.

Is this likely to be resolved in future? Or do I have to accept the
fact that Google account != Google apps account even though I have
used my Google apps account to CREATE a Google account.

I think this is more of a rant then a question but, to try and neatly
round it all up, what's going on?



2. Activity timeout on WebView load

In my app I have to load external page into WebView-based activity.
Some of my users with slower connections are reporting screen timeout
while waiting for the page to load. What would be a good way of
loading the page on backgorund thread and then refreshing the screen?
Use HttpClient to fetch it and then use WebView#loadData? My fear is -
the page I'm loading is pretty complicated there's some JS that
happens on load - wouldn't I just mess it up? Is there an alternative
way of doing what I need?



3. Timer not available

4. ScrollView not resizing when a a child ListView is populated

5. Android plugin download externally

6. Question on Seekbar - clipping of thumb

7. Can we develop application for CECT G1(Clone g1)?