Thursday, September 30, 2010

[android-developers] Re: What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

still not Contacts.UI.LIST_ALL_CONTACTS_ACTION , tried it

On Aug 5, 12:21 am, Dmitri Plotnikov <dplotni...@google.com> wrote:
> You are right - I forgot that this intent is hidden API.
>
> Ironically, the deprecated equivalent Contacts.UI.LIST_ALL_CONTACTS_ACTION
> is public and therefore is supposed to work.  ;)
>
>
>
> On Wed, Aug 4, 2010 at 1:28 AM, pistol <lava.d...@gmail.com> wrote:
> > Unless of course this is not officially supported by Android - in
> > which case I shouldn't do it at all.
>
> > On 2 Aug, 09:02, pistol <lava.d...@gmail.com> wrote:
> > > Currently I think the only fix is to not offer the option toSamsung
> > > phones - a very bad solution.
>
> > > On 31 July, 13:32, pistol <lava.d...@gmail.com> wrote:
>
> > > > You are right - I needn't startActivityForResult() - just
> > > > startActivity().
> > > > I still would get the ActivityNotFiundException though.
> > > > ;-(
>
> > > > I just want the Contacts 'view' opened up so the user can look at
> > > > them.  Not to pick or return (a specific) one.
>
> > > > I works fine on all my phones and emulators.
>
> > > > Pete
>
> > > > On 28 July, 22:05, Dmitri Plotnikov <dplotni...@google.com> wrote:
>
> > > > > The code appears to be correct - it is supposed to work on any
> > Android phone
> > > > > :-(
>
> > > > > However, calling it for result does not really make sense.  It is
> > supposed
> > > > > to launch the activity and that's that - no result will be returned.
>
> > > > > If you need to user to pick a contact from the list, do this instead:
>
> > > > > new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)
>
> > > > > Cheers,
> > > > > - Dmitri
>
> > > > > On Wed, Jul 28, 2010 at 1:47 PM, Indicator Veritatis <
> > mej1...@yahoo.com>wrote:
>
> > > > > > My guess is that it is the non-Samsungphones that are doing
> > something
> > > > > > non-standard, something you cannot rely on. For as I read your
> > code,
> > > > > > you are trying to view not just a contact, but an entire contact
> > > > > > database. I don't think Android guarantees that that Action is
> > > > > > supported on the entire database.
>
> > > > > > Try appending a specific ID to the Uri.
>
> > > > > > On Jul 28, 7:09 am, pistol <lava.d...@gmail.com> wrote:
> > > > > > > Some of my users withSamsungphones (GT-I9000, SGH-I897 to name at
> > > > > > > least 2) cannot open the Contacts view on their phones - thew way
> > my
> > > > > > > app has this coded is like this:
>
> > > > > > > Uri uri = ContactsContract.Contacts.CONTENT_URI;
> > > > > > > Intent intent = new Intent(Intent.ACTION_VIEW, uri);
> > > > > > > startActivityForResult(intent, Constants.ACTIVITY_CALL_CONTACTS);
>
> > > > > > > This causes an ActivityNotFoundException.
>
> > > > > > > Is the problem that this is not the way to call the Contacts
> > provider
> > > > > > > or thatSamsunghave not implementeed it?
>
> > > > > > > If it is down toSamsungcan some-one give me the correct Uri?
> >  though
> > > > > > > it will be terrible to have to have phone specific code.
>
> > > > > > > thanks,
> > > > > > >            Pete
>
> > > > > > --
> > > > > > 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+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@googlegroups.com>
> > <android-developers%2Bunsubscribe@googlegroups.com<android-developers%252Bu nsubscribe@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+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Setting/Passing values

I looked at the URL's that you provided and tried some coding with it,
but I am failing to understand
the proper coding methods.

In the main, I have the options menu as:

// options menu

// Called only the first time the options menu is displayed.
// Create the menu entries.
// Menu adds items in the order shown.
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
menu.add("Setup")
.setIcon(android.R.drawable.ic_menu_preferences);
menu.add("About")
.setIcon(android.R.drawable.ic_menu_info_details);
return(super.onCreateOptionsMenu(menu));
//return true;
}

// handle menu selected
public boolean onOptionsItemSelected(MenuItem item){

if (item.getTitle().equals("Setup")){
Intent intent = new Intent(this,
com.tccalculator.setup.class);
startActivityForResult(intent, MY_SETUP);
return true;
}

if (item.getTitle().equals("About")){
Intent intent = new Intent(this,
com.tccalculator.about.class);
startActivityForResult(intent, MY_ABOUT);
return true;
}
return(super.onOptionsItemSelected(item));
//return false;
}

I believe that I need this to read the preferences still in the main
and set a textview as such:

public void onResume() {
super.onResume();

SharedPreferences prefs=PreferenceManager
.getDefaultSharedPreferences(this);
TextView tv = (TextView) findViewById(R.id.TextView01);
tv.setText(prefs.getString("tview1", ""));

The preference name for this textview is called "tview1". According
to the example, it looks like you have
to give it a value. I just want to read that preference, and take the
value it has, and place it in the TextView01 text
but according to the example, you have to give it a value.

In the setup, I created this:
@Override
protected void onStop(){
super.onStop();

// We need an Editor object to make preference changes.
// All objects are from android.context.Context
SharedPreferences settings = getSharedPreferences(PREFS_NAME,
0);
SharedPreferences.Editor editor = settings.edit();

editor.putString("tview1","this is a test");

// Commit the edits!
editor.commit();
}

The PREFS_NAME was declared at the top:
public static final String PREFS_NAME = "calcsettings";

If I am following this, the "editor" creates the name/value pair
("tview1" = "this is a test") then writes it to the preferences
by calling the editor.commit();

What am I doing wrong? As I am testing, I am attempting to creating/
retrievie
one preference (name/value).

Thanks again for all your help.

:RB


On Sep 30, 4:59 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Thu, Sep 30, 2010 at 6:51 PM, rb <rbs...@gmail.com> wrote:
> > Thanks for shedding some light on this issue.
>
> > Here's some of my code:
>
> :: snip ::
>
> > I was going to save and read the data from a file which would be
> > stored
> > in the phones default applications directory as one file.
>
> All the more reason to use a PreferenceActivity.
>
> > Not sure how you would use the preference activity for storing name/
> > values as
> > I need to store and retrieve 6 different items.
>
> Ever looked at the Settings application in your device? That's a
> PreferenceActivity. That has well more than "6 different items".
>
> > Any chance you could reply with some code on how I could utilize the
> > preferences activity
> > from the code I have provided?
>
> http://developer.android.com/guide/topics/data/data-storage.html#prefhttp://developer.android.com/reference/android/preference/PreferenceA...http://github.com/commonsguy/cw-android/tree/master/Prefs/Dialogs/
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [id-android] WTI : Happy Birthday om Alex Chandra

selamat ultah bro alex sehat selalu dan banyak rejeki ya :) .AMIN

> Menurut penerawangan facebook *halah*
> Om alex chandra hari ini bdayyyyy....
> Yeayyyy happy birthday ooommm :)
> Sukses yaaaa
>
> --
> "Indonesian Android Community [id-android]"
>
> Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
> Moderator: id.android@gmail.com
> Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
> ID Android Developer: http://groups.google.com/group/id-android-dev
> ID Android Surabaya: http://groups.google.com/group/id-android-sby
> ID Android on FB: http://www.facebook.com/group.php?gid=112207700729

--
"Indonesian Android Community [id-android]"
 
Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
Moderator: id.android@gmail.com
Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
ID Android Developer: http://groups.google.com/group/id-android-dev
ID Android Surabaya: http://groups.google.com/group/id-android-sby
ID Android on FB: http://www.facebook.com/group.php?gid=112207700729

Re: [id-android] Re: Pengiriman po htc

Kemaren info dari selularnya sih dapet.
Pengiriman tertundakan kemaren karena lg nunggu itu.

*katanya seh

On Oct 1, 2010 8:04 AM, "SyamSyah Milis IT" <syamsyah.milisit@gmail.com> wrote:

Iya bro, punyaku jg gak ada bonus/goodie screen protector. Apa ketinggalan ato emang untuk yang luar kota gak dapet ?


>
> On Sep 30, 2010 5:59 PM, "Kurniawidi" <kurniawidi@gmail.com> wrote:
>
> Wildfire gw juga udah n...

>
>
> On 30 Sep, 16:20, "Wilber Purwanto" <wilber.purwa...@gmail.com> wrote:

> Udah baca pak, cuman maklu...


>
> > From: Harnanto <na...@Harnanto.com>
> >
> > Sender: id-android@googlegroups.com

> Date: Thu, 30 Sep 20...


>
> > 2010/9/30 Wilber Purwanto <wilber.purwa...@gmail.com>:

> > Saya udah terima juga. Cara buka backdo...


>
> > Moderator: id.andr...@gmail.com

>
> > Peraturan Jual dan Kloteran ID-Android  http://goo.gl/azW7

> ID Android Developer:http://groups.go...



--
"Indonesian Android Community [id-android]"
 
Join: http://groups.google.com/group/id-android...

--
"Indonesian Android Community [id-android]"
 
Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
Moderator: id.android@gmail.com
Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
ID Android Developer: http://groups.google.com/group/id-android-dev
ID Android Surabaya: http://groups.google.com/group/id-android-sby
ID Android on FB: http://www.facebook.com/group.php?gid=112207700729

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

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 <zarah.doming...@gmail.com> 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 <michan...@gmail.com> wrote:
>
>
>
> > yes im having this problem also hope they can check it soon
>
> > On Sep 28, 12:45 am, Zarah Dominguez <zarah.doming...@gmail.com>
> > 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<ResolveInfo> 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 <albert8...@googlemail.com> 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 <zarah.doming...@gmail.com>
> > > > 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 <albert8...@googlemail.com> 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 <kulsu...@gmail.com> 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 <danra...@gmail.com> wrote:
> > > > > > > > Is this happening only on Europa ?
>
> > > > > > > > -Dan
>
> > > > > > > > On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni <kulsu...@gmail.com> 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+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@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+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [id-android] WTShare Cara ngecilin apk NFS shift

ditunggu2 taunya ada thread sendiri...Thank you boss..segera dicoba

2010/9/30 Daniel Vincent <android@id-bbtour.co.cc>
Original author ada dikaskus boss, linknya lupa. Tapi sudah ada di thread galaxy 5 dikaskus lengkap dengan link pemberian grp nya

Trik ini saduran dari teknik dia, cuman saya detailkan sesuai praktek sendiri beberapa hari yang lalu


*kebetulan TS dikaskus saya sendiri



Best Regards

japri: vincent@id-bbtour.co.cc
telp/sms: 08175251511


From: Amin Fauzan <milis@debianist.com>
Date: Thu, 30 Sep 2010 20:20:04 +0700
Subject: Re: [id-android] WTShare Cara ngecilin apk NFS shift

sekedar komen, kayaknya credit ke original author nya perlu disebutin kecuali kalo emang tutorial ini bikinan sendiri. :cheers:

--
http://debianist.com

Re: [id-android] WTI : Happy Birthday om Alex Chandra

Wah...
Selamat ulang tahun lex. Panjang umur and i wish u all the best.

Keep CM in ur life!!

*gandeng mesra Miui

> ma'acih yah cemuaa.. *sun atu2 pake bibir om kez juga*
>
> On Fri, Oct 1, 2010 at 7:43 AM, Darma Suyoga <darma78.milisandroid@gmail.com
>> wrote:
>
>> Happy birthday bro Alex, wish you all the best
>>
>> sent from Droid
>> On Oct 1, 2010 8:39 AM, "Ibnu Ibrahim" <ibnu.ibrahim@gmail.com> wrote:
>> > selamat ultah om alex :)
>> > ---
>> > Regards,
>> > Ibnu Ibrahim
>> >
>> >
>> > On Fri, Oct 1, 2010 at 8:15 AM, kez sutanto <sutanto.kez@gmail.com>
>> wrote:
>> >
>> >> Menurut penerawangan facebook *halah*
>> >> Om alex chandra hari ini bdayyyyy....
>> >> Yeayyyy happy birthday ooommm :)
>> >> Sukses yaaaa
>> >>
>> >> --
>> >> "Indonesian Android Community [id-android]"
>> >>
>> >> Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
>> >> Moderator: id.android@gmail.com
>> >> Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
>> >> ID Android Developer: http://groups.google.com/group/id-android-dev
>> >> ID Android Surabaya: http://groups.google.com/group/id-android-sby
>> >> ID Android on FB: http://www.facebook.com/group.php?gid=112207700729
>> >>
>> >
>> > --
>> > "Indonesian Android Community [id-android]"
>> >
>> > Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
>> > Moderator: id.android@gmail.com
>> > Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
>> > ID Android Developer: http://groups.google.com/group/id-android-dev
>> > ID Android Surabaya: http://groups.google.com/group/id-android-sby
>> > ID Android on FB: http://www.facebook.com/group.php?gid=112207700729
>>
>> --
>> "Indonesian Android Community [id-android]"
>>
>> Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
>> Moderator: id.android@gmail.com
>> Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
>> ID Android Developer: http://groups.google.com/group/id-android-dev
>> ID Android Surabaya: http://groups.google.com/group/id-android-sby
>> ID Android on FB: http://www.facebook.com/group.php?gid=112207700729
>>
>
> --
> "Indonesian Android Community [id-android]"
>
> Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
> Moderator: id.android@gmail.com
> Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
> ID Android Developer: http://groups.google.com/group/id-android-dev
> ID Android Surabaya: http://groups.google.com/group/id-android-sby
> ID Android on FB: http://www.facebook.com/group.php?gid=112207700729

--
"Indonesian Android Community [id-android]"
 
Join: http://groups.google.com/group/id-android/subscribe?hl=en-GB
Moderator: id.android@gmail.com
Peraturan Jual dan Kloteran ID-Android http://goo.gl/azW7
ID Android Developer: http://groups.google.com/group/id-android-dev
ID Android Surabaya: http://groups.google.com/group/id-android-sby
ID Android on FB: http://www.facebook.com/group.php?gid=112207700729