[android-developers] Job Opportunity: Greenbelt, Maryland

2019-07-17 Thread Christine Reed
 

We are looking to hire a senior software developer who can hit the ground 
running and help us in developing new features for an existing Android 
application, CSPro Android. CSPro Android has currently more than 50,000+ 
installs on Google Play and by the end of 2019, the data collection app 
would have been used in censuses around the world to count a quarter of 
billion people. The candidate will have opportunity to work on cutting edge 
technologies as part of this product development team. The candidate will 
help in development of new UI widgets (capture GPS, photo, multimedia, 
barcode scanning), mapping integration using Google maps SDK or similar API 
and other UI enhancements. 

 

The candidate must have extensive experience in building Android 
applications for tablets/phones using Android Studio and Java. Experience 
with the Android NDK is a plus. 

 

Experience in developing web applications using LAMP stack or Java 
technologies is a big plus. 

 

Experience in developing applications using C++ / .NET would be nice to 
have. 

 

Please contact me at your earliest convenience regarding this position at 
czr...@colemangrpinc.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5251cc6e-76c5-4c17-be48-3a532709b5f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: My android studio suddenly has changed the editor font to enormous.

2014-10-20 Thread Christine
I tried the settings before, didn't work. I deleted the workspace, now the 
font is back to normal.



On Monday, October 20, 2014 4:48:38 PM UTC+2, Marina Cuello wrote:
>
> Hi!
>
> On your Android Studio or File menu (I have a Mac here, not Linux, not 
> sure how or where is it).
> Preferences or Settings (sometimes they change name too, not sure if this 
> is the case)
> Find "Appearence"  under IDE Settings
> Mark "Override default fonts by (not recommended)"
> Choose whatever you want. Apply or Ok
>
> If that's what didn't work for you try this one:
>
> Preferences
> Find "Editor" under IDE Settings
> Choose desired Size
> Look for the "Save as..." button
> Create a new color scheme.
> Select the new profile on the dropbox menu, if it's not selected already.
> Apply or Ok
>
> I hope one of them works for you.
>
> Marina
>
>
>
>
>
> On Mon, Oct 20, 2014 at 4:11 AM, Christine wrote:
>
>> Pinch? My computer doesn't have a touch screen. 
>>
>>
>> On Monday, October 20, 2014 12:29:08 AM UTC+2, Phil Bayfield wrote:
>>>
>>> You can pinch to zoom.
>>>
>>> On Thursday, 16 October 2014 16:03:45 UTC+1, Christine wrote:
>>>>
>>>> My android studio suddenly has changed the editor font to enormous.
>>>> I'm on Ubuntu, changing font size in settings (of android studio) 
>>>> doesn't change the font. The way it is now, it's unusable. What can I do?
>>>>
>>>> Christine
>>>>
>>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-d...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: My android studio suddenly has changed the editor font to enormous.

2014-10-20 Thread Christine
Pinch? My computer doesn't have a touch screen. 

On Monday, October 20, 2014 12:29:08 AM UTC+2, Phil Bayfield wrote:
>
> You can pinch to zoom.
>
> On Thursday, 16 October 2014 16:03:45 UTC+1, Christine wrote:
>>
>> My android studio suddenly has changed the editor font to enormous.
>> I'm on Ubuntu, changing font size in settings (of android studio) doesn't 
>> change the font. The way it is now, it's unusable. What can I do?
>>
>> Christine
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] My android studio suddenly has changed the editor font to enormous.

2014-10-17 Thread Christine
Eclipse?

On Thursday, October 16, 2014 5:17:45 PM UTC+2, RKJ (Android developer) 
wrote:
>
> Goto windows menu in eclipse, then preferences, then type font in search 
> box at top left corner , then change font size and color accordingly
>
> Rakezh
> On Oct 16, 2014 8:38 PM, "Christine" > 
> wrote:
>
>> My android studio suddenly has changed the editor font to enormous.
>> I'm on Ubuntu, changing font size in settings (of android studio) doesn't 
>> change the font. The way it is now, it's unusable. What can I do?
>>
>> Christine
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-d...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] My android studio suddenly has changed the editor font to enormous.

2014-10-16 Thread Christine
My android studio suddenly has changed the editor font to enormous.
I'm on Ubuntu, changing font size in settings (of android studio) doesn't 
change the font. The way it is now, it's unusable. What can I do?

Christine

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to get support for your Android app in Google Play? Any Developer Support Manager in this group?

2013-04-22 Thread Christine Fawcett
How did you get some help with this? Our Developer Console account was 
broken two weeks ago when I deleted a binary and they simultaneously 
deleted a binary which had an expansion file attached that was being used 
by the other binaries. That app disappeared from the store, and we can no 
longer access any of our other apps from the console - not for bug reports, 
product updates, anything.  Over a week after I submitted the help request 
we were asked to submit a new binary and expansion file and unpublish the 
problem app! We can't access the apps! I sent them a new binary and 
expansion file and have still not heard back. How do we get them to fix 
this? 

Appreciate any advice you can give

Christine

On Friday, October 26, 2012 9:50:31 AM UTC-7, LL wrote:
>
> Let me try to provide detailed description of the problem - hopefully 
> it'll help to explain my situation. My company published pretty good 
> language learning application 2 years ago to Google Play (then Android 
> Market). Over those 2 years - everything was going OK, app is pretty well 
> implemented, it was selling well, customers were happy, all in all - great 
> times.
>
>
> About a 45 days ago, it was decided that we tweak description a bit since 
> it's been two years and we did it. But then, all of sudden about two weeks 
> ago, our application disappeared from Google Play. We got our developer to 
> login into Console and there he found that it was for some reason 
> Suspended. We were of course shocked and sent email to Google Play 
> developer support - no response came back.
>
>
> After a day of investigation our developer finally came back with some 
> idea of what happened - apparently on Sept 19th Google sent email 
> notification to email developer used to open Market account. In email it 
> was said that we need to change description since the one we posted 
> "contained keywords" and they gave us 7 days to do so. Obviously, we missed 
> that deadline - but are now in terrible situation.
>
>
> We have tens of thousands of people who paid for the app and now can't 
> install it when they get new device. Because this was "minor offense" (even 
> though we weren't aware of the problem and would of course fix the damn 
> description if our developer checked his email), we are allowed to upload 
> APK under new namespace - but this would leave existing customers without 
> updates - and they would be furious (and rightfully so).
>
>
> So, what to do? Do you have any advice on how to get in touch with some 
> manager from Google Play developer support and make this right? Because we 
> have tried emailing support - after sending 10 emails we finally started 
> getting generic "we've are unable to reinstante your app" messages back - 
> but trying to talk with them is obviously impossible! They don't read at 
> all what we write, they just copy-paste that "fix your application and 
> upload it under new package _if you are allowed_" (even though there was 
> never problem with the app). And in the meantime, we need to deal with tens 
> of thousands of both ours and Google's customers that paid serious money to 
> have the app, and are now angry that they can't download or update the app 
> - simply because of minor mistake in description.
>
>
> Thanks in advance for any help!
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Persistence of complex Java objects (SQLite, Serialization, JSON) and client-server app architecture

2011-11-24 Thread Christine Daunique
I'm working on an Android application which is fetching data from
internet among other things. Actually, the project was started by
someone else which is not here anymore, and now that I have to turn it
into a light client application and implement the server side (in
Java), I'm wondering what would be the best tools/patterns to use to
fit my needs.

Let's say I have to deal with several models (class representing a
category) of objects which all inherits from one class : they have
common attributes (such as name, attache thumbnail...) but specific
properties too. Because of this,you can understand that I can't afford
to manage one specific table to map each single class.

However, I still want to be able to cache my objects somewhere in the
Android device to populate the views of the application when working
in offline mode.

Currently, the solution used by the previous developer was to store
data directly into a TEXT field in the SQLIite database, as serialized
objets. This should be ok on the server side but I've read that the
usual Java serializaton was very slow on the Android platform,
although it is not really noticeable now because I work with around
~50 objects, I was looking for more performant alternatives for the
future.

I've came across the JSON solution which can easily handle complex
structures and Jackson library seems very interesting with its
simplified data binding to POJO objects and its well-known
performance. But then, how should I store my Json objects ? Is it
possible to keep a json string in a TEXT field of a SQlite table ? Or
should I rather store them as .json file for each object ? Which one
is the more efficient to retrieve later lot of data?

Plus, I was thinking that JSON would be a very good exchange format
between the Android client application and my server whould is in
charge of processing the information from internet third-parties apis
and exposing this data with webservices.
Is using the usual Apache HTTPClient enough on Android to communicate
with the server?

For those who successfully developped client-server application (which
seems very common to me) is this a good approach for Android ? It
seems to me that with mobile platforms, you can't really use the
approach that you've learned for more classic J2EE app and such... Any
advice would be greatly appreciated because I'm a student and Android
beginner who really want to improve her mobile development skills !

Thanks :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] StackView (Android 3.0+) and OnItemSelectedListener

2011-11-03 Thread Christine Daunique
Hello,

In Stackview, it seems that OnItemSelectedListener (from superclass
"AdapterView") is never called...
How can I trigger some event when the view on top of the stack is
changed by the user ?

I want to display some text to show the position of the current item
inside the stack. so the textview should be updated with the user
selection.

Thanks,

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Buttons position for AlertDialogs in Android 4.0/SDK 14

2011-10-20 Thread Christine Daunique
Hello,

I was wondering why the position of "ok" and "cancel" buttons  on
AlertDialogs are switched in the new Theme of Android Ice Cream
Sandwich ?
If I look in the API demos, if "Traditional theme" is used for Dialogs
and not "Holo Theme", Dialogs display "ok" and "cancel" from left to
right, as usual (and as it did in Honeycomb)

What is the reason for that new behavior ? Would it not be weird for
users ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Service Implemenration

2011-08-02 Thread Christine
http://developer.android.com/guide/topics/fundamentals/services.html
http://developer.android.com/guide/developing/tools/aidl.html

There is an example of a service in the api demos.

On Aug 2, 1:34 pm, Sivaprakash  wrote:
> Hi
>
> I have a back ground service which is responsible for reading content from
> the mobile (on-demand) and send to Server through web service. When ever I
> call the service by default it is hitting onStart and from there I am
> creating separate thread to handle each request because the service might
> get multiple request at a same time. Is it a right approach or any hiccups?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Skinning an app

2011-08-01 Thread Christine
I have tried whitelabeling an app, so I can use the same codebase for
a number of customers. What's different in the apps is the graphics,
styles and layouts, not the code. The best way I could think of is
have an ant script that copies the res folder and the manifest file
into a separate project, and copy it back to the main project. By
running this ant script I switch between skins. But there must be a
more elegant way of having skins for an app. Styles won't do it,
because that's too limited, you can only change android: attributes,
not layouts and drawables.
Wouldn't it be nice if a Theme didn't just have it's own styles, but
also its own res folder?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android service

2011-07-15 Thread Christine
What exactly do you want to achieve? When the user stops your service,
they have a reason to do so, so I don't think the app should
automatically restart it.


On Jul 15, 9:31 am, yanamala siddaiah 
wrote:
> If service stopped by user or any other situation . I want to start
> the service again .
> or
>
> user dont want stop the service delete the option to user to stop the
> service for our app.
>
> is there any flags ..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ninepatch

2011-07-15 Thread Christine
First read docs, then ask here.

http://developer.android.com/guide/developing/tools/draw9patch.html


On Jul 15, 10:34 am, arun kumar  wrote:
> Hi
> how to make background image as nine patch image.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: accessing sqlite db

2010-05-12 Thread Christine
1. where you open and close depends on your app. You can keep the db
open, and close and re-open in onResume and onPause, or you can open
and close before and after you access the db.

3. just retrieve the data that you need in the getView of your list
adapter, don't retrieve complete tables if you don't need them. Of
course, it depends on your app and on the size of the table whether
you want to keep the table in memory or not.

On May 9, 4:22 pm, kamiseq  wrote:
> hi,
> Im starting with android and have few questions about database access.
>
> 1. Every tutorial I ve read (ie Notepad) that uses sqlite creates and
> opens connection via SQLiteOpenHelper in onCreate callback. but I
> really have never seen that the connection is closed (androids throws
> exceptions that there is a leak as connection is never closed). So I
> assume that onSaveInstanceState is the best bet to close as onCreate
> opens the connection. but maybe it should be sooner - something like
> onResume (for open) and onPause (for close). or maybe those tutorials
> are too trivial and I should create another layer for accessing data
> in services, so that data could be shared between activities and
> wouldn't suffer from activity life cycle.
>
> the only thing is that the exception is thrown after a while - not
> immediately after destroying activity
> D/MyMainActivity :(  305): on Pause.
> D/MyMainActivity :(  305): on Stop.
> D/MyMainActivity :(  305): on Destroy.
> D/dalvikvm(  101): GC freed 408 objects / 18416 bytes in 78ms
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=info.kami
> D/MyMainActivity :(  305): on create.
> D/MyMainActivity :(  305): on Start.
> D/MyMainActivity :(  305): on Resume.
> I/ActivityManager(   55): Displayed activity
> my.app.android/.MainActivity: 664 ms (total 664 ms)
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN cat=[android.intent.category.HOME]
> flg=0x1020 cmp=com.android.l
> D/MyMainActivity :(  305): on Pause.
> D/MyMainActivity :(  305): on Stop.
> I/ActivityManager(   55): Starting activity: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=info.kami
> D/MyMainActivity :(  305): on Restar.
> D/MyMainActivity :(  305): on Start.
> D/MyMainActivity :(  305): on Resume.
> D/dalvikvm(  305): GC freed 5465 objects / 347528 bytes in 95ms
> E/Database(  305): Leak found
> E/Database(  305): java.lang.IllegalStateException: mPrograms size 1
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.finalize(SQLiteDatabase.java:
> 1668)
> E/Database(  305):      at dalvik.system.NativeStart.run(Native
> Method)
> E/Database(  305): Caused by: java.lang.IllegalStateException: /data/
> data/my.app.android/databases/data SQLiteDatabase created and never
> closed
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:
> 1694)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
> 738)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
> 760)
> E/Database(  305):      at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
> 753)
> E/Database(  305):      at
> android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:
> 473)
> E/Database(  305):      at
> android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:
> 193)
> E/Database(  305):      at
> android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:
> 98)
> E/Database(  305):      at
> my.app.android.dao.SQLiteTemplate.openToReadWrite(SQLiteTemplate.java:
> 60)
> E/Database(  305):      at
> my.app.android.dao.SQLiteCallDao.open(SQLiteCallDao.java:54)
> E/Database(  305):      at
> my.app.android.MainActivity.getDao(MainActivity.java:102)
> E/Database(  305):      at
> my.app.android.MainActivity.onCreate(MainActivity.java:53)
> E/Database(  305):      at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> E/Database(  305):      at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2459)
> E/Database(  305):      at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2512)
> E/Database(  305):      at android.app.ActivityThread.access
> $2200(ActivityThread.java:119)
> E/Database(  305):      at android.app.ActivityThread
> $H.handleMessage(ActivityThread.java:1863)
> E/Database(  305):      at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/Database(  305):      at android.os.Looper.loop(Looper.java:123)
> E/Database(  305):      at
> android.app.ActivityThread.main(ActivityThread.java:4363)
> E/Database(  305):      at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/Database(  305):      at java.lang.reflect.Method.in

[android-developers] Re: how can i set up my Nexus one as external device to develop under Debian 5.0?

2010-05-12 Thread Christine
Did you update your rules.d file? dit you put in the right vendor
code? The vendor code is different from the one for other HTC devices.

On May 11, 1:33 pm, Luis Clemente Morera
 wrote:
> Hello,
>
> I'm trying to set up my Nexus One under Debian 5.0 to use it as
> testing device but I can't. I followed the ubuntu steps but it doesn't
> work. Can you help me?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how can i set up my Nexus one as external device to develop under Debian 5.0?

2010-05-12 Thread Christine
Did you update your rules.d file? dit you put in the right vendor
code? The vendor code is different from the one for other HTC devices.

On May 11, 1:33 pm, Luis Clemente Morera
 wrote:
> Hello,
>
> I'm trying to set up my Nexus One under Debian 5.0 to use it as
> testing device but I can't. I followed the ubuntu steps but it doesn't
> work. Can you help me?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] button background hangs, or disappears

2010-03-16 Thread Christine
hi,
I have a button that shows exactly as it should, until I have clicked
it, then it doesn's show it's background any more. The funny thing is
that all other buttons of the same style loose their backgrounds as
well. Sometimes the opposite happens: all backgrounds in my app get
the button background.

The style that defines the button is


wrap_content
wrap_content
@color/button_text
16sp
10dip
10dip
3dip
3dip
center_vertical
@drawable/mybutton


The statelist "mybutton" is


http://schemas.android.com/apk/res/android";>






I have tried extending the Button class and set the backgroundDrawable
from there, to no avail. How can my button make other similar buttons
in different activities disappear? How can my button background show
up in activities that don't have any buttons?

Help is appreciated :-)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] style problem in 1.5

2010-03-01 Thread Christine

I have an image of 320px wide and 454px high that I display as the
background of a linearlayout with the following style:

<item name="android:layout_width">320dip</item>
<item name="android:layout_height">454dip</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:orientation">vertical</item>
<item name="android:paddingTop">35dip</item>


this is the layout:


In the values-hdpi styles file I have larger dimensions for a graphic
that is larger, in the drawable-hdpi folder.This works, I get proper
sizing on all phones and emulators that I have tested, except that on
a 1.5 phone the image is larger than the screen. Now, when I add width
and height identical to the ones in the styles file, to the layout
file, the image displays properly. Like so:

    

I'm sure I'm missing something, a simple typo I'm overlooking, but for
now, I'm at a loss...

dagdag
Christine

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: where to store files?

2010-02-26 Thread Christine
I put them on the sdcard so my app doesn't use more memory than
necessary and the user can see the files and they can delete them if
they don't like them.

On Feb 26, 9:47 am, kavitha  wrote:
> Hi All,
>
> I am in confusion,where to store my data files.
>
> Which is convenient?
>
> 1.sdcard
> 2.cache of context
> 3.data folder of package
>
> Thanks
> Kavitha

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: why I can't see google's nexus one from eclipse

2010-02-25 Thread Christine
I don't see the Nexus One in DDMS on my 64bits Ubuntu Linux, while all
other HTC phones do show up. I added vendor code 18D1, for some reason
the Nexus uses a different vendor code. Linux does see the Nexus for
file transfer, so the problem is in the adb, not in linux.

On Feb 25, 8:39 am, DonFrench  wrote:
> Yes, with XP-64, for which there seems to be no solution.  What OS are
> you using?
>
> On Feb 24, 8:11 pm, pohtzeyun  wrote:
>
> > Same thing happened to me but it happened AFTER i applied the update
> > 1. Anyone in the same situation as me? :)
>
> > On Feb 17, 1:42 am, cindy  wrote:
>
> > > I need to test my application onnexusone. Why I could not see the
> > > device (connected to my USB port, with USB enable) from eclispe?
>
> > > Thanks!
>
> > > Cindy
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to drag and drop items of ListView?

2010-01-28 Thread Christine
On Jan 28, 12:28 pm, pink 444  wrote:
>     I have to drag and drop items of ListView,which typically have an
> image and text.
>
>     How can i implement this.

There's no built-in drag and drop, you have to implement it yourself.
If you want to have a graphic representation of the items while
dragging, you have to use a graphic overlay, I guess.


>
> Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: sdk setup.exe and windows 7

2010-01-27 Thread Christine
A coworker told me that he had to create a symlink from the adk folder
on C: to D: or vice versa before he got the sdk to work on windows 7.

On Jan 27, 9:01 am, Droidy  wrote:
> Run the SDK from a command line prompt that you have
> made yourself or type command in the start box on windows
> and CD to your sdk directory.
>
> Then the dos box does not vanish and you can read the error.
>
> On Jan 27, 12:03 am, Andrew Green  wrote:
>
> > Hi
> > I have been unable to run the "sdk setup.exe" on windows 7. A black
> > command line box appears for half a second then stops. No error
> > message is in the console. I know the requirements do not mention
> > windows 7. Though I'm hoping it works.
> > So anyone have any idea how to get this to work?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: unit testing

2010-01-26 Thread Christine
Hi Diego,
thanks for the link. I had already given them a link to your blog,
I'll send them the slideshare link too.

dagdag
Christine

On Jan 26, 2:32 am, Diego Torres Milano  wrote:
> Hi Christine,
> This presentation is very brief but could 
> help:http://www.slideshare.net/dtmilano/testing-on-android
>
> On Jan 26, 12:44 am, Christine  wrote:
>
> > Thanks for the replies. Actually, I'm not stuck with testing, I use
> > android unit testing and I'm quite satisfied with it. Right now I'm
> > looking for a good intro on Android unit testing for a coworker.
>
> > On Jan 26, 12:25 am, "Fred Grott(Android 
> > Expert,http://mobilebytes.wordpress.com)"
>
> >  wrote:
> > > you can only use those mocks supplied by google Sdk..not mockkit..
>
> > > What areas are you getting stuck at?
>
> > > On Jan 25, 1:33 pm, ko5tik  wrote:
>
> > > > On Jan 25, 5:38 pm, Christine  wrote:
>
> > > > > I need a reference to an introduction to Android unit testing for a
> > > > > coworker, but the SDK docs don't seem to provide an introduction. I
> > > > > myself used the apidemos and the api docs, but I was wondering if
> > > > > there's a concise intro to Android unit testing?
>
> > > > Well, there is at least some support for unit testing in IDEA plugin,
> > > > but
> > > > testing occurs only on device or emulator (sloow...)  - as
> > > > libraries used
> > > > to compile against contain merely stubs
>
> > > > However,  you can employ mock frameworks ( I played around today )  -
> > > > but you have to use something really powerfull ( I stuck with
> > > > mockit ,
> > > > as jmock has problems in mocking concrete final classes )

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: unit testing

2010-01-25 Thread Christine
Thanks for the replies. Actually, I'm not stuck with testing, I use
android unit testing and I'm quite satisfied with it. Right now I'm
looking for a good intro on Android unit testing for a coworker.

On Jan 26, 12:25 am, "Fred Grott(Android Expert, 
http://mobilebytes.wordpress.com)"
 wrote:
> you can only use those mocks supplied by google Sdk..not mockkit..
>
> What areas are you getting stuck at?
>
> On Jan 25, 1:33 pm, ko5tik  wrote:
>
> > On Jan 25, 5:38 pm, Christine  wrote:
>
> > > I need a reference to an introduction to Android unit testing for a
> > > coworker, but the SDK docs don't seem to provide an introduction. I
> > > myself used the apidemos and the api docs, but I was wondering if
> > > there's a concise intro to Android unit testing?
>
> > Well, there is at least some support for unit testing in IDEA plugin,
> > but
> > testing occurs only on device or emulator (sloow...)  - as
> > libraries used
> > to compile against contain merely stubs
>
> > However,  you can employ mock frameworks ( I played around today )  -
> > but you have to use something really powerfull ( I stuck with
> > mockit ,
> > as jmock has problems in mocking concrete final classes )
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] unit testing

2010-01-25 Thread Christine
I need a reference to an introduction to Android unit testing for a
coworker, but the SDK docs don't seem to provide an introduction. I
myself used the apidemos and the api docs, but I was wondering if
there's a concise intro to Android unit testing?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] RoboGuice

2010-01-25 Thread Christine
I'm using RoboGuice, for a few days now, and so far I like it. Does
anyone else use RoboGuice?

http://code.google.com/p/roboguice/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-20 Thread Christine
Let's not whine. Android is a new platform, manufacturers are trying
out business models, they experiment with hardware and software, but
I'm sure that the world will converge towards a platform that will
allow us to write apps for all phones that run Android, give or take a
few phones that are "different" because they run "Android".

I use beta testers. I give them a button in my app that sends me the
logcat output. If needed, I call them. They send me email. In most
cases, that suffices to solve problems. If one model of phone doesn't
run your app, you can add a few lines of code that pops up a window on
that particular phone saying that your app doesn't support their
phone, but you'd appreciate their help in fixing the problem.

This thread would make an interesting subject for a session at
GoogleIO. If Google doesn't plan such a session, we could agree to
meet in the sidelines of the conference, I'm sure they'll give us a
room for that, and we can invite Google staf - and HTC,Samsung,Sony,
Motorola staff - to our meeting.

Christine

On Jan 19, 9:31 pm, TreKing  wrote:
> Very interesting thread so far. I completely agree with the sentiment that
> continuing to develop and support an app on Android with all the differences
> in platforms and versions available is making a developer's life difficult.
> Especially with the complete lack of basic but essential functionality in
> the Android Market (no way to see comments in the console, no way respond to
> comments, STILL stuck with 325 character limit, 2 screenshot limit ... the
> list goes on and on).
>
> Regarding the issue of getting low ratings on the Market because of all
> these variations: personally, I've given up on waiting for the Market team
> to address these issues and have, instead, used the only means I have to
> communicate with users - the app itself. With each update I show users a
> series of dialogs that:
>
> 1 - Provide a detailed account of what's new in each release with clear
> instructions on how to use the new features or what bugs were fixed
> (something that, as a user, annoys me that more developers don't do). This
> also saves me from wasting any of my precious 325 characters on what's new.
>
> 2 - Lists all negative comments on the market with a response from me for
> each so users know I take that feedback seriously and am aware of their
> issue. Yeah, you can respond to the the latest comment on the market with
> your own, but you can only leave one comment at any given time and that
> leaves others unaccounted for. Plus, many people leave comments and never
> bother updating or checking in again. This way it's in their face so to
> speak when they update and serves as a reminder to update their comments
> (assuming they haven't un-installed and moved on).
>
> 3 - Reminds users that there are so many variations of phones and Android
> versions that it's pretty much impossible for me test everything, that I
> have no way of responding to these market comments, and if they have any
> issues or questions they should email me and give me the chance to fix their
> issues before leaving comments.
>
> I find this to work very well. I don't have a single "Force Closed.
> Uninstalled" 1 star comment on my apps. In fact, quite the opposite, I get
> quite a few high ratings for providing good support.
>
> Remember, most users have no idea what we as developers have to deal with.
> All they know is whether your app works or not on their particular device
> and that the market is the quickest and easiest way to leave you feedback
> (especially if they're having issues). Ideally Google would have all these
> issues ironed out but that's obviously not realistic so it's up to you to
> educate them on the limitations you have to work with.
>
> -
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Christine
It's good to see Google staff take this issue seriously :-)

I'll repeat my personal opinion that fragmentation will not be so much
of an issue, unless you desperately need 2.x features in your app, in
which case you'll have to accept a <1% market share of your app.

On Jan 18, 9:45 pm, Dianne Hackborn  wrote:
> On Mon, Jan 18, 2010 at 11:58 AM, JP  wrote:
> > >http://android-developers.blogspot.com/2009/04/backward-compatibility...
> > This means having to cut off users on older Android releases, no?
>
> Um.  No?  The entire article is about how to use newer APIs while remaining
> compatible with older platforms.  Am I missing something?
>
> > Kevin illustrates the problem nicely.
>
> What is that exactly?  I see him talking about incompatible manufacturer
> customizations and how fixing those are the responsibility of the
> manufacturer (true), about newer platform versions being compatible with
> older ones and maintaining support for older ones not being a big deal, and
> concern about minSdkVersion not filtering app from older platforms which
> should definitely not be true.
>
> I'd just like to understand what the specific concern is.
>
> > It is different in that XP through Windows 7 have been released over
> > the course of, what, eight years now?
>
> True, we have gone through a number of releases in the last year.  Of course
> windows has also gone through lots of service packs etc.  But regardless, in
> both cases basically one release builds on another, so you are looking at
> targeting release X through Y and whatever number of intermediate steps
> there are between is not that much of an issue (though you will certainly
> want to be testing against intermediate release to verify there are no
> surprises).
>
> > Users are much more educated and
> > experienced in what to expect. At work, I, like many users
> > (hopefully), "just" pick up the phone or send an email, and the
> > problem will be taken care of.
> > On a mobile device however... it just kindof ought to work, which
> > isn't an unreasonable expectation. Being facetious with the backwards
> > logic, the level of support that Google set aside to support the
> > release of the N1 seems to confirm that idea.
>
> Sorry I am really not following this part. :}  Yes, you should be able to
> just pick up a phone and use it, and for the most part that is the case (as
> long as developers properly mark their minSdkVersion to not be visible on
> older platforms, and the occasional manufacturer-specific bug here and
> there).  I don't know how much support you think Google set aside for the N1
> (was it large or small?  support for what?) so I am pretty lost there.
>
> > As far as OS X goes, during a couple of years of transition, Apple
> > supported "fat" binaries just like they did when they switched
> > OpenSTEP from Motorola to Intel a decade earlier. There's experience
> > with that, and in the mobile environment, this is all new stuff and
> > needs to be managed accordingly, IMHO.
>
> Sure and when 1.6 came out to introduce new screen support, it also included
> a lot of compatibility design and code to ensure that existing applications
> would work on the new screens.  (Or when not possible, such as QVGA screens,
> require that applications be explicitly updated and marked as compatible
> with them before allowing them to be available to users of those devices).
>
> What's different here?
>
> > I want to add, no question of course, it would be unjust to criticize
> > anybody that an expectation wasn't set that Android would be subjected
> > to a degree of fragmentation when Android was first released
> > "wayback". Yet, here we are, and it would be disappointing to see the
> > issue glossed over.
>
> I'm not sure how things are being glossed over...?
>
> --
> 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.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Christine
I agree with Mark that older apps, like 1.6 apps, run "happily" on
newer sdks. Most apps can do without the newer features, if you accept
that sometimes you have to do more work, or the feature you build is
slightly less attractive. Or, you can have a Factory class that
returns the right version class to use. As far as I have seen, you can
have 2.1 classes in a 1.6 app, as long as you don't instantiate them.

On Jan 18, 10:26 am, Christine  wrote:
> What I said is that you _can_ specify that a user sees only the one
> relevant version of your app in the mp. The mp _does_ read
> minsdkversion and maxsdkversion.
>
> On Jan 17, 11:14 pm, Kevin Duffey  wrote:
>
> > Man..now that sucks. That is a bug if you ask me.. the market should NOT
> > show a 1.5 users a 1.6 SDK app update. That's just pure stupidity. That
> > makes no sense at all and I am shocked and disturbed that this is how it
> > works. They basically want you to submit a brand new 1.6 app so that 1.5
> > users don't get the update.. how hard is it to actually put a little code in
> > the market app that checks the min SDK and even IF the user has the app, if
> > their OS is not 1.6, don't show it. Very bad design of the market app
> > developers/designers.
>
> > On Sun, Jan 17, 2010 at 2:03 PM, Christine 
> > wrote:
>
> > > On Jan 17, 9:26 pm, Kevin Duffey  wrote:
> > > > First.. let me ask for those of you that have apps in the market.. if I
> > > have
> > > > a 1.5 version out there.. it shows up on any device that is 1.5 or 
> > > > later,
> > > > right? Now..if I update it to run on 2.0.. will the update be made
> > > available
> > > > or even notify 1.5/1.6 users? Or does it only show up for 2.0 and later
> > > > users in their market?
>
> > > By specifiying minSdkVersion and maxSdkVersion, you can provide
> > > different versions for different sdks. Every user would only see one
> > > version in the market, if I'm not mistaken. But you don't really want
> > > to do that unless you really need those different versions.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Christine
What I said is that you _can_ specify that a user sees only the one
relevant version of your app in the mp. The mp _does_ read
minsdkversion and maxsdkversion.

On Jan 17, 11:14 pm, Kevin Duffey  wrote:
> Man..now that sucks. That is a bug if you ask me.. the market should NOT
> show a 1.5 users a 1.6 SDK app update. That's just pure stupidity. That
> makes no sense at all and I am shocked and disturbed that this is how it
> works. They basically want you to submit a brand new 1.6 app so that 1.5
> users don't get the update.. how hard is it to actually put a little code in
> the market app that checks the min SDK and even IF the user has the app, if
> their OS is not 1.6, don't show it. Very bad design of the market app
> developers/designers.
>
> On Sun, Jan 17, 2010 at 2:03 PM, Christine wrote:
>
> > On Jan 17, 9:26 pm, Kevin Duffey  wrote:
> > > First.. let me ask for those of you that have apps in the market.. if I
> > have
> > > a 1.5 version out there.. it shows up on any device that is 1.5 or later,
> > > right? Now..if I update it to run on 2.0.. will the update be made
> > available
> > > or even notify 1.5/1.6 users? Or does it only show up for 2.0 and later
> > > users in their market?
>
> > By specifiying minSdkVersion and maxSdkVersion, you can provide
> > different versions for different sdks. Every user would only see one
> > version in the market, if I'm not mistaken. But you don't really want
> > to do that unless you really need those different versions.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Christine
On Jan 17, 9:26 pm, Kevin Duffey  wrote:
> First.. let me ask for those of you that have apps in the market.. if I have
> a 1.5 version out there.. it shows up on any device that is 1.5 or later,
> right? Now..if I update it to run on 2.0.. will the update be made available
> or even notify 1.5/1.6 users? Or does it only show up for 2.0 and later
> users in their market?

By specifiying minSdkVersion and maxSdkVersion, you can provide
different versions for different sdks. Every user would only see one
version in the market, if I'm not mistaken. But you don't really want
to do that unless you really need those different versions.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Spinners

2009-12-29 Thread Christine
Just a piece of advice, when you have so many seemingly identical
textviews and spinners, it may be convenient for you to put the
attrebutes in a style and associate the styles with the spinner and
the textview. That way, you can change the layout and settings of all
spinners and textviews in one place. Saves you some typing too.


On Dec 30, 1:12 am, Brion Emde  wrote:
> At least one of your Spinners has android:layout_height="fill_parent".
> that could mess you up.
>
> On Dec 29, 12:47 pm, Duey Oxburger  wrote:
>
> > Hey All,
>
> > A spinner question:
>
> > I want to have multiple spinners working in the same view.  In my
> > list, the first spinner works, but the others are empty. Here's how my
> > main.xml looks:
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >     android:orientation="vertical"
> >     android:padding="10dip"
> >     android:layout_width="fill_parent"
> >     android:layout_height="wrap_content">
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Build your Squad:"
> >     />
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 1:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     />
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 2:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     android:layout_height="fill_parent"/>
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 3:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     />
>
> >          >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 4:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     />
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 5:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     />
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 6:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     />
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 7:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     />
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 8:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:drawSelectorOnTop="true"
> >         android:prompt="@string/planet_prompt"
> >     />
>
> >      >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:layout_marginTop="10dip"
> >         android:text="Unit 9:"
> >     />
>
> >      >         android:id="@+id/spinner"
> >         android:layout_width="fill_pa

[android-developers] Re: open sourcing an app

2009-12-29 Thread Christine
Thanks for pointing that out, I should have done a search first :-)

On Dec 29, 11:52 pm, Greg Donald  wrote:
> On Tue, Dec 29, 2009 at 4:39 PM, Christine  wrote:
> > I haven't seen many open source android apps yet.
>
> There are quite a few actually:
>
> http://code.google.com/hosting/search?q=label:android
>
> --
> Greg Donaldhttp://destiney.com/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] open sourcing an app

2009-12-29 Thread Christine
I haven't seen many open source android apps yet. Can I make my app
gpl open source just like that? Or do I have to include legal
statements regarding the Android code that my app is using?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-17 Thread Christine
There's a reason for onCreate(), onStart(), etc. to be called when
they are called. If there's code that you don't want to have executed
when onCreate() is called, don't put it in onCreate(). In onCreate()
you can check what the situation is, and act accordingly, like take
different actions depending on whether savedInstanceState == null.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Service thread priority

2009-12-17 Thread Christine
On Dec 17, 12:33 am, Dianne Hackborn  wrote:
> You should be nice.  As of 1.6, processes running in the background have
> their threads forced into a background scheduling class so they can't
> disrupt the foreground UI.

Why, that's good news. Soon as carriers upgrade the phones to 1.6 or
higher, I can remove some of my code. Unfortunately, Vodafone has
their Hero phones on 1.5 and they don't seem to plan to upgrade, I
guess the same is true for other carriers.
But anyway, it's a very good move to have background threads in a
lower priority.


>
> On Wed, Dec 16, 2009 at 3:05 PM, Christine wrote:
>
>
>
> > I have two apps that use a service to upload and download files and
> > data. I've noticed that when the service gets very busy, it can cause
> > the UI to block, up to the point that Android shows a "force quit/
> > wait" popup. In order to avoid that, I run tasks in a service at a
> > lower priority. This way, the service will never cause the UI to
> > hickup. Also, the service stops if the app hasn't been used for a
> > certain number of minutes. I don't want to keep resources if the user
> > isn't using my app.
>
> > I have found that some of my users run apps that run services
> > permanently at normal priority. Such a service starts at phone switch
> > on, and keeps running indefinitely, downloading vast amounts of data.
> > My policy of being nice to other apps doesn't pay off: these agressive
> > third party services push my service away so it never gets anything
> > done. As one of my users told me, my app has hickups, until he kills
> > the service of this app X, after which my app runs smoothly, snappy,
> > and fast.
>
> > My question is, should I be nice to other apps and to the UI in my own
> > app, or should I just run a service and agressively take all resources
> > I need - or don't need? This is one issue where Android is different
> > from iPhone. We can run services, but by doing so, we can cause damage
> > to other peoples apps. Of course, my "question" doesn't require an
> > answer. I'm just curious after what other people think, what your
> > experience here is.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ListView

2009-12-16 Thread Christine
On Dec 16, 11:40 pm, Dirk Vranckaert  wrote:

> I'm trying to use a ListView but can't get it to work. Is there any
> good example?

Actually, the Android samples that are available on the Android
developer web site contain a number of good examples. In using a List
view, there's a trade off between simplicity and performance. You'll
see examples with ViewHolders that give you better performance but are
harder to grasp. I suggest you take a very simple example and get that
to work, then improve it by adding better performance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Service thread priority

2009-12-16 Thread Christine
I have two apps that use a service to upload and download files and
data. I've noticed that when the service gets very busy, it can cause
the UI to block, up to the point that Android shows a "force quit/
wait" popup. In order to avoid that, I run tasks in a service at a
lower priority. This way, the service will never cause the UI to
hickup. Also, the service stops if the app hasn't been used for a
certain number of minutes. I don't want to keep resources if the user
isn't using my app.

I have found that some of my users run apps that run services
permanently at normal priority. Such a service starts at phone switch
on, and keeps running indefinitely, downloading vast amounts of data.
My policy of being nice to other apps doesn't pay off: these agressive
third party services push my service away so it never gets anything
done. As one of my users told me, my app has hickups, until he kills
the service of this app X, after which my app runs smoothly, snappy,
and fast.

My question is, should I be nice to other apps and to the UI in my own
app, or should I just run a service and agressively take all resources
I need - or don't need? This is one issue where Android is different
from iPhone. We can run services, but by doing so, we can cause damage
to other peoples apps. Of course, my "question" doesn't require an
answer. I'm just curious after what other people think, what your
experience here is.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADT installation on Ubuntu 9.10

2009-11-28 Thread Christine
I don't think you need gef for the adt plugin, but if you want it, how
about eclipse.org/gef?

There are some problems with Karmic Koala and Eclipse regarding the
GUI. These should be fixed in Eclipse 3.5.2.

On Nov 27, 7:13 am, boyjunkie  wrote:
> Hi,
>
> I have installed Karmic Koala (Ubuntu 9.10) and have installed Eclipse
> 3.5 (Galileo) on the same. When I tried to install ADT, I am getting
> the following  error message:
>
>  "Cannot complete the install because one or more required items could
> not be found.
>   Software being installed: Android Development Tools
> 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group
> 0.9.4.v200910220141-17704)
>   Missing requirement: Android Development Tools
> 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group
> 0.9.4.v200910220141-17704) requires 'org.eclipse.gef 0.0.0' but it
> could not be found"
>
> Can someone point me to where I can find this missing plugin?
>
> Thanks,
> Ganesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Service stops?

2009-10-24 Thread Christine


On Oct 24, 7:52 pm, Dianne Hackborn  wrote:

> From what I have heard so far, my suspicion is that whatever the original
> code is, it is really not using these things correctly at all.

If you mean that I shouldn't rely on side effects, you're totally
right. I'm now looking for a more proper solution to my issue.

>
> --
> 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.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Service stops?

2009-10-24 Thread Christine

On Oct 24, 6:47 pm, Mark Murphy  wrote:

> Why aren't you scheduling this in the Activity, and just calling to the
> Service when the time has elapsed? If the answer is "I want it to fire
> even if the Activity is gone", AlarmManager may be a better choice.

Actually, the activity hands some data to the service to process,
triggered by a user action. Typically, a user would do this several
times in a row, so I figured it would be nice if the service wouldn't
stop immediately, but just wait for a couple of minutes. I don't want
the service to keep running indefinitely. The main reason I use a
service is that uploading the user data can take a while and I want it
to continue even if the app gets destroyed. The activity stops after
handing data to the service, and it may get started again for a new
action involving the service.

> When "after unbind it can't bind again", what are you actually seeing?
> Exceptions? other log messages? false returned by bindService()?
> something else?

Actually if there were log messages or anything, I would know where to
look for the problem. The activity doesn't throw an exception, but the
"bindService()" doesn't cause onBind() in the service to get called.
But I'll keep looking, I know I'll find it :-)

dagdag
Christine

>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: 1.6: GPS location provider stop unexpectedly ("exceeded MIN_FIX_COUNT"), bouncing back and forth

2009-10-24 Thread Christine

On Oct 24, 6:11 pm, JP  wrote:
 By mapping multiple objects (listeners) with
> different attribute values to a single one (location provider), you
> never know what you will get.

The documentation says that you can't be sure what you'll get. You
will probably get location updates at least as often as specified by
the time parameter, but there's no guarantee. Maybe you'll get the
updates more often than you specified because some other app needs
them more often? I don't know.

> In the extreme, you can choke
> off the foreground app's location provider, no?

You can choke the foreground app anyway, if you want to. But you don't
- I guess.

>
> On Oct 24, 2:00 am, Lance Nanek  wrote:
>
> > >multiple listeners for a location provider with different minTime 
> > >intervals - which value should be used
>
> > Looks like the current implementation uses the shortest value for that
> > situation:http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>
> > Seems like an OK decision there from some quick tests. I called
> > requestLocationUpdates for two listeners. One with a power conserving
> > hint argument of 30 seconds. The other with 60 seconds. Both listeners
> > got the same update frequency. In number of seconds between
> > onLocationChanged calls:
> > 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 39, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3,
> > 37, ...
>
> > Corresponding to occasional ~30 second shutdowns. Once I called
> > removeUpdates for the listener that was registered for 30 seconds,
> > then the listener registered for 60 seconds started getting what it
> > would normally get:
> > 2, 1, 69, 1, 1, 3, 1, 2, 1, 2, 1, 2, 1, 70, 1, 1, 2, 1, 2, 1, 2,
> > 1, ...
>
> > ~60 second shutdowns. End result, the listener that was registered
> > saying it is OK with ~60 second shutdowns never actually has to wait
> > that long if there is another listener registered that wants more
> > frequent updates. Meanwhile the one that wants the most frequent
> > updates gets what it normally would.
>
> > On Oct 23, 10:30 am, JP  wrote:
>
> > > (Refers to the logs) This occurs every 3s, although minTime is much
> > > higher, just as you've found. I will venture to say that this is
> > > harder on the battery than to just let GPS stand.
> > > BTW, resting a location provider this way is also mis-spec'ed. If an
> > > app registers multiple listeners for a location provider with
> > > different minTime intervals - which value should be used to control
> > > the location provider?
> > > It certainly isn't in line with 1.5 behavior, or with anything I've
> > > seen on any device.
>
> > > I suppose I can't be sold on this being a feature, not a bug.
>
> > > On Oct 22, 11:40 pm, Lance Nanek  wrote:
>
> > >  Is this behavior hurting an app you use/wrote in some way? It seems
> > >  within spec.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Service stops?

2009-10-24 Thread Christine



On Oct 24, 6:13 pm, Mark Murphy  wrote:

> What is "a task scheduled via a handler"?

new Handler().postDelayed(someTask, someTime);

>
> > An activity binds to
> > the service and makes it work, but after unbind it can't bind again.

> Why unbind before the activity is going away?

Well, I suppose that if an activity gets destroyed by the os, you have
to unbind in onStop() or onDestroy(), don't you? Also, maybe the
activity never needs the service again, so why keep the connection
open and keep the service running unnecessarily?

>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Service stops?

2009-10-24 Thread Christine

I have a service that is waiting for input from an Activity. I noticed
that if the service has a task scheduled via a handler, an Activity
can bind and unbind repeatedly to make the service do stuff. However,
if the service doesn't have a task scheduled and really doesn't do
anything while waiting, it kind of disappears. An activity binds to
the service and makes it work, but after unbind it can't bind again.
This is not an issue for me because I do need a task scheduled, if
only a task that stops the service after n minutes of inactivity. I
was just wondering if this is intended behavior of a service.

dagdag
Christine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Google wave invitations...?

2009-10-21 Thread Christine

They promised us access to Google Wave at GoogleIO, but I never
received an invitation. Did anyone else who was at GoogleIO?

On Oct 21, 9:06 pm, Michael Cheselka  wrote:
> Hello,
>
> Yup, me too!
>
> I you recieved an invite and can pass any on, please do.
>
> Regards,
> Michael Cheselka
> 650-488-4820
>
> On Wed, Oct 21, 2009 at 00:39, biAji  wrote:
>
> > Me too~~!!   Again.
>
> > Hey, dude, maybe others also have some invites who look through this
> > thread..  everything is possible..
>
> > lol
>
> > On Oct 21, 1:53 am, Marco Nelissen  wrote:
> >> This thread has now seen almost a hundred people saying "me too!".
> >> Seriously people, what part of "I have 16 invitations" did you not 
> >> understand?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Logging in Android

2009-10-17 Thread Christine

On Oct 16, 12:51 am, jotobjects  wrote:
> This is still a little unclear to me.  AFAIK this is a recommendation
> to strip out debug logging - logging is not automatically stripped?

Read a message before you reply. Yusuf just said that debug logging is
stripped at compile time.

> Is there a mechanism for setting the log level as with Log4J and
> java.util.logging and commons logging?  

You can use java.util.logging. It's in the Android API.

Christine

I haven't been able to get the
> Log.isLoggable() method to do anything useful.  It returns true for
> INFO and false for DEBUG even when I use adb shell setprop as
> instructed.
>
> On Oct 15, 2:49 pm, "Yusuf Saib (T-Mobile USA)" 
> Mobile.com> wrote:
> > Fromhttp://developer.android.com/reference/android/util/Log.html#d(java.l...
>
> > "Verbose should never be compiled into an application except during
> > development. Debug logs are compiled in but stripped at runtime.
> > Error, warning and info logs are always kept."
>
> > Yusuf Saib
> > Android
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
>
> > On Oct 15, 1:01 pm, vj  wrote:
>
> > > I understand it is meant for filtering out "logcat" messages, but on
> > > what
> > > basis would a developer know when to use which type of API ?
>
> > > On Oct 15, 2:50 pm, vj  wrote:
>
> > > > What is the significance of having different "priority" levels in the
> > > > Log API ? I am referring to .e(), .d() etc. Also, considering the fact
> > > > that all the priorities are going to be logged in any case, on what
> > > > basis would a developer know when to use which type of API ?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ACTION_GET_CONTENT and Gallery

2009-09-27 Thread Christine

thanks.

On Sep 24, 9:04 pm, "Justin (Google Employee)" 
wrote:
> Take a look 
> athttp://developer.android.com/reference/android/media/MediaScannerConn...
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Sep 24, 6:55 am,Christine wrote:
>
> > My app takes a picture and stores it either on the flash card or in
> > the MediaStore. When retreiving the gallery content with an
> > ACTION_GET_CONTENT intent doesn't show the new picture in either case.
> > However, after switching the phone off and on again, they do show up.
> > How do I force the Gallery to show my new pic?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using Picasa Web Albums Data API in Android

2009-09-24 Thread Christine

You can use httpclient to access any api.

On Sep 24, 10:00 am, Raman  wrote:
> I do not want to use an existing Activity for Picasa related tasks,
> like showing the Picasa albums and creating new albums. Rather I want
> to develop a new application where it would directly interact with
> Picasa without a third application coming in between.
> May be, you would have heard of Picasa Web Data API. I want to use
> them. I know that using them in a normal PC application, I can
> directly interact with Picasa Server. Now, I want to use the same with
> Android...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ACTION_GET_CONTENT and Gallery

2009-09-24 Thread Christine

My app takes a picture and stores it either on the flash card or in
the MediaStore. When retreiving the gallery content with an
ACTION_GET_CONTENT intent doesn't show the new picture in either case.
However, after switching the phone off and on again, they do show up.
How do I force the Gallery to show my new pic?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: htc Hero networking

2009-09-20 Thread Christine

I had an issue with file formats, the Hero uses .amr for audio while
Magic and G1 use 3gpp. The server I uploaded to didn't understand .amr
but didn't provide an error message.
There's more differences betweeh Hero and Magic/G1, like in picture
processing.


On Sep 14, 6:29 pm, Dan Sherman  wrote:
> We've been having a similar issue without being able to find a cause.
>
> We have a game (ProjectINF), which uses UDP for communication.  Works fine
> on all devices except the hero (from what we've heard from users).
>
> Not sure where to point you, just wanted to chime in and let you know you're
> not the only one with Hero networking woes.
>
> - Dan
>
> On Sun, Sep 13, 2009 at 6:51 AM, Christine wrote:
>
>
>
> > I have an app that uploads files to a server. It works perfectly on
> > ADP1 and HTC Magic, but it doesn't on HTC Hero. Does anyone know about
> > differences in the way networking works on the Hero that prevents my
> > app from working? I use httpClient in my app.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] htc Hero networking

2009-09-13 Thread Christine

I have an app that uploads files to a server. It works perfectly on
ADP1 and HTC Magic, but it doesn't on HTC Hero. Does anyone know about
differences in the way networking works on the Hero that prevents my
app from working? I use httpClient in my app.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] magic?

2009-09-11 Thread Christine

I was explaining to my friend Martijn how something works in one of my
apps, and I was wondering why it worked on my G1 and Magic phones but
not on a Hero: "I start the camera, than a lot of magic happens, then
I get a link to the picture and I work from there". Martijn says "ah,
that's the problem. You should make it so that a lot of Hero happens!"


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Mediastore thumbnail refresh

2009-09-09 Thread Christine

I use the image_capture intent to take a picture. But when I
subsequently access the gallery from within my app, the picture
doesn't show up. Apparently the thumbnails aren't refreshed in the
mean time? How can I force a refresh of the gallery thumbnails? I
couldn't find a method to do so - though I may have overlooked it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to know my app is running backgroud ?

2009-08-30 Thread Christine

On Aug 30, 5:42 am, Android中国开发者团队google groups 
wrote:
> i want to excute same action when my app is running backgroud

Err, when your app is in the background, it does not "run". If you
want your app to continue doing something when the UI is not visible,
you need to create a Service. But a service takes resources away so
you don't want a service to run indefinitely.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ubuntu Jaunty and adb not playing well together

2009-08-30 Thread Christine

Renaming the rules file to -51- worked for me on my desktop computer,
but not on my laptop. On my laptop, I renamed to 99, then it worked.
There's a bug in Ubuntu, the software for one of the lower number
rules does something that's not finished when rule 50 gets fired. I
guess the slower your computer, the more time you need to give this
feature to finish.

On Aug 29, 12:03 pm, Rino  wrote:
> Here's what works for me on Ubuntu Karmic with my Htc Dream (Vendor ID
> 0bb4 as seen with 'lsusb') :
> - device in usb debug mode (settings/applications/developpment/)
>
> - in file /etc/udev/rules.d/51-android.rules :
> SUBSYSTEM==”usb”,ATTRS(idVendor)==”0bb4“,SYMLINK
> +="android_adb",MODE=”0666″
>
> - chmod a+x /etc/udev/rules.d/51-android.rules (don't think it's
> necessary, though)
>
> - killall adb
>
> - /etc/init.d/udev restart ; /etc/init.d/udev-finish restart
>
> - adb in $PATH
>
> Now 'adb devices' lists my device.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: audio video inconsistency

2009-08-30 Thread Christine

On Aug 12, 5:58 pm, "Justin (Google Employee)" 
wrote:
> Yes, this is inconsistent, but there is a way to do what you want with
> audio. Take a look 
> athttp://developer.android.com/reference/android/provider/MediaStore.Au...

Wow, cool, thanks. I hadn't found this one after searching the api. it
works like a charm :-)



>
> Cheers,
> Justin
> Android Team @ Google
>
> On Aug 12, 7:32 am, Christine  wrote:
>
> > In my app, a user picks video content with
> >    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
> >    i.setType("video/*");
> >    startActivityForResult(i, MEDIA_SELECTED);
>
> > and they start recording video with
> >    Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
> >    startActivityForResult(i, MEDIA_SELECTED);
>
> > Now, I want to do the same for audio, but I can't:
> >    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
> >    i.setType("audio/*");
> >    startActivityForResult(i, MEDIA_SELECTED);
> > doesn't start audio selection, but it triggers a chooser with which a
> > user can select audio capture or selection. There's no
> > ACTION_AUDIO_CAPTURE intent.
>
> > Why is the behavior for video and audio different?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Service performance

2009-08-15 Thread Christine

On Aug 15, 2:55 pm, Mark Murphy  wrote:

> By "posts a task", do you mean executes an AsyncTask, or something else?

I postDelayed a Runnable in a Handler.

One should never assume. "To assume makes an ASS of U and ME". I
assumed that a Service would run at a lower priority than the Activity
thread. Putting the Runnable in a thread with a priority one lower
than the Service's thread seems to solve the problem - need more
testing, but I haven't seen the popup yet. I will check out AsyncTask
to see if that's a better solution than creating a thread.

I use a Service primarily for not delaying the UI, and because the
upload needs to complete even when the Activity gets destroyed. I like
the concept of Activities and Services. At first glance, it seems to
be a little complex, but it's really very simple. My service gets
started when the user wants to do an upload, then it keeps running for
some ten minutes, then stops if there's no new uploads.





>
> > I think - but I need to do more testing - that
> > unbinding from the service right after the aidl call solves the
> > problem, but then I lose the callbacks.
>
> That seems strange.
>
> >> You can give a background thread a different priority,
>
> > Yeah, well, the whole thing of using a service is that it's in a
> > separate thread and that it doesn't stop when the activity pauses or
> > stops or gets destroyed.
>
> Yup!
>
> > But maybe I should try forking a separate
> > thread from the service with a lower priority.
>
> If you are using AsyncTask, those threads are already created at a lower
> priority.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Service performance

2009-08-15 Thread Christine

On Aug 15, 2:55 pm, Mark Murphy  wrote:

> By "posts a task", do you mean executes an AsyncTask, or something else?

I postDelayed a Runnable in a Handler.

One should never assume. "To assume makes an ASS of U and ME". I
assumed that a Service would run at a lower priority than the Activity
thread. Putting the Runnable in a thread with a priority one lower
than the Service's thread seems to solve the problem - need more
testing, but I haven't seen the popup yet. I will check out AsyncTask
to see if that's a better solution than creating a thread.

I use a Service primarily for not delaying the UI, and because the
upload needs to complete even when the Activity gets destroyed. I like
the concept of Activities and Services. At first glance, it seems to
be a little complex, but it's really very simple. My service gets
started when the user wants to do an upload, then it keeps running for
some ten minutes, then stops if there's no new uploads.





>
> > I think - but I need to do more testing - that
> > unbinding from the service right after the aidl call solves the
> > problem, but then I lose the callbacks.
>
> That seems strange.
>
> >> You can give a background thread a different priority,
>
> > Yeah, well, the whole thing of using a service is that it's in a
> > separate thread and that it doesn't stop when the activity pauses or
> > stops or gets destroyed.
>
> Yup!
>
> > But maybe I should try forking a separate
> > thread from the service with a lower priority.
>
> If you are using AsyncTask, those threads are already created at a lower
> priority.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Service performance

2009-08-15 Thread Christine

On Aug 15, 1:49 pm, Mark Murphy  wrote:
> Christine wrote:
> > The Service then uploads the file.
>
> In a background thread?

In its own thread. The activity just kicks the Service using AIDL,
basically just handing it a filename, then continues with handling the
UI. The AIDL call posts a task in the service which does all the
uploading and stuff. I think - but I need to do more testing - that
unbinding from the service right after the aidl call solves the
problem, but then I lose the callbacks.

 > an empty call, with no effect.
>
> What do you mean by this?

I thought that if anything in my code in the aidl call may cause a
handle to be maintained between the service and the activity, this
dependency should disappear if the call basically doesn't do anything,
doesn't even refer to a property. Just to test.

> You can give a background thread a different priority,

Yeah, well, the whole thing of using a service is that it's in a
separate thread and that it doesn't stop when the activity pauses or
stops or gets destroyed. But maybe I should try forking a separate
thread from the service with a lower priority.

Thanks for the reply.

Christine


>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Service performance

2009-08-15 Thread Christine

On Aug 15, 1:49 pm, Mark Murphy  wrote:
> Christine wrote:
> > The Service then uploads the file.
>
> In a background thread?

In its own thread. The activity just kicks the Service using AIDL,
basically just handing it a filename, then continues with handling the
UI. The AIDL call posts a task in the service which does all the
uploading and stuff. I think - but I need to do more testing - that
unbinding from the service right after the aidl call solves the
problem, but then I lose the callbacks.

 > an empty call, with no effect.
>
> What do you mean by this?

I thought that if anything in my code in the aidl call may cause a
handle to be maintained between the service and the activity, this
dependency should disappear if the call basically doesn't do anything,
doesn't even refer to a property. Just to test.

> You can give a background thread a different priority,

Yeah, well, the whole thing of using a service is that it's in a
separate thread and that it doesn't stop when the activity pauses or
stops or gets destroyed. But maybe I should try forking a separate
thread from the service with a lower priority.

Thanks for the reply.

Christine


>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Service performance

2009-08-15 Thread Christine

I have an issue with a service that makes the UI freeze for a couple
of seconds. My app does the following:

The user starts a file upload. The Activity starts or binds to a
Service passing it the filename of the data. The Service then uploads
the file. After initiating the upload by pressing a button, the UI is
responsive for about a second. Then it freezes, and it becomes
responsive again soon as the service has finished uploading the file,
which you see in the UI because the service sends a notification.
I have replaced the upload by some dummy processing, with no effect,
the UI still freezes. I have replaced the aidl call to the service by
an empty call, with no effect.
The thing is annoying mostly because after three seconds a popup
appears saying the app doesn't respond. Pressing "wait" makes the app
continue normally. I decided to display a progress bar during the
upload, but that doesn't help either, I still get the error prompt.

My question is, can a service take so much resources that the UI
freezes for a couple of seconds? Is there a way of giving the service
a lower priority?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Google Dev Phone unavavailable! will they extend ADC II deadline..who to ask?!

2009-08-15 Thread Christine

There will be an ADP2, I was told. I have no clue as to when that will
happen.

On Aug 15, 12:39 pm, Chris Stratton  wrote:

> I wish magic were out in a developer version...

It's called the GoogleIO phone. And I think you'd prefer the Hero.

It's impossible to make the right decision in buying a phone, unless
you buy all of them. I can get a free Hero in my Vodafone contract,
but I decided to wait until there's a phone that's more different from
the existing ones, like a different manufacturer and a different
architecture.


>
> On Aug 15, 12:22 am, -v-  wrote:
>
> > Hi,
> > I wanted to test my app that I plan to submit for ADC II. But the dev
> > phone from google is unavailable till sept first week! How are we
> > suppose to test it?! I dont want to sign a contract with T Mobile just
> > to test my app.
> > There is no contact email on ADC II !!
> > Will they extend ADC II deadline?
> > This contest is very poorly managed by Google standards if u ask me!
> > -v-
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity timeout on WebView load

2009-08-15 Thread Christine

On Aug 4, 6:17 pm, "droidin.net"  wrote:
> want toloadURL directly into the WebView#loadURL, so how do I do it
> on a background thread?

You don't display the page from a background thread, you display
things in the UI thread. You load and/or process the data in a
background thread. This is a way of doing that, I'm sure there's other
ways to do it.

private void loadInBackground() {
final Runnable runInUIThread = new Runnable() {
public void run() {
// do stuff in UI thread after
}
};
   new Thread() {
@Override
public void run() {
// do stuff in background first
// then call UI thread
mHandler.post(runInUIThread);
 }
}.start();
    }




>
> On Aug 4, 3:12 am, Christine  wrote:
>
> > I take it you don't already have a bg thread, or you wouldn't have the
> > problem?
>
> > The cute way of loading data in the background is to use aservice.
> > The simple way is to use a Handler, as Peter suggested. In the handler
> > task, you create a new thread that does the http stuff. If the user
> > needs to wait for the data to display anyway, I think  you can prevent
> > the timeout from happening by using a progress bar.
>
> > On Aug 4, 1:07 am, "droidin.net"  wrote:
>
> > > In my app I have toloadexternal page into WebView-based activity.
> > > Some of my users with slower connections are reporting screen timeout
> > > while waiting for the page toload. 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 onload- wouldn't I just mess it up? Is there an alternative
> > > way of doing what I need?
>
> > > Thanks,
>
> > > Bo
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] audio video inconsistency

2009-08-12 Thread Christine

In my app, a user picks video content with
   Intent i = new Intent(Intent.ACTION_GET_CONTENT);
   i.setType("video/*");
   startActivityForResult(i, MEDIA_SELECTED);

and they start recording video with
   Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
   startActivityForResult(i, MEDIA_SELECTED);

Now, I want to do the same for audio, but I can't:
   Intent i = new Intent(Intent.ACTION_GET_CONTENT);
   i.setType("audio/*");
   startActivityForResult(i, MEDIA_SELECTED);
doesn't start audio selection, but it triggers a chooser with which a
user can select audio capture or selection. There's no
ACTION_AUDIO_CAPTURE intent.

Why is the behavior for video and audio different?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity timeout on WebView load

2009-08-04 Thread Christine

I take it you don't already have a bg thread, or you wouldn't have the
problem?

The cute way of loading data in the background is to use a service.
The simple way is to use a Handler, as Peter suggested. In the handler
task, you create a new thread that does the http stuff. If the user
needs to wait for the data to display anyway, I think  you can prevent
the timeout from happening by using a progress bar.

On Aug 4, 1:07 am, "droidin.net"  wrote:
> 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?
>
> Thanks,
>
> Bo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ACTION_GET_CONTENT audio, video

2009-08-04 Thread Christine

Maybe I should clarify. I use the ACTION_GET_CONTENT intent for both
picking audio files and video files. Apparently, the audio recorder
can handle this intent while the video recorder doesn't, which makes
my app inconsistent.

On Aug 3, 9:20 am, Dianne Hackborn  wrote:
> You -don't- want to avoid the chooser, that is what allows other
> applications to supply their own functionality.  If you want to allow the
> user to choose either a video or music, you may want to write your own
> choose by doing your own intent query for both of those data types and
> merging the result (you can use LauncherActivity to help with presenting the
> list or do it yourself).
>
> On Sun, Aug 2, 2009 at 8:18 AM, Christine wrote:
>
>
>
> > I was wondering, when you do an intent with ACTION_GET_CONTENT and
> > type "video/*" you get just the media browser showing you stored
> > video's from which you can pick one, while with type "audio/*", you
> > first get a chooser which lets you choose between recording audio or
> > selecting from the media library. For recording video you can use
> > MediaStore.ACTION_VIDEO_CAPTURE but I haven't found a
> > MediaStore.ACTION_AUDIO_CAPTURE.
>
> > In my app I'd like to have a consistent UI for video and audio,
> > preferably without the separate chooser step. I can do audio capture,
> > but how do I avoid the audio chooser without creating my own audio
> > gallery UI?
>
> --
> 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.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: left handed user

2009-08-04 Thread Christine

Good point!

Christine - left handed developer

On Jul 31, 11:47 pm, Sophie  wrote:
> Thanks, Yusuf, I will!
>
> On 31 jul, 16:51, "Yusuf T. Mobile"  wrote:
>
> > You have a point, Illegal Sophie. I would recommend you post an
> > Android issue, saying "landscape should work when you rotate left or
> > right", athttp://code.google.com/p/android/issues/list
>
> > Yusuf Saib
> > Android
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
>
> > On Jul 31, 7:31 am, "nEx.Software" 
> > wrote:
>
> > > I am right-handed, and there are many times when I would rather rotate
> > > the same way you propose... Specifically for playing games, since most
> > > games controls (at least in my day) had the directional pad on the
> > > left side, I'd prefer to have the trackball on the left side.
> > > Developers can handle this in their own applications, but as far as
> > > the entire system goes... this would have to be built into the core
> > > framework. I think a lot of this is largely due to the fact that slide-
> > > out keyboards, such as on the G1, generally open in the direction
> > > where the current rotation is correct.
>
> > > On Jul 29, 2:26 pm, Sophie  wrote:
>
> > > > Hi developers,
> > > > As I'm just an Android user, I might be illegally here. But I just
> > > > found out that being left handed, I have a slight problem with my
> > > > recently purchased HTC Magic. I have searched Market already, but
> > > > could not find anything to help me. My problem is this: as I am left
> > > > handed, I like to turn the phone to landscape orientation with the
> > > > buttons to the left (turning it clockwise). As you will probably all
> > > > know, this won't work. To get landscape you have to turn the phone
> > > > counter clockwise. Would it be possible for one of you to develop
> > > > something to enable left handed people to turn the phone to landscape
> > > > like they would intuitively do, that is clockwise?
> > > > Thanks!
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can you prevent somebody from calling in Android ?

2009-08-02 Thread Christine

I tell my kids what they can and can't do. If that doesn't work, their
phone bill is the least of your problems.

On Jul 30, 9:17 am, e-satis  wrote:
> I want to write a software to allow the parents to set a limit to
> their children phone calls.
>
> I need to lock some phone capabilities with a password after the
> limits are reached.
>
> I'd like to know how I can block phone calls from being made, and
> receive. And if it's possible to set a white list for emergency calls
> (e.g : the teen can't call friend after midnight but can call 911).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can you prevent somebody from calling in Android ?

2009-08-02 Thread Christine

I tell my kids what they can and can't do. If that doesn't work, their
phone bill is the least of your problems.

On Jul 30, 9:17 am, e-satis  wrote:
> I want to write a software to allow the parents to set a limit to
> their children phone calls.
>
> I need to lock some phone capabilities with a password after the
> limits are reached.
>
> I'd like to know how I can block phone calls from being made, and
> receive. And if it's possible to set a white list for emergency calls
> (e.g : the teen can't call friend after midnight but can call 911).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: TextView changing from other thread

2009-08-02 Thread Christine

Only one activity with one view is active at any time. If you want to
update the score in real time from both the logic view and the game
view, the only way to do that is to put both in one activity and one
view. Otherwise, afaik the view in the background would only update
soon as it becomes the active view, in which case you could share the
data through sharedPreferences or a database.

If you really want to have two views in two activities that can share
data in real time, you can create a service that is bound by both
activities and that has callbacks to both activities.  But again, I
don't see the point in doing so.


On Aug 1, 11:02 pm, Illidane  wrote:
> Hi!
> I'm writing some game using OpenGL and have two views : SurfaceView
> for OGL and TextView for my score. When I try to update score ( using
> BoardScore.setText("bla"); ) from my activity class all just fine, but
> when I try to do it from my logic class my app crash. Debugger says
> something like ViewRoot$CalledFromWrongThreadException
> (id=830053983760)
> But I need to update it from logic to know my score.
> Do you know something about this issue?
>
> Thanks for help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: json serializer / deserializer

2009-08-02 Thread Christine

On Aug 2, 12:26 pm, Premier  wrote:
> Hello
> do you know a library or method to serialize / deserialize java bean
> to json in android?

You can use XStream for serializing from/to xml, I'm not sure if
XStream works well for json on android.

> how i can introspect a javabean and fill its fields?

For all I know, java introspection works on Android.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ACTION_GET_CONTENT audio, video

2009-08-02 Thread Christine

I was wondering, when you do an intent with ACTION_GET_CONTENT and
type "video/*" you get just the media browser showing you stored
video's from which you can pick one, while with type "audio/*", you
first get a chooser which lets you choose between recording audio or
selecting from the media library. For recording video you can use
MediaStore.ACTION_VIDEO_CAPTURE but I haven't found a
MediaStore.ACTION_AUDIO_CAPTURE.

In my app I'd like to have a consistent UI for video and audio,
preferably without the separate chooser step. I can do audio capture,
but how do I avoid the audio chooser without creating my own audio
gallery UI?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to create HTTP request, and how to create a connection object.

2009-07-20 Thread Christine

Maybe you should ask in "android beginners"?

Or google "android java httpclient post"?

On Jul 20, 10:01 am, Peli  wrote:
> Which code did you try? The link contains several Java code examples
> with HTTP and POST.
>
> The more specific your question is, the better people can help you
> here. Please post a piece of code here that you tried but did not
> work, and we may be able to tell you what you need to change.
>
> Also, this does not sound like a very Android-specific question, so
> you may have more luck in a general Java-forum for beginners.
>
> Peliwww.openintents.org
>
> On Jul 20, 8:25 am, Chris  wrote:
>
> > It didnt help me..
>
> > Thanks
>
> > On Jul 17, 6:59 pm, Peli  wrote:
>
> > > Why don't you simply try a Google 
> > > search?http://www.google.com/search?q=http+post+java
>
> > > Peliwww.openintents.org
>
> > > On Jul 17, 3:52 pm, Chris  wrote:
>
> > > > How to create anHTTPrequestobject of POST type in android? Which
> > > > class need to be extend or what method need to implement? How to
> > > > establish connection to a server?
> > > > Actually i want to connect to a microsoft exchange server, and then i
> > > > have to send arequestto it usingHTTP.
> > > > I dont have any idea about this, any help will be highly apperciated.
>
> > > > THANKS A LOT- Hide quoted text -
>
> > > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] MediaStore.EXTRA_OUTPUT

2009-07-15 Thread Christine

I have seen a number of posts from people who had trouble retrieving a
full size image from  MediaStore.EXTRA_OUTPUT with code like

  Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  pictureUri = Uri.fromFile(new File("/sdcard/
picturefile.jpg"));
  intent.putExtra(MediaStore.EXTRA_OUTPUT, pictureUri);
  startActivityForResult(i, PICTURE_TAKEN);

Should this code work? I mean, should this result in a file containing
the picture?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] video gallery

2009-07-14 Thread Christine

I let a user pick a video with the standard video gallery. But suppose
I want to create my own video gallery, how do I get a thumbnail for
the video from the Mediastore? For images there's a separate thumbnail
thing, but I can't find a similar thing for videos, except for the
mini_thumb_magic, from which I can't seem to get a thumbnail.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Lazy-load images into a ListView

2009-07-12 Thread Christine

My app loads new data like every four minutes, and if the pic is not
there in time, too bad, you'll have it in the next round. What you can
do is if the hashmap returns null, subsitute a default pic, which I
gues you have to do because you'll probably have a recycled view which
already contains a pic - but the wrong one.

It gets really weird when you have different views for the items in
the listview, like when the user changes the layout, or you have
different layouts in portrait mode and landscape, or all of the above.
I chose to trade in options for better recycling of views.

Another issue is, do you want to spend a lot of time at startup
preparing for the listview so the scrolling is smooth, but the user
has to wait a little longer, or do you want to display views quickly,
at the cost of bumpy scrolling? At any rate, the simpler the UI, the
better.

On Jul 12, 5:57 pm, Mark Murphy  wrote:
> Christine wrote:
> > What if you have the listview load the images from a hashmap, and have
> > a separate process fill the hashmap in the background?
>
> That's effectively what I'm doing, but you still need to tell the
> ListView when images are ready to be loaded out of the HashMap. That's
> for the case where the ListView is trying to display one of the images
> but does not have it yet, substituting some placeholder instead until
> the image is downloaded.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Lazy-load images into a ListView

2009-07-12 Thread Christine

What if you have the listview load the images from a hashmap, and have
a separate process fill the hashmap in the background?



On Jul 12, 3:47 pm, Evan Charlton  wrote:
> Mark,
>
> Thanks for the reply!
>
> > -- If you scroll enough before the image is done loading, and the row is
> > recycled first, you'll get weird results (image will keep flipping to
> > different pictures as its various tasks complete)
>
> Even if I never scroll, the results are still jumbled and/or duplicated.
>
> > 1. Rather than tie the AsyncTask to a specific ImageView, I have the
> > AsyncTask notify the ListView when an image load is complete, providing
> > it the URL of the loaded image. The ListView, when it inflates/recycles
> > rows, attaches the URL of the image that is supposed to be shown to each
> > ImageView via the setTag() method. Then, when the AsyncTask says
> > such-and-so URL is ready, the ListView walks the ImageViews and sees if
> > any are showing that image, by comparing the passed-in URL to each
> > ImageView's getTag(). If there's a match, ListView then loads the image
> > out of the AsyncTask-managed cache into the ImageView. This way, I don't
> > keep a strict tie between the AsyncTasks and the ImageViews. I suspect
> > there's a better-performing solution than my current implementation, but
> > it's at least tolerable for the moment.
>
> I'll code this up later and see if I have any problems.
>
> > 2. Rather than try to hack around the existing AsyncTask's limitations,
> > I copied its source code (thank you, Android and Apache 2!) and made it
> > use an unbounded LinkedBlockingQueue and use more than one thread to
> > process it. That beats the heck out of trying to keep your own queue to
> > feed into the AsyncTask class's static queue.
>
> Haha, yeah, that code could be cleaner, but it works pretty reliably,
> so I'm going to avoid replacing it until it becomes the problem.
>
> Evan Charlton
>
> On Sun, Jul 12, 2009 at 6:29 AM, Mark Murphy wrote:
>
> > Evan Charlton wrote:
> >> I will be surprised if this hasn't been asked before, but I've been
> >> Googling for days now and haven't found anything very helpful. My
> >> problem is this:
>
> >> I'm trying to lazy-load images into a ListView--almost exactly how
> >> Market does it, if you're familiar with that. It's not exactly like
> >> Market because the images there comes in batches whereas mine are one
> >> at a time, but I digress...
>
> >> I have the following adapter:http://paste2.org/p/318634
> >> This adapter lazy-loads pages and each row's corresponding image (if
> >> applicable) and caches it to disk for faster loading next time. This
> >> all works perfectly *except* when loading images over the network,
> >> they come in on the wrong rows and are sometimes duplicated. I assume
> >> that this has to do with the adapter reusing views, but I haven't been
> >> able to stamp it out.
>
> > I suspect you are on the money with your assessment of the problem.
>
> > You pass in an ImageView to the AsyncTask and tell the task to replace
> > the image in that ImageView. However:
>
> > -- Since it is asynchronous, for a bit, the ImageView will remain
> > unchanged, which in the case of a recycled row will be whatever it was
> > before
>
> > -- If you scroll enough before the image is done loading, and the row is
> > recycled first, you'll get weird results (image will keep flipping to
> > different pictures as its various tasks complete)
>
> > I just went through implementing something very similar. I'll eventually
> > tease it out into something reusable and open source. Compared to the
> > snippet of your implementation, here are two things I did differently:
>
> > 1. Rather than tie the AsyncTask to a specific ImageView, I have the
> > AsyncTask notify the ListView when an image load is complete, providing
> > it the URL of the loaded image. The ListView, when it inflates/recycles
> > rows, attaches the URL of the image that is supposed to be shown to each
> > ImageView via the setTag() method. Then, when the AsyncTask says
> > such-and-so URL is ready, the ListView walks the ImageViews and sees if
> > any are showing that image, by comparing the passed-in URL to each
> > ImageView's getTag(). If there's a match, ListView then loads the image
> > out of the AsyncTask-managed cache into the ImageView. This way, I don't
> > keep a strict tie between the AsyncTasks and the ImageViews. I suspect
> > there's a better-performing solution than my current implementation, but
> > it's at least tolerable for the moment.
>
> > 2. Rather than try to hack around the existing AsyncTask's limitations,
> > I copied its source code (thank you, Android and Apache 2!) and made it
> > use an unbounded LinkedBlockingQueue and use more than one thread to
> > process it. That beats the heck out of trying to keep your own queue to
> > feed into the AsyncTask class's static queue.
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://twitter.com/commonsgu

[android-developers] Re: When Parsing the Soap response problem...

2009-07-11 Thread Christine

I am not familiar with KSOAP, but if that's the json response you get,
you can parse it with xstream or any json parser.

On Jul 11, 12:55 pm, "android.vinny"  wrote:
> HI
>
> I want to Consume the SOAP Web Services in Android
>
> i downloaded KSOAP2 Library
>
> i have done some thing like this ..
>
> private static final String SOAP_ACTION = "getRating";
> private static final String METHOD_NAME = "getRating";
> private static final String NAMESPACE = "http://www.w3.org/2001/12/
> soap-envelope";
> private static final String URL = "http://www.galatta.com/iphone/
> isizzle/isizzle.php";
> private ContextWrapper context;
>
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle icicle)
> {
> super.onCreate(icicle);
> setContentView(R.layout.list);
>
> //CALL the web service method
> SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
> SoapSerializationEnvelope envelope = new SoapSerializationEnvelope
> (SoapEnvelope.VER11);
>
> envelope.setOutputSoapObject(request);
>
> AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport
> (URL);
>
> try
> {
>
> androidHttpTransport.call(SOAP_ACTION, envelope);
>
> // Get the SAOP Envelope back and the extract the body
> SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;
>
> }
>
> i am getting the response from the server like this ..not know
> what is this type...
>
> getRatingResponse{return=ContestInfo{item=anyType{name=Ankitha;
> totalimages=2; rating=2.5; }; item=anyType{name=Anushka;
> totalimages=4; rating=9.5; }; item=anyType{name=Apsara; totalimages=1;
> rating=0; };
>
> how can i parse this response.
>
> can any body help me regarding this .
>
> it urgent ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Couldn't get connection factory client

2009-07-11 Thread Christine

I take it there's something wrong with your View:

> 07-11 05:13:48.969: ERROR/ZoomButtonsController(776): Cannot make the
> zoom controller visible if the owner view is not attached to a window.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-11 Thread Christine

The alternative would be, if I understand your question correctly, to
have one listadapter that takes data from various sources, depending
on some variable that is set. Your app would prepare the various
sources of data independently, and the getView in your listadapter
determines which of the sources is used at what time. I think that
would be less complex than having a number of list adapters on one
listview in one Activity. But again, I may misinterpret your question.

On Jul 11, 7:35 pm, Moto  wrote:
> The reason for this post was to use one ListView for multiple adapters
> because I thought it would help decrease the level of complexity my
> xml layout would have, therefore starting my activity much faster.
> Apparently it's not such a good idea.
>
> As of now, if this matters anyways, my fatty Activity uses at most 70%
> of the given 3.9MB Heap size.
>
> Thanks Mark and well I'll take into consideration your ideas and try
> to make it one slim and faster Activity.
>
> Thanks,
> Moto!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] HTC Magic vs G1 performance

2009-07-11 Thread Christine

I find that my ADP1 phone has a better performance than my Google IO
phone. In some cases, the Magic gets a timeout error where the G1
doesn't, running the same software. Also, I've seen a situation where
a service would accidentally take too much resources, which the Magic
couldn't handle - the screen would freeze - while the G1 could. The
phones have identiical sim cards from the same provider.
This means I use my IO phone for testing, mostly :-)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: adb shell on Google IO phone

2009-07-10 Thread Christine

ok, thanks. so I'll root my Google IO phone :-)

On Jul 9, 7:27 pm, Dianne Hackborn  wrote:
> Only root has blanket access to the filesystem.  Not even the core system
> process can touch application data.
>
> On Thu, Jul 9, 2009 at 9:23 AM, Christine wrote:
>
>
>
> > I have a problem using adb shell on my Google IO phone. I get shell
> > access, I can type cd /data/data, but then when I type "ls" it says
> > "opendir failed, Permission denied". Same when I type "sqlite3". I
> > didn't think I'd need to root my phone, but what setting did I miss to
> > get access to data on the phone?
>
> --
> 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.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] adb shell on Google IO phone

2009-07-09 Thread Christine

I have a problem using adb shell on my Google IO phone. I get shell
access, I can type cd /data/data, but then when I type "ls" it says
"opendir failed, Permission denied". Same when I type "sqlite3". I
didn't think I'd need to root my phone, but what setting did I miss to
get access to data on the phone?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: picasa

2009-07-07 Thread Christine

Sure. This is the best location to start:
http://code.google.com/apis/picasaweb/developers_guide_protocol.html

it's an API like any other, which allows you to upload pictures,
create albums, anything. Authentication is like in any Google app, you
will need an API key. I can send you sample code that's in Twitli, if
you like. Twitli uploads pictures to Picasa.



On Jun 22, 3:27 pm, RS  wrote:
> Is it possible to upload/download files (photos) from android to
> Picasa using our own apps.
> Is the content provider detail documented somewhere. Any API hint?
> Or is it just a closed component that can't be used outside google?
>
> Thanks
> RS
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread Christine

Does it matter when it gets called? You can be sure that it has been
called if your onCreate gets called after your app got killed. Maybe
onSaveInstanceState sometimes gets called at onpause without the app
being actually killed, as Dianne points out, then you'll never get the
data back that you saved, but does it matter?


On Jul 5, 8:41 pm, Dianne Hackborn  wrote:
> Also onSaveInstanceState() will definitely be called when your activity is
> in the foreground and you press home.  In that case the activity is not
> being finished, so the user may return to the same instance later (in the
> same state as they left it), so onSaveInstanceState() will be called before
> onPause() in case its process gets kill any time after onPause() returns.
>
>
>
> On Sun, Jul 5, 2009 at 11:25 AM, Peli  wrote:
>
> > > onSavedInstanceState()
>
> > First make sure you don't have a typo, because it is called
> > onSaveInstanceState(...).
>
> > A case where it is definitely called is when you switch orientation
> > (in the G1, slide out the keyboard).
>
> > Then onSaveInstanceState(..) is called 100%, and onCreate(...) in the
> > newly created activity contains the bundle that you stored yourself.
> > (provided you let the system handle the screen orientation change).
>
> > Does this work? It should.
>
> > If you call "finish()" or press "Back", then onSaveInstanceState() is
> > NOT called, because it is assumed the user finishes the activity. If
> > the user opens the activity again, a fresh instance is created.
>
> > If you think the current directory should be the same after you press
> > finish() and launch the application again, then it is NOT a candidate
> > for saving in the instance state.
>
> > If you only want to keep the current directory when changing screen
> > orientation, or being interrupted by an incoming call, then
> > saveInstanceState IS the correct thing for you.
>
> > Peli
> >www.openintents.org
>
> > On 5 Jul., 15:32, sasq  wrote:
> > > The documentation makes it sound that it would normally BE called,
> > > thats why I was wondering.
> > > In my case I have a second Activty that I open from the Main Activity,
> > > and regardess of wether I call finish() myself or use HOME to switch
> > > to another application, onSavedInstanceState() is never called.
>
> > > I guess saving to a SharedPreference in onPause() would fit best in my
> > > case (even though I dont need it shared).
>
> > > On Jul 5, 12:53 pm, Mark Murphy  wrote:
>
> > > > sasq wrote:
> > > > > Am I right to assume that onSaveInstanceState() is not normally
> > called
> > > > > (which my logging indicates) - but only when the system is forced to
> > > > > kill an Activity.
>
> > > > To quote the documentation:
>
> > > > "...for those methods that are marked as being killable, after that
> > > > method returns the process hosting the activity may killed by the
> > system
> > > > at any time without another line of its code being executed. Because of
> > > > this, you should use the onPause() method to write any persistent data
> > > > (such as user edits) to storage. In addition, the method
> > > > onSaveInstanceState(Bundle) is called before placing the activity in
> > > > such a background state, allowing you to save away any dynamic instance
> > > > state in your activity into the given Bundle, to be later received in
> > > > onCreate(Bundle) if the activity needs to be re-created... Note that it
> > > > is important to save persistent data in onPause() instead of
> > > > onSaveInstanceState(Bundle)  because the later [sic] is not part of the
> > > > lifecycle callbacks, so will not be called in every situation as
> > > > described in its documentation."
>
> > > >http://developer.android.com/reference/android/app/Activity.html
>
> > > > > If so, since onPause() does not receive a bundle, what is the best
> > way
> > > > > to save state that should be restored the next time the Activity is
> > > > > created ?
>
> > > > A database.
>
> > > > Or, in an ordinary file in the application's file storage area (e.g.,
> > > > openFileOutput()).
>
> > > > Or, inside of some SharedPreferences.
>
> > > > Or, in "the cloud" (i.e., store it out on the Internet somewhere, if
> > you
> > > > have connectivity).
>
> > > > Or, if all you are worried about is screen rotations, use
> > > > onRetainNonConfigurationInstance().
>
> > > > Or, if you don't need the state to be stored on-disk, have a local
> > > > Service or custom Application object hold onto it.
>
> > > > Which of these (and any others I didn't think of off the top of my
> > head)
> > > > is "best" is really up to you, based upon your application and its
> > > > requirements.
>
> > > > --
> > > > Mark Murphy (a Commons Guy)http://commonsware.com|
> >http://twitter.com/commonsguy
>
> > > > Warescription: Three Android Books, Plus Updates, $35/Year
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> 

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine

For the 64bits SWT, make sure you download the right file from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt

On Jul 5, 1:40 pm, Christine  wrote:
> Thanks.
>
> Actually, I found another solution. In the android_sdk tools/lib
> directory I replaced swt.jar by the64bits version of swt.jar. Then,
> there's 4 .so files in that directory with the number 3236 in it (that
> depends on the version of swt that's included in the distribution,
> different versions of the sdk may have files with different numbers).
> Replace those by the same files with the number 3448 in it - again, a
> different version of SWT may have a different number. Make sure it's
> the files from the64bits SWT. These files are in the SWT.jar.
>
> SWT.jar can be downloaded fromwww.eclipse.org/swt.
>
> On Jul 5, 1:50 am, Jeff Boody  wrote:
>
> > To maketraceviewwork on64-bit Ubuntu
> > 1) sudo apt-get install ia32-sun-java6-bin
> > 2) Determine the path of the ia32-sun-java6-bin java binary
>
> >         update-java-alternatives -l
>
> > 3) Replace javaCmd="java" in 
> > android-sdk-linux_x86-/tools/traceviewwith the following
>
> >         # javaCmd="java"
> >         javaCmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> > --Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine

For the 64bits SWT, make sure you download the right file from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt

On Jul 5, 1:40 pm, Christine  wrote:
> Thanks.
>
> Actually, I found another solution. In the android_sdk tools/lib
> directory I replaced swt.jar by the64bits version of swt.jar. Then,
> there's 4 .so files in that directory with the number 3236 in it (that
> depends on the version of swt that's included in the distribution,
> different versions of the sdk may have files with different numbers).
> Replace those by the same files with the number 3448 in it - again, a
> different version of SWT may have a different number. Make sure it's
> the files from the64bits SWT. These files are in the SWT.jar.
>
> SWT.jar can be downloaded fromwww.eclipse.org/swt.
>
> On Jul 5, 1:50 am, Jeff Boody  wrote:
>
> > To maketraceviewwork on64-bit Ubuntu
> > 1) sudo apt-get install ia32-sun-java6-bin
> > 2) Determine the path of the ia32-sun-java6-bin java binary
>
> >         update-java-alternatives -l
>
> > 3) Replace javaCmd="java" in 
> > android-sdk-linux_x86-/tools/traceviewwith the following
>
> >         # javaCmd="java"
> >         javaCmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> > --Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine

For the 64bits SWT, make sure you download the right file from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt

On Jul 5, 1:40 pm, Christine  wrote:
> Thanks.
>
> Actually, I found another solution. In the android_sdk tools/lib
> directory I replaced swt.jar by the64bits version of swt.jar. Then,
> there's 4 .so files in that directory with the number 3236 in it (that
> depends on the version of swt that's included in the distribution,
> different versions of the sdk may have files with different numbers).
> Replace those by the same files with the number 3448 in it - again, a
> different version of SWT may have a different number. Make sure it's
> the files from the64bits SWT. These files are in the SWT.jar.
>
> SWT.jar can be downloaded fromwww.eclipse.org/swt.
>
> On Jul 5, 1:50 am, Jeff Boody  wrote:
>
> > To maketraceviewwork on64-bit Ubuntu
> > 1) sudo apt-get install ia32-sun-java6-bin
> > 2) Determine the path of the ia32-sun-java6-bin java binary
>
> >         update-java-alternatives -l
>
> > 3) Replace javaCmd="java" in 
> > android-sdk-linux_x86-/tools/traceviewwith the following
>
> >         # javaCmd="java"
> >         javaCmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> > --Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine

For the 64bits SWT, make sure you download the right file from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt

On Jul 5, 1:40 pm, Christine  wrote:
> Thanks.
>
> Actually, I found another solution. In the android_sdk tools/lib
> directory I replaced swt.jar by the64bits version of swt.jar. Then,
> there's 4 .so files in that directory with the number 3236 in it (that
> depends on the version of swt that's included in the distribution,
> different versions of the sdk may have files with different numbers).
> Replace those by the same files with the number 3448 in it - again, a
> different version of SWT may have a different number. Make sure it's
> the files from the64bits SWT. These files are in the SWT.jar.
>
> SWT.jar can be downloaded fromwww.eclipse.org/swt.
>
> On Jul 5, 1:50 am, Jeff Boody  wrote:
>
> > To maketraceviewwork on64-bit Ubuntu
> > 1) sudo apt-get install ia32-sun-java6-bin
> > 2) Determine the path of the ia32-sun-java6-bin java binary
>
> >         update-java-alternatives -l
>
> > 3) Replace javaCmd="java" in 
> > android-sdk-linux_x86-/tools/traceviewwith the following
>
> >         # javaCmd="java"
> >         javaCmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> > --Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine

For the 64bits SWT, make sure you download the right file from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt

On Jul 5, 1:40 pm, Christine  wrote:
> Thanks.
>
> Actually, I found another solution. In the android_sdk tools/lib
> directory I replaced swt.jar by the64bits version of swt.jar. Then,
> there's 4 .so files in that directory with the number 3236 in it (that
> depends on the version of swt that's included in the distribution,
> different versions of the sdk may have files with different numbers).
> Replace those by the same files with the number 3448 in it - again, a
> different version of SWT may have a different number. Make sure it's
> the files from the64bits SWT. These files are in the SWT.jar.
>
> SWT.jar can be downloaded fromwww.eclipse.org/swt.
>
> On Jul 5, 1:50 am, Jeff Boody  wrote:
>
> > To maketraceviewwork on64-bit Ubuntu
> > 1) sudo apt-get install ia32-sun-java6-bin
> > 2) Determine the path of the ia32-sun-java6-bin java binary
>
> >         update-java-alternatives -l
>
> > 3) Replace javaCmd="java" in 
> > android-sdk-linux_x86-/tools/traceviewwith the following
>
> >         # javaCmd="java"
> >         javaCmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> > --Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine

Thanks.

Actually, I found another solution. In the android_sdk tools/lib
directory I replaced swt.jar by the 64 bits version of swt.jar. Then,
there's 4 .so files in that directory with the number 3236 in it (that
depends on the version of swt that's included in the distribution,
different versions of the sdk may have files with different numbers).
Replace those by the same files with the number 3448 in it - again, a
different version of SWT may have a different number. Make sure it's
the files from the 64 bits SWT. These files are in the SWT.jar.

SWT.jar can be downloaded from www.eclipse.org/swt.


On Jul 5, 1:50 am, Jeff Boody  wrote:
> To maketraceviewwork on64-bit Ubuntu
> 1) sudo apt-get install ia32-sun-java6-bin
> 2) Determine the path of the ia32-sun-java6-bin java binary
>
>         update-java-alternatives -l
>
> 3) Replace javaCmd="java" in 
> android-sdk-linux_x86-/tools/traceviewwith the following
>
>         # javaCmd="java"
>         javaCmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> --Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine

Thanks.

Actually, I found another solution. In the android_sdk tools/lib
directory I replaced swt.jar by the 64 bits version of swt.jar. Then,
there's 4 .so files in that directory with the number 3236 in it (that
depends on the version of swt that's included in the distribution,
different versions of the sdk may have files with different numbers).
Replace those by the same files with the number 3448 in it - again, a
different version of SWT may have a different number. Make sure it's
the files from the 64 bits SWT. These files are in the SWT.jar.

SWT.jar can be downloaded from www.eclipse.org/swt.


On Jul 5, 1:50 am, Jeff Boody  wrote:
> To maketraceviewwork on64-bit Ubuntu
> 1) sudo apt-get install ia32-sun-java6-bin
> 2) Determine the path of the ia32-sun-java6-bin java binary
>
>         update-java-alternatives -l
>
> 3) Replace javaCmd="java" in 
> android-sdk-linux_x86-/tools/traceviewwith the following
>
>         # javaCmd="java"
>         javaCmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> --Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: adb is not detecting my new android phone

2009-07-04 Thread Christine

Does windows detect the phone as a usb drive?


On Jul 2, 4:11 am, N3vik  wrote:
> Hi
>
> I have two G1 phone's, the first one got wet and no longer gets a
> signal so I had to buy another :(
>
> My problem is adb does not detect my new phone :(  It can detect my
> old phone ok, but not the new one.
>
> Running "adb devices" with my old phone connected shows my old phone,
> but with my new phone I just get an empty list.
>
> I'm using Windows Vista.  Before people tell me to install the USB
> drivers, I've already done that.  And I've tried "adb kill-server".
> And I've restarted the phone and computer many times.  And yes, "USB
> debugging" is ticked in the settings of my new phone.  And, like I
> said, it is detecting my old broken phone ok.
>
> Any ideas?  Please help!
> Kevin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parsing SOAP request

2009-07-04 Thread Christine

I have tried KSoap a while ago - maybe it's better now - but I didn't
find it all too useful.. I use XStream to turn an xml response into a
class that my app then uses. Also, I use XStream to create the xml
that I send to the server. It's rather straightforward, actually. On
the server side, I use Apache CXF.



On Jul 4, 3:02 pm, Piwaï  wrote:
> Maybe you should read some KSoap2 usage examples first ? You are
> asking quite basic questions which probably means that you didn't find
> any tutorial or documentation...
>
> There are many ways to use KSoap2. You may find one 
> here:http://code.google.com/p/sugadroid/(and Android project that calls
> SugarCRM SOAP Web Services)
>
> KSoap2 usage examples in those classes:
>
> http://code.google.com/p/sugadroid/source/browse/trunk/code/src/com/e...http://code.google.com/p/sugadroid/source/browse/trunk/code/src/com/e...
>
> On Jul 3, 9:55 pm, feda al-shahwan  wrote:
>
> > How if I want to parse soap request for adding two integers. And the value
> > of the integers are provided by the client.
>
> > On Tue, Jun 23, 2009 at 7:25 AM, sagar.indianic 
> > wrote:
>
> > > You dont need to parse manually...
> > > First get the "ksoap2-j2se-full-2.1.2.jar".. Search you will get it..
>
> > > then use the following code..
>
> > > private static String SOAP_ACTION = "namespace/FunName";
> > >    private static String METHOD_NAME = "method_name";
> > >    private static final String NAMESPACE = "namespace";
> > >    private static final String URL = "Url of web service";
>
> > > SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
> > >                request.addProperty("field of web service", variable);
>
> > >        SoapSerializationEnvelope envelope = new
> > > SoapSerializationEnvelope(SoapEnvelope.VER11);
> > >        envelope.setOutputSoapObject(request);  // same as
> > > envelope.bodyOut = request;
>
> > >        HttpTransportSE httpTransport = new HttpTransportSE(URL);
> > >        httpTransport.call(SOAP_ACTION, envelope); //This sends a soap
> > > request and response will be in envelope only.
>
> > > Now check for envelope.bodyIn will give you response from webservice.
> > > This will give you SoapObject. Retrieve response strings from the
> > > SoapObject method.
>
> > > On Jun 22, 10:17 am, Desu Vinod Kumar  wrote:
> > > > Hi  everyone
>
> > > > i am looking for soap web services in android. my hand also will help to
> > > u
>
> > > > actually i need to connect the PHP soap web services in android
>
> > > > i need to get the response from the PHP server and should return it in
> > > xml
> > > > format.
>
> > > > can any body give me suggestions regarding this
>
> > > > i have tried some small code but it is unexpectedly quiting
>
> > > > if any android runtime errors in log cat is any problem
>
> > > > how can i clear that android runtime errors in log cat what i am getting
> > > ...
>
> > > > Here is my code
>
> > > > protected void onCreate(Bundle icicle)
> > > >     {
>
> > > >     super.onCreate(icicle);
>
> > > >     // SOAP Request for the FindServiceSOAP.GetRatingInfo web service
> > > >     String soapRequestXML = " > > encoding=\"utf-8\"?>\n" +
> > > >                             " > >http://schemas.xmlsoap.org/soap/envelope/\"; " +
> > > >                             "               xmlns:xsi=\"
> > >http://www.w3.org/2001/XMLSchema-instance\"; " +
> > > >                             "               xmlns:xsd=\"
> > >http://www.w3.org/2001/XMLSchema\";>\n" +
> > > >                             "    http://tempuri.org
> > > \">\n"
> > > > +
> > > >                             "    \n" +
> > > >                             "  \n" +
> > > >                             "";
>
> > > >     String url = "http://www.hasdhs.com/ask.php";;
> > > >     HttpClient client = new HttpClient();
>
> > > >     PostMethod postMethod = new PostMethod(url);
>
> > > >  // Construct a SOAP request by hand
> > > >     StringBuffer request = new StringBuffer();
> > > >     request.append(soapRequestXML);
>
> > > >     postMethod.setRequestBody(request.toString());
> > > >     postMethod.setRequestHeader("Content-Type","text/xml;
> > > charset=utf-8");
> > > >     postMethod.setRequestHeader("SOAPAction",
> > > >                                              "\"http://tempuri.org\"";);
>
> > > >     int statusCode = 0;
> > > >     try {
> > > >         statusCode = client.executeMethod(postMethod);
> > > >     } catch (IOException e) {
> > > >         Log.d("ReverseGeoCoder", e.toString(), e);
> > > >     }
>
> > > >  // Parse the SOAP Response
> > > >     MyContentHandler myContentHandler = new MyContentHandler();
> > > >     try {
> > > >         SAXParser parser = 
> > > > SAXParserFactory.newInstance().newSAXParser();
>
> > > >     } catch (Exception e) {
> > > >         Log.d("ISizzle", e.toString(), e);
> > > >     }
>
> > > >     // Display the response details.
> > > >     List list = myContentHandler.getRating();
> > > >     String[] items = new String[list.si

[android-developers] traceview on 64bit computer

2009-07-04 Thread Christine

I tried to use traceview on a computer with a 64bit processor, the
error I get is "architecture word width mismatch":

android-sdk-linux_x86-1.5_r2/tools/lib/libswt-pi-gtk-3236.so: /home/
christine/java/android-sdk-linux_x86-1.5_r2/tools/lib/libswt-pi-
gtk-3236.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture
word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.gtk.OS.(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.(Display.java:126)
at org.eclipse.swt.widgets.Widget.isValidSubclass(Widget.java:867)
at org.eclipse.swt.widgets.Decorations.checkSubclass(Decorations.java:
162)
at org.eclipse.swt.widgets.Shell.(Shell.java:248)
at org.eclipse.swt.widgets.Shell.(Shell.java:338)
at org.eclipse.jface.window.Window.createShell(Window.java:482)
at org.eclipse.jface.window.Window.create(Window.java:425)
at org.eclipse.jface.window.Window.open(Window.java:785)
at com.android.traceview.MainWindow.run(MainWindow.java:58)
at com.android.traceview.MainWindow.main(MainWindow.java:190)

I do use the 64bit version of Eclipse for development, I know SWT
works on my computer. What do I need to do to make traceview work on
my computer?
For now, I copy the trace files to my laptop, which has a 32 bits
architecture.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



Re: Re : Re : [android-developers] Re: Sharing data between an Android service and an application.

2009-06-29 Thread Christine

If you only need to provide some parameters at startup, you can do
that in the onbind intent. If you don't need tight coupling between
activity and service and the amount of data is very limited, you can
use sharedpreferences to exchange data.


On Jun 29, 2:38 pm, GAYET Thierry  wrote:
> Thanks for those informations. I will see about.
>
> I have planned to buy your book this week. Is there a date for printing the 
> two other books from commonsware.com ?
>
>  Cordialement
>
> Thierry GAYET
> NextInnovation.org
> +33(0)663.849.589
>
> 
> De : Mark Murphy 
> À : android-developers@googlegroups.com
> Envoyé le : Lundi, 29 Juin 2009, 14h00mn 14s
> Objet : Re: Re : [android-developers] Re: Sharing data between an Android 
> service and an application.
>
> GAYET Thierry wrote:
> > Hi, my service implement a security protocol that contain a certificate.
> > My application (i have written too)
>
> > I have heard aidl communication that can be used between a service and
> > an application but don't know how to use it too. I need some more
> > information about.
>
> A fair bit of documentation can be found here:
>
> http://developer.android.com/guide/developing/tools/aidl.html
>
> The SDK also contains sample code implementing AIDL:
>
> ApiDemos/src/com/example/android/apis/app/IRemoteServiceCallback.aidl
> ApiDemos/src/com/example/android/apis/app/IRemoteService.aidl
> ApiDemos/src/com/example/android/apis/app/ISecondary.aidl
>
> You can also find sample code for remote services from my _Android
> Programming Tutorials_ book page:
>
> http://commonsware.com/AndTutorials/
>
> AIDL is also covered in the following print books:
>
> _Beginning Android_ (by yours truly)
> _Professional Android Application Development_ (by Reto Meier)
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sharing data between an Android service and an application.

2009-06-28 Thread Christine

Can you be more specific about the application that your service needs
to communicate with? Is it your own application?


On Jun 28, 11:11 pm, GAYET Thierry  wrote:
> Hi, in order to share data between one of my own Android service and an 
> application i am looking for the best way to do this. I have seen the shared 
> memory drivers inside the GNU Linux kernel, but no Java api. Maybe the 
> specific Google IPC Blinder cad be used for my need ?
>
> What do you think about ? Thank you for giving me web link with sample code.
>
>  Regards
>
> Thierry GAYET
> NextInnovation.org
> +33(0)663.849.589
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Camera in portrait mode

2009-06-28 Thread Christine

I'm sure that you found the right tone of voice to address the Android
development team.

Layar, isn't that the same as Wikitude?


On Jun 28, 12:02 am, indra  wrote:
> Hi guys at android,
>
> Can you plase fixhttp://code.google.com/p/android/issues/detail?id=1193
> When do you expect it to get fixed? I am a developer working 
> onhttp://layar.euand I had to go through lot of trouble to get the app
> working in portrait mode with camera preview, using a LOT of
> rotations. I have managed to get everything rotated to portrait except
> for the on screen inputmethod which still shows up in landscape. Do
> you have any suggestions for rotating that?
>
> Thanks,
> Indraneel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to save a Bitmap instance to a *.bmp file.

2009-06-28 Thread Christine

On Jun 28, 7:02 am, Romain Guy  wrote:
> JPG and PNG are also bitmaps.

... which means that you can use bitmap.compress to put a Bitmap
instance into a jpg or png file. Like you use BitmapFactory.decodeFile
to create a Bitmap object from a jpg or png file.


>
> 2009/6/27 楊健 :
>
>
>
>
>
> > But the images we use in application are instances of Bitmap : (
>
> > On 6月28日, 午前2:43, Romain Guy  wrote:
> >> BMP is not supported on Android. And why is it strange? PNG and JPG
> >> are widely used formats across platforms.
>
> >> On Sat, Jun 27, 2009 at 7:32 AM, 楊健 wrote:
>
> >> > Hey everybody !
> >> >  How can i save a Bitmap instance to a *.bmp file?Anyone knows?
> >> > Is it strange that we can only save a bitmap instance to a png or jpg
> >> > file?
> >> > Best regards!
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?

2009-06-15 Thread Christine

I have an ADP1 here without a sim card - I put that in the Google IO
phone - and I can use the phone on my wifi network. HTC provides
updates for the ADP directly from their site, I upgraded to 1.5r2
earlier today. So I see no problem in having an ADP or other Android
phone without a contract.

I have requested a "duo sim card" from Vodafone so I can use both
phones for testing, without having to take out sim cards.

On Jun 10, 6:13 am, Kent Loobey  wrote:
> The following is my opinion.
>
> I have a dev g1 phone.  I was not able to get it to register with google
> without a sim card.  This means that I couldn't get past the registration
> screen until I had a sim card.  I think google makes it have to go through a
> phone connection to complete the registration.  I got a sim card from T-Mobile
> ($63/mo, one month minimum).  I could not get a data only plan from them.  I
> haven't tried it yet without the sim because my month isn't up yet but I
> believe that it works fine with just WiFi which is just any WiFi connection
> (That is to say the WiFi isn't going through T-Mobile.).
>
> The point of a T-Mobile G1 contract is to get the phone discounted.  If you
> don't want the phone discounted then you don't need the contract.  The monthly
> rate is the same with or without the contract.
>
> You only need a T-Mobile account if you need to make cellular phone calls and
> to do the initial google registration.  If you already have a GMail account
> the registration might not be necessary.
>
> On Tuesday 09 June 2009 19:35:49 tgustafson wrote:
>
> > Hi Todd,
>
> > Thank you very much for the reply.  Is there a charge for the wifi-
> > only data plan?  I will be using this solely to develop and will
> > always be covered by wifi coverage.
>
> > Cheers,
> > Tom
>
> > On Jun 9, 7:16 am, Todd Sjolander  wrote:
> > > I'm using a G1 with the old non-Android (read: "Wifi only") data
> > > plan.  The only downside that I've seen is the loss of connectivity
> > > outside of your Wifi networks.  But if you're developing from inside a
> > > wireless network, it makes no difference.  You can still buy apps on
> > > the market, and use all the usual network-based software.
>
> > > Todd Sjolander
>
> > > On Jun 9, 1:55 am, tgustafson  wrote:
> > > > Hi John,
>
> > > > Thanks for the tip, they look like they are quite expensive
> > > > unfortunately given the low supply.  Have you had any experience with
> > > > developers using a generic t-mobile G1 phone for development without
> > > > data plan?
>
> > > > Cheers,
> > > > Tom
>
> > > > On Jun 8, 10:12 pm, "Maps.Huge.Info (Maps API Guru)"
>
> > > >  wrote:
> > > > > There are a few of the unlocked HTC Magic phones available on eBay.
> > > > > These are the ones given out at the Google IO conference that will
> > > > > work without a SIM or on any capable network. Search eBay for Google
> > > > > IO and you'll find them. Nice phones, I wouldn't part with mine for
> > > > > anything.
>
> > > > > -John Coryat
>
> > > > >http://maps.huge.info
>
> > > > >http://www.usnaviguide.com
>
> > > > >http://www.zipmap.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   3   >