[android-developers] Re: Testing for HTC magic

2009-03-07 Thread Mariano Kamp
And as it is not releases it might still be buggy.

I also got an error report regarding the Magic and he also mentioned
problems with Twitroid.
http://twitter.com/techtravel/statuses/1237848578
http://twitter.com/techtravel/statuses/1237863847

Both complaints are not about Forced Close, but about GUI problems. Very
strange.


On Sat, Mar 7, 2009 at 2:12 AM, Justin Allen Jaynes jus...@ragblue.comwrote:


 The emulator doesn't simulate any specific phone.  Just a generic one.
 Your application *should* run the same on an HTC magic as on a TMobile
 G1 because the hardware is very similar.  The whole intention of Android
 is to separate the application layer sufficiently from the hardware so
 that your app will run equally well on any android device.  So, although
 there are possible reasons it might not work well on a Magic, it's far
 more likely misbehaving because of either 1) the users particular phone
 setup (too many other running apps, etc), or 2) it's misbehaving on most
 actual physical phones.  If it's reason 1, you just got bad luck that
 they left a poor review.  If it's reason 2, you should investigate and
 fix it.

 If at all possible, you should get an actual G1 (or Magic when it
 becomes publicly available in your area) and install and test the app.
 And although a DEV phone would be better than the emulator, the DEV
 phone ships with a different configuration than what end users have on
 their phones.  So an actual phone from a phone company would be the
 absolute best way to test.  The Android Platform which gets installed
 onto these phones by cellular phone companies is customized as they
 choose (which is one reason Android is open source).  For this reason,
 the emulator will never be exactly the same as the real world.

 Justin

 Mattaku Betsujin wrote:
  I am getting user feedback for my app closes a lot on HTC magic, one
  star
 
  Are there any HTC magics out there? Will it be able to get an
  SDK/emulator for it?
 
  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: Testing for HTC magic

2009-03-07 Thread Romain Guy

However is using this device might simply be running Cupcake, which is
far from being complete and ready.

Note that apps that rely on private APIs/resources may/will run into
problems with Cupcake.

On Sat, Mar 7, 2009 at 12:27 AM, Mariano Kamp mariano.k...@gmail.com wrote:
 And as it is not releases it might still be buggy.

 I also got an error report regarding the Magic and he also mentioned
 problems with Twitroid.
 http://twitter.com/techtravel/statuses/1237848578
 http://twitter.com/techtravel/statuses/1237863847

 Both complaints are not about Forced Close, but about GUI problems. Very
 strange.


 On Sat, Mar 7, 2009 at 2:12 AM, Justin Allen Jaynes jus...@ragblue.com
 wrote:

 The emulator doesn't simulate any specific phone.  Just a generic one.
 Your application *should* run the same on an HTC magic as on a TMobile
 G1 because the hardware is very similar.  The whole intention of Android
 is to separate the application layer sufficiently from the hardware so
 that your app will run equally well on any android device.  So, although
 there are possible reasons it might not work well on a Magic, it's far
 more likely misbehaving because of either 1) the users particular phone
 setup (too many other running apps, etc), or 2) it's misbehaving on most
 actual physical phones.  If it's reason 1, you just got bad luck that
 they left a poor review.  If it's reason 2, you should investigate and
 fix it.

 If at all possible, you should get an actual G1 (or Magic when it
 becomes publicly available in your area) and install and test the app.
 And although a DEV phone would be better than the emulator, the DEV
 phone ships with a different configuration than what end users have on
 their phones.  So an actual phone from a phone company would be the
 absolute best way to test.  The Android Platform which gets installed
 onto these phones by cellular phone companies is customized as they
 choose (which is one reason Android is open source).  For this reason,
 the emulator will never be exactly the same as the real world.

 Justin

 Mattaku Betsujin wrote:
  I am getting user feedback for my app closes a lot on HTC magic, one
  star
 
  Are there any HTC magics out there? Will it be able to get an
  SDK/emulator for it?
 
  Thanks
 
  





 




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: microSD problems

2009-03-07 Thread Justin Allen Jaynes

I apologize to the group for being so repetitive.  Al is right.  I 
should just hit the delete key.  (Although, Al, you suggest I think this 
group is all about me and that I'm trying to set a standard discussion 
topic--not so.  Google set the topic when they wrote those words which I 
have too frequently quoted.  Again, sorry for it, everyone.)

Nevertheless, it will continue to drive me crazy that even knowing the 
rules, and that there is a forum for other topics, you choose to ignore 
them and assume that since the Google Engineers don't demand 
conformance, it's okay by the rest of us.  Do you think nobody will 
listen to you in the other forum?  That's actually probably true.  That 
forum seems somewhat useless, but that's how I feel about comments 
concerning the unfairness of the android market and the shortcomings of 
Google and T-Mobile.  I suspect that is why they made the other 
forum--to fill with useless chit-chat (yes--like the very chit-chat I am 
making) and keep it far from here.

No more from me on the subject.  I had no idea the rules were so 
unpopular--I thought they were just unread.

Justin

Daniel wrote:
   
 now you want to move to advanced topics. Get help here with
 

 I do want to move to advanced topics, but there's not much I can do
 when the phone is crippled by bugs when mounting the memory card.

 I do see myself as an advanced user of technology with many years of
 development experience - hence I have posted on this forum, hoping to
 find out if like-minded people are having the same difficulty as
 myself getting this phone to move off the starting line.

 Some forum posts have reported that people have to pop out their
 memory card and re-insert it periodically, and various other work-
 arounds.  It brings me to the question: is the phone really stable
 enough for any advanced development work, or should I put my interest
 in Android on hold for another 6 months rather than getting bogged
 down in issues like 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: microSD problems

2009-03-07 Thread Al Sutton

Many thanks for changing your approach to the list. I hope you find the 
list as useful as many of us do and look forward to your added input to 
the discussions.

Al.

Justin Allen Jaynes wrote:
 I apologize to the group for being so repetitive.  Al is right.  I 
 should just hit the delete key.  (Although, Al, you suggest I think this 
 group is all about me and that I'm trying to set a standard discussion 
 topic--not so.  Google set the topic when they wrote those words which I 
 have too frequently quoted.  Again, sorry for it, everyone.)

 Nevertheless, it will continue to drive me crazy that even knowing the 
 rules, and that there is a forum for other topics, you choose to ignore 
 them and assume that since the Google Engineers don't demand 
 conformance, it's okay by the rest of us.  Do you think nobody will 
 listen to you in the other forum?  That's actually probably true.  That 
 forum seems somewhat useless, but that's how I feel about comments 
 concerning the unfairness of the android market and the shortcomings of 
 Google and T-Mobile.  I suspect that is why they made the other 
 forum--to fill with useless chit-chat (yes--like the very chit-chat I am 
 making) and keep it far from here.

 No more from me on the subject.  I had no idea the rules were so 
 unpopular--I thought they were just unread.

 Justin

 Daniel wrote:
   
   
 
 now you want to move to advanced topics. Get help here with
 
   
 I do want to move to advanced topics, but there's not much I can do
 when the phone is crippled by bugs when mounting the memory card.

 I do see myself as an advanced user of technology with many years of
 development experience - hence I have posted on this forum, hoping to
 find out if like-minded people are having the same difficulty as
 myself getting this phone to move off the starting line.

 Some forum posts have reported that people have to pop out their
 memory card and re-insert it periodically, and various other work-
 arounds.  It brings me to the question: is the phone really stable
 enough for any advanced development work, or should I put my interest
 in Android on hold for another 6 months rather than getting bogged
 down in issues like this?


 
   
 


 
   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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: Testing for HTC magic

2009-03-07 Thread Mariano Kamp
Sure, that's what I meant with still buggy. In my case, NewsRob, I can say
though that I don't use any private API.

I have to add though that I never verified the bug myself, so it might be
totally unrelated to the Magic or not a bug at all.

But for the twidroid problem he also posted a screenshot though:
http://twitter.com/techtravel/statuses/1238274270

Anyway, I'd mark it up as suspicious behavior for the time being. The user
is willing to show the problem to me in person. As he lives 300 kms apart
from me I would need to have something else in the area to go there, but
when I do I'll take my logcat with me and feedback here then.

On Sat, Mar 7, 2009 at 9:27 AM, Mariano Kamp mariano.k...@gmail.com wrote:

 And as it is not releases it might still be buggy.

 I also got an error report regarding the Magic and he also mentioned
 problems with Twitroid.
 http://twitter.com/techtravel/statuses/1237848578
 http://twitter.com/techtravel/statuses/1237863847

 Both complaints are not about Forced Close, but about GUI problems. Very
 strange.



 On Sat, Mar 7, 2009 at 2:12 AM, Justin Allen Jaynes jus...@ragblue.comwrote:


 The emulator doesn't simulate any specific phone.  Just a generic one.
 Your application *should* run the same on an HTC magic as on a TMobile
 G1 because the hardware is very similar.  The whole intention of Android
 is to separate the application layer sufficiently from the hardware so
 that your app will run equally well on any android device.  So, although
 there are possible reasons it might not work well on a Magic, it's far
 more likely misbehaving because of either 1) the users particular phone
 setup (too many other running apps, etc), or 2) it's misbehaving on most
 actual physical phones.  If it's reason 1, you just got bad luck that
 they left a poor review.  If it's reason 2, you should investigate and
 fix it.

 If at all possible, you should get an actual G1 (or Magic when it
 becomes publicly available in your area) and install and test the app.
 And although a DEV phone would be better than the emulator, the DEV
 phone ships with a different configuration than what end users have on
 their phones.  So an actual phone from a phone company would be the
 absolute best way to test.  The Android Platform which gets installed
 onto these phones by cellular phone companies is customized as they
 choose (which is one reason Android is open source).  For this reason,
 the emulator will never be exactly the same as the real world.

 Justin

 Mattaku Betsujin wrote:
  I am getting user feedback for my app closes a lot on HTC magic, one
  star
 
  Are there any HTC magics out there? Will it be able to get an
  SDK/emulator for it?
 
  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] Ifconfig command in Adb shell

2009-03-07 Thread Joe Petruchi
Is the if config command working in Android emulator or target ?

When i type ifconfig inside the shell of the emulator using adb it doesnot
show any network Interface ?

My Android based phone also doesnot shows any output for ifconfig eventhough
it has a GPRS connection over which it sends and receives data for browser
application ?

Does anybody knows why the ifconfig command is not working or is there any
alternate method to know the network interfaces and their IP address ?

Thanks
Joe

--~--~-~--~~~---~--~~
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: Testing for HTC magic

2009-03-07 Thread Al Sutton

One of the problem is the HTC magic has been doing the rounds since 
early Feb when Cupcake was still way off being finished, so it's easily 
possible that the device they're using is running flakey firmware.

The first hits AndAppStore saw from Magics' was on the 5th of Feb, and 
since the 18th of feb there has been a steady stream hits from them, all 
showing Cupcake as the firmware (1.5).

It might be worth putting up a note somewhere saying if you're using a 
Magic it's a pre-release product so bugs may be with the firmware and 
not necessarily with the app.

Al.

Mariano Kamp wrote:
 Sure, that's what I meant with still buggy. In my case, NewsRob, I 
 can say though that I don't use any private API.

 I have to add though that I never verified the bug myself, so it might 
 be totally unrelated to the Magic or not a bug at all.

 But for the twidroid problem he also posted a screenshot though: 
 http://twitter.com/techtravel/statuses/1238274270

 Anyway, I'd mark it up as suspicious behavior for the time being. The 
 user is willing to show the problem to me in person. As he lives 300 
 kms apart from me I would need to have something else in the area to 
 go there, but when I do I'll take my logcat with me and feedback here 
 then.

 On Sat, Mar 7, 2009 at 9:27 AM, Mariano Kamp mariano.k...@gmail.com 
 mailto:mariano.k...@gmail.com wrote:

 And as it is not releases it might still be buggy.

 I also got an error report regarding the Magic and he also
 mentioned problems with Twitroid.
 http://twitter.com/techtravel/statuses/1237848578
 http://twitter.com/techtravel/statuses/1237863847

 Both complaints are not about Forced Close, but about GUI
 problems. Very strange.



 On Sat, Mar 7, 2009 at 2:12 AM, Justin Allen Jaynes
 jus...@ragblue.com mailto:jus...@ragblue.com wrote:


 The emulator doesn't simulate any specific phone.  Just a
 generic one.
 Your application *should* run the same on an HTC magic as on a
 TMobile
 G1 because the hardware is very similar.  The whole intention
 of Android
 is to separate the application layer sufficiently from the
 hardware so
 that your app will run equally well on any android device.
  So, although
 there are possible reasons it might not work well on a Magic,
 it's far
 more likely misbehaving because of either 1) the users
 particular phone
 setup (too many other running apps, etc), or 2) it's
 misbehaving on most
 actual physical phones.  If it's reason 1, you just got bad
 luck that
 they left a poor review.  If it's reason 2, you should
 investigate and
 fix it.

 If at all possible, you should get an actual G1 (or Magic when it
 becomes publicly available in your area) and install and test
 the app.
 And although a DEV phone would be better than the emulator,
 the DEV
 phone ships with a different configuration than what end users
 have on
 their phones.  So an actual phone from a phone company would
 be the
 absolute best way to test.  The Android Platform which gets
 installed
 onto these phones by cellular phone companies is customized as
 they
 choose (which is one reason Android is open source).  For this
 reason,
 the emulator will never be exactly the same as the real world.

 Justin

 Mattaku Betsujin wrote:
  I am getting user feedback for my app closes a lot on HTC
 magic, one
  star
 
  Are there any HTC magics out there? Will it be able to get an
  SDK/emulator for it?
 
  Thanks
 
  






 


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-07 Thread Mariano Kamp
Don't feed the trolls.

On Sat, Mar 7, 2009 at 8:34 AM, Al Sutton a...@funkyandroid.com wrote:


 Justin,

 This group isn't run just for your benefit and so I'm not sure why you
 think you should be the one to decide what is and isn't on-topic.

 In the 2 days you've been part of the group I've seen two people tell
 you your posts are not welcomed, so maybe you should take the hint, sit
 back, and use the delete button instead of the reply button to topics
 you don't want to read.

 As I said before, the Google engineers speak up when we're straying from
 the beaten path, and those requests are respected, but I'm afraid you
 haven't earned the respect we show them and so I would suggest you
 accept that fact that this list isn't run the way you think it should be.

 Al.

 Justin Allen Jaynes wrote:
  Al, and all who share his sentiments,
 
  I am from Idaho and I am new to THIS list.  But it doesn't mean I
  haven't spend a lot of time READING this forum, and in other developer
  forums as well.  I understand how they work and that there are rules,
  which, when followed, significantly improve the quality of the content.
 
  I can understand your resistance to begin complying with the rules.
  Approximately half of your posts are off topic. However, if you were to
  move such conversations to the android-discuss group, your relevant and
  useful dialog there would encourage others to move to that forum as
  well, when they wish to discuss non-development subjects.  It would
  improve both forums, to separate the content by topic, would it not?
 
  You are right.  This discussion does add traffic to the group.  But if
  reminding the users of the group of it's clearly defined usages cuts
  just 20 illegitimate emails out of the list daily, a few posts like this
  are worth it.  I think the majority of this groups subscribers would
 agree.
 
  Justin
 
  Al Sutton wrote:
 
  Justin,
 
  Whilst it's nice to see new people on the list, it's probably best to
  get a feel for how the list works rather than trying to wade in with
  how you think the world should work because all you're doing at the
  moment is getting yourself on peoples auto-trash lists.
 
  The Google engineers chip in when they feel we're straying from the
  path and we all respect their views because they have a genuine
  undeniable interest in seeing this community developer. If you compare
  this to what we know of you, which is that you are a little known
  developer from Idaho whose first post was less than a day ago, you can
  hopefully see why those of us who have been trying to help build this
  community for a while now may not see your opinion as worthy of a
  similar level of respect.
 
  Now, as this has gotten off topic, I'm sure you wouldn't want to reply
  here, would you?
 
  Al.
 
  Justin Allen Jaynes wrote:
 
  Stoyan,
 
  While I thank you for informing me of two OTHER choices, I prefer to
  continue to inform people ABOUT the charter so they will read it.  It
  isn't too much to ask that people use the right forum for the right
  discussion.
 
  This IS a DEVELOPER forum:
 
  You're now an experienced Android application developer. You've
 grasped
  the basics of Android app development, you're comfortable using the
 SDK,
  now you want to move to advanced topics. Get help here with
  troubleshooting applications, advice on implementation, and strategies
  for improving your application's performance and user experience. This
  is the not the right place to discuss user issues (use android-discuss
  for that) or beginner questions with the Android SDK (use
  android-beginners for that).
 
  There IS an appropriate forum for water-cooler talk.  It is not here.
  It is at android-disc...@googlegroups.com
 
  http://developer.android.com/community
 
 
  Stoyan Damov wrote:
 
 
  Justin, calm down, it's your 5th or so message aaargh, this is a
  DEVELPER forum - it's starting to piss me off, at least fix the typo
  :P
 
  If you think that more than 5% of all posters on this list have read
  the group charter you're fooling yourself.
 
  I've said it once - this is the only developer-oriented list (not to
  be confused with development-oriented or
  SDK-questions-only-oriented list, no matter what Google are
  thinking), so there *will* be such questions. If you don't think a
  post appropriate you have 2 choices:
 
  1. If you're a moderator, delete the message
  2. If you're a mere mortal like us, just mute the post (if using
 Gmail)
 
  Cheers
 
 
  On Fri, Mar 6, 2009 at 12:18 AM, Justin Allen Jaynes 
 jus...@ragblue.com wrote:
 
 
 
  Actually, it is off topic and should not be here.  Android-discuss
 would
  be okay, though.
 
  This is a DEVELPER forum.  Please keep to DEVELOPMENT topic.  A quote
  from the official description of the forum:
 
  This is the not the right place to discuss user issues (use
  android-discuss for that).
 
  For a full description of the PROPER use of this form, and of the
  

[android-developers] Re: How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

2009-03-07 Thread Romain Guy

 Do you mean that onDraw(Canvas) will ignore the drawing call in it
 when the affected area is not in the dirty area?

That's correct.

 I can hardly believe it it so wise.
 How about the drawing call which affected area overlaps with the dirty
 area?

It will be drawn.

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] URGENT - video playing problem

2009-03-07 Thread manoj

Hi,

I have written a small video playing application.

I installed it on Android dev phone.

I am trying to play a video file, but got the following error.

E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
W/QCvdec  (   31): vdec: opened
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!
W/QCvdec  (   31): There is no input node available
E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
vdecoder_i.cpp:952 *** ERROR ASSERT(0)
W/(   31): [vdec_core] vdec_queue error: 5
W/(   31): [vdec_core] frame buffer malloc failed, index: 8
W/QCvdec  (   31): Unable to allocate buffers (out of memory)
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!

can any one please help me to solve this problem.

Thanks,
Manoj.
--~--~-~--~~~---~--~~
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: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread AE



On Mar 7, 9:07 am, Mariano Kamp mariano.k...@gmail.com wrote:
 What about AE (or another single person) trying it out in public? Say what
 user he creates and what app he will rate/comment with *. We can watch
 if it gets deleted. I don't consider AE cheating if he does it once, in
 public, and as part of an experiment.

Yes I have done it and to see if it really true and it works.

 On Sat, Mar 7, 2009 at 8:39 AM, Al Sutton a...@funkyandroid.com wrote:

  Have you confirmed yourself on a G1 that after multiple 'phone resets
  and comments/ratings they all stay in the market for more than 48 hours?

No it stays.

  I'd be surprised if there wasn't a filtering mechanism which looked for
  multiple comments/ratings from the same 'phone which ran (possibly as a
  daily batch job).

Also to add for everyone here. If I had an evil vision :D I wouldn't
be telling what I have found it in open public :D Furthermore not even
come up with suggestion to solve the issue. Also the reason for
raising the issue here is -- if all the app developer start doing it
bingo we will have a serious credibility crisis for the android
market! and thus Google must solve this as soon as possible. It really
have the potential to destroy the android eco-system.

Regards
AE

  AE wrote:
   Hi,

   It is my understanding that the popularity index uses several
   parameters to such as rating, comments (not directly but indirectly),
   number of downloads, active install, total install, installs from
   regular users, install from dev phones, age of the app, number of
   phone sales in a region, etc,etc -- there is probably 500 elements
   that are in the works! And rightfully so Google doesn't want folks to
   game the system.

   Now what I like to stress here is the following -- the 3 key element
   that is presented to users prior to download is number of downloads,
   rating, comments. No matter how much we argue at the end of day -- the
   users makes his/her decision somewhat based on the above 3
   parameters. Interestingly all of the above parameters can be
   manipulated by doing the following.

   a. Download the app - rank and comment
   b. Reset your phone - Create new user
   c. Repeat A

   And if you get say 5 college kid doing the above.. bingo you can
   always make sure that visible  3 comments are clean and positive --
   you can also use those comments as a megaphone to tell the users --
   what more can your app do -- beside the 325 char description , you
   keep your rating stable at 4.7/4.6 (so you don't look to greedy) and
   your number of downloads are increasing. Not only that while you are
   at it you might as well go ahead and make lower rating and ugly
   comments to competitors app -- and you make sure you uninstall
   competitors app, where as you don't uninstall your app -- you just hit
   for the hard reset -- because you send the signal -- that the phone
   might be off -- rinse and repeat!!! Yes very true this will not
   increase your popularity but slowly and surely by doing so you can
   only go up cos if all of the ranking elements produce X and the
   above 3 elements say produce Y -- no matter how insignificant these
   3 parameter is -- you are on the positive -- never the less you have a
   propaganda megaphone to the users who download your apps. In every
   damn category all the top 20 - 30 apps stays the same, I have not seen
   them moving out of that space !!

   I am complete disgusted by the above, I worked hard to develop my app,
   I used the SDK so I can take advantage of all the phone features and I
   am honest and what it gets me -- nada! So why should I develop app --
   what incentive does it provide me if I don't have the money power to
   buy my friends 5-10 G1 to game the system!!

   I have couple of ideas to the above problem - and I am sure there are
   many here who has even better idea then i list below --

   1. Rating from the new users i.e. created on the fly users -- should
   be separated from the users who are verified i.e. been using google
   for a while and have a history, so I propose 2 ratings rather then one
   - why - it should be transparent to the end consumer (No propaganda
   megaphone) -- how you use to evaluate popularity -- not my business
   and its googles secret.

   2. Comments should have added star or colors to identify also the
   user has no history with google i.e. Amazon's REAL NAME. Again
   transparent to end consumer

   Yes, I do want to have real users comments and their ratings and
   show the world total downloads -- it just helps me improve my app.
   But we need a fair playing field that's my request. I am sure many of
   you know the above -- at least its a open secret! Now everyone can
   play the game!!

   I look forward to constructive replies/solutions and hear your views.

  --

  * Written an Android App? - List it athttp://andappstore.com/*

  ==
  Funky Android Limited is registered in England  Wales with the
  

[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread Mariano Kamp
 No it stays.

Oh. That isn't so good. Then I guess your idea to ignore new user ratings
(etc.) seems like a sensible approach.

Btw. I think it would also be good to give the more recent ratings a higher
weighting then the old ones  as it was mentioned in another thread.

On Sat, Mar 7, 2009 at 11:00 AM, AE antonio_eggb...@yahoo.se wrote:




 On Mar 7, 9:07 am, Mariano Kamp mariano.k...@gmail.com wrote:
  What about AE (or another single person) trying it out in public? Say
 what
  user he creates and what app he will rate/comment with *. We can
 watch
  if it gets deleted. I don't consider AE cheating if he does it once, in
  public, and as part of an experiment.

 Yes I have done it and to see if it really true and it works.

  On Sat, Mar 7, 2009 at 8:39 AM, Al Sutton a...@funkyandroid.com wrote:
 
   Have you confirmed yourself on a G1 that after multiple 'phone resets
   and comments/ratings they all stay in the market for more than 48
 hours?

 No it stays.

   I'd be surprised if there wasn't a filtering mechanism which looked for
   multiple comments/ratings from the same 'phone which ran (possibly as a
   daily batch job).

 Also to add for everyone here. If I had an evil vision :D I wouldn't
 be telling what I have found it in open public :D Furthermore not even
 come up with suggestion to solve the issue. Also the reason for
 raising the issue here is -- if all the app developer start doing it
 bingo we will have a serious credibility crisis for the android
 market! and thus Google must solve this as soon as possible. It really
 have the potential to destroy the android eco-system.

 Regards
 AE

   AE wrote:
Hi,
 
It is my understanding that the popularity index uses several
parameters to such as rating, comments (not directly but indirectly),
number of downloads, active install, total install, installs from
regular users, install from dev phones, age of the app, number of
phone sales in a region, etc,etc -- there is probably 500 elements
that are in the works! And rightfully so Google doesn't want folks to
game the system.
 
Now what I like to stress here is the following -- the 3 key element
that is presented to users prior to download is number of downloads,
rating, comments. No matter how much we argue at the end of day --
 the
users makes his/her decision somewhat based on the above 3
parameters. Interestingly all of the above parameters can be
manipulated by doing the following.
 
a. Download the app - rank and comment
b. Reset your phone - Create new user
c. Repeat A
 
And if you get say 5 college kid doing the above.. bingo you can
always make sure that visible  3 comments are clean and positive --
you can also use those comments as a megaphone to tell the users --
what more can your app do -- beside the 325 char description , you
keep your rating stable at 4.7/4.6 (so you don't look to greedy) and
your number of downloads are increasing. Not only that while you are
at it you might as well go ahead and make lower rating and ugly
comments to competitors app -- and you make sure you uninstall
competitors app, where as you don't uninstall your app -- you just
 hit
for the hard reset -- because you send the signal -- that the phone
might be off -- rinse and repeat!!! Yes very true this will not
increase your popularity but slowly and surely by doing so you can
only go up cos if all of the ranking elements produce X and the
above 3 elements say produce Y -- no matter how insignificant these
3 parameter is -- you are on the positive -- never the less you have
 a
propaganda megaphone to the users who download your apps. In every
damn category all the top 20 - 30 apps stays the same, I have not
 seen
them moving out of that space !!
 
I am complete disgusted by the above, I worked hard to develop my
 app,
I used the SDK so I can take advantage of all the phone features and
 I
am honest and what it gets me -- nada! So why should I develop app --
what incentive does it provide me if I don't have the money power to
buy my friends 5-10 G1 to game the system!!
 
I have couple of ideas to the above problem - and I am sure there are
many here who has even better idea then i list below --
 
1. Rating from the new users i.e. created on the fly users --
 should
be separated from the users who are verified i.e. been using google
for a while and have a history, so I propose 2 ratings rather then
 one
- why - it should be transparent to the end consumer (No propaganda
megaphone) -- how you use to evaluate popularity -- not my business
and its googles secret.
 
2. Comments should have added star or colors to identify also the
user has no history with google i.e. Amazon's REAL NAME. Again
transparent to end consumer
 
Yes, I do want to have real users comments and their ratings and
show the 

[android-developers] Re: URGENT - video playing problem

2009-03-07 Thread Freepine
It looks Qualcomm omx decoder couldn't be initialized successfully for your
video clip. Perhaps you can try with another video file.

On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com wrote:


 Hi,

 I have written a small video playing application.

 I installed it on Android dev phone.

 I am trying to play a video file, but got the following error.

 E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
 W/QCvdec  (   31): vdec: opened
 W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
 E/QCvdec  (   31): Driver Layer hardware config failed with error code
 7
 W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
 failed!!
 W/QCvdec  (   31): There is no input node available
 E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
 vdecoder_i.cpp:952 *** ERROR ASSERT(0)
 W/(   31): [vdec_core] vdec_queue error: 5
 W/(   31): [vdec_core] frame buffer malloc failed, index: 8
 W/QCvdec  (   31): Unable to allocate buffers (out of memory)
 W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
 E/QCvdec  (   31): Driver Layer hardware config failed with error code
 7
 W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
 failed!!

 can any one please help me to solve this problem.

 Thanks,
 Manoj.
 


--~--~-~--~~~---~--~~
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: URGENT - video playing problem

2009-03-07 Thread manoj


can't I do anything to play it perfectly?

Thanks,
Manoj.

On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote:
 It looks Qualcomm omx decoder couldn't be initialized successfully for your
 video clip. Perhaps you can try with another video file.

 On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com wrote:

  Hi,

  I have written a small video playing application.

  I installed it on Android dev phone.

  I am trying to play a video file, but got the following error.

  E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
  W/QCvdec  (   31): vdec: opened
  W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
  E/QCvdec  (   31): Driver Layer hardware config failed with error code
  7
  W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
  failed!!
  W/QCvdec  (   31): There is no input node available
  E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
  vdecoder_i.cpp:952 *** ERROR ASSERT(0)
  W/        (   31): [vdec_core] vdec_queue error: 5
  W/        (   31): [vdec_core] frame buffer malloc failed, index: 8
  W/QCvdec  (   31): Unable to allocate buffers (out of memory)
  W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
  E/QCvdec  (   31): Driver Layer hardware config failed with error code
  7
  W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
  failed!!

  can any one please help me to solve this problem.

  Thanks,
  Manoj.
--~--~-~--~~~---~--~~
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: URGENT - video playing problem

2009-03-07 Thread Freepine
Probably not:)

On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com wrote:



 can't I do anything to play it perfectly?

 Thanks,
 Manoj.

 On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote:
  It looks Qualcomm omx decoder couldn't be initialized successfully for
 your
  video clip. Perhaps you can try with another video file.
 
  On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com wrote:
 
   Hi,
 
   I have written a small video playing application.
 
   I installed it on Android dev phone.
 
   I am trying to play a video file, but got the following error.
 
   E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
   W/QCvdec  (   31): vdec: opened
   W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
   E/QCvdec  (   31): Driver Layer hardware config failed with error code
   7
   W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
   failed!!
   W/QCvdec  (   31): There is no input node available
   E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
   vdecoder_i.cpp:952 *** ERROR ASSERT(0)
   W/(   31): [vdec_core] vdec_queue error: 5
   W/(   31): [vdec_core] frame buffer malloc failed, index: 8
   W/QCvdec  (   31): Unable to allocate buffers (out of memory)
   W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
   E/QCvdec  (   31): Driver Layer hardware config failed with error code
   7
   W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
   failed!!
 
   can any one please help me to solve this problem.
 
   Thanks,
   Manoj.
 


--~--~-~--~~~---~--~~
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: URGENT - video playing problem

2009-03-07 Thread manoj

thanks for your reply.


On Mar 7, 4:44 pm, Freepine freep...@gmail.com wrote:
 Probably not:)

 On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com wrote:

  can't I do anything to play it perfectly?

  Thanks,
  Manoj.

  On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote:
   It looks Qualcomm omx decoder couldn't be initialized successfully for
  your
   video clip. Perhaps you can try with another video file.

   On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com wrote:

Hi,

I have written a small video playing application.

I installed it on Android dev phone.

I am trying to play a video file, but got the following error.

E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
W/QCvdec  (   31): vdec: opened
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!
W/QCvdec  (   31): There is no input node available
E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
vdecoder_i.cpp:952 *** ERROR ASSERT(0)
W/        (   31): [vdec_core] vdec_queue error: 5
W/        (   31): [vdec_core] frame buffer malloc failed, index: 8
W/QCvdec  (   31): Unable to allocate buffers (out of memory)
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!

can any one please help me to solve this problem.

Thanks,
Manoj.
--~--~-~--~~~---~--~~
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: URGENT - video playing problem

2009-03-07 Thread Freepine
You are welcome, and It might be possible to use a video transcode tool to
convert the original clip to lower profile, resolution or frame rate, but I
guess using another file would be the easiest way :)
On Sat, Mar 7, 2009 at 7:46 PM, manoj manojkumar.m...@gmail.com wrote:


 thanks for your reply.


 On Mar 7, 4:44 pm, Freepine freep...@gmail.com wrote:
  Probably not:)
 
  On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com wrote:
 
   can't I do anything to play it perfectly?
 
   Thanks,
   Manoj.
 
   On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote:
It looks Qualcomm omx decoder couldn't be initialized successfully
 for
   your
video clip. Perhaps you can try with another video file.
 
On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com
 wrote:
 
 Hi,
 
 I have written a small video playing application.
 
 I installed it on Android dev phone.
 
 I am trying to play a video file, but got the following error.
 
 E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
 W/QCvdec  (   31): vdec: opened
 W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
 E/QCvdec  (   31): Driver Layer hardware config failed with error
 code
 7
 W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
 failed!!
 W/QCvdec  (   31): There is no input node available
 E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
 vdecoder_i.cpp:952 *** ERROR ASSERT(0)
 W/(   31): [vdec_core] vdec_queue error: 5
 W/(   31): [vdec_core] frame buffer malloc failed, index: 8
 W/QCvdec  (   31): Unable to allocate buffers (out of memory)
 W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
 E/QCvdec  (   31): Driver Layer hardware config failed with error
 code
 7
 W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
 failed!!
 
 can any one please help me to solve this problem.
 
 Thanks,
 Manoj.
 


--~--~-~--~~~---~--~~
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: URGENT - video playing problem

2009-03-07 Thread manoj

can you please suggest me how to use the transcode tool to convert the
original clip to lower profile?

I will be thankful to you if I got this answer.

Thanks,
Manoj.

On Mar 7, 4:58 pm, Freepine freep...@gmail.com wrote:
 You are welcome, and It might be possible to use a video transcode tool to
 convert the original clip to lower profile, resolution or frame rate, but I
 guess using another file would be the easiest way :)

 On Sat, Mar 7, 2009 at 7:46 PM, manoj manojkumar.m...@gmail.com wrote:

  thanks for your reply.

  On Mar 7, 4:44 pm, Freepine freep...@gmail.com wrote:
   Probably not:)

   On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com wrote:

can't I do anything to play it perfectly?

Thanks,
Manoj.

On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote:
 It looks Qualcomm omx decoder couldn't be initialized successfully
  for
your
 video clip. Perhaps you can try with another video file.

 On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com
  wrote:

  Hi,

  I have written a small video playing application.

  I installed it on Android dev phone.

  I am trying to play a video file, but got the following error.

  E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
  W/QCvdec  (   31): vdec: opened
  W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
  E/QCvdec  (   31): Driver Layer hardware config failed with error
  code
  7
  W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
  failed!!
  W/QCvdec  (   31): There is no input node available
  E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
  vdecoder_i.cpp:952 *** ERROR ASSERT(0)
  W/        (   31): [vdec_core] vdec_queue error: 5
  W/        (   31): [vdec_core] frame buffer malloc failed, index: 8
  W/QCvdec  (   31): Unable to allocate buffers (out of memory)
  W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
  E/QCvdec  (   31): Driver Layer hardware config failed with error
  code
  7
  W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
  failed!!

  can any one please help me to solve this problem.

  Thanks,
  Manoj.
--~--~-~--~~~---~--~~
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: URGENT - video playing problem

2009-03-07 Thread Freepine
I have no specific knowledge about the error code returned ( perhaps a
Qualcomm or HTC guy can give some hints:), so I can't give you concrete
suggestions about what to do exactly...
Anyway, I did a search in google and found below link might be helpful to
you:
http://techlime.com/mobiles-cellphones-handhelds-pda/mp4htchd-new-easy-video-transcoding-tool-for-the-htc-touch-hd

On Sat, Mar 7, 2009 at 8:03 PM, manoj manojkumar.m...@gmail.com wrote:


 can you please suggest me how to use the transcode tool to convert the
 original clip to lower profile?

 I will be thankful to you if I got this answer.

 Thanks,
 Manoj.

 On Mar 7, 4:58 pm, Freepine freep...@gmail.com wrote:
  You are welcome, and It might be possible to use a video transcode tool
 to
  convert the original clip to lower profile, resolution or frame rate, but
 I
  guess using another file would be the easiest way :)
 
  On Sat, Mar 7, 2009 at 7:46 PM, manoj manojkumar.m...@gmail.com wrote:
 
   thanks for your reply.
 
   On Mar 7, 4:44 pm, Freepine freep...@gmail.com wrote:
Probably not:)
 
On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com
 wrote:
 
 can't I do anything to play it perfectly?
 
 Thanks,
 Manoj.
 
 On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote:
  It looks Qualcomm omx decoder couldn't be initialized
 successfully
   for
 your
  video clip. Perhaps you can try with another video file.
 
  On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com
 
   wrote:
 
   Hi,
 
   I have written a small video playing application.
 
   I installed it on Android dev phone.
 
   I am trying to play a video file, but got the following error.
 
   E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
   W/QCvdec  (   31): vdec: opened
   W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
   E/QCvdec  (   31): Driver Layer hardware config failed with
 error
   code
   7
   W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
   failed!!
   W/QCvdec  (   31): There is no input node available
   E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
   vdecoder_i.cpp:952 *** ERROR ASSERT(0)
   W/(   31): [vdec_core] vdec_queue error: 5
   W/(   31): [vdec_core] frame buffer malloc failed,
 index: 8
   W/QCvdec  (   31): Unable to allocate buffers (out of memory)
   W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
   E/QCvdec  (   31): Driver Layer hardware config failed with
 error
   code
   7
   W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
   failed!!
 
   can any one please help me to solve this problem.
 
   Thanks,
   Manoj.
 


--~--~-~--~~~---~--~~
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: Reg: Browser application on android

2009-03-07 Thread Mark Murphy

alok Yadav wrote:
   I have ported android on i.MX31 processor.I am suffering with a 
 browser issue with android porting.

Questions related to Android porting are best asked on a list dedicated
to Android porting:

http://source.android.com/discuss

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
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 android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

2009-03-07 Thread FBear

Thank you very much!

On 3月7日, 下午5时23分, Romain Guy romain...@google.com wrote:
  Do you mean that onDraw(Canvas) will ignore the drawing call in it
  when the affected area is not in the dirty area?

 That's correct.

  I can hardly believe it it so wise.
  How about the drawing call which affected area overlaps with the dirty
  area?

 It will be drawn.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: microSD problems

2009-03-07 Thread Daniel


The microSD problem was one of many problems I have actually had on
this phone.  However, it is the only problem that I chose to write
about on this list, because it is this kind of really basic stuff that
can impact on the productivity of a developer.

To put it in context, after I got around the problem (workaround
below), the time it took to enable root on the phone, unlock it from T-
Mobile, and get it fully working with my IMAP and a test with a
Funambol server was less than the time I wasted on the microSD
issue.

As for the microSD problem itself:
- The phone had no way of doing anything with the 2GB microSD from T-
Mobile.  It either showed up as unavailable or size = 0.  No option to
format it.
- When trying to access it from a PC with the supplied USB cable (even
just reading the partition table), Linux reports all kind of
unrecoverable read errors.

Workaround - I finally gave up trying to make it work as described in
other forums, and I went to a local store and bought a microSD reader
that fits directly in my PC's USB slot.  Using this reader, I could
format the card with mkfs.vfat, and then it was usable on the phone.
When I finally got through to T-Mobile, they could only suggest
swapping the phone, but I can't see how swapping the phone would
change the fact that no microSD reader was in the box in the first
place.  If I had followed T-Mobile's advice, I probably would have
ended up cancelling my order and returning the phone (the T-Mobile
girl even suggested this option).

For those who are hoping to make a living on Android development, I
would hate to think your potential customers are not even going to get
as far as the Market apps before they give up, but hopefully the lack
of Android phones released so far is a sign that they are being held
back until quality issues are under control.




--~--~-~--~~~---~--~~
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: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread Inderjeet Singh
I actually like the discussion related to marketplace and checkout issues
since I find it relevant to developers.
Justin, is this your personal opinion or are you one of the moderators of
the forum?

Inder


On Fri, Mar 6, 2009 at 7:45 PM, Justin Allen Jaynes jus...@ragblue.comwrote:


 While any interest in Android is good, this is a developer forum only.

 Use this forum if:

 You're now an experienced Android application developer. You've grasped
 the basics of Android app development, you're comfortable using the SDK,
 now you want to move to advanced topics. Get help here with
 troubleshooting applications, advice on implementation, and strategies
 for improving your application's performance and user experience.”
 --Google Groups Description

 “This is the not the right place to discuss user issues (use
 android-discuss for that) or beginner questions with the Android SDK
 (use android-beginners for that). --Google Groups Description

 If you were to post topics such as this to the android-discuss group,
 your relevant and useful dialog there would encourage others to
 participate in that forum. Separating the discussions by topic into two
 different forums improves the dialog in both forums, does it not? Please
 consider posting to the proper forum.

 For complete information see:
 http://developer.android.com/community

 AE wrote:
  Hi,
 
  It is my understanding that the popularity index uses several
  parameters to such as rating, comments (not directly but indirectly),
  number of downloads, active install, total install, installs from
  regular users, install from dev phones, age of the app, number of
  phone sales in a region, etc,etc -- there is probably 500 elements
  that are in the works! And rightfully so Google doesn't want folks to
  game the system.
 
  Now what I like to stress here is the following -- the 3 key element
  that is presented to users prior to download is number of downloads,
  rating, comments. No matter how much we argue at the end of day -- the
  users makes his/her decision somewhat based on the above 3
  parameters. Interestingly all of the above parameters can be
  manipulated by doing the following.
 
  a. Download the app - rank and comment
  b. Reset your phone - Create new user
  c. Repeat A
 
  And if you get say 5 college kid doing the above.. bingo you can
  always make sure that visible  3 comments are clean and positive --
  you can also use those comments as a megaphone to tell the users --
  what more can your app do -- beside the 325 char description , you
  keep your rating stable at 4.7/4.6 (so you don't look to greedy) and
  your number of downloads are increasing. Not only that while you are
  at it you might as well go ahead and make lower rating and ugly
  comments to competitors app -- and you make sure you uninstall
  competitors app, where as you don't uninstall your app -- you just hit
  for the hard reset -- because you send the signal -- that the phone
  might be off -- rinse and repeat!!! Yes very true this will not
  increase your popularity but slowly and surely by doing so you can
  only go up cos if all of the ranking elements produce X and the
  above 3 elements say produce Y -- no matter how insignificant these
  3 parameter is -- you are on the positive -- never the less you have a
  propaganda megaphone to the users who download your apps. In every
  damn category all the top 20 - 30 apps stays the same, I have not seen
  them moving out of that space !!
 
  I am complete disgusted by the above, I worked hard to develop my app,
  I used the SDK so I can take advantage of all the phone features and I
  am honest and what it gets me -- nada! So why should I develop app --
  what incentive does it provide me if I don't have the money power to
  buy my friends 5-10 G1 to game the system!!
 
  I have couple of ideas to the above problem - and I am sure there are
  many here who has even better idea then i list below --
 
  1. Rating from the new users i.e. created on the fly users -- should
  be separated from the users who are verified i.e. been using google
  for a while and have a history, so I propose 2 ratings rather then one
  - why - it should be transparent to the end consumer (No propaganda
  megaphone) -- how you use to evaluate popularity -- not my business
  and its googles secret.
 
  2. Comments should have added star or colors to identify also the
  user has no history with google i.e. Amazon's REAL NAME. Again
  transparent to end consumer
 
  Yes, I do want to have real users comments and their ratings and
  show the world total downloads -- it just helps me improve my app.
  But we need a fair playing field that's my request. I am sure many of
  you know the above -- at least its a open secret! Now everyone can
  play the game!!
 
  I look forward to constructive replies/solutions and hear your views.
 
  
 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed 

[android-developers] Re: Where and how to load libgps.so in Android?

2009-03-07 Thread Svartalf

Hi

I think that these articles explain it well:
http://mantrid.wordpress.com/2008/04/28/do-android-dream-of-something-more-than-java/
I haven't done this yet but if your using SDK 1.0  I think you need
to add a line in the AndroidManifest.xml file for importing external
libraries.

Good luck!
Jan

On Mar 7, 4:36 am, www_...@yahoo.com.cn www_...@yahoo.com.cn
wrote:
 Dear all
    Now i need to develope GPS on qualcomm 72XX platform, I have got
 the source code.
    I find libgps.so in qulacomm's baseline, but i do not find where
 and how to load this so file.
    Could anyone can help me?

    thanks a lot!
--~--~-~--~~~---~--~~
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: ProgressDialog in Thread stopps when closing G1

2009-03-07 Thread MrSnowflake

Also using showDialog() and corresponding onCreateDialog and
onPrepareDialog() will have dialogs survive configuration changes!
(and it's a lot easier :)).

On 6 mrt, 13:36, Manfred manfred.fettin...@gmail.com wrote:
 For all who have the same problem, this helps:

 Override this method:
         @Override
         public void onConfigurationChanged(Configuration arg0)
         {
                 super.onConfigurationChanged(arg0);
                 //Toast.makeText(this, onConfigurationChanged,
 Toast.LENGTH_SHORT).show();
         }

 And in Manifest XML insert this line in the activity tag:
 android:configChanges=keyboardHidden|orientation

 Now you have to handle yourself changes on orientation and
 keyboardHidden, and as you can see in the overridden method, i do
 nothing. So the onCreate() Method is not called if the orientation
 changes or if the keyboard is slided out or in and therefore the
 dialog do not dissappear!

 On 6 Mrz., 09:53, Manfred manfred.fettin...@gmail.com wrote:



  Thanks

  On 6 Mrz., 09:30, Stoyan Damov stoyan.da...@gmail.com wrote:

   Search this forum for Dialog Survival Over Configuration Change

   On Fri, Mar 6, 2009 at 10:23 AM, Manfred manfred.fettin...@gmail.com 
   wrote:

Hi!

I have a Progress Dialog in an extra Thread running. Normally the user
will have the keyboard open, because something is to insert! So when
the Progress Dialog appears and the user close the keyboard, the
dialog dissappears and the application crashes. In the debugger i saw
the exception View not attached to window manager. May because the
Dialog is not longer shown but the application want to remove it after
the calculation?

Here is the code where i start the dialog and the thread:
---
 ---
       alert=0;
       myProgressDialog = ProgressDialog.show(this,
                               Please wait..., Calculating.., true);
       new Thread()
       {
           public void run()
           {
                               try
                               {
                                       //Doing some stuff
                               }
                               catch (Exception e)
                               {
                                       alert=2;
                                       alertText = e.getMessage();
                               }

                               myProgressDialog.dismiss();
                               mHandler.post(mCompleteRunnable);
           }
       }.start();
---
 ---

Does somebody know how to solve this?

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: Android Development

2009-03-07 Thread Mark Murphy

saravanan wrote:
 What type of Database support provided by Android?

Android has SQLite (http://sqlite.org) integrated in.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

--~--~-~--~~~---~--~~
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: SharedPreferences bug when writing strings with ampersands in them

2009-03-07 Thread Mark Murphy

cmgreen...@googlemail.com wrote:
 Is this a known issue?

Well, you posted an issue, so it's known now!

;-)

However, if you could attach some sample code to that issue that
demonstrates the bug, that may help get it resolved more quickly.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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



[android-developers] Re: Where and how to load libgps.so in Android?

2009-03-07 Thread Mark Murphy

www_...@yahoo.com.cn wrote:
Now i need to develope GPS on qualcomm 72XX platform, I have got
 the source code.
I find libgps.so in qulacomm's baseline, but i do not find where
 and how to load this so file.
Could anyone can help me?

You will have better luck with Android porting questions on one of the
discussion lists pertaining to Android porting:

http://source.android.com/discuss

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

--~--~-~--~~~---~--~~
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] A question on ListView and Link Clickable property

2009-03-07 Thread Stanley Cai

Hi,

I have a questions on listview. If I set the text view of items to be
link clickable and if the content does include a link, I can not get
OnClickItem event any more in Listview. Did any one meet the same
question? Any suggestion?

Thanks,
-stanley

--~--~-~--~~~---~--~~
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] Customers on metered data plans

2009-03-07 Thread JP

Alright, at the risk this has been discussed before, let me alert
everybody that there are customers on metered data plans out there
(metered as opposed to unlimited). This is the first time I've heard
of it:
http://groups.google.com/group/android-discuss/browse_thread/thread/2c8cd46426a640d6
So heads-up when you use wake locks to keep data connectivity alive.

I develop with such a scenario in mind, but nonetheless will include a
note in my manual(s) to not use my app on a metered plan, just to err
on the safe side.

--~--~-~--~~~---~--~~
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 use proxy server on the g1?

2009-03-07 Thread sparso

Hello,

I've been looking at this in a bit more detail and unfortunately it
looks like the ProxySetting app cannot be updated to allow apps like
market, youtube etc to work over a wifi proxy. I could be mistaken,
but I think the reason is that the browser checks for a configured
proxy in the database and uses that proxy if the phone is on a mobile
network, but the other apps don't do this.

The ProxySetting app updates the relevant information in the database
and then sends a notification to the browser that the phone is using a
mobile network (even though it's actually on wifi). So the browser
thinks it's on a mobile network and updates it's proxy information,
requests are then sent over wifi to the proxy.

The other apps seem to ignore the proxy settings (possibly they're not
using HTTP and the proxy settings are specific to HTTP). Even other
browsers like Steel don't seem to apply proxy settings. I think the
real fix would be for Android to be updated to allow for proxy
settings to be entered for a particular wifi network and for all the
apps to be updated to listen for network changes and update to the
correct proxy. I'm sure this will be done at some point as it's a
fairly major problem in my opinion.

Thanks

On Mar 2, 2:35 pm, alejandro.cale...@gmail.com
alejandro.cale...@gmail.com wrote:
 Hello,

 Great for the browser! I can access to internet now in my office.
 Do you know why it is not possible that the proxysetting work on for
 all services like gmail, market, etc?

 Thanks.

 On 1 mar, 09:36, sparso s...@parso.co.uk wrote:

  Hello,

  I've written an application which may help, it allows you tousethe
  browser from behind aproxyserveron a WIFI network. Search for the
  ProxySetting application on the market (its free).

  At the moment Android only allowsproxyinformation to be used when
  you are connected to a GPRS/3G network, there's a bug raised about it
  here:http://code.google.com/p/android/issues/detail?id=1273. The
  ProxySetting application works around the problem, but unfortunately
  it's still a bit limited (by Android): It does allow for using the web
  browser behind a non-authenticatedproxy, but apps such as Maps and
  Youtube don't currently work and there's no way to add a username/
  password for theproxy.

  I'm sure this will be sorted out properly by the Android team, but
  until then hopefully the ProxySetting app will help.

  Please let me know if it works or if you have any problems (I've only
  just posted it on the Market so haven't had any feedback yet).

  Thanks!

  On Feb 16, 2:43 pm, alejandro.cale...@gmail.com

  alejandro.cale...@gmail.com wrote:
   Someone find any solution out for this? In my case, In the work, there
   is a wifi signal trough theproxy.

   Thanks.

   On Feb 4, 6:55 am, Al Sutton a...@funkyandroid.com wrote:

Sounds like an opportunity for someone to write an app. The source for
theproxysettings page is in;

/packages/apps/Settings/src/com/android/settings/ProxySelector.java

in the git repository, so couldn't someone write an app using that, add
in some buttons to change configuration and some optional Geo-location
to switchproxysettings automatically based one where you are and it'll
probably be a popular app.

Or is it another piece of  functionality limited to the in-crowd who can
get their app signed with the right certificate?

Al.http://andappstore.com/

friedger wrote:
 I am interested as well.
 Friedger

 On Jan 30, 3:18 pm, joff m...@j0ff.com wrote:

 Anyone figured this one out yet?

 On Jan 24, 9:38 pm, DJMoran danmo...@blueyonder.co.uk wrote:

 I also need the exact same help, my school uses aproxyserver to
 access the web.

 Also my home wireless doesn't need aproxyto access the web.

 I know the iPhone and iPod touch canusemultipleproxysettings
 depending on the network it is connected to but what about theG1

 On Jan 10, 1:52 pm, kevkev...@googlemail.com

 kevkev...@googlemail.com wrote:

 Does anyone know how to connect to the internet via aproxyserver on
 ag1handset? I need touseaproxyserver at school to get on the
 internet onwifi.

 Cheers

--
==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.
--~--~-~--~~~---~--~~
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: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread Marco Nelissen

On Sat, Mar 7, 2009 at 2:00 AM, AE antonio_eggb...@yahoo.se wrote:



 On Mar 7, 9:07 am, Mariano Kamp mariano.k...@gmail.com wrote:
 What about AE (or another single person) trying it out in public? Say what
 user he creates and what app he will rate/comment with *. We can watch
 if it gets deleted. I don't consider AE cheating if he does it once, in
 public, and as part of an experiment.

 Yes I have done it and to see if it really true and it works.

Did you file a bug at http://b.android.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: Multi Touch Support

2009-03-07 Thread Christine

I find it remarkable that a company should have a patent on multi
touch. Patents are meant to protect inventions, not trivial features.
Things like multi touch and one click are not inventions, they are
features that anyone will come up with when using e-commerce or touch
screens, respectively. Congess should change the law here and state
that patents are granted for inventions, not for trivial features.

Christine

On Mar 1, 10:20 am, Al Sutton a...@funkyandroid.com wrote:
 That's only a US patent, so anyone other than Apple can use multi-touch,
 it's *only* if they have assets in the US that a problem arises.

 Al.



 Tseng wrote:
  Actually the chance on Multi-Touch support is next to zero. Apple was
  granted the patents for multi-touch, in other words no one other than
  Apple is allowed to use multi-touch feature in handset devices.

  Check out the reasons:
 http://tseng-blog.nge-web.net/blog/2009/01/29/a-sad-day-for-handsets-...

  On Feb 27, 8:02 pm, pesh...@gmail.com pesh...@gmail.com wrote:

  Please,
  HTC G1 is perfectly capable of multi touch support. Please guys
  implement that in the next OTA update if possible. I understand is
  something that Apple Created with their Iphone, but G1 has a lot of
  petential and multi touch i needed for the sucess of this product.
  Google works with Apple and I am sure you can implement that feature
  with the phone.
  Thank you.

 --

 * Written an Android App? - List it athttp://andappstore.com/*

 ==
 Funky Android Limited is registered in England  Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.
--~--~-~--~~~---~--~~
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] Bitmaps (.bmp) don't show up in 'Pictures' when on SDCard

2009-03-07 Thread Gav

Hi,

For the purpose of testing I need to store some small (20x20px)
bitmaps on the SDCard of the emulator.

If I store the files in jpg format then media scanner picks them up
and I can view them with the stock 'Pictures' application.

When I use the '.bmp' file format as created via the JAI based tool I
am testing, the files do not show up on the phone, a look at the file
explorer shows the files to be there next to their jpg equivalents on
the SDCard under the folder pictures.

I mount the SDCard to add the files if it makes any difference.

I need the files to be lossless ARGB_ format, is there something
other than .bmp I can use?

Kind regards,

Gav
--~--~-~--~~~---~--~~
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: ProgressDialog in Thread stopps when closing G1

2009-03-07 Thread Marco Nelissen

You should do all of your UI (and a progress dialog certainly counts
as UI) in the main thread of your application.


On Fri, Mar 6, 2009 at 12:23 AM, Manfred manfred.fettin...@gmail.com wrote:

 Hi!

 I have a Progress Dialog in an extra Thread running. Normally the user
 will have the keyboard open, because something is to insert! So when
 the Progress Dialog appears and the user close the keyboard, the
 dialog dissappears and the application crashes. In the debugger i saw
 the exception View not attached to window manager. May because the
 Dialog is not longer shown but the application want to remove it after
 the calculation?

 Here is the code where i start the dialog and the thread:
 --
        alert=0;
        myProgressDialog = ProgressDialog.show(this,
                                Please wait..., Calculating.., true);
        new Thread()
        {
            public void run()
            {
                                try
                                {
                                        //Doing some stuff
                                }
                                catch (Exception e)
                                {
                                        alert=2;
                                        alertText = e.getMessage();
                                }

                                myProgressDialog.dismiss();
                                mHandler.post(mCompleteRunnable);
            }
        }.start();
 --

 Does somebody know how to solve this?

 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: Bitmap is recycled but I didn't do it?

2009-03-07 Thread Marco Nelissen

On Fri, Mar 6, 2009 at 5:59 AM, William william.caine...@gmail.com wrote:

 I am drawing bitmaps left and right and I hit this issue where I
 create a bitmap in one section of my code and when I later try to draw
 on it using canvas, i get bitmap recycled.  but I did not null if out,
 or call its recycle method.

 Description:

 I have a main Class that extends View that when first loads, initiates
 the main screen which loads/draws on bitmaps and no problem.  I then
 added a key event that causes this screen to go away and load the next
 screen.  The screen logic is encapsulated in a class that I already
 instantiated in the Main Class constructor and in my second screen its
 constructor is this code:

 staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
 Bitmap.Config.RGB_565));
 staticGr = new Canvas( staticBg.getBitmap() );

 at a later time, from my first screen when I push a button, i call my
 init() function that trys load screen two which does a draw to this
 bitmap and I get the following error:

 03-06 08:52:56.301: ERROR/AndroidRuntime(846):
 java.lang.NullPointerException
 03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
 android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
 03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
 android.graphics.Canvas.drawBitmap(Canvas.java:911)

 It is saying my bitmap is recycled BUT from what I understand that
 does not happened unless you explicitly call it or the garbage
 collector does when there are no more references to it BUT i obviously
 still have a reference to it.  What am I doing wrong?


Are you sure it's your bitmaps it's complaining about, and not some
other bitmap?
Are you using the drawing cache in any way?

--~--~-~--~~~---~--~~
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: Bitmap is recycled but I didn't do it?

2009-03-07 Thread Stoyan Damov

BTW, the Android engineer who wrote the throwIfRecycled method should
be lynched. I understand that it saves an if, as in:

if (bitmap.isRecycled()) throw ...

but s/he didn't even implement it defensively enough and the method
crashes if passed a null pointer.

Now, you either make the method super safe so it checks for both a
null pointer and whether the bitmap is recycled, or you let the user's
code crash miserably (preferred).
I will *very* much appreciate a Canvas::drawBitmapFast() or
drawBitmapUnsafe() method which doesn't check anything, because the
current implementation of drawBitmap(Bitmap, Paint) spends as much as
9%! in throwIfRecycled, which IMVHO is unacceptable.

Cheers

On Sat, Mar 7, 2009 at 6:37 PM, Marco Nelissen marc...@android.com wrote:

 On Fri, Mar 6, 2009 at 5:59 AM, William william.caine...@gmail.com wrote:

 I am drawing bitmaps left and right and I hit this issue where I
 create a bitmap in one section of my code and when I later try to draw
 on it using canvas, i get bitmap recycled.  but I did not null if out,
 or call its recycle method.

 Description:

 I have a main Class that extends View that when first loads, initiates
 the main screen which loads/draws on bitmaps and no problem.  I then
 added a key event that causes this screen to go away and load the next
 screen.  The screen logic is encapsulated in a class that I already
 instantiated in the Main Class constructor and in my second screen its
 constructor is this code:

 staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
 Bitmap.Config.RGB_565));
 staticGr = new Canvas( staticBg.getBitmap() );

 at a later time, from my first screen when I push a button, i call my
 init() function that trys load screen two which does a draw to this
 bitmap and I get the following error:

 03-06 08:52:56.301: ERROR/AndroidRuntime(846):
 java.lang.NullPointerException
 03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
 android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
 03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
 android.graphics.Canvas.drawBitmap(Canvas.java:911)

 It is saying my bitmap is recycled BUT from what I understand that
 does not happened unless you explicitly call it or the garbage
 collector does when there are no more references to it BUT i obviously
 still have a reference to it.  What am I doing wrong?


 Are you sure it's your bitmaps it's complaining about, and not some
 other bitmap?
 Are you using the drawing cache in any way?

 


--~--~-~--~~~---~--~~
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] Dialog Theme problem when using dev option Immediatly destroy activities

2009-03-07 Thread michael.bollm...@googlemail.com

I'm a little lost here... i got some wired behaviour when i enable the
above option.
I guess the problem is about recreating the dialog especially the
activity behind the dialog.

I did the following:
1. open an activity with dialog theme (OK)
2. obscuring the dialog activity with a fullscreen child activity so
it gets destroyed (OK)
3. moving back to the dialog activity (ERROR)

The dialog activity creates just fine but there seems to be a problem
in recreating
the activity behind the dialog activity. It doesn't mater if it's the
homescreen or for example
maps or calculator. The symptoms are always the same.

If i turn Show Background on it shows the No-Activity pattern behind
the dialog.

The debugger output suggests that there is some heavy creation/
deletion going on:

03-07 16:51:28.420: VERBOSE/class ...(1563): onResume
03-07 16:51:28.490: INFO/ActivityManager(51): Displayed activity ...:
453 ms
03-07 16:51:28.950: DEBUG/dalvikvm(1495): GC freed 8204 objects /
526176 bytes in 61ms
03-07 16:51:29.511: DEBUG/dalvikvm(1495): GC freed 7465 objects /
483824 bytes in 63ms
03-07 16:51:30.081: DEBUG/dalvikvm(1495): GC freed 8216 objects /
526536 bytes in 71ms
03-07 16:51:30.640: DEBUG/dalvikvm(1495): GC freed 8142 objects /
530960 bytes in 74ms
03-07 16:51:31.200: DEBUG/dalvikvm(1495): GC freed 8144 objects /
531080 bytes in 63ms
03-07 16:51:38.431: DEBUG/dalvikvm(1495): GC freed 7181 objects /
460992 bytes in 62ms
...
...
goes on forever
...
..

Some programs provide a little more output (Here Maps) but obviously
it runs in circles:

03-07 16:55:47.101: VERBOSE/MapActivity(172): Recycling map object.
03-07 16:55:47.120: VERBOSE/StateStack(172): Pushing BlankHelper
03-07 16:55:47.130: INFO/StateStack(172): onRestoreInstanceState
03-07 16:55:47.130: INFO/StateStack(172): Restoring BlankHelper
03-07 16:55:47.170: VERBOSE/MapsActivity(172): Disabling my location
com.google.android.maps.tappablemylocationover...@434efe40
03-07 16:55:47.180: DEBUG/LocationManager(172): removeUpdates:
listener = com.google.android.maps.tappablemylocationover...@434efe40
03-07 16:55:47.191: WARN/NetworkConnectivityListener(172): onReceived
() called with UNKNOWN and Intent
{ action=android.net.conn.CONNECTIVITY_CHANGE (has extras) }
03-07 16:55:47.201: INFO/System.out(172):   Setting locale to
en_US
03-07 16:55:47.201: WARN/MapActivity(172): Recycling dispatcher
com.google.common.datarequestdispatc...@433faf50
03-07 16:55:47.211: VERBOSE/MapActivity(172): Recycling map object.
03-07 16:55:47.301: DEBUG/dalvikvm(172): GC freed 3052 objects /
335264 bytes in 70ms
03-07 16:55:47.301: VERBOSE/StateStack(172): Pushing BlankHelper
03-07 16:55:47.320: INFO/StateStack(172): onRestoreInstanceState
03-07 16:55:47.340: INFO/StateStack(172): Restoring BlankHelper
03-07 16:55:47.390: VERBOSE/MapsActivity(172): Disabling my location
com.google.android.maps.tappablemylocationover...@434ecc20
03-07 16:55:47.390: DEBUG/LocationManager(172): removeUpdates:
listener = com.google.android.maps.tappablemylocationover...@434ecc20
03-07 16:55:47.401: WARN/NetworkConnectivityListener(172): onReceived
() called with UNKNOWN and Intent
{ action=android.net.conn.CONNECTIVITY_CHANGE (has extras) }
03-07 16:55:47.421: INFO/System.out(172):   Setting locale to
en_US
03-07 16:55:47.421: WARN/MapActivity(172): Recycling dispatcher
com.google.common.datarequestdispatc...@433faf50
03-07 16:55:47.421: VERBOSE/MapActivity(172): Recycling map object.
03-07 16:55:47.440: VERBOSE/StateStack(172): Pushing BlankHelper

...
...
goes on forever
...
...

Any ideas?

--~--~-~--~~~---~--~~
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: Bitmap is recycled but I didn't do it?

2009-03-07 Thread Jean-Baptiste Queru

We'll gladly accept high-quality contributions to optimize this.

JBQ

On Sat, Mar 7, 2009 at 8:49 AM, Stoyan Damov stoyan.da...@gmail.com wrote:

 BTW, the Android engineer who wrote the throwIfRecycled method should
 be lynched. I understand that it saves an if, as in:

 if (bitmap.isRecycled()) throw ...

 but s/he didn't even implement it defensively enough and the method
 crashes if passed a null pointer.

 Now, you either make the method super safe so it checks for both a
 null pointer and whether the bitmap is recycled, or you let the user's
 code crash miserably (preferred).
 I will *very* much appreciate a Canvas::drawBitmapFast() or
 drawBitmapUnsafe() method which doesn't check anything, because the
 current implementation of drawBitmap(Bitmap, Paint) spends as much as
 9%! in throwIfRecycled, which IMVHO is unacceptable.

 Cheers

 On Sat, Mar 7, 2009 at 6:37 PM, Marco Nelissen marc...@android.com wrote:

 On Fri, Mar 6, 2009 at 5:59 AM, William william.caine...@gmail.com wrote:

 I am drawing bitmaps left and right and I hit this issue where I
 create a bitmap in one section of my code and when I later try to draw
 on it using canvas, i get bitmap recycled.  but I did not null if out,
 or call its recycle method.

 Description:

 I have a main Class that extends View that when first loads, initiates
 the main screen which loads/draws on bitmaps and no problem.  I then
 added a key event that causes this screen to go away and load the next
 screen.  The screen logic is encapsulated in a class that I already
 instantiated in the Main Class constructor and in my second screen its
 constructor is this code:

 staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
 Bitmap.Config.RGB_565));
 staticGr = new Canvas( staticBg.getBitmap() );

 at a later time, from my first screen when I push a button, i call my
 init() function that trys load screen two which does a draw to this
 bitmap and I get the following error:

 03-06 08:52:56.301: ERROR/AndroidRuntime(846):
 java.lang.NullPointerException
 03-06 08:52:56.301: ERROR/AndroidRuntime(846): at
 android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
 03-06 08:52:56.301: ERROR/AndroidRuntime(846): at
 android.graphics.Canvas.drawBitmap(Canvas.java:911)

 It is saying my bitmap is recycled BUT from what I understand that
 does not happened unless you explicitly call it or the garbage
 collector does when there are no more references to it BUT i obviously
 still have a reference to it.  What am I doing wrong?


 Are you sure it's your bitmaps it's complaining about, and not some
 other bitmap?
 Are you using the drawing cache in any way?

 


 




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~-~--~~~---~--~~
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: Bitmaps (.bmp) don't show up in 'Pictures' when on SDCard

2009-03-07 Thread clark

The .png file format employs lossless data compression.  You may give
that a try.  I even through a .png image onto my SD card and it shows
up within the Pictures application just fine.


~Clark

On Mar 7, 8:13 am, Gav gav.ai...@googlemail.com wrote:
 Hi,

 For the purpose of testing I need to store some small (20x20px)
 bitmaps on the SDCard of the emulator.

 If I store the files in jpg format then media scanner picks them up
 and I can view them with the stock 'Pictures' application.

 When I use the '.bmp' file format as created via the JAI based tool I
 am testing, the files do not show up on the phone, a look at the file
 explorer shows the files to be there next to their jpg equivalents on
 the SDCard under the folder pictures.

 I mount the SDCard to add the files if it makes any difference.

 I need the files to be lossless ARGB_ format, is there something
 other than .bmp I can use?

 Kind regards,

 Gav
--~--~-~--~~~---~--~~
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: Bitmap is recycled but I didn't do it?

2009-03-07 Thread clark

 BTW, the Android engineer who wrote the throwIfRecycled method should
 be lynched. I understand that it saves an if, as in:

Lynched???  Really.  Wow, that would be a little excessive, don't you
think?  I understand your frustration with the implementation of the
throwIfRecylced method, but to say the engineer should be lynched is
just ridiculous.  Perhaps stopping to read your post prior to hitting
send would not be a bad idea.  I think there are more tactful ways
of addressing issues than to attack the google developers.  An OS and
the accompanying Framework are no small project, and I think most of
us realized there would be issues along the way, especially with the
hardware being released with a 1.0 SDK.

Long story short, be careful not to bite off the hand that feeds you.
Okay google isn't feeding you, but they have produced something that
has great potential, and as a community we need to come together and
help out in any which way we can.

And as JBQ said, if you have a better implementation send it on up to
the google guys to review and possibly implement.


~clark

On Mar 7, 8:49 am, Stoyan Damov stoyan.da...@gmail.com wrote:
 BTW, the Android engineer who wrote the throwIfRecycled method should
 be lynched. I understand that it saves an if, as in:

 if (bitmap.isRecycled()) throw ...

 but s/he didn't even implement it defensively enough and the method
 crashes if passed a null pointer.

 Now, you either make the method super safe so it checks for both a
 null pointer and whether the bitmap is recycled, or you let the user's
 code crash miserably (preferred).
 I will *very* much appreciate a Canvas::drawBitmapFast() or
 drawBitmapUnsafe() method which doesn't check anything, because the
 current implementation of drawBitmap(Bitmap, Paint) spends as much as
 9%! in throwIfRecycled, which IMVHO is unacceptable.

 Cheers

 On Sat, Mar 7, 2009 at 6:37 PM, Marco Nelissen marc...@android.com wrote:

  On Fri, Mar 6, 2009 at 5:59 AM, William william.caine...@gmail.com wrote:

  I am drawing bitmaps left and right and I hit this issue where I
  create a bitmap in one section of my code and when I later try to draw
  on it using canvas, i get bitmap recycled.  but I did not null if out,
  or call its recycle method.

  Description:

  I have a main Class that extends View that when first loads, initiates
  the main screen which loads/draws on bitmaps and no problem.  I then
  added a key event that causes this screen to go away and load the next
  screen.  The screen logic is encapsulated in a class that I already
  instantiated in the Main Class constructor and in my second screen its
  constructor is this code:

  staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
  Bitmap.Config.RGB_565));
  staticGr = new Canvas( staticBg.getBitmap() );

  at a later time, from my first screen when I push a button, i call my
  init() function that trys load screen two which does a draw to this
  bitmap and I get the following error:

  03-06 08:52:56.301: ERROR/AndroidRuntime(846):
  java.lang.NullPointerException
  03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
  android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
  03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
  android.graphics.Canvas.drawBitmap(Canvas.java:911)

  It is saying my bitmap is recycled BUT from what I understand that
  does not happened unless you explicitly call it or the garbage
  collector does when there are no more references to it BUT i obviously
  still have a reference to it.  What am I doing wrong?

  Are you sure it's your bitmaps it's complaining about, and not some
  other bitmap?
  Are you using the drawing cache in any way?
--~--~-~--~~~---~--~~
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: Customers on metered data plans

2009-03-07 Thread clark

While that's commendable, the Android OS is meant for use on several
devices and not just the G1.  Although the G1 is the only hardware out
there in mass use currently, we as developers should account for other
hardware devices in the future, and under various data plans.  Perhaps
adding settings which the user could select to allow the data
connectivity lock or not.  Also, if your app needs to check online
from time to time for updating information, this should either be kept
to a minimum or let the user select the frequency.

It may require a little extra work to work around this, but at least
you are not reducing your target audience to one particular device or
devices with X service on them.


~clark

On Mar 7, 8:02 am, Marco Nelissen marc...@android.com wrote:
 On Sat, Mar 7, 2009 at 7:16 AM, JP joachim.pfeif...@gmail.com wrote:

  Alright, at the risk this has been discussed before, let me alert
  everybody that there are customers on metered data plans out there
  (metered as opposed to unlimited). This is the first time I've heard
  of it:
 http://groups.google.com/group/android-discuss/browse_thread/thread/2...
  So heads-up when you use wake locks to keep data connectivity alive.

  I develop with such a scenario in mind, but nonetheless will include a
  note in my manual(s) to not use my app on a metered plan, just to err
  on the safe side.

 While that's commendable, the G1 is meant for use with T-Mobile's 'G1
 plan', which is an unlimited data plan. If users use it with a limited
 plan, they should be *very* careful, as all of the bundled apps simply
 assume an unlimited plan and don't try to limit data use. Unless those
 users know exactly what they're doing (and what the apps they are
 running are doing), they should probably just turn off data
 altogether.
--~--~-~--~~~---~--~~
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: NinePatchDrawable constructor

2009-03-07 Thread Ron

Does this work?  I took a 9patch png that works fine if I use it via
setBackgroundResource(), but instead loaded the png bytes and decoded
them via BitmapFactory to get a Bitmap and used the getNinePatchChunk
() method in an attempt to create a NinePatch object from the bitmap.
Everything runs ok until the constructor for NinePatch(bitmap, chunk,
src) causes the app to crash... no stacktrace, but a ton of internal
debug diagnostics are sent to logcat... none of which makes any sense
to me nor points to the problem.


On Mar 2, 8:14 pm, Romain Guy romain...@google.com wrote:
 The nine patch chunk can be returned by the Bitmap class. Load a
 Bitmap with BitmapFactory, then call getNinePatchChunk() to get the
 chunks. The padding is a bit more complicated. You need to first
 create a Rect and pass that Rect to the approprite
 BitmapFactor.decode*() method. While decoding the 9patch,
 BitmapFactory will fill that Rect with the padding as encoded in the
 9patch.



 On Mon, Mar 2, 2009 at 6:11 PM, Dianne Hackborn hack...@android.com wrote:
  This isn't really intended to be used much by apps.  The byte[] is the raw
  data of the PNG 9-patch extension chunk that we defined for android, which
  aapt generates; you'll have to build that all yourself, and look at the
  ResourceTypes.h header file for a description of its contents.  The padding
  is just the padding around the image, which is returned by the Drawable.

  On Mon, Mar 2, 2009 at 5:37 PM,Rmacry...@mac.com wrote:

  I am trying to create a NinePatchDrawable programmatically, but there
  is no documentation on the constructor's argruments (Bitmap bitmap,
  byte[] chunk, Rect padding, String srcName).  Does anyone know what
  chunk and padding are... and how to specify them?

  Thanks.

  --
  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.  All such questions should be posted on public
  forums, where I and others can see and answer them.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Bitmap is recycled but I didn't do it?

2009-03-07 Thread William

well it happens either way: if I call or.  I used a breakpoint right
at the line and it bombs when the line gets executed so I know its
that bitmap.

private BitmapDrawable staticBg;
private Canvas staticGr;

both throw the error

staticBg.draw(g);
OR
 g.drawBitmap(staticBg.getBitmap(),0, 0, null);

anymore ideas?

Its really annoying. what makes it be recycled.  even if it was
another bitmap, i do not call recycle on any of my bitmaps so that
means the GC has to get to them which makes no sense since I still
have references to the object it should not get them.

On Mar 7, 11:37 am, Marco Nelissen marc...@android.com wrote:
 On Fri, Mar 6, 2009 at 5:59 AM, William william.caine...@gmail.com wrote:

  I am drawing bitmaps left and right and I hit this issue where I
  create a bitmap in one section of my code and when I later try to draw
  on it using canvas, i get bitmap recycled.  but I did not null if out,
  or call its recycle method.

  Description:

  I have a main Class that extends View that when first loads, initiates
  the main screen which loads/draws on bitmaps and no problem.  I then
  added a key event that causes this screen to go away and load the next
  screen.  The screen logic is encapsulated in a class that I already
  instantiated in the Main Class constructor and in my second screen its
  constructor is this code:

  staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
  Bitmap.Config.RGB_565));
  staticGr = new Canvas( staticBg.getBitmap() );

  at a later time, from my first screen when I push a button, i call my
  init() function that trys load screen two which does a draw to this
  bitmap and I get the following error:

  03-06 08:52:56.301: ERROR/AndroidRuntime(846):
  java.lang.NullPointerException
  03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
  android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
  03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
  android.graphics.Canvas.drawBitmap(Canvas.java:911)

  It is saying my bitmap is recycled BUT from what I understand that
  does not happened unless you explicitly call it or the garbage
  collector does when there are no more references to it BUT i obviously
  still have a reference to it.  What am I doing wrong?

 Are you sure it's your bitmaps it's complaining about, and not some
 other bitmap?
 Are you using the drawing cache in any way?
--~--~-~--~~~---~--~~
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: URGENT - video playing problem

2009-03-07 Thread Dave Sparks

The H.264 codec in the G1 is baseline profile Level 1.3. Maximum frame
size is 480x320 (happily the same dimensions as the screen).
Recommended maximum bit rate is 384Kbps. Maximum frame rate is 30 fps.
It does not support B-frames (consistent with baseline profile). If
you stay within these bounds, you should have good performance.

That said, with a good encoder, you can push the bit rate a bit
higher. The important thing is that it not be too bursty, the decoder
can handle a few frames at double the bit rate, but eventually it will
fall behind. I've even had the audio track screw up when I pushed it
too hard.

On Mar 7, 4:08 am, Freepine freep...@gmail.com wrote:
 I have no specific knowledge about the error code returned ( perhaps a
 Qualcomm or HTC guy can give some hints:), so I can't give you concrete
 suggestions about what to do exactly...
 Anyway, I did a search in google and found below link might be helpful to
 you:http://techlime.com/mobiles-cellphones-handhelds-pda/mp4htchd-new-eas...

 On Sat, Mar 7, 2009 at 8:03 PM, manoj manojkumar.m...@gmail.com wrote:

  can you please suggest me how to use the transcode tool to convert the
  original clip to lower profile?

  I will be thankful to you if I got this answer.

  Thanks,
  Manoj.

  On Mar 7, 4:58 pm, Freepine freep...@gmail.com wrote:
   You are welcome, and It might be possible to use a video transcode tool
  to
   convert the original clip to lower profile, resolution or frame rate, but
  I
   guess using another file would be the easiest way :)

   On Sat, Mar 7, 2009 at 7:46 PM, manoj manojkumar.m...@gmail.com wrote:

thanks for your reply.

On Mar 7, 4:44 pm, Freepine freep...@gmail.com wrote:
 Probably not:)

 On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com
  wrote:

  can't I do anything to play it perfectly?

  Thanks,
  Manoj.

  On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote:
   It looks Qualcomm omx decoder couldn't be initialized
  successfully
for
  your
   video clip. Perhaps you can try with another video file.

   On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com

wrote:

Hi,

I have written a small video playing application.

I installed it on Android dev phone.

I am trying to play a video file, but got the following error.

E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
W/QCvdec  (   31): vdec: opened
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with
  error
code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!
W/QCvdec  (   31): There is no input node available
E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
vdecoder_i.cpp:952 *** ERROR ASSERT(0)
W/        (   31): [vdec_core] vdec_queue error: 5
W/        (   31): [vdec_core] frame buffer malloc failed,
  index: 8
W/QCvdec  (   31): Unable to allocate buffers (out of memory)
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with
  error
code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!

can any one please help me to solve this problem.

Thanks,
Manoj.
--~--~-~--~~~---~--~~
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 get the first frame of a video file ?

2009-03-07 Thread Dave Sparks

No, we're just adding support for extracting a static thumbnail.

What is your use case? Where does the video stream come from?

On Mar 5, 2:06 pm, elcadar mogrif...@gmail.com wrote:
 Will you be able to extract arbitrary frames from a video stream (not
 necessarily a file)? Essentially pull a frame every few seconds from
 outbound video stream and show a little image on screen?

 On Feb 11, 11:14 pm, Dave Sparks davidspa...@android.com wrote:

  There is no support for thumbnail extraction in SDK 1.0. It's coming
  in Cupcake as an adjunct to video record.

  On Feb 11, 7:30 am, Freepine freep...@gmail.com wrote:

   Opencore has aframeand metadata utility, and there is also an API as
   android.media.MediaMetadataRetriever.captureFrame()
   in Java layer, but it might not be available in public SDK.

   On Wed, Feb 11, 2009 at 8:49 PM, trust_chen chen 
   trustc...@gmail.comwrote:

how to get the firstframeof a video file ?
Are there such APIs in OPENCORE?
 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: Can't get screen capture

2009-03-07 Thread Dave Sparks

I believe screen capture is disabled in production devices for
security reasons.

On Mar 5, 7:49 pm, volk...@aol.com volk...@aol.com wrote:
  I'm having trouble getting a screenshot. I installed the SDk,
 Eclipse, the drivers, enable usb debugging, like the instructions say.
 I open DDMS and it recognizes my phone without any problems. When I
 try to do a screen capture, it says screen not available. In the
 command box it says timeout and truncated reply from ADB fb data.
 Does anyone know what I'm doing wrong?

 My phone isn't rooted and is running RC33. I'm running windows vista
 on my computer.

 Any help would be greatly appreciated. Thanks.
 Reply With Quote
--~--~-~--~~~---~--~~
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] Does this group need renaming?

2009-03-07 Thread Jon Colverson

Hello.

I notice that there's been a bit of controversy in the last couple of
days about off-topic posting on this list. As the list home page says,
it is intended to be a place to Discuss developing Android
applications using the Android framework. While I find the talk about
the Market and wider issues very interesting, I do think it would be
better placed on the -discuss list, so that this list can be more
focussed on technical issues to do with developing using the SDK.

I wonder if the reason why this list attracts a lot of off-topic stuff
is the name? I suspect many people don't see the description and just
interpret android-developers to be for discussion of issues
affecting developers. Perhaps if it was named android-sdk (to match
the new android-ndk list), that would improve things?

Apologies for the fact that this post itself is off-topic. :-)

--
Jon

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



[android-developers] Re: Can't get screen capture

2009-03-07 Thread Mark Murphy

Dave Sparks wrote:
 I believe screen capture is disabled in production devices for
 security reasons.

No, I can capture screens from my stock G1 through DDMS. I just did
three this morning.

I'd be more inclined to say it's a problem with the Vista drivers,
partly because there have been reported issues with said drivers, and
partly because it's such fun to blame Vista... ;-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

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



[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread strazzere

Your interaction with the market is also logged with your android id
-- which also seems to be linked to a gmail account you use on that
device.

So I'm assuming this could be tracked - and if google wanted to, they
could see. Hmmm 150+ users with the same android id? All commenting
and install the same application?

On Mar 7, 10:43 am, Marco Nelissen marc...@android.com wrote:
 On Sat, Mar 7, 2009 at 2:00 AM, AE antonio_eggb...@yahoo.se wrote:

  On Mar 7, 9:07 am, Mariano Kamp mariano.k...@gmail.com wrote:
  What about AE (or another single person) trying it out in public? Say what
  user he creates and what app he will rate/comment with *. We can watch
  if it gets deleted. I don't consider AE cheating if he does it once, in
  public, and as part of an experiment.

  Yes I have done it and to see if it really true and it works.

 Did you file a bug athttp://b.android.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: Does this group need renaming?

2009-03-07 Thread Sena Gbeckor-Kove

+1

S



On 7 Mar 2009, at 19:35, Jon Colverson wrote:


 Hello.

 I notice that there's been a bit of controversy in the last couple of
 days about off-topic posting on this list. As the list home page says,
 it is intended to be a place to Discuss developing Android
 applications using the Android framework. While I find the talk about
 the Market and wider issues very interesting, I do think it would be
 better placed on the -discuss list, so that this list can be more
 focussed on technical issues to do with developing using the SDK.

 I wonder if the reason why this list attracts a lot of off-topic stuff
 is the name? I suspect many people don't see the description and just
 interpret android-developers to be for discussion of issues
 affecting developers. Perhaps if it was named android-sdk (to match
 the new android-ndk list), that would improve things?

 Apologies for the fact that this post itself is off-topic. :-)

 --
 Jon

 


--~--~-~--~~~---~--~~
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: Bitmap is recycled but I didn't do it?

2009-03-07 Thread Romain Guy

 but s/he didn't even implement it defensively enough and the method
 crashes if passed a null pointer.

It would crash without the test to see if it's recycled. Passing a
null will Bitmap will crash, period. The reason why there's a check
for recycled and not for null is that a crash due to a recycled Bitmap
would be much more difficult to debug/understand without the recycled
exception.


 Now, you either make the method super safe so it checks for both a
 null pointer and whether the bitmap is recycled, or you let the user's
 code crash miserably (preferred).
 I will *very* much appreciate a Canvas::drawBitmapFast() or
 drawBitmapUnsafe() method which doesn't check anything, because the
 current implementation of drawBitmap(Bitmap, Paint) spends as much as
 9%! in throwIfRecycled, which IMVHO is unacceptable.

 Cheers

 On Sat, Mar 7, 2009 at 6:37 PM, Marco Nelissen marc...@android.com wrote:

 On Fri, Mar 6, 2009 at 5:59 AM, William william.caine...@gmail.com wrote:

 I am drawing bitmaps left and right and I hit this issue where I
 create a bitmap in one section of my code and when I later try to draw
 on it using canvas, i get bitmap recycled.  but I did not null if out,
 or call its recycle method.

 Description:

 I have a main Class that extends View that when first loads, initiates
 the main screen which loads/draws on bitmaps and no problem.  I then
 added a key event that causes this screen to go away and load the next
 screen.  The screen logic is encapsulated in a class that I already
 instantiated in the Main Class constructor and in my second screen its
 constructor is this code:

 staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
 Bitmap.Config.RGB_565));
 staticGr = new Canvas( staticBg.getBitmap() );

 at a later time, from my first screen when I push a button, i call my
 init() function that trys load screen two which does a draw to this
 bitmap and I get the following error:

 03-06 08:52:56.301: ERROR/AndroidRuntime(846):
 java.lang.NullPointerException
 03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
 android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
 03-06 08:52:56.301: ERROR/AndroidRuntime(846):     at
 android.graphics.Canvas.drawBitmap(Canvas.java:911)

 It is saying my bitmap is recycled BUT from what I understand that
 does not happened unless you explicitly call it or the garbage
 collector does when there are no more references to it BUT i obviously
 still have a reference to it.  What am I doing wrong?


 Are you sure it's your bitmaps it's complaining about, and not some
 other bitmap?
 Are you using the drawing cache in any way?

 


 




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Re: NinePatchDrawable constructor

2009-03-07 Thread Romain Guy

 Everything runs ok until the constructor for NinePatch(bitmap, chunk,
 src) causes the app to crash... no stacktrace, but a ton of internal
 debug diagnostics are sent to logcat... none of which makes any sense
 to me nor points to the problem.

It necessarily does. And without seeing the logs...



 On Mar 2, 8:14 pm, Romain Guy romain...@google.com wrote:
 The nine patch chunk can be returned by the Bitmap class. Load a
 Bitmap with BitmapFactory, then call getNinePatchChunk() to get the
 chunks. The padding is a bit more complicated. You need to first
 create a Rect and pass that Rect to the approprite
 BitmapFactor.decode*() method. While decoding the 9patch,
 BitmapFactory will fill that Rect with the padding as encoded in the
 9patch.



 On Mon, Mar 2, 2009 at 6:11 PM, Dianne Hackborn hack...@android.com wrote:
  This isn't really intended to be used much by apps.  The byte[] is the raw
  data of the PNG 9-patch extension chunk that we defined for android, which
  aapt generates; you'll have to build that all yourself, and look at the
  ResourceTypes.h header file for a description of its contents.  The padding
  is just the padding around the image, which is returned by the Drawable.

  On Mon, Mar 2, 2009 at 5:37 PM,Rmacry...@mac.com wrote:

  I am trying to create a NinePatchDrawable programmatically, but there
  is no documentation on the constructor's argruments (Bitmap bitmap,
  byte[] chunk, Rect padding, String srcName).  Does anyone know what
  chunk and padding are... and how to specify them?

  Thanks.

  --
  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.  All such questions should be posted on public
  forums, where I and others can see and answer them.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



[android-developers] Looking for Projects in Android

2009-03-07 Thread Android_Learner

Hi All,

We have a very strong team  and expertise in Android and have
developed various applications on Android with incredible GUI , Thanks
to google for such a nice platform .

I am looking for some OEM/ Client  who is interested in developing
android applications.
We would be able to have some kind of business together and shall be
able to meet the  market window with quality and before time delivery
at very reasonable cost.

If any one interested, Please do reply for further discussion.
Looking forward to your reply.




--~--~-~--~~~---~--~~
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: Does this group need renaming?

2009-03-07 Thread Stoyan Damov

I feel I have to reply because I'm one of those OT posters.

I did ask once whether there was a special list for posting questions
and opinions about Market, etc. Apparently there isn't.
I don't think android-discuss suites me (and perhaps more devs) beause
it's too broad - you could discuss whether G1 sucks there for all I
know.
Perhaps there should be android-market or android-after-release list,
which I'll happily join, but in the meantime I feel comfortable to
post such off-topic questions on this one ;)

Cheers

On Sat, Mar 7, 2009 at 8:35 PM, Jon Colverson jjc1...@gmail.com wrote:

 Hello.

 I notice that there's been a bit of controversy in the last couple of
 days about off-topic posting on this list. As the list home page says,
 it is intended to be a place to Discuss developing Android
 applications using the Android framework. While I find the talk about
 the Market and wider issues very interesting, I do think it would be
 better placed on the -discuss list, so that this list can be more
 focussed on technical issues to do with developing using the SDK.

 I wonder if the reason why this list attracts a lot of off-topic stuff
 is the name? I suspect many people don't see the description and just
 interpret android-developers to be for discussion of issues
 affecting developers. Perhaps if it was named android-sdk (to match
 the new android-ndk list), that would improve things?

 Apologies for the fact that this post itself is off-topic. :-)

 --
 Jon

 


--~--~-~--~~~---~--~~
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: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread Stoyan Damov

On Sat, Mar 7, 2009 at 8:58 PM, strazzere str...@gmail.com wrote:

 Your interaction with the market is also logged with your android id
 -- which also seems to be linked to a gmail account you use on that
 device.

 So I'm assuming this could be tracked - and if google wanted to, they
 could see. Hmmm 150+ users with the same android id? All commenting
 and install the same application?


That is, if Google cares. All I've seen is oh, really? file a bug.
As if it's I put a padding of 10 dips but it looks like 9. I don't
think such *very* important matter could be taken so easily. This is
not simply a bug - it could be a showstopper for those who wouldn't
exploit it, and a powerful weapon for those who would.

P.S.
Sorry for cutting the rest of the conversation -- it just got too big.

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



[android-developers] Re: Problem in going in back/previous activity

2009-03-07 Thread Jeffrey Yasskin

I ran into this problem too, and in my case it wasn't so easy to go
find all of the c.close() calls since I hadn't written any. For the
next person who runs into this, it turns out that
SimpleCursorAdapter.changeCursor() will close the previous cursor (as
documented). So instead of calling changeCursor directly, you have to
first retrieve the previous cursor and stopManaging it. It would be
nice if the second step were explicitly in the documentation too.

I considered avoiding having the cursors managed at all, since the
Adapter takes responsibility for closing the cursors, but I suspect
the automatic .deactivate() and .requery() calls are useful for saving
resources when the Activity isn't in the foreground.

On Feb 23, 5:48 pm, Komal komal...@gmail.com wrote:
 Hi,,
 The Problem is solved, I am posting the solution because some body may
 face same problem and need solution.
 In my app i am using startManagingCursor(c) for managing cursor,,so
 the method handles all functions of cursor,,i  doesn’t need to close
 the cursor.
 I have removed all c.close() from my app ,,and now my app is running
 successfully.

 Thanx to all for help.
 Cheers
 Komal

 On Feb 20, 4:52 am, Sundog sunns...@gmail.com wrote:

  You closed your database - probably on the activity exit -  and
  subsequently tried to access it. Been there, done that! ;)

  On Feb 18, 5:09 pm, Komal komal...@gmail.com wrote:

   Hi,
   Thnx for replying.
   when i am pressing back button ,it is throwing exception,,
   in my Logcat,,

   Java.lang.RuntimeException:Unable to resume activity {android.myempapp/
   android.myempapp.MoreData}: java.lang.IllegalStateException : attempt
   to acquire a reference on a closeSQLiteClosable}

   and on phone it is saying

The application Emp Application (process android.myempapp) has
   stopped unexpectedly.Plese try again.

   I cant understand what it mean to say..

   thnx

   On Feb 16, 6:43 pm, Greg Krimer gkri...@gmail.com wrote:

Transitioning to a previous activity via the Back hard-key should be
handled by Android for you (unless you are capturing the Back key
event yourself, which does not sound like what you are doing because
onPause() of your second activity is getting called). The only way I
have screwed this up is when I had errors in my Activity callbacks
that prevented the activity from running, as mentioned by Sundog. Have
you checked the logs (adb logcat or DDMS) for any exceptions thrown
when you transition from your second activity to your first? What
exactly happens when you hit the Back button from your second
activity? What do you see on the screen when you press the Back
button?

On Feb 15, 6:51 pm, Komal komal...@gmail.com wrote:

  Hi,
 Thnx  for  replying.
 Its calling onPause() method of second activity but its not calling
 onResume() of first activity. why it is so??
 This is my code for calling next activity

 protected void onListItemClick(ListView l, View v, int position, long
 id) {
 super.onListItemClick(l, v, position, id);
 Intent i = new Intent(this,WebViewData.class);
 //int clickedposition=(mypos-15) + position;
 int clickedposition=(15 * clicks) + position;

 i.putExtra(position,clickedposition);
 i.putExtra(tablerequired,tableRequired);
 startActivity(i);
 }

 i am not using finish() in my second activity because if i call finish
 () then its just going in that activity  and coming back in previous
 activity, not displaying the details of second activity.

 and another thing is,,

 In my onResume() of first activity i am calling on function which
 displays the employee list using setListAdapter(new IconicAdapter
 (MoreData.this))..where  i am overriding getView() method.

 as i m just displaying the details of  employees in my second
 activity, there’s nothing(any field or variable or anything) which is
 related to previous activity which i can save in onPause() of second
 activity.
 what should i write in my onPause() method of second activity.
 I had a look at Notepadv3 Application of google,,they are saving
 mRowID and inserting or updating data.i am not doing anything like
 this,,i m just displaying information..then what should i write in my
 onPause().

 As i am  new to android, may be i misunderstood some concepts, please
 help me!!!
 Thnx in advance,

 On Feb 14, 2:31 am, Sundog sunns...@gmail.com wrote:

  To expand on that, I had exactly this problem and found that my 
  first
  activity's onResume() was indirectly reinitializing something it
  shouldn't have, and kaboom.

  On Feb 9, 9:05 pm, Komal komal...@gmail.com wrote:

   Hi,
   I am developing simple application.
   I have one activity which displays list of 

[android-developers] Launching a dialog from preferences?

2009-03-07 Thread jsdf

Hi,
Is there a way to launch a dialog (say, the dialog I show to users the
first time they launch the app) from a preferences entry?

I don't see any examples doing this in the API Demos, nor have I seen
it out in the wild.

I do see a class called DialogPreference, but this doesn't seem to be
what I want.

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] IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

2009-03-07 Thread Jeffrey Yasskin

Activity.performStop() contains the following loop (around line 3394
in the 1.0 SDK release and at
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=4dc4b6a48b85f9caad4234b8e29fafdc9260840c;hb=HEAD#l3504):

final int N = mManagedCursors.size();
for (int i=0; iN; i++) {
ManagedCursor mc = mManagedCursors.get(i);
if (!mc.mReleased) {
mc.mCursor.deactivate();
mc.mReleased = true;
}
}

In my app, mc.mCursor.deactivate() calls (indirectly)
SimpleCursorAdapter.notifyDataSetInvalidated(), which calls
(indirectly) AdapterView.fireOnSelected(), which calls my
OnItemSelectedListener, which calls stopManagingCursor(), which
reduces the size of mManagedCursors, which makes the ArrayList.get()
call throw on the next iteration.

I'm calling stopManagingCursor to avoid the crash described at http://
groups.google.com/group/android-developers/browse_thread/thread/
f6fabc180e8b517a/c04691d80f1e9135?lnk=gst#c04691d80f1e9135 (and a
few other posts you can find by searching this group for
SQLiteClosable).

I suspect this is a bug in Activity.performStop, which shouldn't
assume mManagedCursors is constant through a call to a user-provided
callback. Until the Android developers can fix the bug, I'm looking
for a workaround. Should I just abandon managed cursors, which don't
seem to work well with CursorAdapters? Is there a good way to prevent
my OnItemSelectedListener from being called during performStop()? Any
other ideas?

Thanks,
Jeffrey
--~--~-~--~~~---~--~~
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: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread Dave Sparks

Filing a bug is the way to get things fixed. Most Google Android
engineers do not read this list. They do respond to bug reports
though.

On Mar 7, 3:01 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
 On Sat, Mar 7, 2009 at 8:58 PM, strazzere str...@gmail.com wrote:

  Your interaction with the market is also logged with your android id
  -- which also seems to be linked to a gmail account you use on that
  device.

  So I'm assuming this could be tracked - and if google wanted to, they
  could see. Hmmm 150+ users with the same android id? All commenting
  and install the same application?

 That is, if Google cares. All I've seen is oh, really? file a bug.
 As if it's I put a padding of 10 dips but it looks like 9. I don't
 think such *very* important matter could be taken so easily. This is
 not simply a bug - it could be a showstopper for those who wouldn't
 exploit it, and a powerful weapon for those who would.

 P.S.
 Sorry for cutting the rest of the conversation -- it just got too big.
--~--~-~--~~~---~--~~
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: Bitmap is recycled but I didn't do it?

2009-03-07 Thread Marco Nelissen

On Sat, Mar 7, 2009 at 2:51 PM, Stoyan Damov stoyan.da...@gmail.com wrote:
 And as JBQ said, if you have a better implementation send it on up to
 the google guys to review and possibly implement.

 Well, it's not that I'm suggesting they implement drawBitmap in some
 fundamentally different and optimized way, is it? It's just replacing
 2 method calls with 1 if and a method call.

That sounds like it shouldn't take much time to implement and test at
all, so we'll be expecting your patch by Monday :)

--~--~-~--~~~---~--~~
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: manipulating markets popularity! - why should i develop app for android

2009-03-07 Thread Marco Nelissen

On Sat, Mar 7, 2009 at 3:01 PM, Stoyan Damov stoyan.da...@gmail.com wrote:

 On Sat, Mar 7, 2009 at 8:58 PM, strazzere str...@gmail.com wrote:

 Your interaction with the market is also logged with your android id
 -- which also seems to be linked to a gmail account you use on that
 device.

 So I'm assuming this could be tracked - and if google wanted to, they
 could see. Hmmm 150+ users with the same android id? All commenting
 and install the same application?


 That is, if Google cares. All I've seen is oh, really? file a bug.

And rightly so, because we can't keep track of issues brought up in a
mailing list.
If you see a bug, you're certainly welcome to bring it up in the
mailing list, so that others may learn from your experience, but
posting about it in this mailing list is no substitute for filing a
bug. We can't assign a posting to an engineer.

--~--~-~--~~~---~--~~
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] Why do I sometimes get a null return, from ContentResolver query?

2009-03-07 Thread sandy8531

My external sdcard is connected, mounted and functional. I have over
1000 songs on the sdcard, however occasionally this query returns a
null Cursor to me.

Can someone shed some light as to why this happens ? Can I get this is
the underlying table is locked by another thread ? Should I take a
null return from the query to mean a temporary error ?

String[] cols = {
Media._ID,
Media.TITLE,
};

Cursor c = context.getContentResolver().query
( Media.EXTERNAL_CONTENT_URI,
cols,
Media.IS_MUSIC +  = 1,
null,
null);

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



[android-developers] Re: IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

2009-03-07 Thread Marco Nelissen

One possible workaround that comes to mind is to remove your listener
in your activity's onPause or onStop, so that it won't fire anymore
when the activity is shutting down. Though having to add extra code to
make managed cursors work for you kind of defeats the purpose, I
suppose.
Can you please file a bug at http://b.android.com ?



On Sat, Mar 7, 2009 at 4:50 PM, Jeffrey Yasskin jyass...@gmail.com wrote:

 Activity.performStop() contains the following loop (around line 3394
 in the 1.0 SDK release and at
 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=4dc4b6a48b85f9caad4234b8e29fafdc9260840c;hb=HEAD#l3504):

            final int N = mManagedCursors.size();
            for (int i=0; iN; i++) {
                ManagedCursor mc = mManagedCursors.get(i);
                if (!mc.mReleased) {
                    mc.mCursor.deactivate();
                    mc.mReleased = true;
                }
            }

 In my app, mc.mCursor.deactivate() calls (indirectly)
 SimpleCursorAdapter.notifyDataSetInvalidated(), which calls
 (indirectly) AdapterView.fireOnSelected(), which calls my
 OnItemSelectedListener, which calls stopManagingCursor(), which
 reduces the size of mManagedCursors, which makes the ArrayList.get()
 call throw on the next iteration.

 I'm calling stopManagingCursor to avoid the crash described at http://
 groups.google.com/group/android-developers/browse_thread/thread/
 f6fabc180e8b517a/c04691d80f1e9135?lnk=gst#c04691d80f1e9135 (and a
 few other posts you can find by searching this group for
 SQLiteClosable).

 I suspect this is a bug in Activity.performStop, which shouldn't
 assume mManagedCursors is constant through a call to a user-provided
 callback. Until the Android developers can fix the bug, I'm looking
 for a workaround. Should I just abandon managed cursors, which don't
 seem to work well with CursorAdapters? Is there a good way to prevent
 my OnItemSelectedListener from being called during performStop()? Any
 other ideas?

 Thanks,
 Jeffrey
 


--~--~-~--~~~---~--~~
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] Help to understand LunarLander: Canvas.save Canvas.restore

2009-03-07 Thread FBear

I dont's know what 'matrix' and 'clip' was saved and then restored
before and after rotating the Lander.
I just commented out the Canvas.save and Canvas.restore, rebuild and
re-install the LunarLander, it seemed to work as before.
Would anybody help me to understand why using Canvas.save and
Canvas.restore here:

// Draw the ship with its current rotation
// canvas.save();
canvas.rotate((float) mHeading, (float) mX, mCanvasHeight
- (float) mY);
if (mMode == STATE_LOSE) {
mCrashedImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mCrashedImage.draw(canvas);
} else if (mEngineFiring) {
mFiringImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mFiringImage.draw(canvas);
} else {
mLanderImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mLanderImage.draw(canvas);
}
// canvas.restore();

Thanks in advance.

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



[android-developers] Re: IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

2009-03-07 Thread Jeffrey Yasskin

That's a reasonable idea, thanks. Right now, I'm calling changeCursor
(null) for each of my adapters in onDestroy(), but if I run into
trouble with leaking cursors before I can set them into an adapter
I'll try removing the listeners.

Filed at http://code.google.com/p/android/issues/detail?id=2174.

On Mar 7, 6:04 pm, Marco Nelissen marc...@android.com wrote:
 One possible workaround that comes to mind is to remove your listener
 in your activity's onPause or onStop, so that it won't fire anymore
 when the activity is shutting down. Though having to add extra code to
 make managed cursors work for you kind of defeats the purpose, I
 suppose.
 Can you please file a bug athttp://b.android.com?

 On Sat, Mar 7, 2009 at 4:50 PM, Jeffrey Yasskin jyass...@gmail.com wrote:

  Activity.performStop() contains the following loop (around line 3394
  in the 1.0 SDK release and at
 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...

 final int N = mManagedCursors.size();
 for (int i=0; iN; i++) {
 ManagedCursor mc = mManagedCursors.get(i);
 if (!mc.mReleased) {
 mc.mCursor.deactivate();
 mc.mReleased = true;
 }
 }

  In my app, mc.mCursor.deactivate() calls (indirectly)
  SimpleCursorAdapter.notifyDataSetInvalidated(), which calls
  (indirectly) AdapterView.fireOnSelected(), which calls my
  OnItemSelectedListener, which calls stopManagingCursor(), which
  reduces the size of mManagedCursors, which makes the ArrayList.get()
  call throw on the next iteration.

  I'm calling stopManagingCursor to avoid the crash described at http://
  groups.google.com/group/android-developers/browse_thread/thread/
  f6fabc180e8b517a/c04691d80f1e9135?lnk=gst#c04691d80f1e9135 (and a
  few other posts you can find by searching this group for
  SQLiteClosable).

  I suspect this is a bug in Activity.performStop, which shouldn't
  assume mManagedCursors is constant through a call to a user-provided
  callback. Until the Android developers can fix the bug, I'm looking
  for a workaround. Should I just abandon managed cursors, which don't
  seem to work well with CursorAdapters? Is there a good way to prevent
  my OnItemSelectedListener from being called during performStop()? Any
  other ideas?

  Thanks,
  Jeffrey
--~--~-~--~~~---~--~~
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: Initial database population from large data files, several problems

2009-03-07 Thread Justin Allen Jaynes

Alistair,

I'm having a little trouble actually implementing the code from that 
forum.  It's an IOException I'm getting, and I've tracked it down to the 
exact line in my code.

What I've done so far:

1. created the database file named wordlist.db and placed it in the 
assets folder of my Eclipse Package Explorer Tree.  (I'm certain this 
database file is good--at least on my desktop machine--who knows what's 
happening when it goes to the phone)
2. adapted the code to my purose.
3. after getting an IOException, I commented out all the lines of code 
in the method copyDataBase, and then added them back in one at a time 
until the exception was thrown again.
4. I simplified the code just to be sure and removed the while loop, 
replacing it with: myInput.read(buffer); but I still throw an error when 
this line is not commented out.

Is there a way to see a more specific error than just IOException, and 
if not, what might be a possible cause for being unable to read a byte 
block from the file?

My code:

public void onCreate(SQLiteDatabase db) {
try {
copyDataBase();
} catch (IOException e) {
throw new Error(Error copying database  + e);
}  
}

private void copyDataBase() throws IOException{
 
//Open your local db as the input stream
InputStream myInput = myContext.getAssets().open(wordlist.db);
 
// Path to the just created empty db
String outFileName = DATABASE_PATH + wordlist.db;
 
//Open the empty db as the output stream
//OutputStream myOutput = new FileOutputStream(outFileName);
 
//transfer bytes from the inputfile to the outputfile
byte[] buffer = new byte[1024];
int length;
while ((length = myInput.read(buffer))  0) {
//myOutput.write(buffer, 0, length);
}
 
//Close the streams
//myOutput.flush();
//myOutput.close();
myInput.close();
 
}


Alistair. wrote:
 Justin,

 You might find this article of interest. This is a technique to pre-
 populate the database and bundle into the assets directory of your
 application.

 http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

 Al.

 On Mar 5, 7:49 am, Justin Allen Jaynes jus...@ragblue.com wrote:
   
 I'm building a dictionary application with 135,000 word entries (words
 only).  My raw file must have been too large (1.5 meg), because I got
 this error:

 D/asset (909): Data exceeds UNCOMPRESS_DATA_MAX (1424000 vs 1048576)

 I've searched for this error with very few relevant hits.  It seemed to
 mean I could not open an uncompressed file over a meg.  So I then split
 the file into two smaller files and ran my code on both of them.  It
 worked out fine.  My total application size is 3 meg installed.

 My code is:
 public void onCreate(SQLiteDatabase database) {
 database.execSQL(CREATE TABLE  + DATABASE_TABLE +  (wordid
 INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, word VARCHAR););

 Scanner fileScanner = new
 Scanner(myContext.getResources().openRawResource(R.raw.wordlist));
 while ( fileScanner.hasNextLine() ) {
 String wordFromFile = fileScanner.nextLine();
  database.execSQL(INSERT INTO words (word) VALUES (' +
 wordFromFile + '););
 }
 fileScanner = new
 Scanner(myContext.getResources().openRawResource(R.raw.wordlist2));
 while ( fileScanner.hasNextLine() ) {
 String wordFromFile = fileScanner.nextLine();
  database.execSQL(INSERT INTO words (word) VALUES (' +
 wordFromFile + '););
  }

 }

 However, when the application is first run, it takes several MINUTES to
 initialize the database in this way.  Is there a way (like a copy
 command, as found in, say, postgresql, or a restore of a database file)
 to copy data from a raw file, and can such a method be accessed from the
 SDK so that standard first-run procedures can correctly set up the
 database?  I have been unable to locate such a luxury.  I am seeking to
 speed up this data populating process.

 First question: how can I speed up my database population?

 Second question: is there a way to read a raw resource file larger than
 1 megabyte (aside from making it into two smaller files)?  If not, why?

 Justin
 
 
   


--~--~-~--~~~---~--~~
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: Does this group need renaming?

2009-03-07 Thread lotusscript

I agree with your point about OT submits.  I would be happy if there 
were an android-business group.  This way anything business / market / 
promotions / tax etc could be submitted there.  Would be happy to 
subscribe to this.

Jon Colverson wrote:
 Hello.

 I notice that there's been a bit of controversy in the last couple of
 days about off-topic posting on this list. As the list home page says,
 it is intended to be a place to Discuss developing Android
 applications using the Android framework. While I find the talk about
 the Market and wider issues very interesting, I do think it would be
 better placed on the -discuss list, so that this list can be more
 focussed on technical issues to do with developing using the SDK.

 I wonder if the reason why this list attracts a lot of off-topic stuff
 is the name? I suspect many people don't see the description and just
 interpret android-developers to be for discussion of issues
 affecting developers. Perhaps if it was named android-sdk (to match
 the new android-ndk list), that would improve things?

 Apologies for the fact that this post itself is off-topic. :-)

 --
 Jon

 

   

--~--~-~--~~~---~--~~
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] Frame by Frame Animation

2009-03-07 Thread Alowishus

Hey Gang,

Has anyone noticed a threshold adding images to frame by frame
animation? I have 30 images, but when I add more than 24 is causes the
app to crash. Any ideas?
--~--~-~--~~~---~--~~
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: Recording Audio

2009-03-07 Thread benmccann

jdl, I'd be happy to post my code, but I still don't have a working
example.  I upgraded to the 1.1 SDK today in hopes that it fixed a bug
and things would work for me, but it seems the media APIs are still
hopelessly broken.  All I ever get is the meaningless message start
failed.  It looks like perhaps the cause is a buffer overflow in the
native code:

03-07 21:19:42.059: DEBUG/AudioHardware(25): AudioStreamInGeneric::set
(0xac50, 7, 1, 1, 8000)
03-07 21:19:42.069: DEBUG/AudioHardware(25): AudioStreamInGeneric::read
(0x40308020, 320) from fd 7
03-07 21:19:42.078: DEBUG/AudioHardware(25): AudioStreamInGeneric::read
(0x40308160, 320) from fd 7
03-07 21:19:42.078: DEBUG/AudioHardware(25): AudioStreamInGeneric::read
(0x403082a0, 320) from fd 7
03-07 21:19:42.078: DEBUG/AudioHardware(25): AudioStreamInGeneric::read
(0x403083e0, 320) from fd 7
03-07 21:19:42.088: WARN/AudioFlinger(25): AudioRecordThread: buffer
overflow
03-07 21:19:42.098: DEBUG/AndroidRuntime(185): Shutting down VM
03-07 21:19:42.098: WARN/dalvikvm(185): threadid=3: thread exiting
with uncaught exception (group=0x4000fe68)
03-07 21:19:42.098: ERROR/AndroidRuntime(185): Uncaught handler:
thread main exiting due to uncaught exception
03-07 21:19:42.128: DEBUG/AudioHardware(25): AudioStreamInGeneric::read
(0x40308020, 320) from fd 7
03-07 21:19:42.128: DEBUG/AudioHardware(25): AudioStreamInGeneric::read
(0x40308160, 320) from fd 7
03-07 21:19:42.128: ERROR/AndroidRuntime(185):
java.lang.RuntimeException: start failed.
03-07 21:19:42.128: ERROR/AndroidRuntime(185): at
android.media.MediaRecorder.start(Native Method)
03-07 21:19:42.128: ERROR/AndroidRuntime(185): at
com.benmccann.android.hello.AudioRecorder.start(AudioRecorder.java:59)
03-07 21:19:42.128: ERROR/AndroidRuntime(185): at
com.benmccann.android.hello.HelloAndroid$1.onClick(HelloAndroid.java:
31)




On Mar 6, 1:38 pm, benmccann benjamin.j.mcc...@gmail.com wrote:
 Bugs already 
 exist:http://code.google.com/p/android/issues/detail?id=450q=media%20docum...http://code.google.com/p/android/issues/detail?id=1256q=media%20docu...

 On Mar 5, 9:23 pm, Dave Sparks davidspa...@android.com wrote:

  Log a bug athttp://b.android.com.

  On Mar 5, 2:17 pm, jdl j...@edufone.com wrote:

   Diane or Dave,

   How do we go about requesting that someone from the Android project
   update the Audio/Video 
   tutorial,http://developer.android.com/guide/topics/media/index.html,
   so that it works with the current version of the API?

   Thanks,
   AN

   On Feb 28, 2:45 pm, Dianne Hackborn hack...@android.com wrote:

You use Context to get at your private data files:

   http://developer.android.com/guide/topics/data/data-storage.html

   http://developer.android.com/reference/android/content/Context.html#g...)

On Thu, Feb 26, 2009 at 2:40 PM, benmccann 
benjamin.j.mcc...@gmail.comwrote:

  each application has its own private data directory /
  data/app-private/app-package. I believe your working directory is 
  set
  to this directory by default

 Cool.  So it sounds like I should just be able to use a relative path
 from the current location then.  Unfortunately, I'm getting the
 following exception (with no clues as to why start is failing):

 02-26 14:34:55.132: ERROR/AndroidRuntime(164):
 java.lang.RuntimeException: start failed.
 02-26 14:34:55.132: ERROR/AndroidRuntime(164):     at
 android.media.MediaRecorder.start(Native Method)

 Here's my code:

    final MediaRecorder recorder = new MediaRecorder();
    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
    recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
    recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
    recorder.setOutputFile(test.3gpp);
    recorder.prepare();
    recorder.start();

 On Feb 26, 12:14 am, Dave Sparks davidspa...@android.com wrote:
  You can get the path to external storage (e.g. SD card) with
  Environment.getExternalStorageDirectory(). This is world read/
  writable.

  Alternatively, each application has its own private data directory /
  data/app-private/app-package. I believe your working directory is 
  set
  to this directory by default. This is onboard flash, so it will
  survive the user ejecting an SD card. However, there is a limited
  amount to go around, so you don't want to store monster media files
  there.

  On Feb 25, 9:22 pm, benmccann benjamin.j.mcc...@gmail.com wrote:

setOutputFile() expects a path to where you want the file 
stored.

   Yep, figured that much by the method name, but what's a valid 
   path?  I
   mean I'm figuring it's UNIX-like, but other than that I'm in the
   dark.  Is there a preferred place for apps to store data?  Are 
   there
   certain directories that I have permission to write to?  What
   directories exist on the device by default?  It'd be 

[android-developers] Re: Vertical SeekBar?

2009-03-07 Thread nderraugh

Hi,

I'm trying to get a vertical seekbar going with the emulator, but I'm
sort of stuck.  I can get the seekbar to display the way I want it to,
and I can get the progress to do what I want, and I can modify the
onTouchEvent to get the thumb to go vertically instead of
horizontally.  What I can't do is get the thumb to move outside of the
default 29 horizontal pixels without using setThumbOffset().  This in
itself isn't a problem.  The problem is coming from the fact that I
don't understand the thumbOffset at all -- I guess.I suspect I'm just
not familar enough with developing UIs.  I think I could resize the
widget, which I am pretty sure I'm not doing right.  Or maybe I could
just use the thumbOffset if I could figure it out.  Since I can
calculate the progress correctly I thought I would just use a linear
function of progress * (getTop() - getBottom()) of the widget but that
doesn't seem to do it.  But I can't figure out what the offset is
centered around.

As a somewhat aside, I am really unsure if what I am doing in
onSizeChanged() is sane or if it's going to bite me in the ass later
one.

Here's the main.xml layout and the class (ignore the debugging junk):

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent 

com.mobilsemantic.mobipoll.SlideBar
android:id=@+id/slide
android:layout_width=wrap_content
android:layout_height=fill_parent
android:max=100
android:progress=0
android:secondaryProgress=25 /

Button android:id=@+id/button
android:layout_width=fill_parent
android:layout_height=fill_parent
android:text=Hello, I am a Button /

TextView android:id=@+id/tracking
android:layout_width=fill_parent
android:layout_height=wrap_content /

/LinearLayout


import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.SeekBar;

public class SlideBar extends SeekBar {

private int oHeight = 320, oWidth = 29;
private int oProgress = -1, oOffset = -1;;
private float xPos = -1, yPos = -1;
private int top = -1, bottom = -1, left = -1, right = -1;

public SlideBar(Context context) {
super(context);
}
public SlideBar(Context context, AttributeSet attrs)
{
super(context, attrs);
oOffset = this.getThumbOffset();
oProgress = this.getProgress();
}
public SlideBar(Context context, AttributeSet attrs, int defStyle)
{
super(context, attrs, defStyle);
}

protected synchronized void onMeasure(int widthMeasureSpec, int
heightMeasureSpec)
{
int height = View.MeasureSpec.getSize(heightMeasureSpec);
oHeight = height;
this.setMeasuredDimension(oWidth, oHeight);

}
protected void onSizeChanged(int w, int h, int oldw, int oldh)
{
super.onSizeChanged(h, w, oldw, oldh);
}
protected void onLayout(boolean changed, int l, int t, int r, int b)
{
super.onLayout(changed, l, t, r, b);
left = l;
right = r;
top = t;
bottom = b;
}
protected void onDraw(Canvas c)
{
c.rotate(90);
c.translate(0,-29);
super.onDraw(c);
}
public boolean onTouchEvent(MotionEvent event)
{
xPos = event.getX();
yPos = event.getY();
float progress = 
(yPos-this.getTop())/(this.getBottom()-this.getTop
());
oOffset = this.getThumbOffset();
oProgress = this.getProgress();
Log.d(offset + System.nanoTime(), new 
Integer(oOffset).toString
());
Log.d(progress + System.nanoTime(), new 
Integer(oProgress).toString
());

float offset;

offset = progress * (this.getBottom()-this.getTop());

this.setThumbOffset((int)offset);

Log.d(offset_postsetprogress + System.nanoTime(), new Integer
(oOffset).toString());
Log.d(progress_postsetprogress + System.nanoTime(), new 
Integer
(oProgress).toString());

this.setProgress((int)(100*event.getY()/this.getBottom()));
return true;
}
}

If anybody could give me a hand or give me a few pointers towards
getting this vertical seekbar going better, I'd be eternally grateful.

Neil

On Feb 11, 6:38 pm, Dianne Hackborn hack...@android.com wrote:
 Probably copying the seek bar code and modifying it to work how you want.

 On Wed, Feb 11, 

[android-developers] How to change the selected color (default green) of a toggle button

2009-03-07 Thread chickenlives

How do you change the color of a selected toggle button.  I'm
referring to the green line indicator which lights up when the button
is in the checked state.
--~--~-~--~~~---~--~~
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 make android work fine with QVGA?

2009-03-07 Thread larry Ming
My phone's resolution is QVGA so the buttons of dialer are overlapped.

Please help me how to resize the button of dialer or how to make android
work fine with QVGA?

Thanks in advance!

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



[android-developers] Re: How to make android work fine with QVGA?

2009-03-07 Thread Andrew Stadler

Larry-

You'll probably do better asking this question on android-platform or
android-porting.  The SDK only supports shipping devices with their
screen resolutions.



On Sat, Mar 7, 2009 at 10:47 PM, larry Ming mingla...@gmail.com wrote:
 My phone's resolution is QVGA so the buttons of dialer are overlapped.

 Please help me how to resize the button of dialer or how to make android
 work fine with QVGA?

 Thanks in advance!

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



[android-developers] Go to Settings page from code?

2009-03-07 Thread iDeveloper

Hi

I want to open the Settings- Sound  Display- Phone Ringtones screen  
from my application. How can I do that?

Thanks for any help.




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



[android-developers] Re: How to make android work fine with QVGA?

2009-03-07 Thread Al Sutton

QVGA isn't supported. See 
http://groups.google.com/group/android-developers/msg/73ded3ba1fe7139e

Al.

larry Ming wrote:
 My phone's resolution is QVGA so the buttons of dialer are overlapped.
  
 Please help me how to resize the button of dialer or how to make 
 android work fine with QVGA?
  
 Thanks in advance!

 


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