[android-developers] Does Spinner support multiple view types for its rows?

2011-05-22 Thread Shri
I have my own sub-class of BaseAdapter. I use Spinner#setAdapter to
set the adapter to my sub-class. However, #getViewTypeCount and
#getItemViewType do not get called. I see that Spinner#DropDownAdapter
delegate most calls to the injected adapter, except for
#getViewTypeCount and #getItemViewType. So it seems that Spinner does
not intend to support different rows using different view types. Is
this by design? What is the reason for this?

Thanks
Shri

-- 
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] How to send Widget cfg activity's user value to widget

2011-05-22 Thread Perry168
Hi,
I completed the Widget CFG activity and widget. But I don't know to
send the value to widget.
At the CFG activity, user can select 1, 2 or 3 value. The widget will
following the value to running the different case.
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


Re: [android-developers] Socket on Android Mobile

2011-05-22 Thread Saurav
your mobile and your pc server should be connected to the same lan or
wlan. if u have a global address, then u can connect to ur pc server using
Internet.




Regards,
Saurav Mukherjee.


On Sun, May 22, 2011 at 5:20 AM, ingy abbas ingy.abba...@gmail.com wrote:

 what if i want to connect my android mobile with my Pc server to be
 able that my mobile to send my data ( my current location ) !! the
 socket between mobile android and pc (SERVER) cant be happen any
 suggestion ?? its only work when using the android emulator

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

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev

22.05.2011 8:38, cellurl пишет:

I want to create a library that people link to.
It tells them when the speedlimit changes.
I have it all working, just not the library part.

It would have methods like:

SpeedlimitListener();
requestSpeedlimitChanges( speedlimitListener );


Maybe:

SpeedlimitListener(Context context);

?

Then this class would be able to obtain all needed Android services 
(which may change over time, so you'll be able to keep the interface 
unchanged).


-- Kostya


In my mind, its very similar to LocationManager.
In my case, SpeedlimitManager.

-cellurl



--
Kostya Vasilyev -- http://kmansoft.wordpress.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] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
I have created an Android library which has a layout in it and several
classes, one of which is an activity.

In my main project I create an activity which is derived from the activity
class in my project.

When my base activity is done with it sets-up an alarm via the AlarmManager,
this is all done within the library.  However my onReceive routine never
gets called.

This worked before I moved some of the logic into the library and also
before I created a base activity.  Can anyone shed any light on this?

Does the receiver xml statement in the manifest need to be somewhere else?
At the moment its a child of the application.

Thank you,
Simon

-- 
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: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Kumar Bibek
Does the Logcat say anything? Just log a few messages and it would be clear
whats going wrong.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Sun, May 22, 2011 at 2:15 PM, Simon Platten simonaplat...@googlemail.com
 wrote:

 I have created an Android library which has a layout in it and several
 classes, one of which is an activity.

 In my main project I create an activity which is derived from the activity
 class in my project.

 When my base activity is done with it sets-up an alarm via the
 AlarmManager, this is all done within the library.  However my onReceive
 routine never gets called.

 This worked before I moved some of the logic into the library and also
 before I created a base activity.  Can anyone shed any light on this?

 Does the receiver xml statement in the manifest need to be somewhere else?
 At the moment its a child of the application.

 Thank you,
 Simon

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

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
Thanks for the response, I've just taken a look at the LogCat whilst running
in debug, unfortunately they're is nothing being shown there at all.


On Sun, May 22, 2011 at 9:48 AM, Kumar Bibek coomar@gmail.com wrote:

 Does the Logcat say anything? Just log a few messages and it would be clear
 whats going wrong.

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Sun, May 22, 2011 at 2:15 PM, Simon Platten 
 simonaplat...@googlemail.com wrote:

 I have created an Android library which has a layout in it and several
 classes, one of which is an activity.

 In my main project I create an activity which is derived from the activity
 class in my project.

 When my base activity is done with it sets-up an alarm via the
 AlarmManager, this is all done within the library.  However my onReceive
 routine never gets called.

 This worked before I moved some of the logic into the library and also
 before I created a base activity.  Can anyone shed any light on this?

 Does the receiver xml statement in the manifest need to be somewhere
 else?  At the moment its a child of the application.

 Thank you,
 Simon

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

-- 
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: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
Just a thought, could it be the receiver statement in the XML manifest?

It currently reads:

receiver android:process=:remote android:name=myReciever/

myReciever is actually a class in my library which is in a different
package, I'm not sure I have to change anything to reflect this.


On Sun, May 22, 2011 at 9:54 AM, Simon Platten simonaplat...@googlemail.com
 wrote:

 Thanks for the response, I've just taken a look at the LogCat whilst
 running in debug, unfortunately they're is nothing being shown there at all.



 On Sun, May 22, 2011 at 9:48 AM, Kumar Bibek coomar@gmail.com wrote:

 Does the Logcat say anything? Just log a few messages and it would be
 clear whats going wrong.

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Sun, May 22, 2011 at 2:15 PM, Simon Platten 
 simonaplat...@googlemail.com wrote:

 I have created an Android library which has a layout in it and several
 classes, one of which is an activity.

 In my main project I create an activity which is derived from the
 activity class in my project.

 When my base activity is done with it sets-up an alarm via the
 AlarmManager, this is all done within the library.  However my onReceive
 routine never gets called.

 This worked before I moved some of the logic into the library and also
 before I created a base activity.  Can anyone shed any light on this?

 Does the receiver xml statement in the manifest need to be somewhere
 else?  At the moment its a child of the application.

 Thank you,
 Simon

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




-- 
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: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Kumar Bibek
Have you declared the receiver in the manifest of your project?

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Sun, May 22, 2011 at 2:28 PM, Simon Platten simonaplat...@googlemail.com
 wrote:

 Just a thought, could it be the receiver statement in the XML manifest?

 It currently reads:

 receiver android:process=:remote android:name=myReciever/

 myReciever is actually a class in my library which is in a different
 package, I'm not sure I have to change anything to reflect this.



 On Sun, May 22, 2011 at 9:54 AM, Simon Platten 
 simonaplat...@googlemail.com wrote:

 Thanks for the response, I've just taken a look at the LogCat whilst
 running in debug, unfortunately they're is nothing being shown there at all.



 On Sun, May 22, 2011 at 9:48 AM, Kumar Bibek coomar@gmail.comwrote:

 Does the Logcat say anything? Just log a few messages and it would be
 clear whats going wrong.

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Sun, May 22, 2011 at 2:15 PM, Simon Platten 
 simonaplat...@googlemail.com wrote:

 I have created an Android library which has a layout in it and several
 classes, one of which is an activity.

 In my main project I create an activity which is derived from the
 activity class in my project.

 When my base activity is done with it sets-up an alarm via the
 AlarmManager, this is all done within the library.  However my onReceive
 routine never gets called.

 This worked before I moved some of the logic into the library and also
 before I created a base activity.  Can anyone shed any light on this?

 Does the receiver xml statement in the manifest need to be somewhere
 else?  At the moment its a child of the application.

 Thank you,
 Simon

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



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

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Nikolay Elenkov
On Sun, May 22, 2011 at 5:58 PM, Simon Platten
simonaplat...@googlemail.com wrote:
 Just a thought, could it be the receiver statement in the XML manifest?

 It currently reads:

 receiver android:process=:remote android:name=myReciever/

 myReciever is actually a class in my library which is in a different
 package, I'm not sure I have to change anything to reflect this.


You have to add it to the application project's AndroidManifest.xml
and use the full qualified class name. The declaration in the library
project is ignored.

-- 
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: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
This is how its declared in the project manifest:

receiver android:process=:remote android:name=myReciever/

On Sun, May 22, 2011 at 10:02 AM, Kumar Bibek coomar@gmail.com wrote:

 Have you declared the receiver in the manifest of your project?


 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Sun, May 22, 2011 at 2:28 PM, Simon Platten 
 simonaplat...@googlemail.com wrote:

 Just a thought, could it be the receiver statement in the XML manifest?

 It currently reads:

 receiver android:process=:remote android:name=myReciever/

 myReciever is actually a class in my library which is in a different
 package, I'm not sure I have to change anything to reflect this.



 On Sun, May 22, 2011 at 9:54 AM, Simon Platten 
 simonaplat...@googlemail.com wrote:

 Thanks for the response, I've just taken a look at the LogCat whilst
 running in debug, unfortunately they're is nothing being shown there at all.



 On Sun, May 22, 2011 at 9:48 AM, Kumar Bibek coomar@gmail.comwrote:

 Does the Logcat say anything? Just log a few messages and it would be
 clear whats going wrong.

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Sun, May 22, 2011 at 2:15 PM, Simon Platten 
 simonaplat...@googlemail.com wrote:

 I have created an Android library which has a layout in it and several
 classes, one of which is an activity.

 In my main project I create an activity which is derived from the
 activity class in my project.

 When my base activity is done with it sets-up an alarm via the
 AlarmManager, this is all done within the library.  However my onReceive
 routine never gets called.

 This worked before I moved some of the logic into the library and also
 before I created a base activity.  Can anyone shed any light on this?

 Does the receiver xml statement in the manifest need to be somewhere
 else?  At the moment its a child of the application.

 Thank you,
 Simon

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



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


-- 
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: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
I've also tried (In the project manifest):

receiver android:process=:remote
android:name=packageReference.myReciever/

Where the packageReference is the actual package library package name, but
this hasn't solved it either.


On Sun, May 22, 2011 at 10:34 AM, Nikolay Elenkov nikolay.elen...@gmail.com
 wrote:

 On Sun, May 22, 2011 at 5:58 PM, Simon Platten
 simonaplat...@googlemail.com wrote:
  Just a thought, could it be the receiver statement in the XML manifest?
 
  It currently reads:
 
  receiver android:process=:remote android:name=myReciever/
 
  myReciever is actually a class in my library which is in a different
  package, I'm not sure I have to change anything to reflect this.
 

 You have to add it to the application project's AndroidManifest.xml
 and use the full qualified class name. The declaration in the library
 project is ignored.

 --
 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: IllegalArgumentException: parameter must be a descendant of this view related issue

2011-05-22 Thread J. S. Allen
Not sure if this helps, but I had the issue under Donut as well and resolved 
it by removing the theme I'd chosen for the application. For some reason, 
Android was having a fit trying to hide the title bar and display a dialog 
at the same time... 

This was the offending code: 
android:theme=@android:style/Theme.Black.NoTitleBar.Fullscreen

-- 
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: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Mark Murphy
Step #1: Get rid of android:process=:remote.

Step #2: Double-check your LogCat. If AlarmManager (or anything) tries
to broadcast an Intent that cannot be resolved, a message is logged
(at warning level, IIRC). If you see it, it may help you narrow down
where you are going wrong. If you do not see it, your alarm is perhaps
not being scheduled.

On Sun, May 22, 2011 at 5:39 AM, Simon Platten
simonaplat...@googlemail.com wrote:
 I've also tried (In the project manifest):

 receiver android:process=:remote
 android:name=packageReference.myReciever/

 Where the packageReference is the actual package library package name, but
 this hasn't solved it either.


 On Sun, May 22, 2011 at 10:34 AM, Nikolay Elenkov
 nikolay.elen...@gmail.com wrote:

 On Sun, May 22, 2011 at 5:58 PM, Simon Platten
 simonaplat...@googlemail.com wrote:
  Just a thought, could it be the receiver statement in the XML manifest?
 
  It currently reads:
 
  receiver android:process=:remote android:name=myReciever/
 
  myReciever is actually a class in my library which is in a different
  package, I'm not sure I have to change anything to reflect this.
 

 You have to add it to the application project's AndroidManifest.xml
 and use the full qualified class name. The declaration in the library
 project is ignored.

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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 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


Re: [android-developers] How to send Widget cfg activity's user value to widget

2011-05-22 Thread Mark Murphy
Step #1: Persist the data (e.g., as a SharedPreference)

Step #2: Update the app widget using AppWidgetManager and a
RemoteViews object, the same as you do in the onUpdate() method of
your AppWidgetProvider

On Sun, May 22, 2011 at 3:18 AM, Perry168 perry...@netvigator.com wrote:
 Hi,
 I completed the Widget CFG activity and widget. But I don't know to
 send the value to widget.
 At the CFG activity, user can select 1, 2 or 3 value. The widget will
 following the value to running the different case.
 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




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 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


Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
Mark,

Thank you for the response.  I think I got carried away with the idea of the
fault being in the library, rather embarrassingly, the fault was in the
class and was raising an exception I hadn't caught.  I have fixed that and
it now works.

Thank you everyone for your suggestions.

Regards,
Simon

On Sun, May 22, 2011 at 11:56 AM, Mark Murphy mmur...@commonsware.comwrote:

 Step #1: Get rid of android:process=:remote.

 Step #2: Double-check your LogCat. If AlarmManager (or anything) tries
 to broadcast an Intent that cannot be resolved, a message is logged
 (at warning level, IIRC). If you see it, it may help you narrow down
 where you are going wrong. If you do not see it, your alarm is perhaps
 not being scheduled.

 On Sun, May 22, 2011 at 5:39 AM, Simon Platten
 simonaplat...@googlemail.com wrote:
  I've also tried (In the project manifest):
 
  receiver android:process=:remote
  android:name=packageReference.myReciever/
 
  Where the packageReference is the actual package library package name,
 but
  this hasn't solved it either.
 
 
  On Sun, May 22, 2011 at 10:34 AM, Nikolay Elenkov
  nikolay.elen...@gmail.com wrote:
 
  On Sun, May 22, 2011 at 5:58 PM, Simon Platten
  simonaplat...@googlemail.com wrote:
   Just a thought, could it be the receiver statement in the XML
 manifest?
  
   It currently reads:
  
   receiver android:process=:remote android:name=myReciever/
  
   myReciever is actually a class in my library which is in a different
   package, I'm not sure I have to change anything to reflect this.
  
 
  You have to add it to the application project's AndroidManifest.xml
  and use the full qualified class name. The declaration in the library
  project is ignored.
 
  --
  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



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.6 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

-- 
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 send Widget cfg activity's user value to widget

2011-05-22 Thread Perry168
Hi Mark,

Thanks a again. Because I haven't using this command as before, so I
had a problem.
Does the sharedPreferences.getInt(INT,VALUE) use in  the onUpdate too?


On 5月22日, 下午6時57分, Mark Murphy mmur...@commonsware.com wrote:
 Step #1: Persist the data (e.g., as a SharedPreference)

 Step #2: Update the app widget using AppWidgetManager and a
 RemoteViews object, the same as you do in the onUpdate() method of
 your AppWidgetProvider





 On Sun, May 22, 2011 at 3:18 AM,Perry168perry...@netvigator.com wrote:
  Hi,
  I completed the Widget CFG activity and widget. But I don't know to
  send the value to widget.
  At the CFG activity, user can select 1, 2 or 3 value. The widget will
  following the value to running the different case.
  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

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


Re: [android-developers] Re: How to send Widget cfg activity's user value to widget

2011-05-22 Thread Mark Murphy
2011/5/22 Perry168 perry...@netvigator.com:
 Thanks a again. Because I haven't using this command as before, so I
 had a problem.
 Does the sharedPreferences.getInt(INT,VALUE) use in  the onUpdate too?

If that is where you are storing the data, then presumably yes.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 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: P2P on NFC

2011-05-22 Thread JMC114
An android device establishes a P2P connection over the NPP (NDEF Push 
Protocol) by Google, which is an openly specified protocol: 
http://source.android.com/compatibility/ndef-push-protocol.pdf

NPP is a protocol on top of LLCP, which is a protocol on top of NFCIP-1, so 
you'd need to have those implemented on your reader in order to succesfully 
establish a communications channel.

The only open implementation that can establish some limited connection 
between Android and a reader I know of, is nfcpy: 
https://launchpad.net/nfcpy/+announcement/8271

Cheers,
JMC

-- 
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: Context LocationManager

2011-05-22 Thread cellurl
Context is a good idea too. Thanks
-cellurl

On May 22, 3:08 am, Kostya Vasilyev kmans...@gmail.com wrote:
 22.05.2011 8:38, cellurl пишет:

  I want to create a library that people link to.
  It tells them when the speedlimit changes.
  I have it all working, just not the library part.

  It would have methods like:

  SpeedlimitListener();
  requestSpeedlimitChanges( speedlimitListener );

 Maybe:

 SpeedlimitListener(Context context);

 ?

 Then this class would be able to obtain all needed Android services
 (which may change over time, so you'll be able to keep the interface
 unchanged).

 -- Kostya

  In my mind, its very similar to LocationManager.
  In my case, SpeedlimitManager.

  -cellurl

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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: Context LocationManager

2011-05-22 Thread cellurl
How do I make speedlimitListener call back onSpeedLimitChanged() ?
Thanks for helping!
-cellurl

 --
 SpeedlimitListener speedlimitListener;

  speedlimitListener = new SpeedlimitListener() {
  public void onSpeedLimitChanged(String speedlimit) {}
  };

 SpeedlimitManager slm= new SpeedlimitManager(getBaseContext());

 slm.requestChanges( speedlimitListener );

 ---SpeedlimitListener.java
 public class SpeedlimitListener {

 }
 --SpeedlimitManager.java-
public class SpeedlimitManager {

   public SpeedlimitManager(Context baseContext) {
  LocationManager lm= (LocationManager)
baseContext.getSystemService(Context.LOCATION_SERVICE);
   }

   public void requestChanges(SpeedlimitListener speedlimitListener) {

//??? do magic then callback. HOW?

   }
}

-- 
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] Accessory Development Kit

2011-05-22 Thread Ryan Loebs
Hey all,

I was one of the lucky folks to get one of the ADK's at Google I/O but
I am unable to use it on my HTC EVO for lack of an official Google
update to 2.3.4.  I've loaded the latest version of Cyanogenmod which
is sporting 2.3.4 code but the AOSP version is missing the critical
framework files for the USB accessory.  I recompiled the kernel with
all of the relevant USB accessory flags enabled and placed the
permission XML and framework JAR on my phone but whenever I insert the
ADK the log from the ADK spams out that it can't get the protocol
number and the phone lags.

I've tried looking at dmesg and logcat but logcat is silent during the
entire process and the only thing close to relevant in the dmesg logs
is the following:

http://dumpz.org/55759/

The accessory driver doesn't seem to be attaching to the device.  The
backtrace above is coming from the f_mass_storage driver instead.  I'm
not terribly familiar with kernel code but I can't seem to find a
discrepancy between the code in f_accessory in my kernel tree (cm-
kernel) and the trees available at Google's repos (msm/samsung trees
contain f_accessory).  An early boot dmesg shows that the accessory
function is being initialized but that's the last message that it ever
sends.

Hopefully someone from the ADK team will catch a glimpse of this and
shed some light :)
-Ryan Loebs

-- 
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: Stack overflow

2011-05-22 Thread DanH
This morning (Sunday) there were 100 new questions per hour appearing
on Stack Overflow.  The key to getting your question picked out of the
masses and answered is a well-phrased title, a well-phrased question
body with sufficient info to understand the issues, and a good choice
of tags (though don't overdo the tags).  A niche question is not a
problem if you can attract the right interested person -- many people
on SO relish such questions.

On May 21, 4:39 pm, Julius Spencer jul...@msa.co.nz wrote:
 Wow,  thank you everyone for the answers!  I suspect the questions may be too 
 niche which is why I'm not having much luck.

 Cheers,
 Julius.

 On 21/05/2011, at 10:51 PM, Mark Murphy wrote:

  On Fri, May 20, 2011 at 10:27 PM, Julius Spencer jul...@msa.co.nz wrote:
  After attending IO and talking to the engineers, I was told to put 
  questions on stack overflow.  I was wondering - how do I get people to 
  look at these?

  Based on the last set of stats I ran, 83% of questions posted on
  StackOverflow in the android tag get at least one answer. 47% have an
  accepted answer, meaning that the person who posted the question
  agreed that an answer solved their problem. Not all people who ask
  questions accept answers, so the percentage of questions getting
  correct answers is probably somewhere in the 50-60% range, if I had to
  guess.

  As DanH indicates, question quality is one key determinant of success.
  The more information (e.g., stack traces, snippet of source showing
  where the crash occurred) you supply, the easier it will be for
  somebody to provide an answer. If your question pertains to subsystems
  beyond pure Android (e.g., SQLite, WebKit), tag the question for both
  android and the other piece of tech, to expose the question to more
  experts.

  Another thing that causes questions to go unanswered is if they're a
  bit too niche. The question may be perfectly valid, even exemplary,
  but if there aren't that many people who might know the answer, you'll
  have poor odds of one of them happening to try to answer your
  question. Similarly, StackOverflow, like this list, is best for SDK
  questions -- firmware questions tend not to fare as well.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com|http://github.com/commonsguy
 http://commonsware.com/blog|http://twitter.com/commonsguy

  Android App Developer Books:http://commonsware.com/books

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


Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev

The callback method:

22.05.2011 17:58, cellurl ?:

 public void onSpeedLimitChanged(String speedlimit) {}


Need to be moved up to the interface:

public *interface *SpeedlimitListener {
*public void onSpeedLimitChanged(String speedlimit) {}*
 }

So it can be called from your manager through the interface:

public void requestChanges(SpeedlimitListener speedlimitListener) {
*speedlimitListener.onSpeedLimitChanged(300 km/h);*
 }


and overriden in the actual anonymous callback so the call invocation 
goes here:


speedlimitListener = new SpeedlimitListener() {
*@Override *
public void onSpeedLimitChanged(String speedlimit) {
Log.i(TAG, Isn't that a bit too fast?);
}
};

--
Kostya Vasilyev -- http://kmansoft.wordpress.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

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev

Um, forgot to remove the method body. Like this:

22.05.2011 18:30, Kostya Vasilyev ?:

public *interface *SpeedlimitListener {
*public void onSpeedLimitChanged(String speedlimit); // no curly 
braces here*

 }




--
Kostya Vasilyev -- http://kmansoft.wordpress.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: Context LocationManager

2011-05-22 Thread cellurl
worked great.
Thanks TreKing y Kostya
-cellurl

-- 
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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Please,

Any idea here would be of great help, thanks

On May 21, 9:49 pm, Gabriel Simões gsim...@gmail.com wrote:
 Hello,

 I´ve been searching on the web and here for information but couldn´t
 find anything related to this problem so I hope you can help me.
 I´m retrieving information from 2 diferent content providers that are
 related. Information from one content provider (songs list) should
 define the rules to filter another group of info (albums).

 I´m trying to create an expandablelistview where only the albums which
 have mp3 files would be listed as headers, and the mp3 songs would be
 in the second level list.

 At first I tried to figure out a way of implementing ContentProvider
 searches that would allow me to recover only the required data but I
 couldn´t find a way to do it (use group by, relate both
 contentproviders in the same query, ...). Then I tried to retrieve the
 info and filter programatically but the Cursor class doesn't have
 methods to remove or filter information.

 After I tried to figure out a way to implement the rule in a
 CursorAdapter but while I can customize the information handling, I
 couln´t find a way of blocking some retrieved Cursor lines so I
 could display only albums with at least one mp3 file.

 Please, throw some light in here. How can I archive this result?

 Thanks,
 Gabriel Simões

-- 
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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Please, any idea/tip will be of great help!
I´m stuck on this one.

Tnx,
Gabriel Simões

On May 21, 9:49 pm, Gabriel Simões gsim...@gmail.com wrote:
 Hello,

 I´ve been searching on the web and here for information but couldn´t
 find anything related to this problem so I hope you can help me.
 I´m retrieving information from 2 diferent content providers that are
 related. Information from one content provider (songs list) should
 define the rules to filter another group of info (albums).

 I´m trying to create an expandablelistview where only the albums which
 have mp3 files would be listed as headers, and the mp3 songs would be
 in the second level list.

 At first I tried to figure out a way of implementing ContentProvider
 searches that would allow me to recover only the required data but I
 couldn´t find a way to do it (use group by, relate both
 contentproviders in the same query, ...). Then I tried to retrieve the
 info and filter programatically but the Cursor class doesn't have
 methods to remove or filter information.

 After I tried to figure out a way to implement the rule in a
 CursorAdapter but while I can customize the information handling, I
 couln´t find a way of blocking some retrieved Cursor lines so I
 could display only albums with at least one mp3 file.

 Please, throw some light in here. How can I archive this result?

 Thanks,
 Gabriel Simões

-- 
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: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev
You don't have to use Cursor with an expandable list view or any adapter 
view. Do your own filtering and create an in-memory array of just the 
albums you need, then change your adapter code to get data from this 
array, instead of a cursor.


Perhaps there is a better way, but I can't think of one right now (like 
creating your own Cursor class that intercepts calls to the real cursor, 
filtering data on the fly, but that would get really messy really fast).


-- Kostya

22.05.2011 19:20, Gabriel Simões пишет:

Please, any idea/tip will be of great help!
I´m stuck on this one.

Tnx,
Gabriel Simões

On May 21, 9:49 pm, Gabriel Simõesgsim...@gmail.com  wrote:

Hello,

I´ve been searching on the web and here for information but couldn´t
find anything related to this problem so I hope you can help me.
I´m retrieving information from 2 diferent content providers that are
related. Information from one content provider (songs list) should
define the rules to filter another group of info (albums).

I´m trying to create an expandablelistview where only the albums which
have mp3 files would be listed as headers, and the mp3 songs would be
in the second level list.

At first I tried to figure out a way of implementing ContentProvider
searches that would allow me to recover only the required data but I
couldn´t find a way to do it (use group by, relate both
contentproviders in the same query, ...). Then I tried to retrieve the
info and filter programatically but the Cursor class doesn't have
methods to remove or filter information.

After I tried to figure out a way to implement the rule in a
CursorAdapter but while I can customize the information handling, I
couln´t find a way of blocking some retrieved Cursor lines so I
could display only albums with at least one mp3 file.

Please, throw some light in here. How can I archive this result?

Thanks,
Gabriel Simões



--
Kostya Vasilyev -- http://kmansoft.wordpress.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] ERROR: Unable to open class file C:

2011-05-22 Thread J Handal
Hi


After installing 3.1 and updated tools,clean is delating gen file .

I tried changing gen-property-derivated uncheck.

And clean don't delete gen file,so far OK.

At launching time project error stops the show.

I change the gen property back to derivated checked on only at launching
time and
repeat the clean build refresh run ,the same error.

It doesn't happen in early versions 6,7,8,9.

Where is the Bug?

-- 
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] clean is deleting gen file.

2011-05-22 Thread J Handal
Hi


After installing 3.1 and updated tools,clean is delating gen file .

I tried changing gen-property-derivated uncheck.

And clean don't delete gen file,so far OK.

At launching time Error stops the show.

I change the gen property back to derivated checked on only at launching
time and
repeat the clean build refresh run ,the same error.

It doesn't happen in early versions 6,7,8,9.

-- 
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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Thanks for the reply Kostya,

I think that querying info from 2 different URIs, merging them
programatically and then converting them to arrays before displaying
the listview won't probably be pretty efficient. Maybe this is the
only solution but I still think there should be a way of:

- Querying the information with the relationships I need (query only
albums with mp3 files inside)
- Querying all albums and displaying only the ones with mp3 files
(need to know how to filter content from a cursor before it is
displayed in the expandablelistview)

Thanks,
Gabriel

On May 22, 12:33 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 You don't have to use Cursor with an expandable list view or any adapter
 view. Do your own filtering and create an in-memory array of just the
 albums you need, then change your adapter code to get data from this
 array, instead of a cursor.

 Perhaps there is a better way, but I can't think of one right now (like
 creating your own Cursor class that intercepts calls to the real cursor,
 filtering data on the fly, but that would get really messy really fast).

 -- Kostya

 22.05.2011 19:20, Gabriel Simões пишет:









  Please, any idea/tip will be of great help!
  I´m stuck on this one.

  Tnx,
  Gabriel Simões

  On May 21, 9:49 pm, Gabriel Simõesgsim...@gmail.com  wrote:
  Hello,

  I´ve been searching on the web and here for information but couldn´t
  find anything related to this problem so I hope you can help me.
  I´m retrieving information from 2 diferent content providers that are
  related. Information from one content provider (songs list) should
  define the rules to filter another group of info (albums).

  I´m trying to create an expandablelistview where only the albums which
  have mp3 files would be listed as headers, and the mp3 songs would be
  in the second level list.

  At first I tried to figure out a way of implementing ContentProvider
  searches that would allow me to recover only the required data but I
  couldn´t find a way to do it (use group by, relate both
  contentproviders in the same query, ...). Then I tried to retrieve the
  info and filter programatically but the Cursor class doesn't have
  methods to remove or filter information.

  After I tried to figure out a way to implement the rule in a
  CursorAdapter but while I can customize the information handling, I
  couln´t find a way of blocking some retrieved Cursor lines so I
  could display only albums with at least one mp3 file.

  Please, throw some light in here. How can I archive this result?

  Thanks,
  Gabriel Simões

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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


Re: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev

22.05.2011 20:30, Gabriel Simões пишет:

- Querying the information with the relationships I need (query only
albums with mp3 files inside)


If you can do this with ContentResolver.query, that would be an great 
solution. I am just assuming you can't do this, hence the question.


AFAIK, you can't do joins or nested queries (or any other SQL algebra) 
between Content URIs.


--
Kostya Vasilyev -- http://kmansoft.wordpress.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] Fragments duplicated on config change

2011-05-22 Thread Dave Johnston
I'm encountering a peculiar issue with the user of FragmentActivity.

In my test app, my FragmentActivity's onCreate method calls
setContentView, which inflates a simple layout consisting of a single
Fragment.

However, I'm finding that when the device is rotated, this process
causes additional Fragments to be created, such that after one
rotation there are two Fragment instances, and after two rotations
there are three Fragment instances being created.

I'm also unclear why, when this Activity is first launched, the
Fragment instance created via setContentView() appears to be started,
stopped, and then started again.

Below is a logcat demonstrating the issue (hashCodes in brackets).
Should fragments simply not be inflated via setContentView?

*** App launched ***
05-22 17:39:13.044: VERBOSE/DupeFrag(10519):
TestActivity(1080185976).onStart()
05-22 17:39:13.044: VERBOSE/DupeFrag(10519):
TestFragment(1080196160).onStart()
05-22 17:39:13.044: VERBOSE/DupeFrag(10519):
TestFragment(1080196160).onStop()
05-22 17:39:13.044: VERBOSE/DupeFrag(10519):
TestFragment(1080196160).onStart()
*** Device rotated (1) ***
05-22 17:39:17.779: VERBOSE/DupeFrag(10519):
TestActivity(1080185976).onStop()
05-22 17:39:17.779: VERBOSE/DupeFrag(10519):
TestFragment(1080196160).onStop()
05-22 17:39:17.799: VERBOSE/DupeFrag(10519):
TestActivity(1080209384).onStart()
05-22 17:39:17.799: VERBOSE/DupeFrag(10519):
TestFragment(1080211584).onStart()
05-22 17:39:17.799: VERBOSE/DupeFrag(10519):
TestFragment(1080223880).onStart()
05-22 17:39:17.799: VERBOSE/DupeFrag(10519):
TestFragment(1080211584).onStop()
05-22 17:39:17.799: VERBOSE/DupeFrag(10519):
TestFragment(1080223880).onStop()
05-22 17:39:17.799: VERBOSE/DupeFrag(10519):
TestFragment(1080211584).onStart()
05-22 17:39:17.799: VERBOSE/DupeFrag(10519):
TestFragment(1080223880).onStart()
*** Device rotated (2) ***
05-22 17:39:19.500: VERBOSE/DupeFrag(10519):
TestActivity(1080209384).onStop()
05-22 17:39:19.500: VERBOSE/DupeFrag(10519):
TestFragment(1080211584).onStop()
05-22 17:39:19.500: VERBOSE/DupeFrag(10519):
TestFragment(1080223880).onStop()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestActivity(1080235792).onStart()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080238000).onStart()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080238336).onStart()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080252384).onStart()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080238000).onStop()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080238336).onStop()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080252384).onStop()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080238000).onStart()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080238336).onStart()
05-22 17:39:19.520: VERBOSE/DupeFrag(10519):
TestFragment(1080252384).onStart()

-- 
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: Fragments duplicated on config change

2011-05-22 Thread Dave Johnston
As is typical, noticed the r2 release of the compatibility library
right after I posted this!

That has fixed the duplication issue, however I'm still wondering why
each fragment instance inflated from setContentView gets calls to
onStart(), onStop(), then onStart() again? Shouldn't there be only a
single call to onStart()?

-dave

On May 22, 5:43 pm, Dave Johnston john...@gmail.com wrote:
 I'm encountering a peculiar issue with the user of FragmentActivity.

 In my test app, my FragmentActivity's onCreate method calls
 setContentView, which inflates a simple layout consisting of a single
 Fragment.

 However, I'm finding that when the device is rotated, this process
 causes additional Fragments to be created, such that after one
 rotation there are two Fragment instances, and after two rotations
 there are three Fragment instances being created.

 I'm also unclear why, when this Activity is first launched, the
 Fragment instance created via setContentView() appears to be started,
 stopped, and then started 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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
that´s the problem. This way I can´t retrieve only he albums with at
least one .mp3 song.
My second approach was to find a way to block the displaying of some
entries creating a custom adapter but while I can change the
information I couldn´t find a way to not display full entries.

On May 22, 1:41 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 22.05.2011 20:30, Gabriel Simões пишет:

  - Querying the information with the relationships I need (query only
  albums with mp3 files inside)

 If you can do this with ContentResolver.query, that would be an great
 solution. I am just assuming you can't do this, hence the question.

 AFAIK, you can't do joins or nested queries (or any other SQL algebra)
 between Content URIs.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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


Re: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev

22.05.2011 21:13, Gabriel Simões пишет:

that´s the problem. This way I can´t retrieve only he albums with at
least one .mp3 song.
My second approach was to find a way to block the displaying of some
entries creating a custom adapter but while I can change the
information I couldn´t find a way to not display full entries.


Well, you could do filtering in the adapter's methods to adjust the 
total count, keeping track of skipped positions so you can find the 
(changed) item positions for the data items you keep.It seems messy, but 
maybe that's just me.


--
Kostya Vasilyev -- http://kmansoft.wordpress.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] correction in API demos in SDK//OS//Morse Code

2011-05-22 Thread Spooky
Just FYIthere is an error in the Morse Code
sample for the API demos in the sample code, at
least in Android-7.

U is listed as DIT DIT DAH.  This is correct.
V is also listed as DIT DIT DAH.  This is not correct.
V is DIT DIT DIT DAH.

:-)

Later,
   --jim

--
73 DE N5IAL/4
Web site:  http://www.jstrack.org/
Do not look into waveguide with remaining eye.

-- 
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: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev

22.05.2011 21:13, Gabriel Simões пишет:

My second approach was to find a way to block the displaying of some
entries creating a custom adapter but while I can change the
information I couldn´t find a way to not display full entries.



Ok, here is how you could do filtering on the fly.

Assume the data set you get from CP in a cursor is like this:

0 - mp3
1 - mp3
2 - no mp3
3 - mp3
4 - no mp3

Look through the cursor, checking for mp3s, and create a parallel index 
array like this:


[ 0, 1, 3 ]

The array has the cursor positions where albums have mp3.

Now you have the count for the adapter's getCount method, which is the 
length of this array. The positions as seen by the list view are 0 
through 2.


In getView / bindView, use the table above to find out the position for 
the original cursor: the 0th item is remapped to 0, 1 is mapped to 1, 
but 2 is mapped to 3.


-- Kostya

--
Kostya Vasilyev -- http://kmansoft.wordpress.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: ERROR: Unable to open class file C:

2011-05-22 Thread DanH
Probably the blank after C:.

On May 22, 10:45 am, J Handal jhand...@gmail.com wrote:
 Hi

 After installing 3.1 and updated tools,clean is delating gen file .

 I tried changing gen-property-derivated uncheck.

 And clean don't delete gen file,so far OK.

 At launching time project error stops the show.

 I change the gen property back to derivated checked on only at launching
 time and
 repeat the clean build refresh run ,the same error.

 It doesn't happen in early versions 6,7,8,9.

 Where is the Bug?

-- 
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] Soft keyboard 'Done' button

2011-05-22 Thread Neilz
Hi all. I'm attempting to add the 'Done' button to the soft keyboard,
when an EditText is activated. I use:

android:imeOptions=actionDone  (in the XML)

and...

input.setImeOptions(EditorInfo.IME_ACTION_DONE);   (in the code)

However, I am seeing no difference to the standard keyboard.


I read somewhere that the device manufacturers (HTC in this case) are
building their own implementations of the soft keyboard, which ignore
these options. I'm testing on a Nexus One and a Hero.

Can anyone confirm this? Am I doing something wrong?

-- 
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: Soft keyboard 'Done' button

2011-05-22 Thread Nicholas Johnson
Are you having problems with the implementation?

Make sure to put an OnEditorActionListener in your EditText and screen for 
the IME_ACTION_GO action ID.

Nick

-- 
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] ActionBar forward compatibility

2011-05-22 Thread Brill Pappin
I working on an app were we want to use the ActionBar in devices that can 
support it.
Best way I can think of to handle it at this time is to add a config 
resource tagged with v11 however I don't want to have to update the app 
every time the sdk version changes and add a duplicate resource file.

Is there any way to define a resource as sdk version or greater ?

I'm using the compatibility lib so that the fragments work in Froyo and 
gingerbread, but they can't use the action bar (for which we have a custom 
solution). when we see that we're in honeycomb, we want to hide our custom 
solution and use the actionbar instead.

ideas? thoughts?

- Brill Pappin

-- 
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: [android-developers] ActionBar forward compatibility

2011-05-22 Thread Mark Murphy
On Sun, May 22, 2011 at 7:39 PM, Brill Pappin bpap...@sixgreen.com wrote:
 I working on an app were we want to use the ActionBar in devices that can
 support it.
 Best way I can think of to handle it at this time is to add a config
 resource tagged with v11 however I don't want to have to update the app
 every time the sdk version changes and add a duplicate resource file.
 Is there any way to define a resource as sdk version or greater ?

-v11

The API Level supported by the device. For example, v1 for API Level
1 (devices with Android 1.0 or higher) and v4 for API Level 4 (devices
with Android 1.6 or higher).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 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] Connecting to https server from java

2011-05-22 Thread dashman
I'm trying to connect to a server via https and am getting
invalid server certificate.

how do i solve this.

-- 
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: Connecting to https server from java

2011-05-22 Thread Nicholas Johnson
Contact a server with a valid certificate?

So far, it's not sounding like a problem with your client (Android) app.

Nick

-- 
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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Thanks once again Kostya,

I came up with a cleaner solution that still has one thing left to
work:

Instead of using Media.Audio.Album I got to using only
Media.Audio.Media. It works as expected but the lack of the _id
column now is giving my a big headache when loading the Adapter.
I tried to use

String[] cols = new String[] {
distinct  + MediaStore.Audio.Media.ALBUM_ID +  as 
_id,
MediaStore.Audio.Media.ALBUM,
MediaStore.Audio.Media.ARTIST
};

But it simply doesn´t work. How can I fix the Adapter dependency of
_id so my expandablelistview works?

Thanks,
Gabriel Simões

On May 22, 2:42 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 22.05.2011 21:13, Gabriel Simões пишет:

  My second approach was to find a way to block the displaying of some
  entries creating a custom adapter but while I can change the
  information I couldn´t find a way to not display full entries.

 Ok, here is how you could do filtering on the fly.

 Assume the data set you get from CP in a cursor is like this:

 0 - mp3
 1 - mp3
 2 - no mp3
 3 - mp3
 4 - no mp3

 Look through the cursor, checking for mp3s, and create a parallel index
 array like this:

 [ 0, 1, 3 ]

 The array has the cursor positions where albums have mp3.

 Now you have the count for the adapter's getCount method, which is the
 length of this array. The positions as seen by the list view are 0
 through 2.

 In getView / bindView, use the table above to find out the position for
 the original cursor: the 0th item is remapped to 0, 1 is mapped to 1,
 but 2 is mapped to 3.

 -- Kostya

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
a little hack: added

MediaStore.Audio.Media.ALBUM_KEY +  as '_id'

and now it seems to work 

On May 22, 9:54 pm, Gabriel Simões gsim...@gmail.com wrote:
 Thanks once again Kostya,

 I came up with a cleaner solution that still has one thing left to
 work:

 Instead of using Media.Audio.Album I got to using only
 Media.Audio.Media. It works as expected but the lack of the _id
 column now is giving my a big headache when loading the Adapter.
 I tried to use

         String[] cols = new String[] {
                         distinct  + MediaStore.Audio.Media.ALBUM_ID +  as 
 _id,
                         MediaStore.Audio.Media.ALBUM,
                         MediaStore.Audio.Media.ARTIST
         };

 But it simply doesn´t work. How can I fix the Adapter dependency of
 _id so my expandablelistview works?

 Thanks,
 Gabriel Simões

 On May 22, 2:42 pm, Kostya Vasilyev kmans...@gmail.com wrote:







  22.05.2011 21:13, Gabriel Simões пишет:

   My second approach was to find a way to block the displaying of some
   entries creating a custom adapter but while I can change the
   information I couldn´t find a way to not display full entries.

  Ok, here is how you could do filtering on the fly.

  Assume the data set you get from CP in a cursor is like this:

  0 - mp3
  1 - mp3
  2 - no mp3
  3 - mp3
  4 - no mp3

  Look through the cursor, checking for mp3s, and create a parallel index
  array like this:

  [ 0, 1, 3 ]

  The array has the cursor positions where albums have mp3.

  Now you have the count for the adapter's getCount method, which is the
  length of this array. The positions as seen by the list view are 0
  through 2.

  In getView / bindView, use the table above to find out the position for
  the original cursor: the 0th item is remapped to 0, 1 is mapped to 1,
  but 2 is mapped to 3.

  -- Kostya

  --
  Kostya Vasilyev --http://kmansoft.wordpress.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: ActionBar forward compatibility

2011-05-22 Thread Zsolt Vasvari
This document is your friend.  It explains in great detail what the
various suffices (including -v) mean:

http://developer.android.com/guide/topics/resources/providing-resources.html



On May 23, 7:39 am, Brill Pappin bpap...@sixgreen.com wrote:
 I working on an app were we want to use the ActionBar in devices that can
 support it.
 Best way I can think of to handle it at this time is to add a config
 resource tagged with v11 however I don't want to have to update the app
 every time the sdk version changes and add a duplicate resource file.

 Is there any way to define a resource as sdk version or greater ?

 I'm using the compatibility lib so that the fragments work in Froyo and
 gingerbread, but they can't use the action bar (for which we have a custom
 solution). when we see that we're in honeycomb, we want to hide our custom
 solution and use the actionbar instead.

 ideas? thoughts?

 - Brill Pappin

-- 
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] Purchases stuck again in Google Checkout

2011-05-22 Thread Zsolt Vasvari
Seems to have started happening again.  3 of my purchases from
yesterday are still not Completed and half of mine from today
That means that Google is holding my money.

-- 
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] Debugging Killed Activity

2011-05-22 Thread Kevin
I have an activity that launches the built in camera activity to
capture a picture.  My activity is often killed while the camera is
running, so I'm using onSaveInstanceState and onRestoreInstanceState
to save field values.

Anyway, it crashes while restoring the state, but when it's killed the
debugger detaches, so when it's restarted after the camera is done, I
don't have a debugger to see what's causing the crash.  I know what
function is causing the crash but I can't see the problem just looking
at it.

Any ideas?  Is there a way to get a core dump after the crash and run
the debugger on that?

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: Debugging Killed Activity

2011-05-22 Thread Zsolt Vasvari
Log.v() is your friend.  I tend to use it more than the debugger since
half the time I change any xml, my app crashes due to the Eclipse plug-
in problem.  Since it's so useful, I went back to the primitive way of
debugging unless I really can't figure out what's going on.

On May 23, 9:46 am, Kevin khant...@hotmail.com wrote:
 I have an activity that launches the built in camera activity to
 capture a picture.  My activity is often killed while the camera is
 running, so I'm using onSaveInstanceState and onRestoreInstanceState
 to save field values.

 Anyway, it crashes while restoring the state, but when it's killed the
 debugger detaches, so when it's restarted after the camera is done, I
 don't have a debugger to see what's causing the crash.  I know what
 function is causing the crash but I can't see the problem just looking
 at it.

 Any ideas?  Is there a way to get a core dump after the crash and run
 the debugger on that?

 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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Zsolt Vasvari
I wouldn't call that a hack if you know that ALBUM_KEY will be
unique.  But I suspect it may not be, as why would they have both an
ALBUM_ID and an ALBUM_KEY?

The DISTINCT should never be needed if you were truly retrieving a
unique key, as a key is distinct by definition.  Something doesn't
seem right.

On May 23, 9:04 am, Gabriel Simões gsim...@gmail.com wrote:
 a little hack: added

 MediaStore.Audio.Media.ALBUM_KEY +  as '_id'

 and now it seems to work 

 On May 22, 9:54 pm, Gabriel Simões gsim...@gmail.com wrote:



  Thanks once again Kostya,

  I came up with a cleaner solution that still has one thing left to
  work:

  Instead of using Media.Audio.Album I got to using only
  Media.Audio.Media. It works as expected but the lack of the _id
  column now is giving my a big headache when loading the Adapter.
  I tried to use

          String[] cols = new String[] {
                          distinct  + MediaStore.Audio.Media.ALBUM_ID +  
  as _id,
                          MediaStore.Audio.Media.ALBUM,
                          MediaStore.Audio.Media.ARTIST
          };

  But it simply doesn´t work. How can I fix the Adapter dependency of
  _id so my expandablelistview works?

  Thanks,
  Gabriel Simões

  On May 22, 2:42 pm, Kostya Vasilyev kmans...@gmail.com wrote:

   22.05.2011 21:13, Gabriel Simões пишет:

My second approach was to find a way to block the displaying of some
entries creating a custom adapter but while I can change the
information I couldn´t find a way to not display full entries.

   Ok, here is how you could do filtering on the fly.

   Assume the data set you get from CP in a cursor is like this:

   0 - mp3
   1 - mp3
   2 - no mp3
   3 - mp3
   4 - no mp3

   Look through the cursor, checking for mp3s, and create a parallel index
   array like this:

   [ 0, 1, 3 ]

   The array has the cursor positions where albums have mp3.

   Now you have the count for the adapter's getCount method, which is the
   length of this array. The positions as seen by the list view are 0
   through 2.

   In getView / bindView, use the table above to find out the position for
   the original cursor: the 0th item is remapped to 0, 1 is mapped to 1,
   but 2 is mapped to 3.

   -- Kostya

   --
   Kostya Vasilyev --http://kmansoft.wordpress.com- 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] choppy game

2011-05-22 Thread bob
I used a Java Timer object and a TimerTask like this for some game
physics

if (!timergoing)
{
PhysicsTask physicsTask = new PhysicsTask();

Timer tm = new Timer();
tm.scheduleAtFixedRate(physicsTask, 1000, (long) (1000.0f/
physicsFrameRate));
}

However, the physics was somewhat choppy to my surprise.   Anyone know
what the deal is with this and how to make it better?

-- 
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: choppy game

2011-05-22 Thread Zsolt Vasvari
You telling me from the 2 lines of code you posted, that it's not
obvious to you what's wrong?  Even a blind could see the issue...

On May 23, 10:06 am, bob b...@coolgroups.com wrote:
 I used a Java Timer object and a TimerTask like this for some game
 physics

                 if (!timergoing)
                 {
                 PhysicsTask physicsTask = new PhysicsTask();

                 Timer tm = new Timer();
                 tm.scheduleAtFixedRate(physicsTask, 1000, (long) (1000.0f/
 physicsFrameRate));
                 }

 However, the physics was somewhat choppy to my surprise.   Anyone know
 what the deal is with this and how to make it better?

-- 
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: Connecting to https server from java

2011-05-22 Thread DanH
Assuming the server is legitimate, you basically see this problem
because the certificate presented by the HTTPS server doesn't have a
certificate chain that can be verified against one of the root
certificates on the phone.  It may be possible to download and install
a new (additional) root authority certificate on the phone (I don't
know if this is possible on Android -- it isn't on some phones).  If
not, or if you want a fix that doesn't require actions on the part
of the user, you can either tell the HTTPS protocol to not verify the
server's cert (not particularly dangerous if the trusted URL is
hardwired into your app), or you can include a suitable root cert in
your application and give that to the HTTPS protocol for its use.
(I'm not familiar with how precisely you do these things on Android.)

On May 22, 6:58 pm, dashman erjdri...@gmail.com wrote:
 I'm trying to connect to a server via https and am getting
 invalid server certificate.

 how do i solve this.

-- 
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: Fragment Support forward compatibility?

2011-05-22 Thread theSmith
Did the recent update to the ACL fix the issues with aminations?

-theSmith

On Apr 15, 4:50 am, alevapi alexis.vapil...@gmail.com wrote:
  in the current static library animations are broken.
  I have a fix that will be available in a later update

 When do you think the fixed version will be available?
 I'd love to use fragments on Gingerbread, but fragments with no
 transition animation are a little too boring :(

 --
 Alexis.

 On 11 mar, 03:14, Dianne Hackborn hack...@android.com wrote:







  Note that in the current static library animations are broken.  I have a fix
  for this that will be available in a later update.

  On Thu, Mar 10, 2011 at 4:57 PM, davemac davemac...@gmail.com wrote:
   There are some subtle differences between the Fragment compatability
   library and the native Fragment support in Android 3.0. For example,
   the setCustomAnimations() method on FragmentTransaction can use the
   new ObjectAnimator in Android 3.0 (see android.R.animator), but must
   use the older anim transitions pre-3.0 (see android.R.anim).

   - dave

   On Mar 9, 7:54 pm, Mark Murphy mmur...@commonsware.com wrote:
On Mon, Mar 7, 2011 at 5:35 PM, Neal Sanche thorins...@gmail.com
   wrote:
 I guess I just wanted to ask if, when this compatibility library was
 developed, the design intent was to allow applications to run on
 Android 1.6 - Android 3.0 inclusive without needing to change the
 code?

Yes, that was the intent.

--
Mark Murphy (a Commons Guy)http://commonsware.com|
  http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

Android Training Worldwide: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

  --
  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: Save to SD

2011-05-22 Thread kypriakos

First, good to hear from you Mark - I hope all is well!

Well I expected the two (instead of three) letter response - I ended
up playing around
with the code (which is nothing other than using the FileOutputStream
to write out
the jpeg. I found out that if I replace the println statements (I was
checking what was
being written out and didn't expect it to cause so much overhead) with
Log.i the
image can be written in around 95 seconds ( 1 MB). Still slow but not
as bad as an
hour. Of course still 95 seconds is a bit too much. Anything else I
can try? May be
an SD card profile / performance test would be help determine if
something is going
on there?

Thanks again

On May 21, 1:58 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sat, May 21, 2011 at 1:55 PM, kypriakos demet...@ece.neu.edu wrote:
  I am saving jpeg image on sdcard through an activity - about 1 MB
  takes literally
  close to an hour ... is that normal?

 No.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android App Developer Books:http://commonsware.com/books

-- 
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] Input transport and input dispatcher error on 2.3

2011-05-22 Thread wang
Hi,

I run into many applications in the Android 2.3, but when every time I
perform to a certain program, the following error sometimes occurs:

05-20 16:43:57.714 E/InputTransport(  102): channel '40540858
com.android.test/com.abdroid.test.Test1 (server)' publisher ~ Error -1
pinning ashmem fd 0.


05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
com.android.test/com.abdroid.test.Test1 (server)' ~ Could not publish
key event, status=-2147483648


05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
com.android.test/com.abdroid.test.Test1 (server)' ~ Channel is
unrecoverably broken and will be disposed!


Can tell me in what circumstances would cause such a result?

-- 
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] icons: getting conflicting information

2011-05-22 Thread Spooky
First, I've been advised (building an app for Android 1.5 and up) to
stay away from
res/drawables-?dpi and just use res/drawables ... then, I read that
the right way
IS to use res/drawables-?dpi.Which is right?

Second, the SDK samples all use android.R.drawable.* ... and yet, the
reference page
on the developer's section says not to do that, but instead, save a
copy and use it,
instead.   And as it turned out, the page in question wasn't what I
was looking for
(a page listing all of the android.R.drawable icons)it was specs
on their dimensions,
shading, etc.   Definitely not what I was looking for.

So, I downloaded a ZIP file with the icons.  When I extracted it,
there were a bunch of
Photoshop document (PSD) files that my version won't open.  I would
have thought
they'd be PNG files, not PSD.

Suggestions?
   --jim

-- 
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: Input transport and input dispatcher error on 2.3

2011-05-22 Thread wang
this is the next Log
05-20 16:43:57.714 I/WindowManager(  102): WINDOW DIED Window{40540858
com.android.test/com.abdroid.test.Test1  paused=false}

On May 23, 11:41 am, wang svnzk...@gmail.com wrote:
 Hi,

 I run into many applications in the Android 2.3, but when every time I
 perform to a certain program, the following error sometimes occurs:

 05-20 16:43:57.714 E/InputTransport(  102): channel '40540858
 com.android.test/com.abdroid.test.Test1 (server)' publisher ~ Error -1
 pinning ashmem fd 0.

 05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
 com.android.test/com.abdroid.test.Test1 (server)' ~ Could not publish
 key event, status=-2147483648

 05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
 com.android.test/com.abdroid.test.Test1 (server)' ~ Channel is
 unrecoverably broken and will be disposed!

 Can tell me in what circumstances would cause such a result?

-- 
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: Save to SD

2011-05-22 Thread Zsolt Vasvari
In my app, copying a 4MB file to the SD card takes maybe 5 seconds.  I
am using the Commons IO library.

So you are doing something wrong if it takes more than a couple of
seconds for a 1MB file.



On May 23, 11:27 am, kypriakos demet...@ece.neu.edu wrote:
 First, good to hear from you Mark - I hope all is well!

 Well I expected the two (instead of three) letter response - I ended
 up playing around
 with the code (which is nothing other than using the FileOutputStream
 to write out
 the jpeg. I found out that if I replace the println statements (I was
 checking what was
 being written out and didn't expect it to cause so much overhead) with
 Log.i the
 image can be written in around 95 seconds ( 1 MB). Still slow but not
 as bad as an
 hour. Of course still 95 seconds is a bit too much. Anything else I
 can try? May be
 an SD card profile / performance test would be help determine if
 something is going
 on there?

 Thanks again

 On May 21, 1:58 pm, Mark Murphy mmur...@commonsware.com wrote:



  On Sat, May 21, 2011 at 1:55 PM, kypriakos demet...@ece.neu.edu wrote:
   I am saving jpeg image on sdcard through an activity - about 1 MB
   takes literally
   close to an hour ... is that normal?

  No.

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

  Android App Developer Books:http://commonsware.com/books- 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: Mac source control

2011-05-22 Thread gjs
Hi,

Eclispe has CVS support builtin, just need to setup CVS on your Mac.

Regards

On May 21, 11:24 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
  Eclipse has an EGit plugin

 I like to use this to commit to my branch locally and then use 
 gitxhttp://gitx.frim.nl/to push to github (which is only like $7 for
 private repos)

  to make it a little easier to get into (or
  harder, it is a bit buggy).

 git actually was simple to learn.  Ok I don't have egit running to
 it's full potential but ... I like gitx extremely much.

 Shawn

-- 
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: Comments/Ratings not showing up on Market

2011-05-22 Thread Halsafar
So someone had suggested maybe the phones were not sending them
properly.  So I had these people go on their PC and check.  When they
log in and view my app they can indeed see just their comment/rating
they had put via their phone.  So the phone did send the data at least
to their account.  Somewhere along the line it is being stopped from
becoming public.

On May 21, 9:16 pm, John Gaby jg...@gabysoft.com wrote:
 I have had this happen at least 3 times.  A user told me that they has
 submitted a review, but I could not see it.  I asked them about it and
 they send me a screen shot clearly showing the review, however, when I
 looked at the same page it simply was not there.  There is something
 definitely fubar with their rating system.

 On May 20, 11:56 pm, webmonkey webmonke...@gmail.com wrote:







  Maybe they are working on a comment rating system like Amazon? When
  they improve something, it usually breaks first, so it could be good
  sign ;-)

  On May 21, 8:39 am, Zsolt Vasvari zvasv...@gmail.com wrote:

   Yes, same for me -- I even had the user blow away the cached Market
   data and still, he says he can see his own commnent, but nobody else
   can.   As unbelievable as that sounds -- the Android Market team had
   managed to pull off the improbablity of introducing a bug where a
   comment only shows up for the user who made it -- after all, it must
   involve some extra logic in the code that returns the comments list to
   filter them out for eveybody else.

   On May 21, 9:55 am, Halsafar shinhalsa...@gmail.com wrote:

To further add to the frustration.  If I look at the persons phone who
made the comment, they see their own review/rating when looking at my
app page.  Each person can see just the review/rating they gave.  None
of these people can see the others.  I can't see any.  It is quite
weird.

Thanks for all the quick answers.  My fingers are crossed the comments
are just stuck in limbo and will eventually appear.

On May 20, 7:36 pm, Zsolt Vasvari zvasv...@gmail.com wrote:

 Yes, same thing on my end.  I even sent an e-mail to support, but of
 course, no response.  Why even waste my time, I don't know.

 But I've had 4 commens in a 24 hr period, so things maybe back to
 normal.

 On May 21, 6:35 am, TreKing treking...@gmail.com wrote:

  On Fri, May 20, 2011 at 2:31 PM, Halsafar shinhalsa...@gmail.com 
  wrote:
   I have physically watched more than 3 people now make a comment 
   on my App
   from their device.  24 hours later none of these comments or 
   ratings appear.

  I have noticed issues with the comments as well. There just doesn't 
  seem to
  be as many flowing through as usual. One day 3 popped in all of 
  sudden, then
  two of them were gone hours later. Something's definitely up.

   Is there any particular reason for this?

  The Android Market is very, very buggy.

   Did I disable comments/rating by accident?

  That's not possible.

    Do I have to verify them?

  No.

     Do they take longer than 24 hours to appear?

  Not usually, when working correctly.

    This is my first app but it seems like something is definitely 
  wrong.

  I like to call this the Android Market Experience™. Get used to it.

  ---
   ­--
  TreKing http://sites.google.com/site/rezmobileapps/treking - 
  Chicago
  transit tracking app for Android-powered devices- 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: Comments/Ratings not showing up on Market

2011-05-22 Thread Zsolt Vasvari
But why on earth would comments visible be stored as part of a Google
account?  That sounds extremely ineffcient.  But you are right, they
must be.  I wonder if the feedback count has increased for these users
when they entered their own comment.

On May 23, 12:27 pm, Halsafar shinhalsa...@gmail.com wrote:
 So someone had suggested maybe the phones were not sending them
 properly.  So I had these people go on their PC and check.  When they
 log in and view my app they can indeed see just their comment/rating
 they had put via their phone.  So the phone did send the data at least
 to their account.  Somewhere along the line it is being stopped from
 becoming public.

 On May 21, 9:16 pm, John Gaby jg...@gabysoft.com wrote:



  I have had this happen at least 3 times.  A user told me that they has
  submitted a review, but I could not see it.  I asked them about it and
  they send me a screen shot clearly showing the review, however, when I
  looked at the same page it simply was not there.  There is something
  definitely fubar with their rating system.

  On May 20, 11:56 pm, webmonkey webmonke...@gmail.com wrote:

   Maybe they are working on a comment rating system like Amazon? When
   they improve something, it usually breaks first, so it could be good
   sign ;-)

   On May 21, 8:39 am, Zsolt Vasvari zvasv...@gmail.com wrote:

Yes, same for me -- I even had the user blow away the cached Market
data and still, he says he can see his own commnent, but nobody else
can.   As unbelievable as that sounds -- the Android Market team had
managed to pull off the improbablity of introducing a bug where a
comment only shows up for the user who made it -- after all, it must
involve some extra logic in the code that returns the comments list to
filter them out for eveybody else.

On May 21, 9:55 am, Halsafar shinhalsa...@gmail.com wrote:

 To further add to the frustration.  If I look at the persons phone who
 made the comment, they see their own review/rating when looking at my
 app page.  Each person can see just the review/rating they gave.  None
 of these people can see the others.  I can't see any.  It is quite
 weird.

 Thanks for all the quick answers.  My fingers are crossed the comments
 are just stuck in limbo and will eventually appear.

 On May 20, 7:36 pm, Zsolt Vasvari zvasv...@gmail.com wrote:

  Yes, same thing on my end.  I even sent an e-mail to support, but of
  course, no response.  Why even waste my time, I don't know.

  But I've had 4 commens in a 24 hr period, so things maybe back to
  normal.

  On May 21, 6:35 am, TreKing treking...@gmail.com wrote:

   On Fri, May 20, 2011 at 2:31 PM, Halsafar 
   shinhalsa...@gmail.com wrote:
I have physically watched more than 3 people now make a comment 
on my App
from their device.  24 hours later none of these comments or 
ratings appear.

   I have noticed issues with the comments as well. There just 
   doesn't seem to
   be as many flowing through as usual. One day 3 popped in all of 
   sudden, then
   two of them were gone hours later. Something's definitely up.

Is there any particular reason for this?

   The Android Market is very, very buggy.

Did I disable comments/rating by accident?

   That's not possible.

 Do I have to verify them?

   No.

  Do they take longer than 24 hours to appear?

   Not usually, when working correctly.

     This is my first app but it seems like something is definitely 
   wrong.

   I like to call this the Android Market Experience™. Get used to 
   it.

   ---
­--
   TreKing http://sites.google.com/site/rezmobileapps/treking - 
   Chicago
   transit tracking app for Android-powered devices- Hide quoted 
   text -

 - Show quoted text -- 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: icons: getting conflicting information

2011-05-22 Thread Zsolt Vasvari
First of all, I would think very seriously about not building a new
app that supports 1.5 in the middle of 2011.

1.5 doesn't support screen densities, so all resources must be in
drawable.  So if you want to support 1.5+, keep your MDPI resources
is drawable and then create an HDPI folder if you want.  If you won't
create an HDPI folder, the system will scale up your MDPI resources.

So, if you want to support 1.5, you MUST include MDPI graphics,
otherwise you can get away with just HDPI.



On May 23, 11:43 am, Spooky spooky1...@gmail.com wrote:
 First, I've been advised (building an app for Android 1.5 and up) to
 stay away from
 res/drawables-?dpi and just use res/drawables ... then, I read that
 the right way
 IS to use res/drawables-?dpi.    Which is right?

 Second, the SDK samples all use android.R.drawable.* ... and yet, the
 reference page
 on the developer's section says not to do that, but instead, save a
 copy and use it,
 instead.   And as it turned out, the page in question wasn't what I
 was looking for
 (a page listing all of the android.R.drawable icons)it was specs
 on their dimensions,
 shading, etc.   Definitely not what I was looking for.

 So, I downloaded a ZIP file with the icons.  When I extracted it,
 there were a bunch of
 Photoshop document (PSD) files that my version won't open.  I would
 have thought
 they'd be PNG files, not PSD.

 Suggestions?
    --jim

-- 
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: [android-developers] Re: Input transport and input dispatcher error on 2.3

2011-05-22 Thread Dianne Hackborn
Your process is going away.  Either it had a Dalvik crash and is now being
killed, some native code in it crashed, or it was in the background and the
OOM killer is removing it to reclaim memory.

On Sun, May 22, 2011 at 8:45 PM, wang svnzk...@gmail.com wrote:

 this is the next Log
 05-20 16:43:57.714 I/WindowManager(  102): WINDOW DIED Window{40540858
 com.android.test/com.abdroid.test.Test1  paused=false}

 On May 23, 11:41 am, wang svnzk...@gmail.com wrote:
  Hi,
 
  I run into many applications in the Android 2.3, but when every time I
  perform to a certain program, the following error sometimes occurs:
 
  05-20 16:43:57.714 E/InputTransport(  102): channel '40540858
  com.android.test/com.abdroid.test.Test1 (server)' publisher ~ Error -1
  pinning ashmem fd 0.
 
  05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
  com.android.test/com.abdroid.test.Test1 (server)' ~ Could not publish
  key event, status=-2147483648
 
  05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
  com.android.test/com.abdroid.test.Test1 (server)' ~ Channel is
  unrecoverably broken and will be disposed!
 
  Can tell me in what circumstances would cause such a result?

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

Re: [android-developers] Re: Comments/Ratings not showing up on Market

2011-05-22 Thread Tom Gibara
Personally, it's exactly the sort of optimization I would anticipate in a
server application that has been designed for scalability.

The user making the comment will expect it to appear immediately and may
become confused if it doesn't. On the other hand, users will not generally
notice a delay in the appearance of comments of other users. Therefore, as
an optimization while displaying users their own comments, it makes sense to
perform the aggregation of user comments with a batch process, otherwise
popular applications may cause unsupportable levels of contention.

Of course, the application developer is not just any other user, they are
much more likely to become aware of absent comments. If there's a hold-up in
performing the integration of comments into a single stream, the illusion
that user comments are posted instantly will breakdown.

Tom
On May 23, 2011 4:46 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
 But why on earth would comments visible be stored as part of a Google
 account? That sounds extremely ineffcient. But you are right, they
 must be. I wonder if the feedback count has increased for these users
 when they entered their own comment.

 On May 23, 12:27 pm, Halsafar shinhalsa...@gmail.com wrote:
 So someone had suggested maybe the phones were not sending them
 properly.  So I had these people go on their PC and check.  When they
 log in and view my app they can indeed see just their comment/rating
 they had put via their phone.  So the phone did send the data at least
 to their account.  Somewhere along the line it is being stopped from
 becoming public.

 On May 21, 9:16 pm, John Gaby jg...@gabysoft.com wrote:



  I have had this happen at least 3 times.  A user told me that they has
  submitted a review, but I could not see it.  I asked them about it and
  they send me a screen shot clearly showing the review, however, when I
  looked at the same page it simply was not there.  There is something
  definitely fubar with their rating system.

  On May 20, 11:56 pm, webmonkey webmonke...@gmail.com wrote:

   Maybe they are working on a comment rating system like Amazon? When
   they improve something, it usually breaks first, so it could be good
   sign ;-)

   On May 21, 8:39 am, Zsolt Vasvari zvasv...@gmail.com wrote:

Yes, same for me -- I even had the user blow away the cached Market
data and still, he says he can see his own commnent, but nobody
else
can.   As unbelievable as that sounds -- the Android Market team
had
managed to pull off the improbablity of introducing a bug where a
comment only shows up for the user who made it -- after all, it
must
involve some extra logic in the code that returns the comments list
to
filter them out for eveybody else.

On May 21, 9:55 am, Halsafar shinhalsa...@gmail.com wrote:

 To further add to the frustration.  If I look at the persons
phone who
 made the comment, they see their own review/rating when looking
at my
 app page.  Each person can see just the review/rating they gave.
 None
 of these people can see the others.  I can't see any.  It is
quite
 weird.

 Thanks for all the quick answers.  My fingers are crossed the
comments
 are just stuck in limbo and will eventually appear.

 On May 20, 7:36 pm, Zsolt Vasvari zvasv...@gmail.com wrote:

  Yes, same thing on my end.  I even sent an e-mail to support,
but of
  course, no response.  Why even waste my time, I don't know.

  But I've had 4 commens in a 24 hr period, so things maybe back
to
  normal.

  On May 21, 6:35 am, TreKing treking...@gmail.com wrote:

   On Fri, May 20, 2011 at 2:31 PM, Halsafar 
shinhalsa...@gmail.com wrote:
I have physically watched more than 3 people now make a
comment on my App
from their device.  24 hours later none of these comments
or ratings appear.

   I have noticed issues with the comments as well. There just
doesn't seem to
   be as many flowing through as usual. One day 3 popped in all
of sudden, then
   two of them were gone hours later. Something's definitely up.

Is there any particular reason for this?

   The Android Market is very, very buggy.

Did I disable comments/rating by accident?

   That's not possible.

 Do I have to verify them?

   No.

  Do they take longer than 24 hours to appear?

   Not usually, when working correctly.

 This is my first app but it seems like something is
definitely wrong.

   I like to call this the Android Market Experience™. Get used
to it.

  
---
­--
   TreKing http://sites.google.com/site/rezmobileapps/treking
- Chicago
   transit tracking app for Android-powered devices- Hide quoted
text -

 - Show quoted text -- Hide quoted text -

 - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 

Re: [android-developers] clean is deleting gen file.

2011-05-22 Thread Md. Abdun Nur Tomal
Probably, you are using in the resource folders any file name is capital letter.

On Sun, May 22, 2011 at 10:11 PM, J Handal jhand...@gmail.com wrote:

 Hi

 After installing 3.1 and updated tools,clean is delating gen file .
 I tried changing gen-property-derivated uncheck.
 And clean don't delete gen file,so far OK.
 At launching time Error stops the show.
 I change the gen property back to derivated checked on only at launching
 time and
 repeat the clean build refresh run ,the same error.
 It doesn't happen in early versions 6,7,8,9.

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