Re: [android-developers] Is Chrome in android simulator supported?

2012-08-12 Thread Justin Anderson

 The simulator is pretty dead.  If something works in it, you are just
 lucky. :}  I very much doubt chrome will work in it.

Just to clarify, are we talking about the emulator?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Aug 11, 2012 at 10:16 PM, Dianne Hackborn hack...@android.comwrote:

 The simulator is pretty dead.  If something works in it, you are just
 lucky. :}  I very much doubt chrome will work in it.


 On Wed, Aug 8, 2012 at 1:38 PM, Aaron Labiaga alabi...@google.com wrote:

 Is chrome in the android simulator supported? I've looked in other forums
 and no one seemed to have been successful in doing 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




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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


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


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

Re: [android-developers] Is Chrome in android simulator supported?

2012-08-12 Thread Dianne Hackborn
I am talking about the simulator, not the emulator. :)

On Sat, Aug 11, 2012 at 11:34 PM, Justin Anderson magouyaw...@gmail.comwrote:

 The simulator is pretty dead.  If something works in it, you are just
 lucky. :}  I very much doubt chrome will work in it.

 Just to clarify, are we talking about the emulator?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Sat, Aug 11, 2012 at 10:16 PM, Dianne Hackborn hack...@android.comwrote:

 The simulator is pretty dead.  If something works in it, you are just
 lucky. :}  I very much doubt chrome will work in it.


 On Wed, Aug 8, 2012 at 1:38 PM, Aaron Labiaga alabi...@google.comwrote:

 Is chrome in the android simulator supported? I've looked in other
 forums and no one seemed to have been successful in doing 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




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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


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


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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

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

Re: [android-developers] Canvas or OpenGL

2012-08-12 Thread Simon Giddings
Thank you to every one for their responses.

It would seem, however, that my question was not clear enough (you are 
right James).

I am going to write a music notation app.
So, will simply be writing the music score on the display - no animation 
needed.
My question was about visual scaling - reproducing a sheet of music paper 
and then permitting the user to zoom in and out.
Hence the reference to world coordinate and screen coordinate conversions.

Please note - this will *not* be using pdf documents !

Can I still achieve this with Canvas ?
Is there an example of the correct way of producing this kind of scaling 
when using Canvas ?
I will be targeting tablet systems with this.


On Sunday, 12 August 2012 06:15:06 UTC+2, Dianne Hackborn wrote:

 On Sat, Aug 11, 2012 at 2:50 PM, James Black planit...@gmail.comjavascript:
  wrote:

 Do you need a fast refresh rate for example?  One music program I wrote 
 had to turn notes on and off at the correct millisecond, under windows; 
 that accuracy won't work on mobile devices.

 You can do 60fps drawing with either OpenGL or Canvas.  That is the best 
 you are going to get for accuracy since that is the screen refresh rate.

 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com javascript:

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



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

Re: [android-developers] Canvas or OpenGL

2012-08-12 Thread RichardC
Canvas does zooming, scaling, rotation, translation etc. via stackable 
transformations see:
http://developer.android.com/reference/android/graphics/Canvas.html 
and look for functions like:

save

restore

scale

translate

setMatrix

etc...

 

 

 

 

 

 


On Sunday, August 12, 2012 9:44:47 AM UTC+1, Simon Giddings wrote:

 Thank you to every one for their responses.

 It would seem, however, that my question was not clear enough (you are 
 right James).

 I am going to write a music notation app.
 So, will simply be writing the music score on the display - no animation 
 needed.
 My question was about visual scaling - reproducing a sheet of music 
 paper and then permitting the user to zoom in and out.
 Hence the reference to world coordinate and screen coordinate conversions.

 Please note - this will *not* be using pdf documents !

 Can I still achieve this with Canvas ?
 Is there an example of the correct way of producing this kind of scaling 
 when using Canvas ?
 I will be targeting tablet systems with this.


 On Sunday, 12 August 2012 06:15:06 UTC+2, Dianne Hackborn wrote:

 On Sat, Aug 11, 2012 at 2:50 PM, James Black planit...@gmail.com wrote:

 Do you need a fast refresh rate for example?  One music program I wrote 
 had to turn notes on and off at the correct millisecond, under windows; 
 that accuracy won't work on mobile devices.

 You can do 60fps drawing with either OpenGL or Canvas.  That is the best 
 you are going to get for accuracy since that is the screen refresh rate.

 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com

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



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

[android-developers] Re: Get SMS

2012-08-12 Thread Ehsan Sadeghi
I use eclipse to debug but an error raise : 
Application SMS s waiting for the debugger to attach

در شنبه 11 اوت 2012، ساعت 21:17:17 (UTC+4:30)، Ehsan Sadeghi نوشته:

 I create an activity
   activity
 android:name=.GetResponse
  
android:label=@string/title_activity_main  
 android:launchMode=singleTask
 intent-filter
 action android:name=ir.smspeik.sms.getresponse /

 category android:name=android.intent.category.DEFAULT /
 /intent-filter
 /activity 
that starts when a sms received. i write this code to 
 display sms but nothing is shown : 
 public class GetResponse extends Activity{
 IntentFilter intentFilter;
 private BroadcastReceiver intentReceiver = new BroadcastReceiver() {
 @Override
 public void onReceive(Context context, Intent intent) {
 //---display the SMS received in the TextView---
 //TextView SMSes = (TextView) findViewById(R.id.textView1); 
 Toast.makeText(context, intent.getExtras().getString(sms) + 
 Ehsan,
 Toast.LENGTH_SHORT).show();
 String[] sms = intent.getExtras().getString(sms).split(-);
 EditText smsNo = (EditText) findViewById(R.id.txtSmsNo);
 smsNo.setText(sms[0]);
 Toast.makeText(context,sms[0],
 Toast.LENGTH_SHORT).show();
 TextView smsBody = (TextView) findViewById(R.id.lblSmsBody);
 smsBody.setText(sms[1]);
 Toast.makeText(context,sms[1],Toast.LENGTH_SHORT).show();
 }
 };
 
  @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.getresponse);
   intentFilter = new IntentFilter();
 intentFilter.addAction(SMS_RECEIVED_ACTION);

 //---register the receiver---
 registerReceiver(intentReceiver, intentFilter);
 }
 }



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

Re: [android-developers] Re: Get SMS

2012-08-12 Thread Justin Anderson
That isn't an error... that means you need to wait for your debugger to
connect...

When asking for help on here you might find this useful:

http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html
 On Aug 12, 2012 4:23 AM, Ehsan Sadeghi esade...@gmail.com wrote:

 I use eclipse to debug but an error raise :
 Application SMS s waiting for the debugger to attach

 در شنبه 11 اوت 2012، ساعت 21:17:17 (UTC+4:30)، Ehsan Sadeghi نوشته:

 I create an activity
   activity
 android:name=.GetResponse

android:label=@string/title_**activity_main
 android:launchMode=**singleTask
 intent-filter
 action android:name=ir.smspeik.sms.**getresponse /

 category android:name=android.intent.**category.DEFAULT
 /
 /intent-filter
 /activity
that starts when a sms received. i write this code to
 display sms but nothing is shown :
 public class GetResponse extends Activity{
 IntentFilter intentFilter;
 private BroadcastReceiver intentReceiver = new BroadcastReceiver() {
 @Override
 public void onReceive(Context context, Intent intent) {
 //---display the SMS received in the TextView---
 //TextView SMSes = (TextView) findViewById(R.id.textView1);
 Toast.makeText(context, intent.getExtras().getString(**sms)
 + Ehsan,
 Toast.LENGTH_SHORT).show();
 String[] sms = intent.getExtras().getString(**
 sms).split(-);
 EditText smsNo = (EditText) findViewById(R.id.txtSmsNo);
 smsNo.setText(sms[0]);
 Toast.makeText(context,sms[0],
 Toast.LENGTH_SHORT).show();
 TextView smsBody = (TextView) findViewById(R.id.lblSmsBody);
 smsBody.setText(sms[1]);
 Toast.makeText(context,sms[1],**Toast.LENGTH_SHORT).show();
 }
 };

  @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.**getresponse);
   intentFilter = new IntentFilter();
 intentFilter.addAction(SMS_**RECEIVED_ACTION);

 //---register the receiver---
 registerReceiver(**intentReceiver, intentFilter);
 }
 }

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

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

Re: [android-developers] Canvas or OpenGL

2012-08-12 Thread Simon Giddings
Thank you Richard,

I tried to find examples, without success.
Do you know of any ?

On Sunday, 12 August 2012 10:49:10 UTC+2, RichardC wrote:

 Canvas does zooming, scaling, rotation, translation etc. via stackable 
 transformations see:
 http://developer.android.com/reference/android/graphics/Canvas.html 
 and look for functions like:

 save

 restore

 scale

 translate

 setMatrix

 etc...

  

  

  

  

  

  


 On Sunday, August 12, 2012 9:44:47 AM UTC+1, Simon Giddings wrote:

 Thank you to every one for their responses.

 It would seem, however, that my question was not clear enough (you are 
 right James).

 I am going to write a music notation app.
 So, will simply be writing the music score on the display - no 
 animation needed.
 My question was about visual scaling - reproducing a sheet of music 
 paper and then permitting the user to zoom in and out.
 Hence the reference to world coordinate and screen coordinate conversions.

 Please note - this will *not* be using pdf documents !

 Can I still achieve this with Canvas ?
 Is there an example of the correct way of producing this kind of scaling 
 when using Canvas ?
 I will be targeting tablet systems with this.


 On Sunday, 12 August 2012 06:15:06 UTC+2, Dianne Hackborn wrote:

 On Sat, Aug 11, 2012 at 2:50 PM, James Black planit...@gmail.comwrote:

 Do you need a fast refresh rate for example?  One music program I wrote 
 had to turn notes on and off at the correct millisecond, under windows; 
 that accuracy won't work on mobile devices.

 You can do 60fps drawing with either OpenGL or Canvas.  That is the best 
 you are going to get for accuracy since that is the screen refresh rate.

 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com

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



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

Re: [android-developers] Canvas or OpenGL

2012-08-12 Thread RichardC
There are some in ApiDemo samples.  The Canvas functions work very much 
like OpenGL ES 1.0 in that you set up your transformations and then 
Paint/Draw on the Canvas.



On Sunday, August 12, 2012 12:59:12 PM UTC+1, Simon Giddings wrote:

 Thank you Richard,

 I tried to find examples, without success.
 Do you know of any ?

 On Sunday, 12 August 2012 10:49:10 UTC+2, RichardC wrote:

 Canvas does zooming, scaling, rotation, translation etc. via stackable 
 transformations see:
 http://developer.android.com/reference/android/graphics/Canvas.html 
 and look for functions like:

 save

 restore

 scale

 translate

 setMatrix

 etc...

  

  

  

  

  

  


 On Sunday, August 12, 2012 9:44:47 AM UTC+1, Simon Giddings wrote:

 Thank you to every one for their responses.

 It would seem, however, that my question was not clear enough (you are 
 right James).

 I am going to write a music notation app.
 So, will simply be writing the music score on the display - no 
 animation needed.
 My question was about visual scaling - reproducing a sheet of music 
 paper and then permitting the user to zoom in and out.
 Hence the reference to world coordinate and screen coordinate 
 conversions.

 Please note - this will *not* be using pdf documents !

 Can I still achieve this with Canvas ?
 Is there an example of the correct way of producing this kind of scaling 
 when using Canvas ?
 I will be targeting tablet systems with this.


 On Sunday, 12 August 2012 06:15:06 UTC+2, Dianne Hackborn wrote:

 On Sat, Aug 11, 2012 at 2:50 PM, James Black planit...@gmail.comwrote:

 Do you need a fast refresh rate for example?  One music program I 
 wrote had to turn notes on and off at the correct millisecond, under 
 windows; that accuracy won't work on mobile devices.

 You can do 60fps drawing with either OpenGL or Canvas.  That is the 
 best you are going to get for accuracy since that is the screen refresh 
 rate.

 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com

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



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

[android-developers] Re: [XML] Setting a View background based on theme attribute crash the app.

2012-08-12 Thread Sébastien Brochet
Ok, it was a mistake. I have two themes.xml files, one for Honeycomb+, and 
one for Gingerbread-. I've only edited the file targeting Gingerbread-, and 
was testing on ICS... Sorry for the noise!

Le samedi 11 août 2012 12:50:26 UTC+2, Sébastien Brochet a écrit :

 Dear Android experts,

 I'm trying to set a ListView background color based on the current theme 
 attribute, but it crash every time the ListView is shown.It seems I'm doing 
 something wrong but I can't see what...

 Here's what I'm doing:

 First, create the background color:

 resources
 color name=userlist_background_light#fff0f0f0/color
 color name=userlist_background_dark#ff040404/color
 /resources


 Second, create attributes for my custom themes:

 resources
 attr name=userlist_background format=reference|color /
 /resources


 Third, setting this attribute in my themes:

 resources xmlns:android=http://schemas.android.com/apk/res/android;
 style name=Light parent=Theme.Sherlock.Light
 item 
 name=userlist_background@color/userlist_background_light/item
 /style

 style name=Dark parent=Theme.Sherlock
 item 
 name=userlist_background@color/userlist_background_dark/item
 /style
 /resources


 And finally, using this attribute in the ListView xml:

 ListView
 android:id=@+id/user_bar
 android:layout_width=0dip
 android:layout_height=0dip
 android:background=?attr/userlist_background
 android:cacheColorHint=?userlist_background
 android:visibility=gone /


 Even the Eclipse layout view crash. Of course, it works fine if I use a 
 @color/ directly in the background attribute. It even work if I use say, 
 ?android:attr/colorBackground. The message error is:

 android.view.InflateException: Binary XML file line #8: Error inflating 
 class android.view.ListView
 Caused by: android.content.res.Resources$NotFoundException: Resource is 
 not a Drawable (color or path): TypedValue{t=0x2/d=0x7f010068 a=-1}

 I'm pretty sure I'm doing something wrong, as it works with android 
 attributes, but I haven't be able to find what during my Google searches.

 I hope you'll be able to help me!

 Many thanks,

 Sébastien.


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

Re: [android-developers] Re: How to dynamically change row layout of list view on click event

2012-08-12 Thread Jovish P
we are using  a custom adapter only. in the adapter in getview method we
are setting a tag for the first time. isSelected as false
and on click we change the tag value  as true and invalidating the listview
with invalidateviews. so we are making ui changes in the row layout based
on this tag value.  But the problem we are facing now isif i click on first
item the change happens on some other row layout. some problem while
reusing the layout we guess. any one have any idea regarding this.

On Sat, Aug 11, 2012 at 6:09 PM, log4droid adilour...@gmail.com wrote:

 There is no way that you do it with the adapters that already exist. You
 have to create your own. The adapter's getView method is responsible for
 creating and displaying every single row. Let's suppose that you need only
 two row layout to switch with. In that case the model used with the adapter
 could have an attribute to tell if it is using row type 1 or 2. In the
 onclick you change the model of the clicked item, you choose its row type
 and you notify that the data have changed with notifyDataSetChanged().

 Tell us if it works for you.


 On Thursday, August 9, 2012 7:46:22 AM UTC, Jovish P wrote:

 We are using list view in our app with one simple row layout.
 But on click of list view we want to change the row layout of
 tht particular item . is it possible to do ? wht is the best approach ?
 Ho to add listeners to view inside the row layout?

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


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

[android-developers] ScrollView and Gridview Problem, Result; Not scrolling

2012-08-12 Thread Mustafa Musa ÜLKER
Hello,

I have a ScrollView problem. I want my whole screen scrolled but as I had 
long-textviews and elements it doesnt scroll. How can I create a scrollview 
that scrolls whole screen?

Here is my layout:

http://pastebin.com/MRtxP5wC

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] Some tips on graphics for a coder coming from ActionScript

2012-08-12 Thread antonio brandao
Hello, I come to ask only for a few tips or merely a bit of guidance on my 
development for Android.

I'm pretty skilled in ActionScript but completely new to Java. 

In this thread I ask how would I do some things in Java, providing the 
equivalent in AS.

I intend to draw shapes on screen and use them as UI - as a deeper layer 
within the Android XML UI.

In ActionScript, I can create Sprites or DisplayObjects, edit their 
graphics property like 

// create a DisplayObject instance
*_someDisplayObject* = new DisplayObject();

// create a white square inside it
*_someDisplayObject*.graphics.beginFill(0xFF);
*_someDisplayObject*.graphics.drawRect(0,0,100,100);
*_someDisplayObject*.graphics.endFill(); 

// place it dinamically in a position relative to the Stage (canvas)
*_someDisplayObject*.x. = *Stage*.stageWidth / 2;

--

Also, are there Tweening libraries like TweenLite or Tweener ? Those which 
allows to create animation with one like of code like:

// move display object to position X = 300 with half transparency, in half 
second
Tweener.addTween(*_someDisplayObject*, { x:300, alpha:0.5, time:0.5, 
transitionEaseOutSine } );

--

Can anyone give a clue, on what am I looking at, to try the same in Java 
for Android ?

Just an advice letting me know where to start would be greatly appreciated. 

Thank you ! 

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

Re: [android-developers] Re: Android 4.1 Jelly Bean GIF Images Not Showing?

2012-08-12 Thread Daniel Dacila
I use now
BitmapFactory.decodeResource()
and then
imageView.setImageBitmap()

Should I consider changing to Bitmap.createScaledBitmap() or just moving 
the images to drawable-nodpi should be enough?

Thanks.

On Wednesday, July 11, 2012 7:50:14 PM UTC+2, Romain Guy (Google) wrote:

 The fix is unfortunately not in 4.1.1. An easy workaround is to put your 
 GIF in drawable-nodpi/ instead and to perform the scaling use 
 Bitmap.createScaledBitmap() (this API does not cause the bug to happen.) 
 Alternatively you should think about using PNG instead. GIFs scaled at 
 runtime are converted to ARGB_ bitmaps so you lose the benefit of low 
 memory usage anyway.


 On Wed, Jul 11, 2012 at 10:27 AM, Josh F. joshf...@gmail.comjavascript:
  wrote:

 Thanks Romain, I really appreciate you fixing this without even a bug 
 report being filed.  We were using the same GIF for multiple densities as 
 the auto-scaling worked quite well for us, so that must have been the 
 problem.  Can you clarify if this was fixed in the 4.1.1 that is now being 
 released or if we should expect it in a future update?  We have some plans 
 for other games and features to existing that may benefit from GIF again so 
 it would help to know when/if we should consider using them again.  Thanks 
 again!

 On Wednesday, July 11, 2012 10:10:44 AM UTC-7, Romain Guy (Google) wrote:

 I found and fixed the bug by the way. It occurs only when the bitmap 
 loaded from the GIF has the wrong density and gets auto-scaled by the 
 framework.


 On Tue, Jul 10, 2012 at 6:19 PM, Bradley Hekman wrote:

 Josh, I encountered the same problem in my app while running on 
 hardware. I'm just going to switch over to png..

 On Saturday, July 7, 2012 2:39:27 AM UTC-4, Zsolt Vasvari wrote:

 If this happens on hardware but not on the emulator, my guess is that 
 this is not really a PNG/GIF issue.  I couldn't get Google I/O tickets 
 either, so I cannot help.

 On Friday, July 6, 2012 11:50:43 PM UTC+8, Josh F. wrote:

 I will create the bug report as soon as I can get a development 
 device with this actual build on it as it does not happen in the 
 emulator. 
  As it stands right now you had to be at Google I/O to get one and 
 tickets 
 sold so fast I was not able to get one.  To test this issue and the fix 
 I 
 have had to rely on my users who were there and have a Galaxy 7, which 
 is 
 not going to work to create a sample project example of the issue 
 required 
 to post an official bug report.  Hopefully in a few weeks I'll get my 
 Galaxy 7 and do just that.

 If someone in the community has a device that they would be willing 
 to test with me on, I can send sample files/etc. to create the bug 
 report 
 sooner.

 On Friday, July 6, 2012 8:27:14 AM UTC-7, Mark Murphy (a Commons Guy) 
 wrote:

  This is a bug in 
  Android 4.1 Jelly Bean as released on current devices and I hope 
 that they 
  fix it before full retail devices ship or this thread will get 
 very busy. 

 Please feel free to file a bug report on http://b.android.com, with 
 a 
 sample project demonstrating the issue. 

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

 _The Busy Coder's Guide to Android Development_ Version 3.7 
 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-d...@**googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




 -- 
 Romain Guy
 Android framework 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com javascript:

  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 SMS Limit

2012-08-12 Thread DNels
Hi,
Still have this problem on Jelly Bean - but I think the settings location 
has moved.  This fix does not currently work.  Any ideas on how to fix it 
in 2012?

Thx

On Tuesday, November 3, 2009 4:31:26 AM UTC-6, Christopher wrote:

 Hi there, 

 You'll only be able to override this limit if you can build your own 
 version of the Android platform with updated settings built-in, or can 
 get root access to the devices you're using in the field. 

 Either way, you can alter the SMS rate-limiting as follows: 
 # sqlite3 /data/data/com.android.providers.settings/databases/ 
 settings.db 

 To increase the number of SMS messages allowed per period: 
 sqlite INSERT INTO gservices (name, value) VALUES 
 ('sms_outgoing_check_max_count', 101); 

 Or, more simply, to remove the period check altogether: 
 sqlite INSERT INTO gservices (name, value) VALUES 
 ('sms_outgoing_check_interval_ms', 0); 

 However, I'd be more inclined to find a way to not send so many SMS 
 messages (assuming you can't simple use a data connection).  Surely 
 you can batch multiple answers into a handful of SMS messages?  If 
 it's a simple multiple choice questionnaire, then you could even fit 
 the entire session into a single SMS. 

 Anyway, hopefully that helps. 

 Regards, 
 Chris 


 On Nov 2, 9:07 pm, shmeed duncan.osb...@gmail.com wrote: 
  Hi there, 
  
  We are developing an election monitoring application that relies on 
  the SMS network to submit reports from independent election observers 
  in the field. The application poses questions to the user, who answers 
  them sequentially, and an SMS is sent each time a question is 
  answered. We currently have around 120 questions (and therefore 120 
  SMS messages) that need to be sent in a fairly short period of time. 
  However, the limit in the Android source is 100 SMS messages per hour 
  (360 milliseconds). 
  
  How can this limit be overridden, either on a per-application basis or 
  in the Android source? 
  
  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] Possible to do it on Android platform

2012-08-12 Thread Budd
Hi, I am totally new on Android development. I am just reading a book about it.

I have a project and i am not sure if i can do all of them on Android platform.

1) Automatic run the application and full screen after power on (restart)
2) Full screen plays swf, video, picture (If it can, any delay to play it? I 
read i need to use web browser component to play swf. Hows the performance? Is 
it working on android 4.1 also?)
3) Detect the application if it crash, so it can restart the application.

I don't mind if i need to root the device. But i would like to know if it is 
possible to do it.

Thank you very much

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: On ICS, Stopped service can't receive an intent.

2012-08-12 Thread David Woods
Use this flag:

intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); 


On Tuesday, January 24, 2012 12:30:06 AM UTC-5, Ravi Pandey wrote:

 I have tried to design a Service in such a way that once it's receiver 
 can receive the BOOT_COMPLETED intent , the service gets started. 
 Basically the startService() function gets called when the Service's 
 BroadCastReceiver receives the BOOT_COMPLETED intent inside it's 
 onReceive() function. 

 Now using Gingerbread environment, when I try to send the 
 android.intent.action.BOOT_COMPLETED intent (lets say from terminal 
 using the 'am' command). My Service (which is currently in NOT running 
 state) is able to receive this intent in it's onReceive() and 
 processes the further executions. 

 But when I am using the ICS environment, when I try to send the 
 android.intent.action.BOOT_COMPLETED intent as mentioned above, my 
 Service (which is currently in NOT running state) is NOT able to 
 receive this intent in it's onReceive(). 
 For this case, when I try somehow to start my Service by calling it's 
 onCreate() explicitly by using some other Application and then if I 
 again send the BOOT_COMPLETED intent as above, then it is able to 
 receive this intent in it's onReceive() (i.e. only when my Service is 
 in running state). 

 I would really appreciate if someone can confirm that in case of using 
 ICS environment , do we need to start a service first before actually 
 making it able to receive an intent in it's onReceive() function ? 
 Also, the reasoning for this would be highly appreciable, if there is 
 some  :-)  ? 

 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] Upgrading App

2012-08-12 Thread New App Man
I uploaded my app and I need to make some changes. How do i upload the 
updated apk file. I don't see any option to upgrade the current apk file in 
the console.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: All Android in app subscriptions were mysteriously automatically canceled

2012-08-12 Thread Aristidis Papaioannou
Hi fibercode,

It does indeed take some time for the fixed data to propagate, but it 
should be done soon (at which time the autoRenewing field will be 
correct).  As Trevor mentioned, the underlying subscriptions have actually 
been fixed: they are actually active, and all but a very few will renew 
automatically.

No action is required on your (or your customers') side.

Again, we sincerely apologize for the inconvenience and thank you for your 
patience!

aristidis

On Thursday, August 9, 2012 11:38:03 PM UTC-7, fibercode wrote:

 Trevor,

 Thank you for your prompt response and the explanation. At least now we 
 know that we are not living in some alternate reality and stopped pinching 
 ourselves in disbelief.

 But, we still have all of our customers subscriptions canceled. None of 
 those were restored back to active. Now when we query the Google API server 
 to see if the subscriptions are still active we get false.

 For example:
 We queried Google order number: 574480490664998 and got the following 
 JSON response:

 {
  kind: androidpublisher#subscriptionPurchase,
  initiationTimestampMsec: 1342064134000,
  validUntilTimestampMsec: 1344749703290,
  autoRenewing: false
 }

 That order should have been restored to autoRenewing: true!

 Please let me know if we are missing something?

 Our customers have not had any termination of service, since our servers 
 are correctly keeping track of the expiration date of their subscriptions.
 But that is not the point. The main thing is that they would have to now 
 manually go and purchase the same subscription they did subscribe to before 
 (the one they did not unsubscribe from).
 I think that is a horrible way to treat them.

 I do not want to sound harsh, but we are trying to run a business not 
 play high school games.

 Any help is greatly appreciated!

 Thank you.


 On Thursday, 9 August 2012 21:29:30 UTC-4, Trevor Johns wrote:

 fibercode,
 A number of in-app billing subscriptions were erroneously marked as 
 canceled this morning due to an issue on our servers. Most of the affected 
 subscriptions have already been restored by our engineers, and users did 
 not loose access to content during this time. We will be sending a followup 
 email soon to those affected explaining what happened.

 There were a small minority of users who's subscription auto-renewal 
 dates occurred before we we were able to restore the subscription, and 
 accordingly were not renewed. These users can choose to re-subscribe using 
 the standard in-app billing mechanism within your app (they will appear as 
 a standard expired subscription to your app).

 The HTTP Android Developer API would have still returned the correct 
 expiration time for all subscriptions, so users continued to receive all 
 content they had paid for.

 We sincerely apologize the inconvenience this has caused, and our team 
 will be taking steps to ensure similar incidents do not occur in the future.

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 12:03:23 PM UTC-7, fibercode wrote:

 One of our Android applications has supported in app billing for a while 
 now.

 A little over two weeks ago we published an update that supports the 
 newly released by Google in app subscriptions.

 Everything was fine until this morning when mysteriously all the 
 subscriptions purchased by our customers were canceled automatically! 
 We got up this morning, checked our emails and our test accounts had the 
 subscriptions canceled even though we had not done that. This obviously 
 raised a lot of red flags so we started checking our customers' 
 subscriptions and it seems that they were all canceled !!! We were even 
 contacted by several of our customers who thought that we canceled their 
 subscriptions.

 The new subscription purchases done today (August 9th) are not being 
 canceled but we can no longer trust how long that will last.

 The only conclusion we could come to is that Google canceled the 
 subscriptions (either on purpose or accidentally).
 Most likely this looks like a bug on the Google side, but we need some 
 help to narrow this down.

 Thank you.



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

[android-developers] AVD doesn't recognize physical device

2012-08-12 Thread Jack Mcslay
I have a Multilaser Elite tablet (Android version 2.3.3) I use for low-end 
hardware testing. Some time ago I started trying android development (back 
on SDK version 16) and successfully ran a few samples on the tablet. 
however, I tried again now and I'm having no success an having AVD accept 
this tablet, showing a serial number '?', avd name 'N/A' target 
'unknown' and therefore refusing to run the app on the device. 

I'm on Eclipse 4.2.0 on Linux Mint 12, SDK version 20.0.1

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

[android-developers] Re: Google Chart Tools not working in Android WebView

2012-08-12 Thread babu bujju
Hi, the link actually returns a png file, not a webpage.
So you will have to download that file and show it in a imageview.



something like below.

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import android.widget.Toast;

public class GetImageActivity extends Activity {
/** Called when the activity is first created. */
static String res;
Bitmap bitmap;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);


new Thread(new Runnable() {   
public void run(){  
  
final Bitmap bitmap = DownloadImage();

GetImageActivity.this.runOnUiThread(new Runnable() {
public void run() {
ImageView img = (ImageView) 
findViewById(R.id.imageView1);
img.setImageBitmap(bitmap);
Toast.makeText(getApplicationContext(), response 
code = +res, Toast.LENGTH_LONG).show();
}
});

}
}).start();


//
}

private static InputStream OpenHttpConnection(String urlString)   
throws IOException
{
InputStream in = null;
int response = -1;
   
URL url = new URL(urlString); 
URLConnection conn = url.openConnection();
 
if (!(conn instanceof 
HttpURLConnection)) 
throw new IOException(Not an HTTP connection);

try{
HttpURLConnection httpConn = (HttpURLConnection) conn;
httpConn.setAllowUserInteraction(false);
httpConn.setInstanceFollowRedirects(true);  
httpConn.setRequestMethod(GET);
httpConn.connect(); 

response = httpConn.getResponseCode();   

if (response == HttpURLConnection.HTTP_OK) {
in = httpConn.getInputStream();   
} 

res = Integer.toString(response);
  }
catch (Exception ex)
{
throw new IOException(Error connecting); 
}
return in; 
}
public static Bitmap DownloadImage()
{
Bitmap bitmap = null;
InputStream in = null;
try {

in = 
OpenHttpConnection(https://chart.googleapis.com/chart?chs=250x100chd=t:60,40cht=p3chl=Hello|World);
bitmap = BitmapFactory.decodeStream(in);
in.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
return bitmap;
}
}

babu

On Tuesday, June 26, 2012 3:29:57 PM UTC+5:30, Remo wrote:

 Hi All,

 I am trying to load google chart api in webView. But doesn't show 
 graphical image. I also allowed internet permission in manifest. 

 For your reference i mention the my code below

 ?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

 TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
/
 WebView
android:id=@+id/embeddedwebview
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=center
/
 /LinearLayout

 --

 public class GoogleChartActivity extends Activity {
   
  WebView embeddedWebView;
  
  String jj = 
 https://chart.googleapis.com/chart?chs=100x100chd=t:60,40cht=p3chl=Hello|World
 ;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
embeddedWebView = (WebView)findViewById(R.id.embeddedwebview);
embeddedWebView.loadUrl(jj);
}
 }

 -

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
 package=com.app.googleChat
 android:versionCode=1
 android:versionName=1.0 


[android-developers] Using Bluetooth like NFC

2012-08-12 Thread Arpit Jain
Hi,

I need to know whether modification in the software stack of bluetooth can 
be done, so that it will work as NFC. I know that these 2 operates at 
different frequency, so is there any frequency conversion approach 
available so that both can operate at same frequency. And what other things 
need to changed to make it possible.

Thanks  Regards
Arpit Jain
IIT-Bombay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Session cookie inside webview working on emulator, not on real devices

2012-08-12 Thread Celine Bursztein
Hi all,

I am developing an android application and I try to login users from my 
server. In the login activity, I use DefaultHttpClient to get the session 
cookie. That works well. Then I sync the cookie using the 
CookieSyncManager. Again that works well. 
My main activity is a webview loaded from my server. The server uses the 
session cookie to give a session. 
I get a session on the emulator. It works as expected. The cookie and the 
session is there. I use javascript to alert the cookie on the server page.
When my app is on a real device, i did not get a session on the server. The 
cookie is alerted when the page is loaded from the server but no session.

I have no idea about this problem. I tried to different devices on 4.0.4 
ICS. None works.

If someone had the same problem and found a solution, I would be very happy 
to get some help.
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] Cannot run on physical device

2012-08-12 Thread Jack Mcslay
I'm trying to run a test app on a Multilaser Elite tablet, and I can't get 
it to be recognized. On Linux Mint 13 I try and the running device list 
shows it an unknown device while on Windows 7 it doesn't detect the tablet 
at all!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 4.1 Jelly Bean GIF Images Not Showing?

2012-08-12 Thread Daniel Dacila
There is already an issue opened.

http://code.google.com/p/android/issues/detail?id=34619

I also experience this bug. My reason for using gif instead of png was the 
much lower size of the images.
Gifs size was half as for the pngs.

On Tuesday, July 3, 2012 5:22:20 PM UTC+2, Josh F. wrote:

 I'm wondering if it is just me or not, but I have a game that has been 
 out for years now that uses GIF files for some of the bigger images (many 
 are PNG, but some are GIF).  In the latest Android 4.1 Jelly Bean release, 
 the emulator continues to show these images without any problems in every 
 configuration I have tried, but the devices that are running 4.1 right now 
 (the Nexus 7 and Galaxy Nexus) both fail to show these images in the game. 
  There is no crash and no other failure and the game behaves as if the 
 images are present (some you can select/touch/etc. and it works).

 As I don't yet have a 4.1 device (unable to get tickets to Google I/O 
 which is the only way to have a legitimate one right now) and I do not want 
 to flash a hacked ROM on my own Galaxy Nexus test devices (we keep them 
 stock for testing) I was hoping someone else in the community has seen this 
 and has a recommendation.  Otherwise, it looks like I'll be doing a lot of 
 GIF to PNG conversions for the next few days...


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android audio stream reading

2012-08-12 Thread AZL
I have played steamed audio using Android MediaPlayer


Uri myUri = Uri.parse(http://pri-ice.streamguys.biz/pri1;);

MediaPlayer mp = new MediaPlayer();

 mp.setDataSource(this, myUri); // Go to Initialized state
 mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
 mp.setOnPreparedListener(this);
 @Override
public void onPrepared(MediaPlayer mp) {
Log.d(TAG, Stream is prepared+mp.getCurrentPosition());

mp.start();
}

it is working fyne with android version 2.2
But when i tried the same code with 2.3.3 and 4.1 it doesnt run at all.
Can any any one help me regarding this issue??

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


Re: [android-developers] Re: How to dynamically change row layout of list view on click event

2012-08-12 Thread Justin Anderson

 we are using  a custom adapter only. in the adapter in getview method we
 are setting a tag for the first time. isSelected as false
 and on click we change the tag value  as true and invalidating the
 listview with invalidateviews. so we are making ui changes in the row
 layout based on this tag value.  But the problem we are facing now isif i
 click on first item the change happens on some other row layout. some
 problem while reusing the layout we guess. any one have any idea regarding
 this.


Don't do it this way... Do it the way I described in my first reply to your
question.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Aug 12, 2012 at 8:03 AM, Jovish P android.f...@gmail.com wrote:

 we are using  a custom adapter only. in the adapter in getview method we
 are setting a tag for the first time. isSelected as false
 and on click we change the tag value  as true and invalidating the
 listview with invalidateviews. so we are making ui changes in the row
 layout based on this tag value.  But the problem we are facing now isif i
 click on first item the change happens on some other row layout. some
 problem while reusing the layout we guess. any one have any idea regarding
 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

Re: [android-developers] Upgrading App

2012-08-12 Thread Justin Anderson
When you log in to the console, do the following:

   1. Click on the name of the app you want to upgrade
   2. Click on the APK Files tab
   3. Click the Upload APK button


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Aug 9, 2012 at 5:47 PM, New App Man ctdenterprises...@gmail.comwrote:

 I uploaded my app and I need to make some changes. How do i upload the
 updated apk file. I don't see any option to upgrade the current apk file in
 the console.

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

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

Re: [android-developers] ScrollView and Gridview Problem, Result; Not scrolling

2012-08-12 Thread Justin Anderson
As far as I can tell, the problem is that you have a GridView inside your
ScrollView...  You cannot put any sort of scrolling container, such as a
GridView, ListView, etc inside a ScrollView without running into problems.

http://stackoverflow.com/questions/4523609/grid-of-images-inside-scrollview
http://stackoverflow.com/questions/7952220/android-gridview
http://stackoverflow.com/questions/9889255/how-to-add-multiple-gridviews-to-a-scrollview-in-android-java

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Aug 12, 2012 at 8:11 AM, Mustafa Musa ÜLKER musaul...@gmail.comwrote:

 Hello,

 I have a ScrollView problem. I want my whole screen scrolled but as I had
 long-textviews and elements it doesnt scroll. How can I create a scrollview
 that scrolls whole screen?

 Here is my layout:

 http://pastebin.com/MRtxP5wC

 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

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

[android-developers] debugging why web app crashes my stock Android browser

2012-08-12 Thread Gelonida N

Hi,

I'm having a web site (facebook game, login required) , which just 
crashes my browser rather predictably.


I'd be really curious to find out how to debug this issue.

Wiht debugging I mean to gather data, that could be used by the game 
developers to implement a work around or the developpers of the stock 
Android browser on the HTC desire to reproduce and fix this issue.



What are the best means to do this.

Thansk for any suggestions


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


Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread IcedNet
thanks for the reminder, kris -- posted there as well, yea redundancy!

Peace,
Dan

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

Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread Kristopher Micinski
I don't think it's redundant in this case, it would seem to go there
better (for me),

kris

On Sun, Aug 12, 2012 at 1:24 PM, IcedNet d...@icednet.info wrote:
 thanks for the reminder, kris -- posted there as well, yea redundancy!

 Peace,
 Dan

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

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


Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread IcedNet
Yes and no, it potentially causes failure for dev's (I expct behavior x 
from API and get behavior y) and is a failure for security reasons as 
well...  ;)

Thx again

Peace,
Dan

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

Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread Kristopher Micinski
I would argue that most devs here would just have that fly right over
their heads though :-P

On Sun, Aug 12, 2012 at 1:47 PM, IcedNet d...@icednet.info wrote:
 Yes and no, it potentially causes failure for dev's (I expct behavior x from
 API and get behavior y) and is a failure for security reasons as well...  ;)

 Thx again

 Peace,
 Dan

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

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


Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread IcedNet
LOL
Okay, That I will not argue!  ;D

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

[android-developers] Re: Get SMS

2012-08-12 Thread Ehsan Sadeghi
I have this messages : 
08-12 18:02:13.609: I/ActivityThread(458): Pub drm: 
com.android.providers.drm.DrmProvider
08-12 18:02:13.619: I/DownloadManager(458): in removeSpuriousFiles
08-12 18:02:13.799: D/dalvikvm(146): WAIT_FOR_CONCURRENT_GC blocked 0ms
08-12 18:02:13.969: D/dalvikvm(146): GC_EXPLICIT freed 394K, 7% free 
10989K/11783K, paused 8ms+16ms, total 176ms
08-12 18:02:14.139: I/ActivityManager(146): Start proc com.android.email 
for broadcast com.android.email/.service.EmailBroadcastReceiver: pid=487 
uid=10005 gids={3003, 1015, 1028}
08-12 18:02:14.239: E/Trace(487): error opening trace file: No such file or 
directory (2)
08-12 18:02:14.379: I/ActivityThread(487): Pub 
com.android.email.provider;com.android.email.notifier: 
com.android.email.provider.EmailProvider
08-12 18:02:14.429: I/ActivityThread(487): Pub 
com.android.email.attachmentprovider: 
com.android.email.provider.AttachmentProvider
08-12 18:02:14.509: I/ActivityManager(146): Start proc com.android.exchange 
for service com.android.exchange/.ExchangeService: pid=504 uid=10031 
gids={3003, 1015, 1028}
08-12 18:02:14.589: D/Tethering(146): MasterInitialState.processMessage 
what=3
08-12 18:02:14.719: E/Trace(504): error opening trace file: No such file or 
directory (2)
08-12 18:02:14.769: I/ActivityThread(504): Pub 
com.android.exchange.directory.provider: 
com.android.exchange.provider.ExchangeDirectoryProvider
08-12 18:02:14.859: D/ExchangeService(504): !!! EAS ExchangeService, 
onCreate
08-12 18:02:15.000: D/dalvikvm(443): GC_CONCURRENT freed 220K, 4% free 
8207K/8519K, paused 313ms+786ms, total 1253ms
08-12 18:02:15.139: V/AlarmClock(396): AlarmInitReceiver finished
08-12 18:02:15.499: D/ExchangeService(504): !!! EAS ExchangeService, 
onStartCommand, startingUp = false, running = false
08-12 18:02:15.499: D/ExchangeService(504): !!! EAS ExchangeService, 
onStartCommand, startingUp = true, running = false
08-12 18:02:16.209: D/Eas Debug(504): Logging: 
08-12 18:02:16.559: D/MmsSmsDatabaseHelper(244): [MmsSmsDb] tableName: 
threads hasAutoIncrement: CREATE TABLE threads (_id INTEGER PRIMARY KEY 
AUTOINCREMENT,date INTEGER DEFAULT 0,message_count INTEGER DEFAULT 
0,recipient_ids TEXT,snippet TEXT,snippet_cs INTEGER DEFAULT 0,read INTEGER 
DEFAULT 1,type INTEGER DEFAULT 0,error INTEGER DEFAULT 0,has_attachment 
INTEGER DEFAULT 0) result: true
08-12 18:02:16.559: D/dalvikvm(487): GC_CONCURRENT freed 215K, 4% free 
8205K/8519K, paused 600ms+28ms, total 1705ms
08-12 18:02:16.659: D/dalvikvm(264): GC_CONCURRENT freed 343K, 5% free 
8996K/9415K, paused 17ms+19ms, total 94ms
08-12 18:02:16.679: W/ActivityManager(146): No content provider found for 
permission revoke: file:///data/local/tmp/Sms.apk
08-12 18:02:17.549: I/Choreographer(146): Skipped 35 frames!  The 
application may be doing too much work on its main thread.
08-12 18:02:17.590: D/dalvikvm(264): GC_FOR_ALLOC freed 250K, 6% free 
8864K/9415K, paused 165ms, total 205ms
08-12 18:02:17.599: I/dalvikvm-heap(264): Grow heap (frag case) to 9.031MB 
for 345760-byte allocation
08-12 18:02:17.649: D/GpsLocationProvider(146): NTP server returned: 
1344794538117 (Sun Aug 12 18:02:18 GMT 2012) reference: 68583 certainty: 
331 system time offset: 464
08-12 18:02:17.659: W/SoundPool(146):   sample 0 not READY
08-12 18:02:17.709: D/PhoneStatusBar(215): disable:  expand icons alerts 
ticker system_info BACK HOME recent* CLOCK 
08-12 18:02:17.709: I/Choreographer(146): Skipped 42 frames!  The 
application may be doing too much work on its main thread.
08-12 18:02:17.799: D/PhoneStatusBar(215): disable:  expand icons alerts 
ticker system_info back* home* recent clock* 
08-12 18:02:17.899: V/WindowManager(146): Layouts looping: On entry to 
LockedInner, mPendingLayoutChanges = 0x1
08-12 18:02:17.899: V/WindowManager(146): Layouts looping: loop number 4, 
mPendingLayoutChanges = 0x0
08-12 18:02:17.909: V/WindowManager(146): Layouts looping: after 
finishAnimationLw, mPendingLayoutChanges = 0x0
08-12 18:02:17.909: D/dalvikvm(264): GC_FOR_ALLOC freed 8K, 7% free 
9193K/9799K, paused 279ms, total 279ms
08-12 18:02:18.019: I/ARMAssembler(35): generated 
scanline__0077:03515104_9001_ [131 ipp] (153 ins) at 
[0x413c15c8:0x413c182c] in 6785304 ns
08-12 18:02:18.250: D/dalvikvm(264): GC_FOR_ALLOC freed 1K, 7% free 
9193K/9799K, paused 322ms, total 331ms
08-12 18:02:18.250: I/dalvikvm-heap(264): Grow heap (frag case) to 9.353MB 
for 345760-byte allocation
08-12 18:02:18.279: I/Choreographer(146): Skipped 32 frames!  The 
application may be doing too much work on its main thread.
08-12 18:02:18.329: D/dalvikvm(264): GC_FOR_ALLOC freed 1K, 7% free 
9531K/10183K, paused 59ms, total 59ms
08-12 18:02:18.370: D/dalvikvm(264): GC_FOR_ALLOC freed 1K, 7% free 
9532K/10183K, paused 37ms, total 38ms
08-12 18:02:18.370: I/dalvikvm-heap(264): Grow heap (frag case) to 9.683MB 
for 345760-byte allocation
08-12 18:02:18.420: D/dalvikvm(264): GC_FOR_ALLOC freed 1K, 7% free 
9869K/10567K, paused 40ms, total 

[android-developers] Re: How to remove black topbar on activity animation?

2012-08-12 Thread bbbill
If you use Android 3.n and higher, it might help googeling for how to hide 
the ActionBar (instead of TitleBar).
The ActionBar is appearently loaded with every UI of the recent versions, 
even if you do not define it within your code.
Am Samstag, 11. August 2012 23:41:51 UTC+2 schrieb user123:

 If it's of interest for somebody, here is the xml of the animation:

 scale 
 xmlns:android=http://schemas.android.com/apk/res/android;
 android:duration=1000
 android:fromXScale=0
 android:fromYScale=0
 android:pivotX=50%
 android:pivotY=50%
 android:toXScale=1
 android:toYScale=1 
 android:fillAfter=true
 /


 On Saturday, August 11, 2012 11:20:52 PM UTC+2, user123 wrote:

 I defined a scale animation from 0 to 1 for entering activity:

 overridePendingTransition(R.anim.scale, 0);

 In application tag in Manifest:

 android:theme=@android:style/Theme.NoTitleBar

 But I get a black topbar on the entering activity, while it scales... 
 looks very ugly since the activity doesn't have this topbar. How do I hide 
 it?



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

Re: [android-developers] Third-parties libraries license

2012-08-12 Thread Sergio Panico
Sure, but I thought that my doubt is faced to anyone have developed an 
application that uses Google Map library. Moreover, I don't refer to my 
specific case but to a general purpose practice that, i believe, an android 
developer more experienced than me should manage as well.

In any case, i'm sorry if I don't have exposed my doubt in the proper way.

Best regards
Sergio  

Il giorno domenica 12 agosto 2012 01:14:42 UTC+2, Spooky ha scritto:

 On Sat, Aug 11, 2012 at 04:07:49PM -0700, Sergio Panico wrote: 

  just a legal question. 

 Then you need to ask a lawyer. 

 Later, 
--jim 

 -- 
 THE SCORE:  ME:  2  CANCER:  0 
 73 DE N5IAL (/4)  | Tux (E Cat):  DS B+Wd Y 6 Y L+++ W+ C++/C++ 
 I+++ 
 spook...@gmail.com javascript:  | T++ A E H+ S V- F++ Q+++ P/P+ B++ 
 PA+ PL SC--- 
  Running Mac OS X Lion  | 
 ICBM / Hurricane: | Tiggerbelle:  DS W+S+Bts % 1.5 X L W C+++/C+ 
30.44406N 86.59909W| I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ 
 SC 

 Android Apps Listing at http://www.jstrack.org/barcodes.html 



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

Re: [android-developers] Hardware keyboard events are not intercepted by InputMethodService

2012-08-12 Thread Aleksandr Konstantinov
I was about to answer that this happens in stock browser too. This behavior 
was first detected at social site http://www.livejournal.com/ while my wife 
was tying to enter new message using stock browser. But before writing this 
answer I tried and could not reproduce problem with stock browser anymore. 
So currently I can confirm it for firefox only.

On Sunday, August 12, 2012 7:16:24 AM UTC+3, Dianne Hackborn wrote:

 Is this only in Firefox, or also in the built-in browser app?  The app 
 always does get first crack at input events, so it is possible for a broken 
 application to do this kind of thing.  (This facility is intended for 
 things like capturing back to dismiss a pop-up instead of closing the IME.)



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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's InputMethodService does no get onKeyDown/Up if javascript is involved

2012-08-12 Thread Aleksandr Konstantinov
This post is duplicate 
of 
https://groups.google.com/forum/?hl=enfromgroups#!topic/android-developers/mjsi1rNm4-A
 
.
Sorry.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] intent for using a file manager to save a file

2012-08-12 Thread Jim Graham
Which intent would I use to allow a user to open a file manager (user's
choice), select a path and filename (given a default for each), and save
the file (possibly in a new directory chosen/created by the user)?

I'm fairly certain I've seen this, but I can't seem to find the right
page in the developers guide (or maybe I just missed the intent/action).

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  |  There it was, right in the title bar:
spooky1...@gmail.com  |   Microsoft Operations POS.
 Running Mac OS X Lion  | 
ICBM / Hurricane: | Never before has a TLA been so appropriately
   30.44406N 86.59909W|  mis-parsed. (alt.sysadmin.recovery)

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Non sticky service gets recreated (indefinetly?)

2012-08-12 Thread Johan Appelgren
So it looks like I'm missing something about how to unbind from a service. 
I thought that calling unbindService with the same ServiceConnection 
instance would be enough. Looking at the output from dumpsys it looks only 
partially unbound or something. I guess this explains why it is restarted. 
How do I completely unbind?

adb shell dumpsys activity services com.example.service
ACTIVITY MANAGER SERVICES (dumpsys activity services)
  Active services:
  * ServiceRecord{426c09c0 com.example.service/.MainService}
intent={cmp=com.example.service/.MainService}
packageName=com.example.service
processName=com.example.service
baseDir=/data/app/com.example.service-1.apk
dataDir=/data/data/com.example.service
app=ProcessRecord{42183390 8027:com.example.service/u0a97}
createTime=-1m2s860ms lastActivity=-1m2s857ms
executingStart=-3s22ms restartTime=-1m2s860ms
startRequested=true stopIfKilled=true callStart=true lastStartId=1
Bindings:
* IntentBindRecord{426dda38}:
  intent={cmp=com.example.service/.MainService}
  binder=android.os.BinderProxy@42610298
  requested=true received=true hasBound=false doRebind=false

On Saturday, August 11, 2012 8:21:07 PM UTC+2, Dianne Hackborn wrote:

 Unless the service has something bound to it or it is started, it will not 
 be re-created.

 You can look at the service state with adb shell dumpsys activity 
 services or adb shell dumpsys activity service package_name or 
 service_name.  If your service is listed there, it will show you what its 
 current state is -- what is bound to it, whether it is started, etc.

 On Fri, Aug 10, 2012 at 2:26 PM, Johan Appelgren 
 johan.a...@gmail.comjavascript:
  wrote:

 You're right that I'm not understanding something here, most likely it is 
 something really obvious too. :(

 As I wrote, my understanding of what you describe is not the behavior I'm 
 seeing with my test app on my Galaxy Nexus with Android 4.1.1 nor the 4.1.1 
 emulator image. After I've unbound from the service, in my test I do this 
 in the activity's onPause, when the app process is killed, it and the 
 service is restarted. Then after that the process and service is killed and 
 restarted every now and then, without starting the activity or any calls to 
 startService or bindService made by any code in my test app. It starts 
 quicker if I start a couple of different games to put some memory pressure 
 on the system.

 Not even stopping the cached process in the Cached processes list stops 
 it, it is restarted a little while after. Only going to the Downloaded list 
 and pressing the Force stop button stops the stop/restart cycle. 

 Perhaps someone could look at my dummy app code and point out what I'm 
 doing wrong. If someone does, I'm sorry for most likely wasting your time. 

 public class MainActivity extends Activity {

 @SuppressWarnings(unused)
 private int[] mDummyData = new int[3 * 1024 * 1024];
  private final String TAG = MainActivity;
  private boolean mBound;
  private boolean mCalledBind;
 private boolean mStarted;
  private final ServiceConnection mConnection = new 
 ServiceConnection() {

 @Override
 public void onServiceConnected(ComponentName className, IBinder 
 service) {
 Log.d(TAG, onServiceConnected);
 mBound = true;
 }

 @Override
 public void onServiceDisconnected(ComponentName arg0) {
 Log.d(TAG, onServiceDisconnected);
 }
 };

 public MainActivity(){
 Log.d(TAG, ctor);
 }
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);

 Intent intent = new Intent(this, MainService.class);

 Log.d(TAG, onCreate);
 
 if (!mStarted) {
 Log.d(TAG, startService);
  startService(intent);
 mStarted = true;
 }
 
 if (!mBound  !mCalledBind) {
 Log.d(TAG, bindService);
 bindService(intent, mConnection, BIND_AUTO_CREATE);
 mCalledBind = true;
 }
 }
 
 @Override
 protected void onPause() {
 Log.d(TAG, onPause);
 
 if (mBound) {
 Log.d(TAG, unbindService);
 unbindService(mConnection);
 mBound = false;
  mCalledBind = false;
 }
 
 super.onPause();
 }
 
 @Override
 protected void onDestroy() {
 Log.d(TAG, onDestroy);
 
 super.onDestroy();
 }
 }

 public class MainService extends Service {

 @SuppressWarnings(unused)
  private int[] mDummyData = new int[1024*1024];
  private static final String TAG = MainService;
  private final IBinder mBinder = new LocalBinder();
  public class LocalBinder extends Binder {
  MainService getService() {
 return MainService.this;
 }
 }
  @Override
 public IBinder onBind(Intent arg0) {
 Log.d(TAG, onBind);
 

Re: [android-developers] intent for using a file manager to save a file

2012-08-12 Thread Justin Anderson
AFAIK there isn't really an intent for this...  You would either have to
write your own file explorer or tap into one (or many) existing ones... To
do the latter you would have to contact each developer to find out how they
expect to receive the intent data to do that, if they support it at all.


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Aug 12, 2012 at 2:45 PM, Jim Graham spooky1...@gmail.com wrote:

 Which intent would I use to allow a user to open a file manager (user's
 choice), select a path and filename (given a default for each), and save
 the file (possibly in a new directory chosen/created by the user)?

 I'm fairly certain I've seen this, but I can't seem to find the right
 page in the developers guide (or maybe I just missed the intent/action).

 Thanks,
--jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)  |  There it was, right in the title bar:
 spooky1...@gmail.com  |   Microsoft Operations POS.
  Running Mac OS X Lion  |
 ICBM / Hurricane: | Never before has a TLA been so appropriately
30.44406N 86.59909W|  mis-parsed. (alt.sysadmin.recovery)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bitmap size exceeds

2012-08-12 Thread Numair Qadir
So, i was working on a project that loads an image from the gallery and set 
as background. It is working perfectly fine but crashes when i try to load 
a large image, i.e. 
5 MP (2592х1944), 8mpx (3264x2448), 12 MP, 4000x3000 , here is my code:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent 
data) {

{
super.onActivityResult(requestCode, resultCode, data);

if (resultCode == Activity.RESULT_OK  requestCode == 0) {
Uri photo = data.getData();
ContentResolver resolver = getContentResolver();
resolver.notifyChange(photo, null);

try {
Bitmap bitmap = MediaStore.Images.Media.getBitmap(resolver,
photo);
FrameLayout bg = (FrameLayout) findViewById(R.id.frame);
Drawable drawable = new BitmapDrawable(getResources(),
bitmap);
bg.setBackgroundDrawable(drawable);

// Do something useful with your bitmap
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}

here is the logcat

08-13 04:44:01.414: E/AndroidRuntime(11062): FATAL EXCEPTION: main
08-13 04:44:01.414: E/AndroidRuntime(11062): java.lang.OutOfMemoryError: 
bitmap size exceeds VM budget
08-13 04:44:01.414: E/AndroidRuntime(11062): at 
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
08-13 04:44:01.414: E/AndroidRuntime(11062): at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:459)
08-13 04:44:01.414: E/AndroidRuntime(11062): at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:515)
08-13 04:44:01.414: E/AndroidRuntime(11062): at 
android.provider.MediaStore$Images$Media.getBitmap(MediaStore.java:503)

Any help through code snippet/ tutorial would be more fruitful. 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

Re: [android-developers] intent for using a file manager to save a file

2012-08-12 Thread Jim Graham
On Sun, Aug 12, 2012 at 05:42:34PM -0600, Justin Anderson wrote:
 AFAIK there isn't really an intent for this...  You would either have to
 write your own file explorer or tap into one (or many) existing ones... To
 do the latter you would have to contact each developer to find out how they
 expect to receive the intent data to do that, if they support it at all.

No standard intent, then?  Oh well.  Now that I think about it, I've seen
file managers, gallery apps, share, and a few others all lumped together
quite a few times.  I guess everyone is doing what you said.  :-(

I suppose I could have a default directory, and ask the user if they want
to store photos to a group (e.g., when I go to a homebrew club meeting,
save it to /mnt/sdcard/UCPro/HBU/Christmas2012/.. (where /mnt/sdcard
is determined by File(Environment.getExternalStoragePublicDirectory),
not just assumed to be that exact path), and is checked to make sure it
exists, and so on.

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

  The iPad is a status symbol for yuppies. The Android
 is for people who actually want something that works.

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Bitmap size exceeds

2012-08-12 Thread Jim Graham
On Sun, Aug 12, 2012 at 04:48:14PM -0700, Numair Qadir wrote:
 So, i was working on a project that loads an image from the gallery and set 
 as background. It is working perfectly fine but crashes when i try to load 
 a large image, i.e. 
 5 MP (2592??1944), 8mpx (3264x2448), 12 MP, 4000x3000 , here is my code:

If you want to load the larger images, you have two options:  either
first load ONLY the dimensions for the image (see BitmapFactory and
BitmapFactory.Options, and from there, see inJustDecodeBounds), and then
load/scale it at the same time.

OR you can do this using the NDK (the list for that would be
android-...@googlegroups.com).  Frankly, I'd suggest loading the former
of the two if all you want to do with the image is set it as wallpaper.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

  The iPad is a status symbol for yuppies. The Android
 is for people who actually want something that works.

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] intent for using a file manager to save a file

2012-08-12 Thread Kristopher Micinski
Did you check openintents?

For non standard intents, you can you usually do a best try by
looking for the common file managers and seeing if they have public
intents for you to use, then scan the user's system and see if they
have one of those installed, if so you can use it, and if not, you can
revert to doing something by yourself.

It's quite high possibility the user will have no file manager
installed, I should think..

You can poll the package manager to see if there's anyone available to
handle your intent,
kris

On Sun, Aug 12, 2012 at 7:52 PM, Jim Graham spooky1...@gmail.com wrote:
 On Sun, Aug 12, 2012 at 05:42:34PM -0600, Justin Anderson wrote:
 AFAIK there isn't really an intent for this...  You would either have to
 write your own file explorer or tap into one (or many) existing ones... To
 do the latter you would have to contact each developer to find out how they
 expect to receive the intent data to do that, if they support it at all.

 No standard intent, then?  Oh well.  Now that I think about it, I've seen
 file managers, gallery apps, share, and a few others all lumped together
 quite a few times.  I guess everyone is doing what you said.  :-(

 I suppose I could have a default directory, and ask the user if they want
 to store photos to a group (e.g., when I go to a homebrew club meeting,
 save it to /mnt/sdcard/UCPro/HBU/Christmas2012/.. (where /mnt/sdcard
 is determined by File(Environment.getExternalStoragePublicDirectory),
 not just assumed to be that exact path), and is checked to make sure it
 exists, and so on.

 Thanks,
--jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion 
 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   The iPad is a status symbol for yuppies. The Android
  is for people who actually want something that works.

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Automatically doing a map search

2012-08-12 Thread Jason Hsu
I've figured out how to get the map exercises from _The Busy Coder's Guide 
To Android Development_ to work.  (This  requires right-clicking on the 
project, going to Properties - Android and selecting a Google API as the 
target.  It's also necessary to use the keytool command on the 
debug.keystore file to get the MD5 certificate fingerprint, paste this 
fingerprint into the appropriate field at 
http://code.google.com/android/maps-api-signup.html, and pasting the apiKey 
into the *.xml file.)

How do I pull up an automatically executed search of my area in Google 
maps?  Suppose I want the program to automatically search my local area for 
gas stations, restaurants, grocery stores, etc.  Is there a good 
example/tutorial that covers 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

Re: [android-developers] Canvas or OpenGL

2012-08-12 Thread James Black
I did it with DirectX 3D and my application took over the cpu while it was
running, so I was able to easily meet the requirements, but on the Android
an application can't hog the device as I had.  My video refresh rate was
just 30 fps, but looping through the audio part had to be much faster.

On Sat, Aug 11, 2012 at 8:28 PM, bob b...@coolfone.comze.com wrote:



 On Saturday, August 11, 2012 4:50:21 PM UTC-5, James Black wrote:

 Without more detail of what you want to do an answer is difficult.

 Do you need a fast refresh rate for example?  One music program I wrote
 had to turn notes on and off at the correct millisecond, under windows;
 that accuracy won't work on mobile devices.

 Millisecond accuracy won't work on Windows either due to the refresh rate
 of the display.


 If you just want to show notes either will work.

 Do you need a 3d canvas to show notes?  Then opengl is better.
 On Aug 11, 2012 2:51 PM, Simon Giddings mr.s.g...@gmail.com wrote:

 I am going to start the development of a Music document app.
 In the past, when I developed under widows, I used world coordinates and
 screen coordinates to provide scaling/zooming.

 I am unclear as to weather I should go to OpenGL under Android, or if I
 could still use Canvas.

 Can anyone advise me here?

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

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




-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: unable to open database file after OS upgrade

2012-08-12 Thread lishali
Only one user of our app also reported same issue, and she had clear the 
app data cache, uninstall our app and then re-install the app, but it's not 
working for her.
When she open our app, the app crashed with the same excepiton unable to 
open database file 

在 2010年4月10日星期六UTC+8下午1时25分11秒,Walter写道:

 Some users of my apps also reported same issue, also same exception in
 the log.

 What you can do is:

 Uninstall your app, power off, power on. if that doesn't work and the
 phone is rooted,  ask the user to clean the app cache, and not install
 app on SDCard.

 That resolved all these kind of open database and file corruption
 issues.

 Walter


 On Apr 9, 12:46 pm, Mariano Kamp mariano.k...@gmail.com wrote:
   Mariano Kamp wrote:
I could ask the people with custom ROMs to check if the db-file is 
 still
there.
 
   Or add your own exception handler for this, do some experiments, and
   then send the results to yourself via whatever mechanism you're using 
 to
   get the stack trace.
 
  That's a good idea, but it will take some time to deploy. As I haven't
  gotten any other feedback I will still do that then.
 
   FWIW, I have not run into this problem as an end user.
 
  No, me neither.



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

Re: [android-developers] Unsubscribe

2012-08-12 Thread dnkoutso
I am interested too.

On Saturday, August 11, 2012 4:06:19 PM UTC-7, Andy dev wrote:

 Dianne, did you have any luck with that sample APK and reproducing the 
 issue?
  
 Thanks

 On Friday, July 27, 2012 12:47:17 PM UTC+1, Kostya Vasilyev wrote:


 2012/7/27 Jim Graham spook...@gmail.com

 On Thu, Jul 26, 2012 at 10:35:18PM -0700, Andy dev wrote:
  Anyone made any progress with this issue, I still cannot pinpoint what
  causes it?


 It's like life after death - no-one who knows for sure is able to share 
 his knowledge :)
  

  
 It's nothing new...e-mail lists have been plagued with unsubscribe
 requests sent to the list despite very specific instructions given
 to users of the list since the day they signed up.  As to why people
 do that, I'm going to be nice and not answer that part.


 Another mystery in the same category: a refund request for an in-app 
 purchase from a user claming he didn't buy it (and no, neither he or his 
 phone is being held captive).
  


 Later,
--jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)  |  There it was, right in the title bar:
 spook...@gmail.com  |   Microsoft Operations POS.
  Running Mac OS X Lion  |
 ICBM / Hurricane: | Never before has a TLA been so appropriately
30.44406N 86.59909W|  mis-parsed. (alt.sysadmin.recovery)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Launch navigation app with an Intent - [DS]

2012-08-12 Thread NayAnesh Gupte


You could use something like this:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
Uri.parse(http://maps.google.com/maps?saddr=20.344,34.34daddr=20.5666,45.345;));
startActivity(intent);

You can use an actual street address instead of latitude and longitude. 
However this will give the user a dialog to choose between opening it via 
browser or Google Maps.

If you are in the US, you could use an unofficial way (Since it isn't 
official, I don't recommend using it). This will fire up Google Maps in 
navigation mode. Haven't played with it since where I live it isn't 
available.

Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(google.navigation:q=an+address+city);



If you want to get rid of the dialog you can give the intent a hint as to 
which package you want to use. 
Before the startActivity() add this: 
intent.setClassName(com.google.android.apps.maps, 
com.google.android.maps.MapsActivity); 


On Saturday, December 12, 2009 3:18:20 AM UTC+5:30, Declan Shanaghy wrote:

 Hello,
 I realize this might not be the proper place to post this since it's not 
 Android specific, but rather its about integrating with a google app.

 I've been trying to find some documentation on launching / controlling the 
 Google Navigation app via Intents or otherwise.
 I was hoping to find an intent to launch the navigation app with address 
 parameters setup and start navigation immediately.

 Can't find anything out there, so I'm still not even sure if it can be 
 done.

 Anyone have any ideas?


 Thanks,
 Dek


 -- 
 An engineer's definition of done is the perfect set of code, and left to 
 his own devices, an engineer will endlessly improve the code on the mythic 
 journey to done.
 -- http://www.randsinrepose.com

 [DS]



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

Re: [android-developers] How could i check the android device is rooted or not?

2012-08-12 Thread Asheesh Arya
here's the code to check it device is rooted or not
 private void checkExternalMedia () {
 // Check external media availability.  This is adapted from
 // 
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal
 boolean mExternalStorageAvailable = false;
 boolean mExternalStorageWriteable = false;
 String state = Environment.getExternalStorageState();

 if (Environment.MEDIA_MOUNTED.equals(state)) {
// We can read and write the media
mExternalStorageAvailable = mExternalStorageWriteable = true;
 } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
// We can only read the media
mExternalStorageAvailable = true;
mExternalStorageWriteable = false;
 } else {
// Can't read or write
mExternalStorageAvailable = mExternalStorageWriteable = false;
 }

 // Find the root of the external storage and output external
storage info to screen
 root = android.os.Environment.getExternalStorageDirectory();
 tv.append( External storage:
Exists=+mExternalStorageAvailable+, Writable=
  +mExternalStorageWriteable+ Root=+root+\n);
  }

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] prevent from reinitializing value

2012-08-12 Thread Sadhna Upadhyay
Hi everybody,
   can someone tel me how to prevent from reinitializing value when
activity is re called i mean



int i=0;
and it became
i=1;
and when i called this activity again from its next activity then i should
remain 1 not 0;

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 could i check the android device is rooted or not?

2012-08-12 Thread Chris Stratton
On Aug 7, 4:02 am, Ali Ahmadi aliahmadi1...@gmail.com wrote:

 all i want to know is How could i check the android device is rooted or not?
 please give me a code to check that in my application and warn user if the
 device is not rooted!

It is ultimately not possible to do so with certainty.

You can obviously check for common characteristics such as android
properties, extra setuid executables or processes running as root, but
latent capability may not be visible in that way, and you are
implicitly assuming that the operating system is truthfully reporting
the facts you check, which is not necessarily the case.

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