[android-developers] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-08-23 Thread Zarah Dominguez
Hi Alberto,

I saw this on the Galaxy S also.  I have tested the app on the Galaxy
Spica (i5700), it is working perfectly.  But when I tested the app on
the Galaxy S, the app crashes.

I haven't found a solution yet, but this is what I found from Logcat:
08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed activity
com.android.contacts/
com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms (total
452 ms)

Versus what is seen from the emulator:
08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
com.android.contacts/.DialtactsContactsEntryActivity: 348 ms (total
348 ms)

Looks like the Galaxy S has a different way of handling intents for
the Phonebook.

If you find a solution, please let me know also.

Thanks!
-Zarah




On Aug 12, 7:06 pm, Albert  wrote:
> I have an user from my app that has reported this issue on a Samsung
> Galaxy S. Do you know why it's happening? Did you find a solution?
>
> -Alberto
>
> On Aug 6, 1:46 pm, Alok Kulkarni  wrote:
>
>
>
> > yeah it is only happening on that deviuce. But i have found a different
> > solution to it which i will put up here tomorrow.
>
> > On Wed, Aug 4, 2010 at 12:51 PM, dan raaka  wrote:
> > > Is this happening only on Europa ?
>
> > > -Dan
>
> > > On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni  wrote:
>
> > >> Hi , i am using
> > >> startActivityForResult(intent,PICK_CONTACT);
> > >> Its working on Android 1.5 to 2.1 except for the 2.1 device Samsung
> > >> Europa..On that device , i am not able to read the contacts, its 
> > >> returning
> > >> empty result.
> > >> here is the link i referred for the code
> > >>http://www.droidnova.com/use-intents-to-start-other-activities,76.html
> > >> Is thr something i m missing ?
> > >> --
> > >> 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 > >>  cr...@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 > >  cr...@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: LED turn off

2010-09-08 Thread Zarah Dominguez
Hi Anand,

Are you sure? I am also using Eclair 2.1 and I have that option.

Or are you asking how to turn off the screen programmatically (which I
don't know how to do heheh).


Thanks,
Zarah.


On Sep 8, 3:34 pm, Anand Android  wrote:
> Hi Mark,
> I'm using eclair 2.1. This option is not avaible in that.
>
> -Anand
>
>
>
> On Wed, Sep 8, 2010 at 6:22 AM, Mark Murphy  wrote:
> > On Fri, Sep 3, 2010 at 9:05 AM, Anand Android 
> > wrote:
> > > In charge only mode the device stays awake all the time, it doesn't turn
> > off
> > > the screen during chargeOnly mode. I want it turn off the screen after
> > > certain amount of time . how do i do that ?
>
> > Uncheck Settings > Applications > Development > Stay awake
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://github.com/commonsguy
> >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android Training in London:http://skillsmatter.com/go/os-mobile-server
>
> > --
> > 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 > cr...@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: A ListView that acts like RadioButtons

2010-09-20 Thread Zarah Dominguez
What about using the choiceMode attribute for a ListView?

http://developer.android.com/reference/android/widget/ListView.html#setChoiceMode(int)

I have tried using CHOICE_MODE_MULTIPLE and it works.  I am guessing
CHOICE_MODE_SINGLE would act like an ACTION_PICK.


-Zarah.



On Sep 21, 5:47 am, Bret Foreman  wrote:
> Perhaps, but if I'm going to do that, I'd just as well have a
> SrollView with a LinearLayout with a RadioGroup with RadioButtons
> added on the fly. The behavior would then be almost identical, except
> I would lose the convenience of using an adapter for the data.
>
> On Sep 20, 2:23 pm, Kostya Vasilyev  wrote:> Perhaps it 
> would make sense then to put radio buttons into your ListView?
>
> > You'd have to manage their state changes yourself, but then the UI would be
> > instantly familiar to your users...
>
> > --
>
> 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: New ADT available.

2010-09-23 Thread Zarah Dominguez
Saw this problem too.

Tried uninstalling then re-installing the plugins, but still no
Android options anywhere.

Eclipse sees my Android projects as Java projects.

Were you able to solve it?


- Zarah.



On Sep 24, 10:02 am, String  wrote:
> I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse
> 3.5, with virtually no other plugins installed...
>
> - When I select Help > Check for Updates, it simply says "Nothing to
> update"
>
> - When I enterhttps://dl-ssl.google.com/android/eclipse/into Help >
> Install New Software, it shows me ADT 0.9.9, but the install fails
> with the following message:
>
> Android DDMS will be ignored because it is already installed, and
> updates are not permitted.
> Android Development Tools will be ignored because it is already
> installed, and updates are not permitted.
>
> - Following up on that, I went into Help > About Eclipse >
> Installation Details, and there too, Update and Uninstall are disabled
> (grayed out) for both ADT and DDMS.
>
> Any ideas?
>
> String
> On Sep 23, 10:13 pm, Xavier Ducrohet  wrote:
>
>
>
> > Hi all,
>
> > We've just pushed ADT 0.9.9 which contains an important fix from ADT
> > 0.9.8 that was released last week.
> > More info:http://developer.android.com/sdk/eclipse-adt.html
>
> > Xav
> > --
> > Xavier Ducrohet
> > Android SDK Tech Lead
> > Google Inc.
>
> > Please do not send me questions directly. 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: New ADT available.

2010-09-24 Thread Zarah Dominguez
Hi again,


Was able to make it work by uninstalling Eclipse, including all
versions in /Users//.eclipse, re-installing it then adding
the Update site again.


-Zarah.

On Sep 24, 2:27 pm, Zarah Dominguez  wrote:
> Saw this problem too.
>
> Tried uninstalling then re-installing the plugins, but still no
> Android options anywhere.
>
> Eclipse sees my Android projects as Java projects.
>
> Were you able to solve it?
>
> - Zarah.
>
> On Sep 24, 10:02 am, String  wrote:
>
>
>
> > I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse
> > 3.5, with virtually no other plugins installed...
>
> > - When I select Help > Check for Updates, it simply says "Nothing to
> > update"
>
> > - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp >
> > Install New Software, it shows me ADT 0.9.9, but the install fails
> > with the following message:
>
> > Android DDMS will be ignored because it is already installed, and
> > updates are not permitted.
> > Android Development Tools will be ignored because it is already
> > installed, and updates are not permitted.
>
> > - Following up on that, I went into Help > About Eclipse >
> > Installation Details, and there too, Update and Uninstall are disabled
> > (grayed out) for both ADT and DDMS.
>
> > Any ideas?
>
> > String
> > On Sep 23, 10:13 pm, Xavier Ducrohet  wrote:
>
> > > Hi all,
>
> > > We've just pushed ADT 0.9.9 which contains an important fix from ADT
> > > 0.9.8 that was released last week.
> > > More info:http://developer.android.com/sdk/eclipse-adt.html
>
> > > Xav
> > > --
> > > Xavier Ducrohet
> > > Android SDK Tech Lead
> > > Google Inc.
>
> > > Please do not send me questions directly. 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: New ADT available.

2010-09-24 Thread Zarah Dominguez
Hi Xav,

I updated from 0.9.7 to 0.9.9.  I haven't updated my other workstation
though (it's also still on 0.9.7), how do you suggest I proceed?

Uninstalling and then installing Eclipse seems to be a lot of trouble
for a plug in update. Any ideas? :)



Thanks,
Zarah.


On Sep 24, 10:08 pm, Xavier Ducrohet  wrote:
> hmm I'm not sure why this would happen.
>
> Did you update from 0.9.7 or from 0.9.8 (released 2 weeks ago). 0.9.9
> is just a very minor fix over 0.9.8
>
> Xav
>
> On Thu, Sep 23, 2010 at 11:27 PM, Zarah Dominguez
>
>
>
>
>
>  wrote:
> > Saw this problem too.
>
> > Tried uninstalling then re-installing the plugins, but still no
> > Android options anywhere.
>
> > Eclipse sees my Android projects as Java projects.
>
> > Were you able to solve it?
>
> > - Zarah.
>
> > On Sep 24, 10:02 am, String  wrote:
> >> I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse
> >> 3.5, with virtually no other plugins installed...
>
> >> - When I select Help > Check for Updates, it simply says "Nothing to
> >> update"
>
> >> - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp >
> >> Install New Software, it shows me ADT 0.9.9, but the install fails
> >> with the following message:
>
> >> Android DDMS will be ignored because it is already installed, and
> >> updates are not permitted.
> >> Android Development Tools will be ignored because it is already
> >> installed, and updates are not permitted.
>
> >> - Following up on that, I went into Help > About Eclipse >
> >> Installation Details, and there too, Update and Uninstall are disabled
> >> (grayed out) for both ADT and DDMS.
>
> >> Any ideas?
>
> >> String
> >> On Sep 23, 10:13 pm, Xavier Ducrohet  wrote:
>
> >> > Hi all,
>
> >> > We've just pushed ADT 0.9.9 which contains an important fix from ADT
> >> > 0.9.8 that was released last week.
> >> > More info:http://developer.android.com/sdk/eclipse-adt.html
>
> >> > Xav
> >> > --
> >> > Xavier Ducrohet
> >> > Android SDK Tech Lead
> >> > Google Inc.
>
> >> > Please do not send me questions directly. 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
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
>
> Please do not send me questions directly. 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: Problem with image button

2010-09-26 Thread Zarah Dominguez
Yes, niko20 is right.

See 
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList
for reference.


-Zarah.


On Sep 26, 9:11 pm, niko20  wrote:
> The only thing I can think of is that the drawables in the selector
> are taken in the order in which listed in the XML. So it it finds a
> "match" for the state it will grab the first entry it finds in order.
>
> The other thing worth trying is to put two of these buttons on a
> dialog and then test. Then you can see if you are having a problem
> with the "focused" state.
>
> -niko
>
> On Sep 24, 12:02 am, Vinay  wrote:
>
>
>
> > The image button background never changes (normal, focused, clicked.)
>
> > I'm using an image button and trying to different background image
> > when normal, focused and clicked. I have read quite a lot of posts
> > related to this and have implemented exactly as suggested. My code
> > below:
>
> > In main.xml: (this is just a part of my main.xml)
> >  >         android:layout_width="wrap_content"
> > android:layout_height="wrap_content"
> >         android:background="@drawable/fm" android:clickable="true"
> >         android:focusable="true" android:layout_margin="10px">
> > 
>
> > fm.xml: (in folder drawable)
> > 
> >  >   xmlns:android="http://schemas.android.com/apk/res/android";>
> >   
> >   
>
> >   
> >    >         android:drawable="@drawable/fm_focus"/>
>
> >   
> >    >         android:drawable="@drawable/fm_press"/>
>
> >   
> >    >         android:state_pressed="true"
> >         android:drawable="@drawable/fm_press"/>
> > 
>
> > Kindly let me know if I'm missing some thing.
>
> > Also kindly let me know will the focus works in the emulator when
> > focused using mouse.
>
> > Thank you.

-- 
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: Can I post text to facebook profile from my android application?

2010-09-27 Thread Zarah Dominguez
Sure you can!

You can get the official Facebook SDK for Android from
http://github.com/facebook/facebook-android-sdk

There are also examples there to help you get started.

Good luck!



-Zarah.


On Sep 27, 3:52 pm, rokson  wrote:
> Hi Friends,
>
> This is Rockson,
> I am new to android. Here i am struggling with facebook posts from
> android application.
>
> I am developing a application in android from which i want to post
> some text to my facebook profile.
>
> Can i do that? Please help me.
>
> Thanks and Regards,
>
> Kiran.

-- 
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] Retrieving the path of a picture returned by ACTION_IMAGE_CAPTURE

2010-09-27 Thread Zarah Dominguez
Hi guys,

I am having a problem capturing an image from the built-in camera app
on the Samsung Galaxy S.  (I also posted this on StackOverflow)

I have a button on my app that when pressed launches the camera:
//-
ContentValues values = new ContentValues();
values.put(Images.Media.MIME_TYPE, "image/jpeg");

mPicUri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
values);

intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, mPicUri.getPath());
startActivityForResult(intent, REQ_CODE_TAKE_PIC);
//-

>From what I read on the interwebz, I can get the full-sized just-taken
picture using the URI I passed to the intent. And so I have this on my
onActivityResult:
//-
Uri selectedImage = mPicUri;
String[] filePathColumn = {MediaStore.Images.Media.DATA};

Cursor cursor = getContentResolver().query(selectedImage,
filePathColumn, null, null, null);
cursor.moveToFirst();

int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
String filePath = cursor.getString(columnIndex);
cursor.close();
//-

And then using the variable filePath, I set the image in an ImageView.
I am getting no image, and when I stepped through the code, I found
out that BitmapFactory.decodeFile() is returning null.

Bitmap chosenPic = BitmapFactory.decodeFile(filePath);


So I tried a little more debugging. I found out that mPicUri returns a
seemingly valid URI, such as: content://media/external/images/media/90.
After the picture is taken and the user chooses to save the picture,
the cursor resolves to the following filePath: /sdcard/DCIM/Camera/
1285601413961.jpg. No bitmap is decoded though, BUT when I looked
through the gallery, the picture I just took is there. So I tried to
take a look at the URI of that picture, and this is what I got:

URI is:   content://media/external/images/media/91
File path is: /sdcard/DCIM/Camera/2010-09-27 23.30.30.jpg

And so, it looks like the value I got from mPicUri is not the final
URI that will be used.

Am I missing a step here? All I really want to do is retrieve the file
of the just-taken picture.

Thanks in advance,
Zarah.

-- 
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: Problem with reading contacts on Samsung Galaxy Europa

2010-09-27 Thread Zarah Dominguez
Hi Alberto,


Sorry, I only saw this thread again today.

I wasn't able to launch the Phonebook, I just added a small bit of
code to check if there is someone who can receive the phonebook
intent.

PackageManager pkgMgr = getPackageManager();
List list = pkgMgr.queryIntentActivities(new
Intent(Intent.ACTION_VIEW, Contacts.CONTENT_URI),
PackageManager.MATCH_DEFAULT_ONLY);
if (list.isEmpty()){
// I just remove the menu item to access the phonebook
menu.removeItem(R.id.app_menu_contacts);
}

Maybe you can try this approach also.


Hope this helps,
Zarah.



On Aug 28, 3:36 am, Albert  wrote:
> Hi Zarah,
>
> I have reports of the app launching a blank screen but not crash. I am
> getting a Samsung Spica this week but you have already stated that it
> works there so that won't be of any use. For my app is wan't so
> critical so I just instruct Galaxy S users to insert those details
> manually. The best is probably to contact Samsung development
> department and find out what mess they have done and from there find a
> suitable solution.
>
> If you ever find a solution, please let me know.
>
> Alberto
>
> On Aug 23, 10:20 am, Zarah Dominguez 
> wrote:
>
>
>
> > Hi Alberto,
>
> > I saw this on the Galaxy S also.  I have tested the app on the Galaxy
> > Spica (i5700), it is working perfectly.  But when I tested the app on
> > the Galaxy S, the app crashes.
>
> > I haven't found a solution yet, but this is what I found from Logcat:
> > 08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed activity
> > com.android.contacts/
> > com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms (total
> > 452 ms)
>
> > Versus what is seen from the emulator:
> > 08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
> > com.android.contacts/.DialtactsContactsEntryActivity: 348 ms (total
> > 348 ms)
>
> > Looks like the Galaxy S has a different way of handling intents for
> > the Phonebook.
>
> > If you find a solution, please let me know also.
>
> > Thanks!
> > -Zarah
>
> > On Aug 12, 7:06 pm, Albert  wrote:
>
> > > I have an user from my app that has reported this issue on aSamsung
> > > Galaxy S. Do you know why it's happening? Did you find a solution?
>
> > > -Alberto
>
> > > On Aug 6, 1:46 pm, Alok Kulkarni  wrote:
>
> > > > yeah it is only happening on that deviuce. But i have found a different
> > > > solution to it which i will put up here tomorrow.
>
> > > > On Wed, Aug 4, 2010 at 12:51 PM, dan raaka  wrote:
> > > > > Is this happening only on Europa ?
>
> > > > > -Dan
>
> > > > > On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni  
> > > > > wrote:
>
> > > > >> Hi , i am using
> > > > >> startActivityForResult(intent,PICK_CONTACT);
> > > > >> Its working on Android 1.5 to 2.1 except for the 2.1 deviceSamsung
> > > > >> Europa..On that device , i am not able to read thecontacts, its 
> > > > >> returning
> > > > >> empty result.
> > > > >> here is the link i referred for the code
> > > > >>http://www.droidnova.com/use-intents-to-start-other-activities,76.html
> > > > >> Is thr something i m missing ?
> > > > >> --
> > > > >> 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 > > > >>  cr...@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 > > > >  cr...@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: Can I post text to facebook profile from my android application?

2010-09-28 Thread Zarah Dominguez
Hi Rokson!

You're welcome.  I am using Alex Pretzlav's version though, see here:
http://github.com/Pretz/facebook-android-sdk

He added support for screen rotation (the official examples crash when
rotated).  I think the main difference is that in Alex's version, he
let the OS manage the dialogs.

Goodluck!


-Zarah.



On Sep 28, 1:09 pm, rokson  wrote:
> Thank you very much Zarah.
>
> On Sep 27, 1:58 pm, Zarah Dominguez  wrote:
>
>
>
> > Sure you can!
>
> > You can get the official Facebook SDK for Android 
> > fromhttp://github.com/facebook/facebook-android-sdk
>
> > There are also examples there to help you get started.
>
> > Good luck!
>
> > -Zarah.
>
> > On Sep 27, 3:52 pm, rokson  wrote:
>
> > > Hi Friends,
>
> > > This is Rockson,
> > > I am new to android. Here i am struggling with facebook posts from
> > > android application.
>
> > > I am developing a application in android from which i want to post
> > > some text to my facebook profile.
>
> > > Can i do that? Please help me.
>
> > > Thanks and Regards,
>
> > > Kiran.

-- 
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: Problem with image button

2010-09-28 Thread Zarah Dominguez
Try moving the elements in the XML around a bit.

Try to think of your selector as a big if-else.



- Zarah.



On Sep 29, 11:13 am, Vinay  wrote:
> Dear all,
>
> Thank you for the suggestions.
>
> @ Niko, Zahar: Thanks for helping me understand better.
>
> @nishu: Things seem to be working. The image does change when fouced.
> BUT preseed state still doesn't seem to be reflecting. This test was
> carried out on the emulator. The changes can be noticed only when used
> keyborad. (Normal and Focused states only)
>
> In case the application is ported on any of the embedded systems, can
> the changes be seen with touch screen. Further, why isn't the changes
> when used mouse with the emulator ???
>
> Thank you all.
>
> Vinay.
>
> On Sep 27, 5:56 pm, nishu  wrote:
>
>
>
> > try this
>
> > 
> > http://schemas.android.com/apk/res/android";>
> > 
> >      >             android:state_pressed="false"
> >             android:drawable="@drawable/login_hover"
> >             />
> > 
> >      >             android:state_pressed="true"
> >             android:drawable="@drawable/login_hover"
> >             />
> > 
> >      >             android:state_pressed="true"
> >             android:drawable="@drawable/login_hover"
> >             />
> > 
> >     
>
> > 
>
> > On Sep 26, 6:11 pm, niko20  wrote:
>
> > > The only thing I can think of is that the drawables in the selector
> > > are taken in the order in which listed in the XML. So it it finds a
> > > "match" for the state it will grab the first entry it finds in order.
>
> > > The other thing worth trying is to put two of these buttons on a
> > > dialog and then test. Then you can see if you are having a problem
> > > with the "focused" state.
>
> > > -niko
>
> > > On Sep 24, 12:02 am, Vinay  wrote:> The image 
> > > button background never changes (normal, focused, clicked.)
>
> > > > I'm using an image button and trying to different background image
> > > > when normal, focused and clicked. I have read quite a lot of posts
> > > > related to this and have implemented exactly as suggested. My code
> > > > below:
>
> > > > In main.xml: (this is just a part of my main.xml)
> > > >  > > >         android:layout_width="wrap_content"
> > > > android:layout_height="wrap_content"
> > > >         android:background="@drawable/fm" android:clickable="true"
> > > >         android:focusable="true" android:layout_margin="10px">
> > > > 
>
> > > > fm.xml: (in folder drawable)
> > > > 
> > > >  > > >   xmlns:android="http://schemas.android.com/apk/res/android";>
> > > >   
> > > >   
>
> > > >   
> > > >    > > >         android:drawable="@drawable/fm_focus"/>
>
> > > >   
> > > >    > > >         android:drawable="@drawable/fm_press"/>
>
> > > >   
> > > >    > > >         android:state_pressed="true"
> > > >         android:drawable="@drawable/fm_press"/>
> > > > 
>
> > > > Kindly let me know if I'm missing some thing.
>
> > > > Also kindly let me know will the focus works in the emulator when
> > > > focused using mouse.
>
> > > > Thank you.- 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] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-09-30 Thread Zarah Dominguez
Yeah, hope we get feedback soon.  Mark Murphy referred me to this:
http://code.google.com/p/android/issues/detail?id=10143


Hi Mike,

How did you handle this on your end?

-Zarah.



On Sep 30, 1:04 pm, mikedroid  wrote:
> yes im having this problem also hope they can check it soon
>
> On Sep 28, 12:45 am, Zarah Dominguez 
> wrote:
>
>
>
> > Hi Alberto,
>
> > Sorry, I only saw this thread again today.
>
> > I wasn't able to launch the Phonebook, I just added a small bit of
> > code to check if there is someone who can receive the phonebook
> > intent.
>
> > PackageManager pkgMgr = getPackageManager();
> > List list = pkgMgr.queryIntentActivities(new
> > Intent(Intent.ACTION_VIEW,Contacts.CONTENT_URI),
> > PackageManager.MATCH_DEFAULT_ONLY);
> > if (list.isEmpty()){
> >         // I just remove the menu item to access the phonebook
> >         menu.removeItem(R.id.app_menu_contacts);
>
> > }
>
> > Maybe you can try this approach also.
>
> > Hope this helps,
> > Zarah.
>
> > On Aug 28, 3:36 am, Albert  wrote:
>
> > > Hi Zarah,
>
> > > I have reports of the app launching a blank screen but not crash. I am
> > > getting aSamsungSpica this week but you have already stated that it
> > > works there so that won't be of any use. For my app is wan't so
> > > critical so I just instructGalaxySusers to insert those details
> > > manually. The best is probably to contactSamsungdevelopment
> > > department and find out what mess they have done and from there find a
> > > suitable solution.
>
> > > If you ever find a solution, please let me know.
>
> > > Alberto
>
> > > On Aug 23, 10:20 am, Zarah Dominguez 
> > > wrote:
>
> > > > Hi Alberto,
>
> > > > I saw this on theGalaxySalso.  I have tested the app on theGalaxy
> > > > Spica (i5700), it is working perfectly.  But when I tested the app on
> > > > theGalaxyS, the app crashes.
>
> > > > I haven't found a solution yet, but this is what I found from Logcat:
> > > > 08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed activity
> > > > com.android.contacts/
> > > > com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms (total
> > > > 452 ms)
>
> > > > Versus what is seen from the emulator:
> > > > 08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
> > > > com.android.contacts/.DialtactsContactsEntryActivity: 348 ms (total
> > > > 348 ms)
>
> > > > Looks like theGalaxyShas a different way of handling intents for
> > > > the Phonebook.
>
> > > > If you find a solution, please let me know also.
>
> > > > Thanks!
> > > > -Zarah
>
> > > > On Aug 12, 7:06 pm, Albert  wrote:
>
> > > > > I have an user from my app that has reported this issue on aSamsung
> > > > >GalaxyS. Do you know why it's happening? Did you find a solution?
>
> > > > > -Alberto
>
> > > > > On Aug 6, 1:46 pm, Alok Kulkarni  wrote:
>
> > > > > > yeah it is only happening on that deviuce. But i have found a 
> > > > > > different
> > > > > > solution to it which i will put up here tomorrow.
>
> > > > > > On Wed, Aug 4, 2010 at 12:51 PM, dan raaka  
> > > > > > wrote:
> > > > > > > Is this happening only on Europa ?
>
> > > > > > > -Dan
>
> > > > > > > On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni 
> > > > > > >  wrote:
>
> > > > > > >> Hi , i am using
> > > > > > >> startActivityForResult(intent,PICK_CONTACT);
> > > > > > >> Its working on Android 1.5 to 2.1 except for the 2.1 
> > > > > > >> deviceSamsung
> > > > > > >> Europa..On that device , i am not able to read thecontacts, its 
> > > > > > >> returning
> > > > > > >> empty result.
> > > > > > >> here is the link i referred for the code
> > > > > > >>http://www.droidnova.com/use-intents-to-start-other-activities,76.html
> > > > > > >> Is thr something i m missing ?
> > > > > > >> --
> > > > > > >> You received this message because you are subscribed to the 
> > > > > > >> Google
> > > > > > >> Groups "Andr

[android-developers] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-09-30 Thread Zarah Dominguez
I was also able to insert a contact into the address book.  So far it
looks like the only action not supported is viewing the whole contacts
list.

Pasted the stacktrace I got in StackOverflow:
http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on-galaxy-s-crashes-the-app

I guess what happened is that Samsung's own contacts app has an
incomplete manifest.  Oh well, for the meantime I managed to get
around it by disabling the button to access the phonebook using
PackageManager so that users won't be confused.



-Zarah.



On Oct 1, 9:10 am, mikedroid  wrote:
> actually it does show me a list (calling ACTION_VIEW or ACTION_PICK)
> using ContactsContract.Contacts.CONTENT_URI. but we wanted to call the
> samsung's native contacts activity which is named something like
> PhoneBookTopMenuActivity. Also i noticed that instead of the two
> actions i;ve mentions they are using this activity with filters
> action=main; category=launcher which is odd right?
>
> On Sep 30, 3:42 pm, Zarah Dominguez  wrote:
>
>
>
> > Yeah, hope we get feedback soon.  Mark Murphy referred me to 
> > this:http://code.google.com/p/android/issues/detail?id=10143
>
> > Hi Mike,
>
> > How did you handle this on your end?
>
> > -Zarah.
>
> > On Sep 30, 1:04 pm, mikedroid  wrote:
>
> > > yes im having this problem also hope they can check it soon
>
> > > On Sep 28, 12:45 am, Zarah Dominguez 
> > > wrote:
>
> > > > Hi Alberto,
>
> > > > Sorry, I only saw this thread again today.
>
> > > > I wasn't able to launch the Phonebook, I just added a small bit of
> > > > code to check if there is someone who can receive the phonebook
> > > > intent.
>
> > > > PackageManager pkgMgr = getPackageManager();
> > > > List list = pkgMgr.queryIntentActivities(new
> > > > Intent(Intent.ACTION_VIEW,Contacts.CONTENT_URI),
> > > > PackageManager.MATCH_DEFAULT_ONLY);
> > > > if (list.isEmpty()){
> > > >         // I just remove the menu item to access the phonebook
> > > >         menu.removeItem(R.id.app_menu_contacts);
>
> > > > }
>
> > > > Maybe you can try this approach also.
>
> > > > Hope this helps,
> > > > Zarah.
>
> > > > On Aug 28, 3:36 am, Albert  wrote:
>
> > > > > Hi Zarah,
>
> > > > > I have reports of the app launching a blank screen but not crash. I am
> > > > > getting aSamsungSpica this week but you have already stated that it
> > > > > works there so that won't be of any use. For my app is wan't so
> > > > > critical so I just instructGalaxySusers to insert those details
> > > > > manually. The best is probably to contactSamsungdevelopment
> > > > > department and find out what mess they have done and from there find a
> > > > > suitable solution.
>
> > > > > If you ever find a solution, please let me know.
>
> > > > > Alberto
>
> > > > > On Aug 23, 10:20 am, Zarah Dominguez 
> > > > > wrote:
>
> > > > > > Hi Alberto,
>
> > > > > > I saw this on theGalaxySalso.  I have tested the app on theGalaxy
> > > > > > Spica (i5700), it is working perfectly.  But when I tested the app 
> > > > > > on
> > > > > > theGalaxyS, the app crashes.
>
> > > > > > I haven't found a solution yet, but this is what I found from 
> > > > > > Logcat:
> > > > > > 08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed activity
> > > > > > com.android.contacts/
> > > > > > com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms (total
> > > > > > 452 ms)
>
> > > > > > Versus what is seen from the emulator:
> > > > > > 08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
> > > > > > com.android.contacts/.DialtactsContactsEntryActivity: 348 ms (total
> > > > > > 348 ms)
>
> > > > > > Looks like theGalaxyShas a different way of handling intents for
> > > > > > the Phonebook.
>
> > > > > > If you find a solution, please let me know also.
>
> > > > > > Thanks!
> > > > > > -Zarah
>
> > > > > > On Aug 12, 7:06 pm, Albert  wrote:
>
> > > > > > > I have an user from my app that has reported this issue on 
> > > > > > > aSamsung
> >

[android-developers] Re: Could use some help (free game on Galaxy S problem)

2010-10-04 Thread Zarah Dominguez
Hi Patrick!

Will try to download your game.  Looks like Market is acting up over
here and it won't start the download.  Will try again later.

For a relatively expensive phone, it looks like Galaxy S gives us
developers quite a headache. ;)

- Zarah.



On Oct 2, 10:44 pm, Patrick  wrote:
> I put a free trial version of my game (RGBbot Trial Version)
> out on the market and although it seems to run well on my
> N1 and a friend's Droid X, I'm getting error reports
> from Samsung Galaxy S owners with an IllegalStateException
> trying to play an audiotrack.
>
> If a Galaxy S owner could send me a logcat after trying
> the game, I'd really appreciate it.
>
> The game has an error reporter class in place to catch
> exceptions (which is how I'm getting the reports) and it's
> SUPPOSED to also send some recent lines from the device log,
> but the log sending part doesn't seem to be working on the
> Galaxy S phones...
>
> 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: The Market App has a CACHE !

2010-10-04 Thread Zarah Dominguez
Hi Tony!

I experienced the same thing last Friday!  I updated my app but when I
checked the market it still shows the old version.  I was in a panic
too! ;)

I forced the Market app to terminate and then restarted it (pretty
much what Doug said, eh?), and it showed the update.  I am not sure if
there is some other way to force a page on the Market app to refresh
other than this way.


- Zarah.

On Oct 4, 2:30 pm, Doug  wrote:
> I've noticed that the Market app client has its own cache that it will
> consult.  If you force the Market app to terminate, you're more likely
> to see fresh results from the server.
>
> Doug

-- 
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: Problem with reading contacts on Samsung Galaxy Europa

2010-10-04 Thread Zarah Dominguez
Hi Mike,


Seeing as you already had a workaround, do you still need the snippet?

On second thought, your email seems to be deleted. Oh well.


Salamat!


-Zarah.

On Oct 4, 10:10 am, mikedroid  wrote:
> actually we had a small workaround but i guess if samsung will not
> update soon(although we did catch that as an exception),
> using componentName...
>
> On Oct 1, 1:22 pm, Zarah Dominguez  wrote:
>
>
>
> > I was also able to insert a contact into the address book.  So far it
> > looks like the only action not supported is viewing the wholecontacts
> > list.
>
> > Pasted the stacktrace I got in 
> > StackOverflow:http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on...
>
> > I guess what happened is thatSamsung'sowncontactsapp has an
> > incomplete manifest.  Oh well, for the meantime I managed to get
> > around it by disabling the button to access the phonebook using
> > PackageManager so that users won't be confused.
>
> > -Zarah.
>
> > On Oct 1, 9:10 am, mikedroid  wrote:
>
> > > actually it does show me a list (calling ACTION_VIEW or ACTION_PICK)
> > > using ContactsContract.Contacts.CONTENT_URI. but we wanted to call the
> > >samsung'snativecontactsactivity which is named something like
> > > PhoneBookTopMenuActivity. Also i noticed that instead of the two
> > > actions i;ve mentions they are using this activity with filters
> > > action=main; category=launcher which is odd right?
>
> > > On Sep 30, 3:42 pm, Zarah Dominguez  wrote:
>
> > > > Yeah, hope we get feedback soon.  Mark Murphy referred me to 
> > > > this:http://code.google.com/p/android/issues/detail?id=10143
>
> > > > Hi Mike,
>
> > > > How did you handle this on your end?
>
> > > > -Zarah.
>
> > > > On Sep 30, 1:04 pm, mikedroid  wrote:
>
> > > > > yes im having this problem also hope they can check it soon
>
> > > > > On Sep 28, 12:45 am, Zarah Dominguez 
> > > > > wrote:
>
> > > > > > Hi Alberto,
>
> > > > > > Sorry, I only saw this thread again today.
>
> > > > > > I wasn't able to launch the Phonebook, I just added a small bit of
> > > > > > code to check if there is someone who can receive the phonebook
> > > > > > intent.
>
> > > > > > PackageManager pkgMgr = getPackageManager();
> > > > > > List list = pkgMgr.queryIntentActivities(new
> > > > > > Intent(Intent.ACTION_VIEW,Contacts.CONTENT_URI),
> > > > > > PackageManager.MATCH_DEFAULT_ONLY);
> > > > > > if (list.isEmpty()){
> > > > > >         // I just remove the menu item to access the phonebook
> > > > > >         menu.removeItem(R.id.app_menu_contacts);
>
> > > > > > }
>
> > > > > > Maybe you can try this approach also.
>
> > > > > > Hope this helps,
> > > > > > Zarah.
>
> > > > > > On Aug 28, 3:36 am, Albert  wrote:
>
> > > > > > > Hi Zarah,
>
> > > > > > > I have reports of the app launching a blank screen but not crash. 
> > > > > > > I am
> > > > > > > getting aSamsungSpica this week but you have already stated that 
> > > > > > > it
> > > > > > > works there so that won't be of any use. For my app is wan't so
> > > > > > > critical so I just instructGalaxySusers to insert those details
> > > > > > > manually. The best is probably to contactSamsungdevelopment
> > > > > > > department and find out what mess they have done and from there 
> > > > > > > find a
> > > > > > > suitable solution.
>
> > > > > > > If you ever find a solution, please let me know.
>
> > > > > > > Alberto
>
> > > > > > > On Aug 23, 10:20 am, Zarah Dominguez 
> > > > > > > wrote:
>
> > > > > > > > Hi Alberto,
>
> > > > > > > > I saw this on theGalaxySalso.  I have tested the app on 
> > > > > > > > theGalaxy
> > > > > > > > Spica (i5700), it is working perfectly.  But when I tested the 
> > > > > > > > app on
> > > > > > > > theGalaxyS, the app crashes.
>
> > > > > > > > I haven't found a solution yet, but this is what I 

[android-developers] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-10-04 Thread Zarah Dominguez
Great! Good job!

I'm already in the group. ;)


Thanks,
Zarah.



On Oct 5, 10:17 am, mikedroid  wrote:
> yes and it works perfectly like calling action_pick.
>
> good luck to android btw please join our philippine android group 
> :http://groups.google.com/group/philippine-android-developers
>
> On Oct 4, 6:18 pm, Zarah Dominguez  wrote:
>
>
>
> > Hi Mike,
>
> > Seeing as you already had a workaround, do you still need the snippet?
>
> > On second thought, your email seems to be deleted. Oh well.
>
> > Salamat!
>
> > -Zarah.
>
> > On Oct 4, 10:10 am, mikedroid  wrote:
>
> > > actually we had a small workaround but i guess ifsamsungwill not
> > > update soon(although we did catch that as an exception),
> > > using componentName...
>
> > > On Oct 1, 1:22 pm, Zarah Dominguez  wrote:
>
> > > > I was also able to insert a contact into the address book.  So far it
> > > > looks like the only action not supported is viewing the wholecontacts
> > > > list.
>
> > > > Pasted the stacktrace I got in 
> > > > StackOverflow:http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on...
>
> > > > I guess what happened is thatSamsung'sowncontactsapp has an
> > > > incomplete manifest.  Oh well, for the meantime I managed to get
> > > > around it by disabling the button to access the phonebook using
> > > > PackageManager so that users won't be confused.
>
> > > > -Zarah.
>
> > > > On Oct 1, 9:10 am, mikedroid  wrote:
>
> > > > > actually it does show me a list (calling ACTION_VIEW or ACTION_PICK)
> > > > > using ContactsContract.Contacts.CONTENT_URI. but we wanted to call the
> > > > >samsung'snativecontactsactivity which is named something like
> > > > > PhoneBookTopMenuActivity. Also i noticed that instead of the two
> > > > > actions i;ve mentions they are using this activity with filters
> > > > > action=main; category=launcher which is odd right?
>
> > > > > On Sep 30, 3:42 pm, Zarah Dominguez  wrote:
>
> > > > > > Yeah, hope we get feedback soon.  Mark Murphy referred me to 
> > > > > > this:http://code.google.com/p/android/issues/detail?id=10143
>
> > > > > > Hi Mike,
>
> > > > > > How did you handle this on your end?
>
> > > > > > -Zarah.
>
> > > > > > On Sep 30, 1:04 pm, mikedroid  wrote:
>
> > > > > > > yes im having this problem also hope they can check it soon
>
> > > > > > > On Sep 28, 12:45 am, Zarah Dominguez 
> > > > > > > wrote:
>
> > > > > > > > Hi Alberto,
>
> > > > > > > > Sorry, I only saw this thread again today.
>
> > > > > > > > I wasn't able to launch the Phonebook, I just added a small bit 
> > > > > > > > of
> > > > > > > > code to check if there is someone who can receive the phonebook
> > > > > > > > intent.
>
> > > > > > > > PackageManager pkgMgr = getPackageManager();
> > > > > > > > List list = pkgMgr.queryIntentActivities(new
> > > > > > > > Intent(Intent.ACTION_VIEW,Contacts.CONTENT_URI),
> > > > > > > > PackageManager.MATCH_DEFAULT_ONLY);
> > > > > > > > if (list.isEmpty()){
> > > > > > > >         // I just remove the menu item to access the phonebook
> > > > > > > >         menu.removeItem(R.id.app_menu_contacts);
>
> > > > > > > > }
>
> > > > > > > > Maybe you can try this approach also.
>
> > > > > > > > Hope this helps,
> > > > > > > > Zarah.
>
> > > > > > > > On Aug 28, 3:36 am, Albert  wrote:
>
> > > > > > > > > Hi Zarah,
>
> > > > > > > > > I have reports of the app launching a blank screen but not 
> > > > > > > > > crash. I am
> > > > > > > > > getting aSamsungSpica this week but you have already stated 
> > > > > > > > > that it
> > > > > > > > > works there so that won't be of any use. For my app is wan't 
> > > > > > > > > so
> > > > > > > > > critical so I just instructGalaxySusers to insert 

[android-developers] Re: Padding of a Button

2010-10-05 Thread Zarah Dominguez
Hi DanH,

Use an ImageButton, set the image as the src, set the background to
@android:color/transparent, then add padding.




I hope this achieves what you want.


Best Regards,
Zarah.


On Oct 6, 6:12 am, DanH  wrote:
> Yeah, I haven't quite got it in my mind yet that "Button" isn't really
> special.
>
> On Oct 5, 5:07 pm, Mark Murphy  wrote:
>
>
>
> > On Tue, Oct 5, 2010 at 6:04 PM, DanH  wrote:
> > > ImageButton sorta works except that the background is gratuitously
> > > supplied.  Is there a standard resource I can use that's a transparent
> > > background?
>
> > If you don't want a button background, just use ImageView.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android Training in London:http://skillsmatter.com/go/os-mobile-server

-- 
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: Could use some help (free game on Galaxy S problem)

2010-10-06 Thread Zarah Dominguez
No problem, Patrick!

I know how frustrating it can be sometimes. :)


On Oct 5, 10:35 pm, Patrick  wrote:
> Thanks for the help Zarah!
>
> Turns out the problem was a couple of mistakes in my mod tracker
> (audio) interface class. The N1 and emulator were very forgiving,
> but the Galaxy S was less so.
>
> One mistake was that the params in the getMinBufferSize() call
> and the allocation of the AudioTrack didn't match. Another was
> assuming that a buffer size for the N1 would work on other
> phones with comparable specs...
>
> On Oct 4, 6:24 am, Zarah Dominguez  wrote:
>
>
>
> > Hi Patrick!
>
> > Will try to download your game.  Looks like Market is acting up over
> > here and it won't start the download.  Will try again later.
>
> > For a relatively expensive phone, it looks like Galaxy S gives us
> > developers quite a headache. ;)
>
> > - Zarah.

-- 
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: Get Location debbuging on device

2010-10-10 Thread Zarah Dominguez
TreKing is right.

You should enable GPS on your test device (Settings > Location and
Security).

Then in your onLocationChanged, you can put in a Toast or Log to
display to you the current location.

If you don't get location updates, try setting Use Wireless Networks
(also in Settings > Location and Security).


- Zarah.


On Oct 7, 9:27 am, TreKing  wrote:
> On Tue, Sep 28, 2010 at 10:22 PM, Luiz Felipe Puccinelli Glingani <
>
> luizfelip...@gmail.com> wrote:
> > When I tried to do the same thing on debugging device, didn't work and on
> > DDM5 I can't send this information.
>
> I don't think this is possible. A physical device should have a GPS built in
> to let you get GPS data. The DDMS controls are for faking it in the emulator
> which lacks a GPS.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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: New ADT available.

2010-10-13 Thread Zarah Dominguez
Hi guys!

Just got back to this thread.

Hi String, so you ended up updating with a fresh install? I would hate
to do that on my other workstation.  Seems like too much work for an
update, and so my laptop is stuck with ADT 0.9.7.


Thanks,
Zarah.



On Oct 7, 4:22 am, String  wrote:
> On Oct 6, 6:53 pm, Xavier Ducrohet  wrote:
>
> > I'm not sure why Eclipse wouldn't be able to change this file. Is it
> > on a source control system that is not integrated in Eclipse.
>
> No, this is plain-vanilla Eclipse 3.5 SR2, freshly installed. The only
> plugin is ADT 0.9.9. No other dev tools involved.
>
> The pattern that seems to be emerging is that once I get rid of the
> errors, it's OK until I need to restart Eclipse. Then SOME of my
> library-using projects are FUBAR as described in my earlier post.
> Interestingly, it's not ALL the projects which use libraries, and I
> can't work out any difference between those that work and those that
> don't.
>
> Any further ideas? I second authorwjf - I'm none too impressed with
> this update.
>
> String

-- 
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: New ADT available.

2010-10-25 Thread Zarah Dominguez
Is it just me, or did I also lose the hierarchyviewer when I upgraded
the ADT? It is not in the /tools folder anymore.

*grumpy*



On Oct 14, 1:44 am, authorwjf  wrote:
> "My conclusion is that 0.9.9 is not ready for prime time; I recommend
> everyone to avoid it."
>
> Well said, String.  I second that.  Short of re-installing I found no
> way to get the environment operational after the update.  Though at
> least I am up and running again.

-- 
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: Facebook connect for android

2010-10-26 Thread Zarah Dominguez
Hi Prajakta,

Did you include the actual class of the LoginButton?  You must also
refer to the login button class in your xml instead of the normal
button class.


Best regards,
Zarah.



On Oct 26, 2:26 pm, Prajakta Shitole  wrote:
> Hi,
>
> I am trying to use the Facebook SDK for android but It gives me runtime
> errors (ClassCastException) when i include the
>  com.facebook.android.LoginButton as the login button. Please can anyone let
> me know if they have used Facebook connect in their application and the
> steps that are to be followed to get it running properly.
>
> Thanks,
> Prajakta

-- 
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: New ADT available.

2010-10-26 Thread Zarah Dominguez
The .jar is in tools/lib, but there should be a .bat file in /tools.

Found this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/30124afa7a708c96

with instructions on how to recreate the lost .bat file.


Best regards,
Zarah.


On Oct 26, 6:23 pm, Lance Nanek  wrote:
> Isn't it in tools/lib, not tools? I used it recently...
>
> On Oct 26, 2:49 am, Zarah Dominguez  wrote:
>
>
>
> > Is it just me, or did I also lose the hierarchyviewer when I upgraded
> > the ADT? It is not in the /tools folder anymore.
>
> > *grumpy*
>
> > On Oct 14, 1:44 am, authorwjf  wrote:
>
> > > "My conclusion is that 0.9.9 is not ready for prime time; I recommend
> > > everyone to avoid it."
>
> > > Well said, String.  I second that.  Short of re-installing I found no
> > > way to get the environment operational after the update.  Though at
> > > least I am up and running again.

-- 
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: Facebook connect for android

2010-10-26 Thread Zarah Dominguez
Hi Prajakta,


Can you show us your stack trace?


Thanks,
Zarah.


On Oct 27, 12:00 am, Prajakta Shitole  wrote:
> Hi Zarah,
>
> Thanks for your reply. I did include the LoginButton class as it was showed
> in the Example. Also i had included it in my xml file as below:
>
>           android:id="@+id/login_fb"
>         android:src="@drawable/login_button"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:layout_margin="30dp"
>         />
> Thanks,
> Prajakta
>
> On Tue, Oct 26, 2010 at 12:46 AM, Zarah Dominguez wrote:
>
>
>
>
>
>
>
> > Hi Prajakta,
>
> > Did you include the actual class of the LoginButton?  You must also
> > refer to the login button class in your xml instead of the normal
> > button class.
> > 
>
> > Best regards,
> > Zarah.
>
> > On Oct 26, 2:26 pm, Prajakta Shitole  wrote:
> > > Hi,
>
> > > I am trying to use the Facebook SDK for android but It gives me runtime
> > > errors (ClassCastException) when i include the
> > >  com.facebook.android.LoginButton as the login button. Please can anyone
> > let
> > > me know if they have used Facebook connect in their application and the
> > > steps that are to be followed to get it running properly.
>
> > > Thanks,
> > > Prajakta
>
> > --
> > 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 > cr...@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] Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
Hi guys,

Hope you can help me with my question.

I am trying to embed an image in an email body.  I am trying to use
the ImageGetter to retrieve the bitmap, and send my Intent like this:

Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/html");
intent.putExtra(Intent.EXTRA_SUBJECT,
getResources().getString(R.string.recommend_vid_title));
intent.putExtra(Intent.EXTRA_TEXT   , Html.fromHtml(emailBody, imgGet,
null));

When viewing the draft using the GMail app, all I see is [OBJ] instead
of the bitmap.

I tried setting the email contents to a TextView just to check if it
is correctly formatted and the image shows up fine.  Is this a problem
with the GMail app or am I doing something stupid?

I am testing using the Samsung Galaxy S.  Hope someone can help. :)
Thanks in advance!


Best regards,
Zarah.

-- 
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: Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
Hi Kumar,


Thanks for your response. I'm having misgivings about the GMail app.
First of all, it doesn't even recognize the market:// URI, what's up
with that?

Anyway, do you have any suggestions on how can I achieve what I want?
As much as possible I want the image to be embedded/inline instead of
an attachment.


Thank you again,
Zarah.


On Oct 27, 5:41 pm, Kumar Bibek  wrote:
> I suspect if you the gmail app has been designed to do so. Your approach is
> correct, but it all depends on how the GMail app is designed.
>
> On Wed, Oct 27, 2010 at 3:06 PM, Zarah Dominguez wrote:
>
>
>
>
>
>
>
>
>
> > Hi guys,
>
> > Hope you can help me with my question.
>
> > I am trying to embed an image in an email body.  I am trying to use
> > the ImageGetter to retrieve the bitmap, and send my Intent like this:
>
> > Intent intent = new Intent(Intent.ACTION_SEND);
> > intent.setType("text/html");
> > intent.putExtra(Intent.EXTRA_SUBJECT,
> > getResources().getString(R.string.recommend_vid_title));
> > intent.putExtra(Intent.EXTRA_TEXT   , Html.fromHtml(emailBody, imgGet,
> > null));
>
> > When viewing the draft using the GMail app, all I see is [OBJ] instead
> > of the bitmap.
>
> > I tried setting the email contents to a TextView just to check if it
> > is correctly formatted and the image shows up fine.  Is this a problem
> > with the GMail app or am I doing something stupid?
>
> > I am testing using the Samsung Galaxy S.  Hope someone can help. :)
> > Thanks in advance!
>
> > Best regards,
> > Zarah.
>
> > --
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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] Re: Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
Uh-oh, that sounds ominous.  Just out of curiosity, how would I do it
if I have my own app?

As for the GMail App alternative, is there a way to send the image an
attachment without first having to save it in a cache or the SD card?

Sorry for so many questions.


Best regards,
Zarah.



On Oct 27, 6:03 pm, Kumar Bibek  wrote:
> The Gmail app, or any other email app doesn't have a published set of
> parameters that you can use to achieve this. Had it been your app, then I
> know how to do it. But, with the Gmail app, I have no clue.
>
> On Wed, Oct 27, 2010 at 3:28 PM, Zarah Dominguez wrote:
>
>
>
>
>
>
>
>
>
> > Hi Kumar,
>
> > Thanks for your response. I'm having misgivings about the GMail app.
> > First of all, it doesn't even recognize the market:// URI, what's up
> > with that?
>
> > Anyway, do you have any suggestions on how can I achieve what I want?
> > As much as possible I want the image to be embedded/inline instead of
> > an attachment.
>
> > Thank you again,
> > Zarah.
>
> > On Oct 27, 5:41 pm, Kumar Bibek  wrote:
> > > I suspect if you the gmail app has been designed to do so. Your approach
> > is
> > > correct, but it all depends on how the GMail app is designed.
>
> > > On Wed, Oct 27, 2010 at 3:06 PM, Zarah Dominguez  > >wrote:
>
> > > > Hi guys,
>
> > > > Hope you can help me with my question.
>
> > > > I am trying to embed an image in an email body.  I am trying to use
> > > > the ImageGetter to retrieve the bitmap, and send my Intent like this:
>
> > > > Intent intent = new Intent(Intent.ACTION_SEND);
> > > > intent.setType("text/html");
> > > > intent.putExtra(Intent.EXTRA_SUBJECT,
> > > > getResources().getString(R.string.recommend_vid_title));
> > > > intent.putExtra(Intent.EXTRA_TEXT   , Html.fromHtml(emailBody, imgGet,
> > > > null));
>
> > > > When viewing the draft using the GMail app, all I see is [OBJ] instead
> > > > of the bitmap.
>
> > > > I tried setting the email contents to a TextView just to check if it
> > > > is correctly formatted and the image shows up fine.  Is this a problem
> > > > with the GMail app or am I doing something stupid?
>
> > > > I am testing using the Samsung Galaxy S.  Hope someone can help. :)
> > > > Thanks in advance!
>
> > > > Best regards,
> > > > Zarah.
>
> > > > --
> > > > 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 > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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] Re: Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
After fiddling around for many hours, I tried this approach:

- Download the image
- Byte64-encode the downloaded bitmap
- Use the resulting string as the image source

String thumbData = Base64.encodeBytes(data);
String thumb = "data:image/jpeg;base64," + thumbData;

(Base64 is an open-source Base64-encoder I found)

Sadly, this produced the same result as before.  No image, just
[OBJ]. :(



-Zarah.



On Oct 27, 6:23 pm, Zarah Dominguez  wrote:
> Uh-oh, that sounds ominous.  Just out of curiosity, how would I do it
> if I have my own app?
>
> As for the GMail App alternative, is there a way to send the image an
> attachment without first having to save it in a cache or the SD card?
>
> Sorry for so many questions.
>
> Best regards,
> Zarah.
>
> On Oct 27, 6:03 pm, Kumar Bibek  wrote:
>
>
>
>
>
>
>
> > The Gmail app, or any other email app doesn't have a published set of
> > parameters that you can use to achieve this. Had it been your app, then I
> > know how to do it. But, with the Gmail app, I have no clue.
>
> > On Wed, Oct 27, 2010 at 3:28 PM, Zarah Dominguez wrote:
>
> > > Hi Kumar,
>
> > > Thanks for your response. I'm having misgivings about the GMail app.
> > > First of all, it doesn't even recognize the market:// URI, what's up
> > > with that?
>
> > > Anyway, do you have any suggestions on how can I achieve what I want?
> > > As much as possible I want the image to be embedded/inline instead of
> > > an attachment.
>
> > > Thank you again,
> > > Zarah.
>
> > > On Oct 27, 5:41 pm, Kumar Bibek  wrote:
> > > > I suspect if you the gmail app has been designed to do so. Your approach
> > > is
> > > > correct, but it all depends on how the GMail app is designed.
>
> > > > On Wed, Oct 27, 2010 at 3:06 PM, Zarah Dominguez  > > >wrote:
>
> > > > > Hi guys,
>
> > > > > Hope you can help me with my question.
>
> > > > > I am trying to embed an image in an email body.  I am trying to use
> > > > > the ImageGetter to retrieve the bitmap, and send my Intent like this:
>
> > > > > Intent intent = new Intent(Intent.ACTION_SEND);
> > > > > intent.setType("text/html");
> > > > > intent.putExtra(Intent.EXTRA_SUBJECT,
> > > > > getResources().getString(R.string.recommend_vid_title));
> > > > > intent.putExtra(Intent.EXTRA_TEXT   , Html.fromHtml(emailBody, imgGet,
> > > > > null));
>
> > > > > When viewing the draft using the GMail app, all I see is [OBJ] instead
> > > > > of the bitmap.
>
> > > > > I tried setting the email contents to a TextView just to check if it
> > > > > is correctly formatted and the image shows up fine.  Is this a problem
> > > > > with the GMail app or am I doing something stupid?
>
> > > > > I am testing using the Samsung Galaxy S.  Hope someone can help. :)
> > > > > Thanks in advance!
>
> > > > > Best regards,
> > > > > Zarah.
>
> > > > > --
> > > > > 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 > > > >  cr...@googlegroups.com> > > cr...@googlegroups.com>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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 > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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