Re: [android-developers] Debugging beta apps

2013-02-16 Thread TreKing
On Fri, Feb 15, 2013 at 12:37 PM, njman njso...@gmail.com wrote:

 How do people test their beta apps - i.e. released to a few
 testers - getting back app crashed doesn't help.

 Can users send back a log file and/or stack trace.


Use something like ACRA get logs and traces of what your app is doing along
with a crash.
Have your testers explain to you how they break your app.

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

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




[android-developers] Re: Edittext - can't type

2013-02-16 Thread Tamilarasi Sivaraj
My post was used for you?

On Friday, February 15, 2013 7:01:40 PM UTC+5:30, Sagar Rout wrote:

 Yes i that is what i m trying to tell you and help me if you can

 Thanks

 On Friday, 15 February 2013 15:45:09 UTC+5:30, Tamilarasi Sivaraj wrote:

 hi aru you told you only used to emulator keypad for typing not used for 
 your system keyboard right?


 On Friday, February 15, 2013 10:32:49 AM UTC+5:30, Sagar Rout wrote:

 I am a newbie in android developement. i am not able to entered or type 
 in edittext using keyboard and whiledouble click , able to entered using 
 Android emulator keyboard.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] what versions of sqllite is used in android?

2013-02-16 Thread Mark Murphy
A Google search on:

android sqlite versions

turns up:

http://stackoverflow.com/questions/2421189/version-of-sqlite-used-in-android



On Sat, Feb 16, 2013 at 5:59 AM, Siva Kumar j.sivakumar...@gmail.comwrote:

 Dear All,



 http://stackoverflow.com/questions/14909502/what-versions-of-sqllite-is-used-in-android#


 Im developing a android application for a *tablet and mobiles*
 The application perform some DB operations (saving,deleting,etc in DB)
 My configuration details are *minimum sdk is 8 and target sdk is 17*
 Here i did not know what *sqllite version* is used in android from *version
 8 to latest version.*
 It is very usefull to db compatibility in my project
 So please provid the details where i get these details
 So please all are welcome to give their ideas


 --
 *Thanks  Regards,
 SIVAKUMAR.J http://stackoverflow.com/users/385138/sivakumar-j
 *

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
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 4.5 Available!

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




[android-developers] Re: Adjust ActionBar Tabs Width

2013-02-16 Thread Doug Gordon
If you hide the app title and icon and use the splitActionBar option, you 
can get up to 4 tabs on the top row on a smartphone-size screen. I think 
that 4 is about the limit, but if there is not enough room for all the tabs 
in the top row, Android converts the tabs to a spinner (dropdown) selector. 
This works OK, but then is not as convenient as having the tabs.

On Saturday, February 16, 2013 12:59:25 AM UTC-5, sree wrote:

 Hi 
 see The above attachment.
 I implemented ActionBar tabs,But when i add more than 3 tabs it is going 
 back of the screen.so i need to adjust width for each tab.How can i do it.
 actually i need to implement 5 tabs.

 Thank you 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Problem with resultforactivity and extras

2013-02-16 Thread α Centauri
I want to show the Android gallery so I use:

  Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType(image/*);

intent.putExtra(A,abc);
startActivityForResult(intent, SELECT_PICTURE);

My problem is that when I catch the result, eg:

public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case 1:
 {
  if (resultCode == RESULT_OK)
  {
Uri photoUri = data.getData();
if (photoUri != null)
{
try {
  String[] filePathColumn = {MediaStore.Images.Media.DATA};
  Cursor cursor = getContentResolver().query(photoUri, 
filePathColumn, null, null, null); 
  cursor.moveToFirst();
  int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
  String filePath = cursor.getString(columnIndex);
  cursor.close();
  bMap_image = BitmapFactory.decodeFile(filePath);
  ImageView img = (ImageView) findViewById(R.id.gallery1);
  img.setImageBitmap(bMap_image);
  Bundle extras = data.getExtras();

 }catch(Exception e)
  {}
  }
}// resultCode
}// case 1
}// switch, request code}// public void onActivityResult

the variable extras is always null. How can I save my extras? Any 
alternatives?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Sprite Batcher using OpenGL 2

2013-02-16 Thread reaktor24
Hi

Thanks for all your replies. Really interesting reading them. Yes, OpenGL 2 
is definitely more complicated than OpenGL 1.1 but I suppose that 
complexity is required (and maybe a small price to pay) for the amount of 
control it gives you over the rendering pipeline. I definitely wouldn't go 
back to 1.1 and much prefer it. I will have a play around and see what I 
can come up with. Thanks again!

Steve

On Friday, February 15, 2013 5:27:45 PM UTC, Nobu Games wrote:

 You make little sense here. reaktor says that OpenGL ES 2 is more 
 complicated. You contradict him by saying it does not clearly simplify 
 anything. So basically you both are on the same page.

 OpenGL ES 2 does not just add features. It also takes them away. There is 
 no transformation matrix stack anymore. And having the overhead of creating 
 multiple scripts in an additional language just for rendering stuff that 
 could be done in a pretty much straightforward manner in OpenGL 1 is... 
 well... more complicated.


 On Friday, February 15, 2013 10:54:53 AM UTC-6, bob wrote:

 *Surely it should be easier under OpenGL 2 and not more complicated.*

 I don't think everyone would agree with that, including me.

 OpenGL 2 adds features, but it does not clearly simplify anything.





 On Friday, February 15, 2013 6:50:27 AM UTC-6, reaktor24 wrote:

 Hi. I am reading the book by Mario Zechner and am on Chapter 8 which 
 discusses Sprite Batching. It is relatively straight forward when dealing 
 with OpenGL 1.1 but I am trying to write the code using shaders and OpenGL 
 2. I am quite confused though as the matrix needs to be updated for the 
 positions and sent to the shader but his code doesn't deal with shaders and 
 I am not getting anything appearing on the screen. Something isn't right. I 
 read on this page that you should send an array of matrices to the shader 
 at each update:
  
 http://antonholmquist.com/blog/sprite-batching-opengl-es-2-0/
  
 But this means you can only send a maximum of 24 sprite positions with 
 each update. That isn't good enough. Mario's code is sending 100 sprites 
 every frame, not 24. Surely it should be easier under OpenGL 2 and not more 
 complicated. Anyone got any advice?
  
 Steve



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Debugging beta apps

2013-02-16 Thread Digipom
A few recommendations from my experiences:

1) If you use Proguard, then keep a copy of your proguard folder for each 
release that you do. This will help you make sense of the market exceptions.

2) Use something like ACRA (https://github.com/ACRA/acra) to log all items 
of interest, including uncaught exceptions. This will give you a lot more 
detail than the market crash reports.

So for example, in your code you can do something like this:

void someMethod() {
   // Do something
   MyLogger.log(Something interesting...);
}

On Friday, February 15, 2013 1:40:01 PM UTC-5, dashman wrote:

 How do users debug their beta apps - once it's released 
 to users. I'd like to get a better feedback than 'app crashed.

 Can users send back log files etc.

 I was thinking about using ASSERT.

 Is the java assert feature recommended or the Assert class.

 I noticed that the latter does not display a message on the screen.


 Help appreciated.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Multiple HTTP requests

2013-02-16 Thread Diego Nunes
I'm doing on 3G.

Thank you.

On Friday, February 15, 2013 8:00:55 PM UTC-2, bob wrote:

 Are you doing this on Wifi, 3G, or 4G?



 On Friday, February 15, 2013 8:36:26 AM UTC-6, Diego Nunes wrote:

 Dear, good day.


 I have an application that makes several connections (5 for 5 seconds) to 
 an Apache server with PHP. I'm using the POST method and HTTPClient in an 
 AsyncTask.


 The problem is that I'm getting more 
 ConnectionTimeoutException/SocketTimeoutException. 
 My timeout is configured as follows:


 *HttpConnectionParams.setConnectionTimeout (httpParameters, 3);*

 *HttpConnectionParams.setSoTimeout (httpParameters, 3);*


 I did a test using apache jmetter sending multiple requests to this 
 server and had no problems.


 This can be a limitation of the network? SO?


 Has anyone experienced this problem or know of a better strategy for 
 making these requests?


 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Sprite Batcher using OpenGL 2

2013-02-16 Thread a1
 

 But this means you can only send a maximum of 24 sprite positions with 
 each update. That isn't good enough. Mario's code is sending 100 sprites 
 every frame, not 24. Surely it should be easier under OpenGL 2 and not more 
 complicated. Anyone got any advice?


You'd be better off if you perform transformation on CPU side, transforming 
400 or even a 1000 vertices per frame will cost you 1-2ms tops, also 
rendering calls aren't that expensive if they are not accompanied by render 
state change (things like program, texture, FBO, blend state) so render 
call batching may not be even necessary in your case.

--
Bart

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Problem with resultforactivity and extras

2013-02-16 Thread TreKing
On Sat, Feb 16, 2013 at 7:16 AM, α Centauri lucasact...@gmail.com wrote:

 How can I save my extras? Any alternatives?


Do a Google Search for Android Pick Image - you will find that you want
to use the Data element of the Intent, not the extras.

Also, your use of switching on resultCode with a hard-coded case statement
followed by an if check for the very same variable is quite silly.

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

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




[android-developers] Re: Progarm unexpectdly error

2013-02-16 Thread G. Blake Meike
+10

very spooky, dude!

On Friday, February 15, 2013 9:57:34 AM UTC-8, bob wrote:

 It is probably a null pointer exception because you are using an 
 uninitialized widget.


 Make sure you call findViewById to initialize all widgets before use.



 On Thursday, February 14, 2013 11:58:55 PM UTC-6, Sagar Rout wrote:

 when i ranmy program there s  a error and my program stopped unexpectdly 
 please help me this problem so that i can configure 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Problem with resultforactivity and extras

2013-02-16 Thread α Centauri
Of course I knew that. As you can see in this code, it uses data.getData() 
to get the image. Anyway, what I wanted to do is to attach some info that I 
didn't want to lose when creating new Activity. Finally I rewrote a lot of 
thing and use SharedPreferences.

Yep, the case statement was stupid and not only that. My code doesn't have 
it but I copied one I found in stackoverflow to paste it here with colors 
without working a lot. 

El sábado, 16 de febrero de 2013 20:56:20 UTC+1, TreKing escribió:


 On Sat, Feb 16, 2013 at 7:16 AM, α Centauri lucas...@gmail.comjavascript:
  wrote:

 How can I save my extras? Any alternatives?


 Do a Google Search for Android Pick Image - you will find that you want 
 to use the Data element of the Intent, not the extras.

 Also, your use of switching on resultCode with a hard-coded case statement 
 followed by an if check for the very same variable is quite silly.


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

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




[android-developers] Fwd:

2013-02-16 Thread tiger meng
http://www.tassinionline.it/r4viz7.php?s=lf

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Adjust ActionBar Tabs Width

2013-02-16 Thread sree android
thank you rour best answer.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.