[android-developers] Re: Posts not showing up?

2012-09-14 Thread sly87
Same with me too.. :s

On Thursday, September 13, 2012 1:29:27 PM UTC+2, Kunal Shah wrote:
>
> Same thing with me...
>
> On Thursday, September 13, 2012 2:56:47 PM UTC+5:30, Martijn van Mechelen 
> wrote:
>>
>> Hi,
>>
>> Two days ago I've posted three messages into the Android Developers 
>> group. The messages probably have to moderated, but they are still not 
>> showing up. Is something going wrong?
>>
>> Regards,
>>
>> Martijn van Mechelen
>>
>

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

2012-09-14 Thread gjs
Hi,

Yes 2 or 3 sometime 4 & just once 5 !

Regards


On Friday, September 14, 2012 7:30:37 AM UTC+10, bob wrote:
>
> So, has anyone ever gotten an Android Bluetooth server working that can 
> handle multiple clients simultaneously?
>
>
> I looked at some old posts, and it seems this was a headache for many.
>
>
>

-- 
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] Matrix.orthoM - How to use it

2012-09-14 Thread Steven Bruce
I have a very simple application which draws a triangle at zero on the
z axis. I want an orthographics view but for the life of me this
function won't work. It just shows a black screen with no triangle.
How exactly do you use this function? I did the obvious thing which
is:

Matrix.orthoM(projection,0,0,width,0,height,-1,1);


Although seeing some peoples source code they are doing all sorts of
stuff which I would of expected to be inside the orthoM method (like
calling tan functions and dividing etc). So how exactly are you
supposed to use this function?

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


[android-developers] Re: Matrix.orthoM - How to use it

2012-09-14 Thread RichardC
See:
android-sdk\samples\android-10\ApiDemos\src\com\example\android\apis\graphics\GLES20TriangleRenderer.java

for Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);

which is similar.

There is a lot of information out there on OpenGL projections, I suggest 
you read some of it. 

Note that:
* near and far should both be +ve as they are distances in front of the 
camera in the direction the camera is looking.
* if your triangle is at 0 on the z-axis you will need to move your camera 
position (which defaults to [0,0,0]) so you can see it.


On Friday, September 14, 2012 9:27:35 AM UTC+1, reaktor24 wrote:
>
> I have a very simple application which draws a triangle at zero on the 
> z axis. I want an orthographics view but for the life of me this 
> function won't work. It just shows a black screen with no triangle. 
> How exactly do you use this function? I did the obvious thing which 
> is: 
>
> Matrix.orthoM(projection,0,0,width,0,height,-1,1); 
>
>
> Although seeing some peoples source code they are doing all sorts of 
> stuff which I would of expected to be inside the orthoM method (like 
> calling tan functions and dividing etc). So how exactly are you 
> supposed to use this function? 
>
> 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

[android-developers] "Connections" in android native phone book

2012-09-14 Thread akash
Hello, 

I am new to android programming. Can anyone guide me how can i add fields 
in "Connections" field of android native phone book. 
 
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] Re: Matrix.orthoM - How to use it

2012-09-14 Thread reaktor24
Hi Richard
 
Thanks for your reply but I don't want to use frustumM I want to use 
orthoM. I want a 2D projection not 3D hence the -1 to +1. I have use 
frustumM and it works ok, I can see the triangle. What is the negative 
aspect ratio about? I don't understand that. It should really work like the 
old glOrtho function but I guess it doesn't which is a shame.
 
Steve

On Friday, September 14, 2012 9:46:58 AM UTC+1, RichardC wrote:

> See: 
>
> android-sdk\samples\android-10\ApiDemos\src\com\example\android\apis\graphics\GLES20TriangleRenderer.java
>
> for Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);
>
> which is similar.
>
> There is a lot of information out there on OpenGL projections, I suggest 
> you read some of it. 
>
> Note that:
> * near and far should both be +ve as they are distances in front of the 
> camera in the direction the camera is looking.
> * if your triangle is at 0 on the z-axis you will need to move your camera 
> position (which defaults to [0,0,0]) so you can see it.
>
>
> On Friday, September 14, 2012 9:27:35 AM UTC+1, reaktor24 wrote: 
>>
>> I have a very simple application which draws a triangle at zero on the 
>> z axis. I want an orthographics view but for the life of me this 
>> function won't work. It just shows a black screen with no triangle. 
>> How exactly do you use this function? I did the obvious thing which 
>> is: 
>>
>> Matrix.orthoM(projection,0,0,width,0,height,-1,1); 
>>
>>
>> Although seeing some peoples source code they are doing all sorts of 
>> stuff which I would of expected to be inside the orthoM method (like 
>> calling tan functions and dividing etc). So how exactly are you 
>> supposed to use this function? 
>>
>> 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

Re: [android-developers] Matrix.orthoM - How to use it

2012-09-14 Thread Harri Smått
Hi,

I'm usually doing the following (or the inverse);

float ratio = (float) width / height;
Matrix.orthoM(projection, -ratio, ratio, 1, -1, .1f, 100f);

Especially using "proper" z -projection.

--
H

On Sep 14, 2012, at 11:25 AM, Steven Bruce  wrote:
> 
> Matrix.orthoM(projection,0,0,width,0,height,-1,1);
> 
> So how exactly are you supposed to use this function?


-- 
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: Matrix.orthoM - How to use it

2012-09-14 Thread RichardC
The nice thing about  frustumM  and  orthoM is that they take the same 
parameters :)  They just produce different view transformations.

The distance parameters (near and far) are the clip planes (which you still 
have in an orthographic projection) in front of the camera position (so 
they should both be positive).  

The other parameters control the volume of the view space projected onto 
your graphics window and if you want the x,y origin in the centre of the 
screen then you need to pass in -x, +x, -y, +y (for given values of x and 
y), as your screen is not square you need to workout it's aspect ratio so 
as to not "squash" the transformation.


On Friday, September 14, 2012 9:54:43 AM UTC+1, reaktor24 wrote:
>
> Hi Richard
>  
> Thanks for your reply but I don't want to use frustumM I want to use 
> orthoM. I want a 2D projection not 3D hence the -1 to +1. I have use 
> frustumM and it works ok, I can see the triangle. What is the negative 
> aspect ratio about? I don't understand that. It should really work like the 
> old glOrtho function but I guess it doesn't which is a shame.
>  
> Steve
>
> On Friday, September 14, 2012 9:46:58 AM UTC+1, RichardC wrote:
>
>> See: 
>>
>> android-sdk\samples\android-10\ApiDemos\src\com\example\android\apis\graphics\GLES20TriangleRenderer.java
>>
>> for Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);
>>
>> which is similar.
>>
>> There is a lot of information out there on OpenGL projections, I suggest 
>> you read some of it. 
>>
>> Note that:
>> * near and far should both be +ve as they are distances in front of the 
>> camera in the direction the camera is looking.
>> * if your triangle is at 0 on the z-axis you will need to move your 
>> camera position (which defaults to [0,0,0]) so you can see it.
>>
>>
>> On Friday, September 14, 2012 9:27:35 AM UTC+1, reaktor24 wrote: 
>>>
>>> I have a very simple application which draws a triangle at zero on the 
>>> z axis. I want an orthographics view but for the life of me this 
>>> function won't work. It just shows a black screen with no triangle. 
>>> How exactly do you use this function? I did the obvious thing which 
>>> is: 
>>>
>>> Matrix.orthoM(projection,0,0,width,0,height,-1,1); 
>>>
>>>
>>> Although seeing some peoples source code they are doing all sorts of 
>>> stuff which I would of expected to be inside the orthoM method (like 
>>> calling tan functions and dividing etc). So how exactly are you 
>>> supposed to use this function? 
>>>
>>> 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

[android-developers] Re: Matrix.orthoM - How to use it

2012-09-14 Thread reaktor24
Hi
 
Thanks for your replies. So its not like the old glOrtho then? Ok, I will 
have a play with it later tonight and see how I get on. Ideally I would 
like the origin in the bottom left corner as that seems the most logical to 
me. Thanks again.
 
Steve

On Friday, September 14, 2012 10:19:45 AM UTC+1, RichardC wrote:

> The nice thing about  frustumM  and  orthoM is that they take the same 
> parameters :)  They just produce different view transformations. 
>
> The distance parameters (near and far) are the clip planes (which you 
> still have in an orthographic projection) in front of the camera position 
> (so they should both be positive).  
>
> The other parameters control the volume of the view space projected onto 
> your graphics window and if you want the x,y origin in the centre of the 
> screen then you need to pass in -x, +x, -y, +y (for given values of x and 
> y), as your screen is not square you need to workout it's aspect ratio so 
> as to not "squash" the transformation.
>
>
> On Friday, September 14, 2012 9:54:43 AM UTC+1, reaktor24 wrote: 
>>
>> Hi Richard
>>  
>> Thanks for your reply but I don't want to use frustumM I want to use 
>> orthoM. I want a 2D projection not 3D hence the -1 to +1. I have use 
>> frustumM and it works ok, I can see the triangle. What is the negative 
>> aspect ratio about? I don't understand that. It should really work like the 
>> old glOrtho function but I guess it doesn't which is a shame.
>>  
>> Steve
>>
>> On Friday, September 14, 2012 9:46:58 AM UTC+1, RichardC wrote:
>>
>>> See: 
>>>
>>> android-sdk\samples\android-10\ApiDemos\src\com\example\android\apis\graphics\GLES20TriangleRenderer.java
>>>
>>> for Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);
>>>
>>> which is similar.
>>>
>>> There is a lot of information out there on OpenGL projections, I suggest 
>>> you read some of it. 
>>>
>>> Note that:
>>> * near and far should both be +ve as they are distances in front of the 
>>> camera in the direction the camera is looking.
>>> * if your triangle is at 0 on the z-axis you will need to move your 
>>> camera position (which defaults to [0,0,0]) so you can see it.
>>>
>>>
>>> On Friday, September 14, 2012 9:27:35 AM UTC+1, reaktor24 wrote: 

 I have a very simple application which draws a triangle at zero on the 
 z axis. I want an orthographics view but for the life of me this 
 function won't work. It just shows a black screen with no triangle. 
 How exactly do you use this function? I did the obvious thing which 
 is: 

 Matrix.orthoM(projection,0,0,width,0,height,-1,1); 


 Although seeing some peoples source code they are doing all sorts of 
 stuff which I would of expected to be inside the orthoM method (like 
 calling tan functions and dividing etc). So how exactly are you 
 supposed to use this function? 

 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

[android-developers] Updating progress bar in Application while downloading file using DownloadManager

2012-09-14 Thread vinay kumar
Hi All,

I was wondering if anybody knew how to update progress Bar in the
application while attempting to download file using download manager for
android?

Please share your ideas.

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

Re: [android-developers] Updating progress bar in Application while downloading file using DownloadManager

2012-09-14 Thread ravi saini
use threading for updating the progress bar like first take the size of
file and set that value to 100 of progress bar and every time just check
how much data you got and update that value

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

2012-09-14 Thread Elvin
yes bob can handle up to 7 simultaneous connections.


On Fri, Sep 14, 2012 at 5:30 AM, bob  wrote:

> So, has anyone ever gotten an Android Bluetooth server working that can
> handle multiple clients simultaneously?
>
>
> I looked at some old posts, and it seems this was a headache for many.
>
>
>  --
> 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] Handling Expensive Operations in the UI Thread

2012-09-14 Thread Amit Mangal
hi there,

i have list fragment activity. my app is openingvery slow cause i am
loading data from list view please any body have code to load it fast.

-- 
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] Testing IAP

2012-09-14 Thread New Developer

Hi All
I'm looking at adding In App Purchases to my app, to allow for features 
to be unlocked

I have downloaded and looked through the example code  (Dungeons)

My question is testing
Am I correct in saying, that to test   you have to actually purchase the 
item and then process a refund for each item ?
If so,  will this not result in multiple debits and credits against the 
account and CC linked to the account ?


Or is there another mechanism to test that purchases work

Thanks in advance

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

[android-developers] Re: Matrix.orthoM - How to use it

2012-09-14 Thread bob
I think it is like glOrtho.  I found this on koders.com: 

  public void glOrthof(float left, float right, float bottom, float top,
float near, float far) {
Matrix.orthoM(mMatrix, mTop, left, right, bottom, top, near, far);
}



I think maybe when you use glOrtho, the depth buffer stuff is backwards. 
 You might have to change GL_LESS to GL_GREATER using glDepthFunc or 
something.

I switched one of my games to glOrtho back in the day.  IIRC, I thought it 
would be easy, and it turned out to be a root canal.




On Friday, September 14, 2012 4:25:39 AM UTC-5, reaktor24 wrote:
>
> Hi
>  
> Thanks for your replies. So its not like the old glOrtho then? Ok, I will 
> have a play with it later tonight and see how I get on. Ideally I would 
> like the origin in the bottom left corner as that seems the most logical to 
> me. Thanks again.
>  
> Steve
>
> On Friday, September 14, 2012 10:19:45 AM UTC+1, RichardC wrote:
>
>> The nice thing about  frustumM  and  orthoM is that they take the same 
>> parameters :)  They just produce different view transformations. 
>>
>> The distance parameters (near and far) are the clip planes (which you 
>> still have in an orthographic projection) in front of the camera position 
>> (so they should both be positive).  
>>
>> The other parameters control the volume of the view space projected onto 
>> your graphics window and if you want the x,y origin in the centre of the 
>> screen then you need to pass in -x, +x, -y, +y (for given values of x and 
>> y), as your screen is not square you need to workout it's aspect ratio so 
>> as to not "squash" the transformation.
>>
>>
>> On Friday, September 14, 2012 9:54:43 AM UTC+1, reaktor24 wrote: 
>>>
>>> Hi Richard
>>>  
>>> Thanks for your reply but I don't want to use frustumM I want to use 
>>> orthoM. I want a 2D projection not 3D hence the -1 to +1. I have use 
>>> frustumM and it works ok, I can see the triangle. What is the negative 
>>> aspect ratio about? I don't understand that. It should really work like the 
>>> old glOrtho function but I guess it doesn't which is a shame.
>>>  
>>> Steve
>>>
>>> On Friday, September 14, 2012 9:46:58 AM UTC+1, RichardC wrote:
>>>
 See: 

 android-sdk\samples\android-10\ApiDemos\src\com\example\android\apis\graphics\GLES20TriangleRenderer.java

 for Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);

 which is similar.

 There is a lot of information out there on OpenGL projections, 
 I suggest you read some of it. 

 Note that:
 * near and far should both be +ve as they are distances in front of the 
 camera in the direction the camera is looking.
 * if your triangle is at 0 on the z-axis you will need to move your 
 camera position (which defaults to [0,0,0]) so you can see it.


 On Friday, September 14, 2012 9:27:35 AM UTC+1, reaktor24 wrote: 
>
> I have a very simple application which draws a triangle at zero on the 
> z axis. I want an orthographics view but for the life of me this 
> function won't work. It just shows a black screen with no triangle. 
> How exactly do you use this function? I did the obvious thing which 
> is: 
>
> Matrix.orthoM(projection,0,0,width,0,height,-1,1); 
>
>
> Although seeing some peoples source code they are doing all sorts of 
> stuff which I would of expected to be inside the orthoM method (like 
> calling tan functions and dividing etc). So how exactly are you 
> supposed to use this function? 
>
> 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

[android-developers] Re: webview cookie sometimes null

2012-09-14 Thread emada.adame
it was my understanding the webview.load(url) would get the cookie, 
everything else is just to make sure the webview can accept cookies. Which 
it dose do some times and other not so much. What would you recommend? 

On Thursday, September 13, 2012 11:00:26 AM UTC-5, bob wrote:
>
> The issue is probably that the cookie is not necessarily there.  I don't 
> see anywhere in your code where you load any URL.
>
>
> I'm pretty sure this function doesn't load anything:
>
>
> public String getCookie (String url)
>
>
> It probably just looks in a cookie cache.
>
>
>
> On Thursday, September 13, 2012 10:28:57 AM UTC-5, emada.adame wrote:
>>
>> Yeah I'm still having this issue, can anyone help? any ideas? Here is my 
>> new updated code:
>>
>>  String server = settings.getString("server", "");
>>  String user = settings.getString("username", "");
>>  String passwd = settings.getString("passwd", "");
>>  webview = new WebView(this);
>>  WebSettings webSettings = webview.getSettings();
>>  webSettings.setJavaScriptEnabled(true);
>>  webview.setWebViewClient(new InsideWebViewClient());
>>  setContentView(webview);
>>  String credUrl = 
>> "http://"+server+"/services.php?sname=LoginService&isapp=true&username="+user+"&rawpassword="+passwd;
>>  //CookieSyncManager.createInstance(webview.getContext());
>>  //CookieSyncManager.getInstance();
>>  CookieManager cookieManager = CookieManager.getInstance();
>>  cookieManager.setAcceptCookie(true);
>>  webview.loadUrl(credUrl);
>>  String rawCookie = cookieManager.getCookie(server);
>>  mes(rawCookie);
>>  /*while(rawCookie == null){
>> SystemClock.sleep(1000);
>> rawCookie = cookieManager.getCookie(credUrl);
>>  }*/
>>  webview.loadUrl("http://"+server);
>>
>> basically i just took out the cookie sync manager because it wasnt really 
>> doing anything and put a while loop in "that is now commented out" that was 
>> crashing the app :/ 
>>
>> On Friday, March 23, 2012 4:05:41 PM UTC-5, emada.adame wrote:
>>>
>>> I have an app that is trying to log into a site and get the cookie then 
>>> show me the cookie in a toast but most of the time it fails to get the 
>>> cookie, is there some timeout issue here or something im hitting? 
>>>
>>> here is my code
>>>
>>> public void showPage(){
>>> try{
>>> String server = settings.getString("server", "");
>>> String user = settings.getString("username", "");
>>> String passwd = settings.getString("passwd", "");
>>> WebView webview = new WebView(this);
>>> WebSettings webSettings = webview.getSettings();
>>> webSettings.setJavaScriptEnabled(true);
>>> setContentView(webview);
>>> String credUrl = 
>>> "http://"+server+"/services.php?sname=LoginService&username="+user+"&rawpassword="+passwd;
>>> CookieSyncManager syncMgr = 
>>> CookieSyncManager.createInstance(webview.getContext());
>>> CookieSyncManager.getInstance();
>>> CookieManager cookieManager = CookieManager.getInstance();
>>> String rawCookie = cookieManager.getCookie(credUrl);
>>> mes(rawCookie);
>>> }catch(Exception e){
>>> mes("err3: "+e.toString());
>>> }
>>> }
>>>
>>

-- 
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: webview cookie sometimes null

2012-09-14 Thread bob
 

If you are calling Webview.loadUrl, *and* the URL is completely loaded, I 
would think the cookie would be there.



On Friday, September 14, 2012 9:18:08 AM UTC-5, emada.adame wrote:
>
> it was my understanding the webview.load(url) would get the cookie, 
> everything else is just to make sure the webview can accept cookies. Which 
> it dose do some times and other not so much. What would you recommend? 
>
> On Thursday, September 13, 2012 11:00:26 AM UTC-5, bob wrote:
>>
>> The issue is probably that the cookie is not necessarily there.  I don't 
>> see anywhere in your code where you load any URL.
>>
>>
>> I'm pretty sure this function doesn't load anything:
>>
>>
>> public String getCookie (String url)
>>
>>
>> It probably just looks in a cookie cache.
>>
>>
>>
>> On Thursday, September 13, 2012 10:28:57 AM UTC-5, emada.adame wrote:
>>>
>>> Yeah I'm still having this issue, can anyone help? any ideas? Here is my 
>>> new updated code:
>>>
>>>  String server = settings.getString("server", "");
>>>  String user = settings.getString("username", "");
>>>  String passwd = settings.getString("passwd", "");
>>>  webview = new WebView(this);
>>>  WebSettings webSettings = webview.getSettings();
>>>  webSettings.setJavaScriptEnabled(true);
>>>  webview.setWebViewClient(new InsideWebViewClient());
>>>  setContentView(webview);
>>>  String credUrl = 
>>> "http://"+server+"/services.php?sname=LoginService&isapp=true&username="+user+"&rawpassword="+passwd;
>>>  //CookieSyncManager.createInstance(webview.getContext());
>>>  //CookieSyncManager.getInstance();
>>>  CookieManager cookieManager = CookieManager.getInstance();
>>>  cookieManager.setAcceptCookie(true);
>>>  webview.loadUrl(credUrl);
>>>  String rawCookie = cookieManager.getCookie(server);
>>>  mes(rawCookie);
>>>  /*while(rawCookie == null){
>>> SystemClock.sleep(1000);
>>> rawCookie = cookieManager.getCookie(credUrl);
>>>  }*/
>>>  webview.loadUrl("http://"+server);
>>>
>>> basically i just took out the cookie sync manager because it wasnt 
>>> really doing anything and put a while loop in "that is now commented out" 
>>> that was crashing the app :/ 
>>>
>>> On Friday, March 23, 2012 4:05:41 PM UTC-5, emada.adame wrote:

 I have an app that is trying to log into a site and get the cookie then 
 show me the cookie in a toast but most of the time it fails to get the 
 cookie, is there some timeout issue here or something im hitting? 

 here is my code

 public void showPage(){
 try{
 String server = settings.getString("server", "");
 String user = settings.getString("username", "");
 String passwd = settings.getString("passwd", "");
 WebView webview = new WebView(this);
 WebSettings webSettings = webview.getSettings();
 webSettings.setJavaScriptEnabled(true);
 setContentView(webview);
 String credUrl = 
 "http://"+server+"/services.php?sname=LoginService&username="+user+"&rawpassword="+passwd;
 CookieSyncManager syncMgr = 
 CookieSyncManager.createInstance(webview.getContext());
 CookieSyncManager.getInstance();
 CookieManager cookieManager = CookieManager.getInstance();
 String rawCookie = cookieManager.getCookie(credUrl);
 mes(rawCookie);
 }catch(Exception e){
 mes("err3: "+e.toString());
 }
 }

>>>

-- 
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] plz assign me any application i m free now a days !!!

2012-09-14 Thread Muhammad Sahil
hi All,
 Please assign me any application to develop, i m free now a
days.


Thanks & Regards,
Sahil

-- 
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] plz assign me any application i m free now a days !!!

2012-09-14 Thread Raghav Sood
Write an app that hacks into the Google group servers and deletes messages
like this one.

Raghav Sood
Sent from my Nexus 7
On Sep 14, 2012 8:28 PM, "Muhammad Sahil" 
wrote:

> hi All,
>  Please assign me any application to develop, i m free now a
> days.
>
>
> Thanks & Regards,
> Sahil
>
> --
> 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] Build Android support library independently

2012-09-14 Thread Roman Mazur
I believe there is a way to build Android support library independently. 
But I cannot figure it out.
Currently I'm building using make in the root directory of Android 
projects. And it takes too much time... :)

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] plz assign me any application i m free now a days !!!

2012-09-14 Thread spam tha man

Make an anus-cam-app with anus-recognition and enjoy it yourself.

And
On 9/14/2012 4:56 PM, Muhammad Sahil wrote:

hi All,
 Please assign me any application to develop, i m free now 
a days.



Thanks & Regards,
Sahil
--
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] plz assign me any application i m free now a days !!!

2012-09-14 Thread Muhammad Sahil
Thanks Raghav for your suggestion

-- 
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: Build Android support library independently

2012-09-14 Thread RichardC
AOSP support groups are here:
http://source.android.com/community/index.html 

On Friday, September 14, 2012 4:03:24 PM UTC+1, Roman Mazur wrote:
>
> I believe there is a way to build Android support library independently. 
> But I cannot figure it out.
> Currently I'm building using make in the root directory of Android 
> projects. And it takes too much time... :)
>
> Thanks.
>

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

[android-developers] Re: Android USB to USB communication

2012-09-14 Thread dnk
anyone?

On Thursday, September 13, 2012 5:07:37 PM UTC-7, dnk wrote:
>
> Android supports USB Host mode via its APIs but is there a library out 
> there that takes care of the threading and communication? 
>
> Can two devices use USB to pass arbitrary data, i.e chat messages?
>
> I've seen one for USB 2 Serial but I am talking about USB-to-USB. How come 
> there is none yet? 
>
> Please do not recommend any apps that manage USB devices etc as I am only 
> interested in an open source lib that I can use for exchanging data through 
> USB with 2 Android devices.
>
> I tried Googlin' around but could not find one.
>
> Thanks!
>
> p.s I am asking because I am thinking on writing my own.
>

-- 
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: plz assign me any application i m free now a days !!!

2012-09-14 Thread bob
 

Make an Android tablet interface to Google Groups.

On Friday, September 14, 2012 9:59:28 AM UTC-5, Muhammad Sahil wrote:
>
> hi All,
>  Please assign me any application to develop, i m free now a 
> days.
>
>
> Thanks & Regards,
> Sahil
>

-- 
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] Custom View

2012-09-14 Thread Jovish P
How to create a view like this (Please find the attached image) , which
layout I want to use ?
When we click on + button i need to change the text dynamically. Can you
please share all your thought on how to do this ?



Regards,
Jovish

-- 
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] Handling Expensive Operations in the UI Thread

2012-09-14 Thread Felipe Silveira
You need to use Loaders
http://developer.android.com/guide/components/loaders.html

or, if it is the case, an AsyncTask:
http://developer.android.com/reference/android/os/AsyncTask.html

Good luck

On Fri, Sep 14, 2012 at 10:52 AM, Amit Mangal
wrote:

> hi there,
>
> i have list fragment activity. my app is openingvery slow cause i am
> loading data from list view please any body have code to load it fast.
>
>  --
> 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




-- 
Felipe Silveira
http://www.felipesilveira.com.br
-

-- 
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: Custom View

2012-09-14 Thread RichardC
What have you already tried and how does it look?

On Friday, September 14, 2012 5:05:38 PM UTC+1, Jovish P wrote:
>
> How to create a view like this (Please find the attached image) , which 
> layout I want to use ?
> When we click on + button i need to change the text dynamically. Can you 
> please share all your thought on how to do this ?
>
>  
>
> Regards, 
> Jovish
>

-- 
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: plz assign me any application i m free now a days !!!

2012-09-14 Thread nemi chhimpa
Video recording with image effect
On Sep 14, 2012 9:02 PM, "bob"  wrote:
>
> Make an Android tablet interface to Google Groups.
>
>
> On Friday, September 14, 2012 9:59:28 AM UTC-5, Muhammad Sahil wrote:
>>
>> hi All,
>>  Please assign me any application to develop, i m free now a
days.
>>
>>
>> Thanks & Regards,
>> Sahil
>
> --
> 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] Multiple ViewPagers in one activity (bug in support library?)

2012-09-14 Thread Jethro Borsje
Hi fellow devs,

I'm building an app using the v4 support library. My app has an activity 
which contains a grid of 4 ViewPagers (
http://developer.android.com/reference/android/support/v4/view/ViewPager.html) 
which in turn contain 3 fragments through which the user can swipe. My 
problem is that each of the 3 fragments inside the ViewPagers is 
instantiated exactly once instead of once per ViewPager (i.e. 3 fragment 
instances instead of 12). For example: in the screenshot bellow I would 
expect 3 instances of the TableFragment and one instance of the 
BarChartFragment but I get only one instance of the TableFragment and one 
instance of the BarChartFragment. I feel this is a bug in the support 
library, does anybody know if this is the case or might something else be 
wrong?

Best regards,
Jethro Borsje

http://www.jborsje.nl



-- 
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] plz assign me any application i m free now a days !!!

2012-09-14 Thread Lew
Muhammad Sahil wrote:

> Thanks Raghav for your suggestion


Excellent comeback. 

Your request is rather vague. First of all, in a discussion group no one 
actually 
assigns programming projects as such. The best translation you want is 
probably "suggest". People here are probably glad to suggest some ideas for 
you to try.

However, your request is rather vague. How can anyone know what to suggest 
for you without some knowledge of your background? We should know a little 
bit about you if we're to suggest anything that you'd find useful.

So in a few words, please describe your knowledge of Android application 
programming  
experience and skill level, what sorts of Android projects you've been 
working on so far, 
what interests you in Android application programming, and what you hope to 
gain from 
any suggested programming exercises.

-- 
Lew

-- 
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: Edi text default should keyboard caps

2012-09-14 Thread jagadeeshbabu
Hi All,

 

Iam working on application which should get default keyboard is caps any one
have idea please help for this how to approach

 



 

 

when pressed edit textbox button iam getting defaultly lowercase
keyboard.But Irequired exactly uppercase keyboard when pressed.

 

Please guide me in right direction

 

 

-- 
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: Edi text default should keyboard caps

2012-09-14 Thread RichardC
Try:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:capitalize
 

On Friday, September 14, 2012 7:20:58 PM UTC+1, jags wrote:
>
> Hi All,
>
>  
>
> Iam working on application which should get default keyboard is caps any 
> one have idea please help for this how to approach
>
>  
>
> 
> android:id=*"@+id/et_reg_firstname"*
>
> android:layout_width=*"350dp"*
>
> android:layout_height=*"wrap_content"*
>
> android:layout_alignLeft=*"@+id/textView6"*
>
> android:layout_below=*"@+id/textView6"*
>
> android:layout_marginTop=*"10dp"*
>
> android:background=*"@drawable/editextxml"*
>
> android:imeOptions=*"actionNext"*
>
> android:paddingLeft=*"15dp"*
>
> android:singleLine=*"true"* />
>
>  
>
>  
>
> when pressed edit textbox button iam getting defaultly lowercase 
> keyboard.But Irequired exactly uppercase keyboard when pressed.
>
>  
>
> Please guide me in right direction
>
>  
>
>  
>

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

[android-developers] Does Android OS have APIs to support VoLTE (VoIP) call application?

2012-09-14 Thread Bo
Hi :

I want to develop a VoLTE call application. 
However, I did not find any information about which android API I can use 
to develop it.

May I know if Android OS have APIs to support VoLTE (VoIP) call application?

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] Re: plz assign me any application i m free now a days !!!

2012-09-14 Thread Andrea Pietroni
Good suggestion, I wonder why Google doesn't have one.

Il giorno venerdì 14 settembre 2012 17:32:23 UTC+2, bob ha scritto:
>
> Make an Android tablet interface to Google Groups.
>

-- 
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] App Review Question

2012-09-14 Thread ez
Hi Google Android team

Our app (Expense Manager) has overall 4.6 rating. But there is a spam bad 
review on the top of review page for more than a couple of weeks now (and 
there is no way we can respond to it). This review damages the reputation 
of the app. Even if the review did represent one of the real users' review, 
why it stayed there for so long and would not rotate to other reviews?

Please help us to fix the problem. 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

Re: [android-developers] App Review Question

2012-09-14 Thread TreKing
Wrong forum. Try this: http://developer.android.com/support.html

-
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

[android-developers] Re: App Review Question

2012-09-14 Thread bob
 

*Are you talking about this review?*

**

*Loose data*

I am surprised to see so many 5 stars. I have lost data, you input expenses 
and afterwards you noticed it's no longer there. It's all a great app but 
simply you cannot trust it and what is the purpose of having an Expense 
manager if you cannot trust it? Therefore 1 star because it's not avalaibel 
to give 0 stars. I wonder who gave 5 stars if they are not missing even 1 
expense and if you have to double check each time than this is just a 
waste-of-time app.


That doesn't look like Spam.



On Friday, September 14, 2012 2:33:18 PM UTC-5, ez wrote:
>
> Hi Google Android team
>
> Our app (Expense Manager) has overall 4.6 rating. But there is a spam bad 
> review on the top of review page for more than a couple of weeks now (and 
> there is no way we can respond to it). This review damages the reputation 
> of the app. Even if the review did represent one of the real users' review, 
> why it stayed there for so long and would not rotate to other reviews?
>
> Please help us to fix the problem. Thanks in advance.
>
>
>

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

[android-developers] Re: Custom View

2012-09-14 Thread bob
 

Sounds like you want to use an ImageView and do a setOnTouchListener.



On Friday, September 14, 2012 11:05:38 AM UTC-5, Jovish P wrote:
>
> How to create a view like this (Please find the attached image) , which 
> layout I want to use ?
> When we click on + button i need to change the text dynamically. Can you 
> please share all your thought on how to do this ?
>
>  
>
> Regards, 
> Jovish
>

-- 
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: plz assign me any application i m free now a days !!!

2012-09-14 Thread Lew
The browser doesn't count? 

On Friday, September 14, 2012 12:17:49 PM UTC-7, Andrea Pietroni wrote:
>
> Good suggestion, I wonder why Google doesn't have one.
>
> Il giorno venerdì 14 settembre 2012 17:32:23 UTC+2, bob ha scritto:
>>
>> Make an Android tablet interface to Google Groups.
>>
>

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

2012-09-14 Thread bob
 

Are you talking about with an Android device as the server?


Or have you tried using a desktop as the Bluetooth server?


I have 4 connected to a desktop with no issues right now.



On Thursday, September 13, 2012 4:37:57 PM UTC-5, Kristopher Micinski wrote:
>
> only up to two or three, never more.. I'd investigate other avenues.. 
>
> kris 
>
> On Thu, Sep 13, 2012 at 5:30 PM, bob > 
> wrote: 
> > So, has anyone ever gotten an Android Bluetooth server working that can 
> > handle multiple clients simultaneously? 
> > 
> > 
> > I looked at some old posts, and it seems this was a headache for many. 
> > 
> > 
> > -- 
> > 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: App Review Question

2012-09-14 Thread Lew
Don't you know that to an app developer, any negative review is spam by 
definition, and only five-star reviews are valid?

-- 
Lew

bob wrote:
>
> *Are you talking about this review?*
>
> *Loose data*
>
> I am surprised to see so many 5 stars. I have lost data, you input 
> expenses and afterwards you noticed it's no longer there. It's all a great 
> app but simply you cannot trust it and what is the purpose of having an 
> Expense manager if you cannot trust it? Therefore 1 star because it's not 
> avalaibel to give 0 stars. I wonder who gave 5 stars if they are not 
> missing even 1 expense and if you have to double check each time than this 
> is just a waste-of-time app.
>
> That doesn't look like Spam.
>
Lower-case "s" to avoid trademark confusion.

ez wrote:
>
> Hi Google Android team


That's not us.
 

> Our app (Expense Manager) has overall 4.6 rating. But there is a spam bad 
> review on the top of review page for more than a couple of weeks now (and 
> there is no way we can respond to it). This review damages the reputation 
> of the app. Even if the review did represent one of the real users' review, 
> why it stayed there for so long and would not rotate to other reviews?
>
> Please help us to fix the problem. Thanks in advance.
>

No, we won't.

-- 
Lew
 
 

-- 
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: App Review Question

2012-09-14 Thread ez
Even if it's not a spam review, this review posted on Aug 28, 2012 and 
stayed on the No 1 review until today. There are other reviews good or bad. 
Why don't you show those reviews too. Why your search engine keeps 
displaying something against the developers who work very hard to make 
Android a good platform. We are looking for a fair review system that are 
good for both users and developers.

Thanks

On Friday, September 14, 2012 3:05:43 PM UTC-5, Lew wrote:
>
> Don't you know that to an app developer, any negative review is spam by 
> definition, and only five-star reviews are valid?
>
> -- 
> Lew
>
> bob wrote:
>>
>> *Are you talking about this review?*
>>
>> *Loose data*
>>
>> I am surprised to see so many 5 stars. I have lost data, you input 
>> expenses and afterwards you noticed it's no longer there. It's all a great 
>> app but simply you cannot trust it and what is the purpose of having an 
>> Expense manager if you cannot trust it? Therefore 1 star because it's not 
>> avalaibel to give 0 stars. I wonder who gave 5 stars if they are not 
>> missing even 1 expense and if you have to double check each time than this 
>> is just a waste-of-time app.
>>
>> That doesn't look like Spam.
>>
> Lower-case "s" to avoid trademark confusion.
>
> ez wrote:
>>
>> Hi Google Android team
>
>
> That's not us.
>  
>
>> Our app (Expense Manager) has overall 4.6 rating. But there is a spam bad 
>> review on the top of review page for more than a couple of weeks now (and 
>> there is no way we can respond to it). This review damages the reputation 
>> of the app. Even if the review did represent one of the real users' review, 
>> why it stayed there for so long and would not rotate to other reviews?
>>
>> Please help us to fix the problem. Thanks in advance.
>>
>
> No, we won't.
>
> -- 
> Lew
>  
>  
>

-- 
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: App Review Question

2012-09-14 Thread Lew


On Friday, September 14, 2012 1:41:05 PM UTC-7, ez wrote:
>
> Even if it's not a spam review, this review posted on Aug 28, 2012 and 
> stayed on the No 1 review until today. There are other reviews good or bad. 
> Why don't you show those reviews too. Why your search engine keeps 
> displaying something against the developers who work very hard to make 
> Android a good platform. We are looking for a fair review system that are 
> good for both users and developers.
>
>>
>>
Who is "you"? Not anyone here. This is not Google or Android. This is a 
public newsgroup 
for developers of Android apps. Why are you attacking us?

Go complain to the people responsible, not here. Stop haranguing your 
fellow app developers.

-- 
Lew
 

-- 
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: plz assign me any application i m free now a days !!!

2012-09-14 Thread Jim Graham

On Fri, Sep 14, 2012 at 12:17:49PM -0700, Andrea Pietroni wrote:
> > Make an Android tablet interface to Google Groups.
> Good suggestion, I wonder why Google doesn't have one.

Well, maybe google doesn't, specifically, but Android does.  Here are a
few examples:

   1) K-9 Mail
   2) Gmail
   3) Mail

You can list more by searching (in the Market) on "e-mail".

Later,
   --jim

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

"sigh, once upon a time T-1 was fast"
   --seen in alt.sysadmin.net-abuse.email

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


[android-developers] Des Serialize file in android

2012-09-14 Thread Carlos Calvo


I have a fairly rare issue.

I have a fext file to parse and generate a model android data (there are 
three classes) and serialized to file. This is done in android application 
project I have.

With myself from my mobile application deserialized the file correctly.

Instead try to do this in another mobile with the same apk file and it 
fails.

Any idea of what is the reason behind this???

Regards and any ideas I can be useful .

-- 
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 App Previews (Honeycomb and above)

2012-09-14 Thread Artur Amaral
Good Afternoon,

I currently work as a project manager for a mobile development group at a 
major financial institution. My question is regarding the app preview when 
the "recent apps" button is pressed in android 3.0 and above. My question 
is an important one and I have yet to see it addressed anywhere in any 
developer blogs: Is there a way to display a default image or something 
other than the final screenshot in the app preview window?

This question is important because in the case of certain applications, for 
example our mobile banking app, confidential and secure information might 
be included in that final screen when a user simply presses the home key or 
exits the app without logging out.

Ideally I would like to include code to insert a default image into the app 
preview drawer so that the customer could still use the recent apps button 
to return to the app without revealing any secure information. If anyone 
has any input it would be greatly 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

[android-developers] Multiplayer Multiple Choice Android

2012-09-14 Thread Abedalqader Omar
Dear All, 
I plann to create application is a real time multiplayer multiple choice 
game. It will have a pool of approximately 600 questions that will be 
randomly selected for every game. Games will start on a rolling basis, 
consisting of 10 players at a time who must answer 20 questions per game, 
for quetion and logic for game it's ready , now my main part multplayer i 
need help for it , what i need exactly:

1. Player has to choose a room from the lobbay to enter a game.
2. The player waits until thier selected room reaches 10 people. at that 
point, the game will start.
3. within the game, each player's score update it in real game.
4. you can click name of player to take you to that player's stats page.

i need this in android but i don't now how i can stat and what the tool i 
need for it , as i menstion up the logic for application ready but i need 
multplayer part.

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] Combine two android apps

2012-09-14 Thread addy12
Hi Experts,
 
I have developed two Android apps. I need to combine both the 
apps into a single Apk file in such a way that the output of the first app 
should be given as the input to the second app. Any pointers on how to 
achieve this??
 
Regards,
Addy

-- 
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: Build error - sun/security/x509/X500Name

2012-09-14 Thread ajml
Hey 
I am getting the same error. Could you please talk in detail about what 
exactly you did to solve the problem? I am bit new and not able to figure 
out what you said here.

Aj

On Friday, February 25, 2011 2:12:39 PM UTC-5, Ofguard wrote:
>
> Solved. make sure the default java on the system in Sun's. 
> Specifically, make sure keytool being used is from the Sun java (mine 
> had /usr/bin/keytool pointing to another java keytool) 
>
> On Feb 24, 10:38 am, Ofguard  wrote: 
> > Using Eclipse 3.6, Sun java jdk1.6.0_24, ADT plug-in installed. 
> > Trying  to run the 'Hello World' program ... getting: 
> > 
> > Errors occurred during the build. 
> > Errors running builder 'Android Package Builder' on project 
> > 'HelloAndroid'. 
> > sun/security/x509/X500Name 
> > 
> > Have seen multiple postings over thins issue ... non were answered. 
> > Please advise.

-- 
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 do I set up the project in the Android site's “Managing the Activity Lifecycle” training exercise?

2012-09-14 Thread AJ
^Like. XD

On Saturday, June 30, 2012 11:01:54 AM UTC-7, Nobu Games wrote:
>
> On Saturday, June 30, 2012 12:46:23 PM UTC-5, TreKing wrote:
>>
>>
>> Again, if you explain the actual errors you are getting, you'll likely 
>> get more help. Asking for "step-by-step" anything usually falls on deaf 
>> ears.
>>
>>
> Unless I am stupid enough to respond :-D
>
>1. Unzip that file into your eclipse workspace folder or somewhere else
>2. Open Eclipse
>3. Click File -> Import -> General -> Import existing Projects into 
>workspace
>4. Select root directory -> Browse -> Find the directory where you 
>unzipped the project
>5. The "Projects" view should update and show that unzipped project. 
>Click the check box left to its name
>6. Click Finish
>
>
>

-- 
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] Exporting text to pdf format?

2012-09-14 Thread Arathon
I intend on creating an android application where the user inputs text into 
a text box, and captures a photo.
Is it possible to save and export this as a pdf, where the text will appear 
at the top of the pdf page and the image appears below it(or on the next 
page).

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] Using the android logo in an application

2012-09-14 Thread Arathon
When creating an app, are we able to use the Android logo and the Android 
name?
What about modifications to the logo and name??

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] capture video frames from mobile to PC

2012-09-14 Thread AMITCH
Hi Everyone,
I am a MFC Windows Application developer. I what to develop an application 
on windows by which user can view a video which is running on his android 
mobile on windows PC simultanously, while mobile is connected by USB cable.
I surf net lot of times but there is no relevent content found. I just want 
about is there any technique or SDK available by which my application 
received video frames at same when they displayed on mobile screen.
Please help me.
 
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] Explain the goemetrial concept behind this, please!!

2012-09-14 Thread Andrea Pietroni
Negative scale numbers mirror the image. It looks like it's drawing the picture 
(half scaled) 4 times:

- first time top left
- then at its right and mirroring accordingly
- etc

-- 
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] Tabs fragments and split view

2012-09-14 Thread Balky
Hi, 

I know it says clearly "if you are new in Android, ask Stack owerflow" but, 
when you do that you get negative votes there and lot of smart heads is 
giving you hard time :))

Not always, but. 

What I need to do is get view that looks closest to Google Play app when 
open on certain application, with a minor difference that it has to have 
tabs.

so First "part" should be slider that slides (like images slide on G.Play), 
and lower part should be scrollable list.

Now, I've read ton's of examples, I've managed to create single Activity 
with 2 fragments in frames, but I can't get it to work within Tabs.

I'd love to stick to fragments, because first item "List Item 1" actually 
reloads similar layout under same tab. 

Can anyone give me some advise as I struggled like this:
- I created tabs that are generated through class that implements 
Actionbar.tabs - can't inflate it
- I've implemented them through SherlockFragmentActivity implements 
ActionBar.TabListener, ViewPager.OnPageChangeListener - can't get listview 
to be inflated
- I've tried using TabActivity examples - that is depricated

Can anyone give me directions or working example how to handle tabs, where 
each tab handle some activity.

Yes, I need custom tabs with icons attached, and some text under icon. 

Closest to what I need is asked here, but I do not understand, are these 
tabs at all or image buttons?

http://stackoverflow.com/questions/12372435/how-to-create-tabs-like-twitter-or-instagram-to-work-on-all-android-platforms

Tnx for any advise, help, suggestion.




-- 
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] I can not see the stats on my console

2012-09-14 Thread boali dashtestani
hi I am trying to see the sales report on my Google account,and I am unable 
to do it,for some reason it is not showing up any more.
thanks any ideas?
thanks in advance

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

[android-developers] Re: Merging two activities that is SMS and LBS

2012-09-14 Thread ARNAB PAL
can you please share your code with me. my email id is arnabpal...@gmail.com

On Wednesday, 21 December 2011 23:23:11 UTC+5:30, Mehdi Rizvi wrote:
>
> Actually im merging two different activities that is SMS and LBS.. 
>
> My first Activity is getting latitude and Longitude of a current 
> position of that device 
> My SMS activity should sent that first activity location through sms 
> to the desire number.. in this way we can track the user at any stage 
> through sms 
> im working on a single layout and not having errors at log-cat!! But 
> couldn't achieve my desire result.. that is sent the location through 
> sms to the desire server

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

[android-developers] How to get total number of application installed in a android phone???

2012-09-14 Thread Md. Naushad Alam
I have two problem???
 
1. If there are 20 app install in a android device then how i get this 
number. Is there any function or method?
2. How much space is used by an application??? How i get this ?? Is there 
any function or method???

Thanks in advanced
Naushad

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

[android-developers] How app work in sqllite

2012-09-14 Thread Jack
how to use sqlLite in android???

-- 
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] Android App Previews (Honeycomb and above)

2012-09-14 Thread TreKing
On Thu, Sep 13, 2012 at 2:04 PM, Artur Amaral  wrote:

> My question is an important one and I have yet to see it addressed
> anywhere in any developer blogs: Is there a way to display a default image
> or something other than the final screenshot in the app preview window?


https://groups.google.com/forum/?fromgroups=#!topic/android-developers/YDZfmh0Duiw

-
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

Re: [android-developers] Using the android logo in an application

2012-09-14 Thread TreKing
On Thu, Sep 13, 2012 at 5:30 AM, Arathon  wrote:

> When creating an app, are we able to use the Android logo and the Android
> name?
> What about modifications to the logo and name??
>

http://developer.android.com/distribute/googleplay/promote/brand.html

-
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

[android-developers] Re: Updating progress bar in Application while downloading file using DownloadManager

2012-09-14 Thread bob
 

Sounds like a job for an AsyncTask.

On Friday, September 14, 2012 4:56:15 AM UTC-5, Vinay Kumar wrote:
>
> Hi All,
>
> I was wondering if anybody knew how to update progress Bar in the 
> application while attempting to download file using download manager for 
> android?
>
> Please share your ideas.
>
> 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

Re: [android-developers] Re: plz assign me any application i m free now a days !!!

2012-09-14 Thread Lew
Spooky wrote:

>
> Pietroni wrote: 
> > > Make an Android tablet interface to Google Groups. 
> > Good suggestion, I wonder why Google doesn't have one. 
>
> Well, maybe google doesn't, specifically, but Android does.  Here are a 
> few examples: 
>
>1) K-9 Mail 
>2) Gmail 
>3) Mail 
>

4) the browser
 

> You can list more by searching (in the Market) on "e-mail". 
>
 

-- 
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: Rotate image around it's centre problem with matrix rotation

2012-09-14 Thread bob
 

Yes, I ran it.  It works fine if you make the change I told you to make:


*change this:*

*
*

*Y = initialY;*

*
*

*to this:*

*
*

* Y = (int) (screenH /2) - (arrowH / 2) ;*

On Thursday, September 13, 2012 11:57:24 PM UTC-5, Haris wrote:
>
> Hai bob, have you run my code..?
>
> On Monday, 10 September 2012 18:48:32 UTC+5:30, Haris wrote:
>>
>> Hai all
>>
>>  I am trying an application like rotating image with motion sensorMy 
>> problem is that the image does not rotate about centre properlyAnd my 
>> angle range is 0 to 90 and 0 to -90..
>> And below is my code.
>>
>>   public void onDraw(Canvas canvas) {
>> super.onDraw(canvas);
>>  Bitmap arrow = 
>> BitmapFactory.decodeResource(getResources(),R.drawable.arrow);
>>  int arrowW = arrow.getWidth();
>>  int arrowH = arrow.getHeight();
>>  float scaleWidth = 1;
>>  float scaleHeight = 1;
>>  int centrex = arrowW/2;
>>  int centrey = arrowH/2;
>>  int X=108;
>>  int Y=100;
>>  int angle=0;
>>
>>Matrix matrix = new Matrix();
>>matrix.postScale(scaleWidth, scaleHeight);
>>
>>matrix.postRotate(angle, X+centrex , Y+centrey );
>>Bitmap resizedBitmap = Bitmap.createBitmap(arrow, 0, 0, 
>> arrow.getWidth(), arrow.getHeight(), matrix, true);
>>   canvas.save();
>>   canvas.drawBitmap(resizedBitmap, X, Y, null);
>>   invalidate();
>>  }
>>
>> I am getting the angle values from onCreate method.Using orientation 
>> sensor(roll values)..
>> But When I rotate the screen my  image is  rotating but not exactly 
>> around the image centre.
>>
>> 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] Multiplayer Multiple Choice Android

2012-09-14 Thread TreKing
On Thu, Sep 13, 2012 at 4:19 AM, Abedalqader Omar  wrote:

> what i need exactly:
>
> 1. Player has to choose a room from the lobbay to enter a game.
> 2. The player waits until thier selected room reaches 10 people. at that
> point, the game will start.
> 3. within the game, each player's score update it in real game.
> 4. you can click name of player to take you to that player's stats page.
>
> i need this in android but i don't now how i can stat and what the tool i
> need for it
>

None of this is specific to Android in any way. If you need help with an
Android-specific problem, please ask an Android-specific question.

-
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

Re: [android-developers] Combine two android apps

2012-09-14 Thread TreKing
On Thu, Sep 13, 2012 at 4:00 PM, addy12  wrote:

> I need to combine both the apps into a single Apk file in such a way that
> the output of the first app should be given as the input to the second app.


That doesn't really make sense. Can you clarify?

-
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

Re: [android-developers] Exporting text to pdf format?

2012-09-14 Thread TreKing
On Thu, Sep 13, 2012 at 5:02 AM, Arathon  wrote:

> Is it possible to save and export this as a pdf, where the text will
> appear at the top of the pdf page and the image appears below it(or on the
> next page).


Is it possible? Probably.

-
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

Re: [android-developers] How to get total number of application installed in a android phone???

2012-09-14 Thread TreKing
On Thu, Sep 13, 2012 at 6:40 AM, Md. Naushad Alam wrote:

> 1. If there are 20 app install in a android device then how i get this
> number. Is there any function or method?
> 2. How much space is used by an application??? How i get this ?? Is there
> any function or method???
>

Start here:
http://developer.android.com/reference/android/content/pm/PackageManager.html
.

P.S. - I think the "?" key on your keyboard is broken.

-
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

Re: [android-developers] I can not see the stats on my console

2012-09-14 Thread TreKing
On Wed, Sep 12, 2012 at 8:27 PM, boali dashtestani  wrote:

> hi I am trying to see the sales report on my Google account,and I am
> unable to do it,for some reason it is not showing up any more.
> thanks any ideas?
>

Direct your question to the correct forum:
http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=136601

-
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

Re: [android-developers] How app work in sqllite

2012-09-14 Thread TreKing
On Thu, Sep 13, 2012 at 7:06 AM, Jack  wrote:

> how to use sqlLite in android???


How to read the documentation???

-
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

Re: [android-developers] eclipse.exe has stop working

2012-09-14 Thread TreKing
On Fri, Sep 14, 2012 at 4:26 PM, laxman k  wrote:

> hi...frds


WTF is a "frds"?


> when i am open eclipse it show "eclipse.exe has stop working "


I'm sorry to hear that.


> how this problem slove..


What is a "slove"? If you need help with your broken Eclipse, try a group
or forum dedicated to Eclipse. This has nothing to do with Android
specifically.


> plz  help me...


Please learn to spell.

it is urgent
>

No, it's not.

-
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

[android-developers] Re: Combine two android apps

2012-09-14 Thread bob
 

Sounds like you will have two Activity classes.  Then you will call 
startActivity to start the second one.  And, you will pass the output of 
the first one as an "extra" to the second activity.




On Thursday, September 13, 2012 4:00:35 PM UTC-5, addy12 wrote:
>
> Hi Experts,
>  
> I have developed two Android apps. I need to combine both the 
> apps into a single Apk file in such a way that the output of the first app 
> should be given as the input to the second app. Any pointers on how to 
> achieve this??
>  
> Regards,
> Addy
>

-- 
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 Google Maps api MapActivity panning causes program to act irratic

2012-09-14 Thread TheRring
I followed the developers MapView tutorial here: 
https://developers.google.com/maps/documentation/android/hello-mapview

The map works till i try to pan, the app starts clicking things i never 
clicked, pans too far(into ocean or another country) and when i exit, the 
touch function of my Android Phone starts ghost clicking things. Help 
Please!

-- 
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: Using X509 certificate in android application

2012-09-14 Thread Piyush Gupta
Hi all, 

I want to make a install a client certificate on my device which will be 
used to authenticate my device's id to a HTTP(not HTTPS) server. 

I have a valid client certificate which I can install on my device manually 
but cannot detect the certificate .

Please help me in verifying the presence of certificate on my non rooted 
device. 


Regards
Piyush

On Tuesday, August 28, 2012 7:36:17 PM UTC+5:30, android_newbie wrote:
>
> I am developing an android application that uses a public key certificate 
> to sign messages sent to the server. When the user logs in to the app, he 
> receives a x509 certificate from the server. Now, when he wants to send 
> messages to the server, he has to sign the message using the certificate 
> public key and send it to the server along with the message. I am new to 
> security in android and I don't know how to go about this. These are some 
> of the questions I have:
>
>1. 
>
>How can i securely store the certificate in the phone so that my app 
>can use it to sign messages sent to the server?
>2. 
>
>I am also planning to do key rotation once in some time. So, the 
>server will send the updated certificate to the user and my app has to 
>update the certificate stored in the phone.
>
> If you can point me to a tutorial or any issues i need to carefully handle 
> , it will be really helpful. 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] how to caculate all cpu useage in logcat ANR info?

2012-09-14 Thread david
Hi All,
 
now i meet a ANR error. i find the cpu usage info in loacat totaly big than 
100%,so i cofused, wheo can guide me on this issue? or provide some docment 
or link?
thanks a lot!
 
david

-- 
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.0 WebView With Certificates Problem

2012-09-14 Thread Piyush Gupta

Hi deepam

I am also facing similar issues. IF you have found any solution then please 
post it here .


On Wednesday, August 22, 2012 7:29:09 PM UTC+5:30, deepam trivedi wrote:
>
> Hi, Im trying to use a web view to load a https url that requires ssl 
> authentication.
> I can get my certificates from the keystore but so far i have had no luck 
> with loading the url in a webview and passing it the certificate, I simply 
> do not know how to make the webview use/referance the certificate 
> connecting to the url.
>
> the reason for this is, im trying to load a secure sharepoint list and i 
> want to edit that list once it is loaded. but the server specifically 
> requires the certificate for authentication.
>
> if anyone can help me with this i would be very grateful.
>

-- 
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] Eclipse error using numberpassword inputtype

2012-09-14 Thread Dazed Dev
Hi! I want to use numberpassword type but eclipse is returning an error 
"String types not allowed (at 'inputType' with value 'numberpassword')".

What is the reason for this and how do I resolve it? 

My platform target in the Graphical Layout and the build is 4.1.

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] Protocall erros

2012-09-14 Thread KC Raju Vysyaraju
Hi all,

may i know the reason for following Exception??
*
*
* java.io.IOException: Error connecting...java.net.MalformedURLException:
Unknown protocol: market*
*at com.gameloft.android.ANMP.GloftWBHM.Game.GetHttpConnection(Unknown
Source)*
*at com.gameloft.android.ANMP.GloftWBHM.Game.openBrowser(Unknown Source)
*
*at
com.gameloft.android.ANMP.GloftWBHM.GameRenderer.nativeRender(Native Method)
*
*at com.gameloft.android.ANMP.GloftWBHM.GameRenderer.e(Unknown Source)*
*at
com.gameloft.android.ANMP.GloftWBHM.GLSurfaceView$GLThread.i(Unknown Source)
*
*at
com.gameloft.android.ANMP.GloftWBHM.GLSurfaceView$GLThread.run(Unknown
Source)*

-- 

*KC Raju*

-- 
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: Video (VideoView) flickering and/or doesn't display on ICS (but works fine on Android <= 2.x)

2012-09-14 Thread Spirit
Hey Mathias,

I am facing the similar issue on my Nexus s running ICS on it. Could you 
find out the exact reason behind this behavior?
If yes can you please share it with me?

Thanks in advance,
Spirit 

On Monday, May 7, 2012 12:04:17 PM UTC+5:30, Mathias Lin wrote:
>
> I have an app with a VideoView, which works fine on all Android devices up 
> to 2.x (Gingerbread), but has problems with devices running ICS.
>
> On some devices, the videos don't play, on other devices the video doesn't 
> play when rotating the device. Instead, the screen starts flickering.
> (tested on: SGS2, HTC Desire, LG L7, Ainovo Paladium tablet, all running 
> 4.0.x)
>
> I've already tried changing the manifest to 
> android:hardwareAccelerated="false" and also set the VideoView layer type 
> to mVideoView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
>
> The code itself is very basic and just using the standard video view and 
> media controller:
>
> setContentView(R.layout.act_video_player);
> mVideoView = (VideoView) findViewById(R.id.vw_player);
> mVideoView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
> Display display = ((WindowManager) 
> getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
> MediaController mc = new MediaController(this);
> mVideoView.setMediaController(mc);
> Uri uri = Uri.parse(mVideoURI);
> mVideoView.setVideoURI(uri);
> mVideoView.requestFocus();
>
>
> and the manifest:
>
>android:minSdkVersion="7"
>   android:targetSdkVersion="15"/>
>
>  android:largeScreens="true"
> android:normalScreens="true"
> android:smallScreens="false"
> android:resizeable="true"
> android:anyDensity="true"/>
>
>  ...
> android:hardwareAccelerated="false"/>
>
>
> Below is the complete log, of which I think the following lines are 
> relevant:
>
> W/QCvdec ( 2751): get_config: unknown param 117440527
> I/OMXCodec( 2751): [OMX.qcom.7x30.video.decoder.mpeg4] video dimensions 
> are 960 x 560
> W/QCvdec ( 2751): get_extension_index: Error, Not implemented
> E/OMXNodeInstance( 2751): OMX_GetExtensionIndex failed
>
> Anybody else having experienced issues with video playback on ICS?
>
> Complete log here:
>
> D/QCvdec ( 2751): VDEC Open with new H 560 and W 960
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_get_parameter 675aec, 
> 41804b60 , 33554433
>
> D/QCvdec ( 2751): portDefn->nBufferSize 806400 m_height 560 m_width 960
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_set_parameter 675aec, 
> 41804b60 , 33554433
>
> I/OMXCodec( 2751): [OMX.qcom.7x30.video.decoder.mpeg4] Enable frame by 
> frame mode
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_set_parameter 675aec, 
> 41804c6c , 2130706434
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_get_parameter 675aec, 
> 41804ba8 , 33554433
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_set_parameter 675aec, 
> 41804ba8 , 33554433
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_get_parameter 675aec, 
> 41804ba8 , 33554433
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_get_parameter 675aec, 
> 41804b1c , 33554433
>
> D/QCvdec ( 2751): portDefn->nBufferSize 806400 m_height 560 m_width 960
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_get_config 675aec
>
> W/QCvdec ( 2751): get_config: unknown param 117440527
>
> I/OMXCodec( 2751): [OMX.qcom.7x30.video.decoder.mpeg4] video dimensions 
> are 960 x 560
>
> W/QCvdec ( 2751): get_extension_index: Error, Not implemented
>
> E/OMXNodeInstance( 2751): OMX_GetExtensionIndex failed
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_get_state 675aec
>
> I/QC_CORE ( 2751): OMXCORE: qc_omx_component_deinit 675aec
>
> I/QC_CORE ( 2751): Calling FreeHandle in state 1 
>
> E/OMXCodec( 2751): Attempting to allocate OMX node 
> 'OMX.qcom.video.decoder.mpeg4'
>
> E/OMXCodec( 2751): Attempting to allocate OMX node 'OMX.TI.Video.Decoder'
>
> E/OMXCodec( 2751): Attempting to allocate OMX node 'OMX.SEC.MPEG4.Decoder'
>
> E/OMXCodec( 2751): Attempting to allocate OMX node 
> 'OMX.google.mpeg4.decoder'
>
> E/OMXCodec( 2751): Successfully allocated OMX node 
> 'OMX.google.mpeg4.decoder'
>
> E/OMXCodec( 2751): [OMX.google.mpeg4.decoder] Video O/P 
> format.eColorFormat 0x41804bf8
>
> I/OMXCodec( 2751): [OMX.google.mpeg4.decoder] Enable frame by frame mode
>
> W/OMXCodec( 2751): Failed to set frame packing format on component
>
> I/OMXCodec( 2751): [OMX.google.mpeg4.decoder] video dimensions are 352 x 
> 288
>
> I/OMXCodec( 2751): [OMX.google.mpeg4.decoder] Crop rect is 352 x 288 @ (0, 
> 0)
>
> E/OMXCodec( 2751): Attempting to allocate OMX node 'OMX.TI.AAC.decode'
>
> E/OMXCodec( 2751): Attempting to allocate OMX node 'OMX.google.aac.decoder'
>
> E/OMXCodec( 2751): Successfully allocated OMX node 'OMX.google.aac.decoder'
>
> D/MediaPlayer( 6712): getMetadata
>
> I/OMXCodec( 2751): [OMX.google.mpeg4.decoder] video dimensions are 960 x 
> 560
>
> I/OMXCodec( 2751): [OMX.google.mpeg4.decoder] Crop rect is 960 x 560 @ (0, 
> 0)
>
> I/OMXCodec( 2751): [OMX.google.mpeg4.decoder] video dimensions are 960 x 
> 560
>
> I/OMXCodec( 2751): [OMX.go

[android-developers] Re: Accelerometer not working when screen turns off

2012-09-14 Thread Detroit Tea

Partial wake lock doesn't work for me either.  

SCREEN_DIM_WAKE_LOCK works. I'm using a Cliq XT running CM7.

On Wednesday, August 25, 2010 3:38:25 AM UTC-7, Furiaceca wrote:
>
> Hello, 
> I tried few days ago with my HTC Desire and the official Froyo 
> release ... but when the screen is off the sensor never provide any 
> data: I use Partial Wake lock but this doesn't work. 
> Have you success by using Partial Wake lock? Which smartphone are you 
> using? 
>
> Thanks a lot 
> Carlo 
>
> On 16 Lug, 17:06, Bret Foreman  wrote: 
> > My application will run extensively in partial wakelock mode and I'm 
> > very curious to see what standby power consumption consequences that 
> > has for various popular phones. Maybe we should start a thread just 
> > for that purpose where people can post their observations of battery 
> > life in this mode for various phones.

-- 
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: Access denied error while trying to install new API

2012-09-14 Thread Harry Alffa
I was logged in as the administrator, still had the same problems of 
"access denied".
I'm amazed that while logged on as admin, with no other user accounts 
logged on, right-clicking on "SDK Manager.exe" and running as Administrator 
makes a difference, but it does!
Bugger me!
I'm guessing this is a Windows 7 problem? Or is it a SDK setup problem?

On Tuesday, 3 January 2012 20:15:06 UTC, Uday (Dave) wrote:
>
> Right click on the sdkmanager.exe file & select the option 'Run as 
> Administrator'. Your problem is solved. 
>
> -Dave 
>
> On Dec 30 2011, 11:09 pm, assefa  wrote: 
> > Hi, 
> > 
> >  Not sure if this thread is still relevant but if it is, I had the 
> > same issue on windows and I was able to solve it by running the 
> > Android SDK Manager as Administrator. 
> > 
> > regards, 
> > 
> > On Dec 21, 5:15 am, Anil Jagtap  wrote: 
> > 
> > 
> > 
> > > This is just an try to figure out what is going on. 
> > > It looks like you are installing on Windows and the file which is 
> > > giving problem is for Linux. 
> > > On Linux I would have checked permissions for all the folder tree for 
> > > such an error. Have no slightest idea about file permissions on 
> > > Windows, can you check permissions on folders? 
> > > Cheers 
> > > -- 
> > > anil jagtap 
> > > Android Application Developer 
> > 
> > > On Dec 14, 4:26 pm, "Uday (Dave)"  wrote: 
> > 
> > > > Hi, I have installed the android sdk 16 on my Windows7 machine I 
> have 
> > > > installed the Android2.1 API initially without any glitch. But then 
> > > > again when I try to install the other APIs using the SDK manager, it 
> > > > gives me: 
> > 
> > > > Downloading SDK Platform Android 2.3.3, API 10, revision 2 
> > 
> > > > File not found: C:\Program Files (x86)\Android\android-sdk\temp 
> > > > \android-2.3.3_r02-linux.zip (Access is denied) 
> > 
> > > > Downloading Samples for SDK API 10, revision 1 
> > 
> > > > File not found: C:\Program Files (x86)\Android\android-sdk\temp 
> > > > \samples-2.3.3_r01-linux.zip (Access is denied) 
> > 
> > > > Skipping 'Google APIs by Google Inc., Android API 10, revision 2'; 
> it 
> > > > depends on 'SDK Platform Android 2.3.3, API 10, revision 2' which 
> was 
> > > > not installed. 
> > 
> > > > Done. Nothing was installed 
> > 
> > > > Thanks, 
> > 
> > > > Dave- Hide quoted text - 
> > 
> > - Show quoted text -

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

[android-developers] Using APKExpansionPolicy

2012-09-14 Thread Etwas
Hi!

I have ported free game app using marmalade. My task is to download APK 
Expansion Files. By some reasons I cant use *Downloader Lybrary*, because 
downloading has been written and all what I need is to get link to the APK 
Expansion files. Page 
http://developer.android.com/guide/google/play/expansion-files.html#ExpansionPolicy
 doesnt 
explane how to use *APKExpanionPolicy*. Can someone explane me or show 
example (which would be better) how to use this class, how to send request 
to *Google Play Market* and how to get and process respond using this class?
Any help would be great...

-- 
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: Completely disable Soft Keyboard from EditText

2012-09-14 Thread Favas
**Try this one, works fine for me:**

public class CustomEdittext extends EditText {

Boolean mIsTextEditor=true;
public CustomEdittext(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
}

@Override
public boolean onCheckIsTextEditor() {
// TODO Auto-generated method stub
return mIsTextEditor;
}


@Override
public boolean onTouchEvent(MotionEvent event) {
// TODO Auto-generated method stub
mIsTextEditor=false;
Boolean mOnTouchEvent=super.onTouchEvent(event);
mIsTextEditor=true; 
return mOnTouchEvent;
} }




Note: You nee to add `   
 
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
`
on your activity or else keyboard will popup at first time.

On Tuesday, February 15, 2011 1:34:26 PM UTC+5:30, kahsa wrote:
>
> I used TextView insted of EditText with 
> - Focasable in touch mode: true 
> - Style: @android:style/Widget.EditText, which is default EditText 
> style, via res/values/mystyles.xml 
>
> It looks like EditText but NO soft keyboards opened. 
> However when set Input type to the TextView, soft keyboard is shown. 
>
> hope this helps 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] Re: GPS_EVENT_SATELLITE_STATUS called alot

2012-09-14 Thread dilipvrk
According to the documentation ( 
http://developer.android.com/reference/android/location/GpsStatus.html#GPS_EVENT_SATELLITE_STATUS
 ) 
this event is sent periodically.

On Thursday, November 5, 2009 12:52:19 AM UTC+5:30, WoodManEXP wrote:
>
> Has anyone noticed that onGpsStatusChanged for event 
> GPS_EVENT_SATELLITE_STATUS is called alot? As far as I can tell it 
> seems to be called continously. Is that expected? 
>
> 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] Android ICS and OpenGl ES 2.0 issue

2012-09-14 Thread HelectronSoft AppsandMore
 i develop live wallpapers using Opengl ES 2.0 engine. My wallapapers run 
smooth on 2.x Android Devices , but in 4.03 i see some strange things. on 
1st create everything goes fine , but if i change orientation or on off 
screen , opengl goes out of memmory (1285 error)

I noticed something weird

in preview mode , everything goes fine when i change orientation , and turn 
off and on screen , because glWallpaperService.glEngine.onsurfacedestroyed 
is triggered! in normal mode , this does'nt happen! even if i turn of the 
screen , the only void that triggers is onsurfaceChanged! but GLThread 
destroyes the surface both modes.

Whats the difference between normal and preview mode? and why preview mode 
triggers onsurfacedestroyed on every change?

Any idea how to fix this??

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

[android-developers] Android LVL

2012-09-14 Thread janvi
Dear All

I need a favour,though it is old topic i need small info on how to go a 
head with Android LVL 
Plz reply me as soon as possible
The following is my sample code which I have written


package com.example.helloworld;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.provider.Settings.Secure;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.google.android.vending.licensing.AESObfuscator;
import com.google.android.vending.licensing.LicenseChecker;
import com.google.android.vending.licensing.LicenseCheckerCallback;
import com.google.android.vending.licensing.Policy;
import com.google.android.vending.licensing.ServerManagedPolicy;
import com.google.android.vending.licensing.util.Base64;
import com.google.android.vending.licensing.util.Base64DecoderException;

public class LicenseCheck extends Activity {
private static final String BASE64_PUBLIC_KEY = "Corresponding Public 
Key";

// Generate your own 20 random bytes, and put them here.
private static final byte[] SALT = new byte[] { -46, 65, 30, -128, -103,
-57, 74, -64, 51, 88, -95, -45, 77, -117, -36, -113, -11, 32, 
-64,
89 };

private TextView mStatusText;
private Button mCheckLicenseButton;

private LicenseCheckerCallback mLicenseCheckerCallback;
private LicenseChecker mChecker;
// A handler on the UI thread.
private Handler mHandler;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.activity_main);

mStatusText = (TextView) findViewById(R.id.status_text);
mCheckLicenseButton = (Button) 
findViewById(R.id.check_license_button);
mCheckLicenseButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
doCheck();
}
});

mHandler = new Handler();

// Try to use more data here. ANDROID_ID is a single point of 
attack.
String deviceId = Secure.getString(getContentResolver(),
Secure.ANDROID_ID);

// Library calls this when it's done.
mLicenseCheckerCallback = new MyLicenseCheckerCallback();
// Construct the LicenseChecker with a policy.
mChecker = new LicenseChecker(this, new ServerManagedPolicy(this,
new AESObfuscator(SALT, getPackageName(), deviceId)),
BASE64_PUBLIC_KEY);
doCheck();
}

protected Dialog onCreateDialog(int id) {
final boolean bRetry = id == 1;
return new AlertDialog.Builder(this)
.setTitle(R.string.unlicensed_dialog_title)
.setMessage(
bRetry ? R.string.unlicensed_dialog_retry_body
: R.string.unlicensed_dialog_body)
.setPositiveButton(
bRetry ? R.string.retry_button : 
R.string.buy_button,
new DialogInterface.OnClickListener() {
// bretry = 1 if retry button is active

// bretry = 0 if buy button is active

boolean mRetry = bRetry;

public void onClick(DialogInterface dialog,
int which) {
if (mRetry) {
doCheck();
} else {
Intent marketIntent = new Intent(
Intent.ACTION_VIEW,

Uri.parse("http://market.android.com/details?id=";
+ getPackageName()));
startActivity(marketIntent);
}
}
})
.setNegativeButton(R.string.quit_button,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
 

[android-developers] Re: Android Licensing LVL

2012-09-14 Thread janvi
Hi All

Sorry for interrupting but I need this info urgently so Plz anybody help me 
out here
I need a small info on how to start with Android LVL
The following is my code

package com.example.helloworld;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.provider.Settings.Secure;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.google.android.vending.licensing.AESObfuscator;
import com.google.android.vending.licensing.LicenseChecker;
import com.google.android.vending.licensing.LicenseCheckerCallback;
import com.google.android.vending.licensing.Policy;
import com.google.android.vending.licensing.ServerManagedPolicy;
import com.google.android.vending.licensing.util.Base64;
import com.google.android.vending.licensing.util.Base64DecoderException;

public class LicenseCheck extends Activity {
private static final String BASE64_PUBLIC_KEY = "Corresponding public 
key";

// Generate your own 20 random bytes, and put them here.
private static final byte[] SALT = new byte[] { -46, 65, 30, -128, -103,
-57, 74, -64, 51, 88, -95, -45, 77, -117, -36, -113, -11, 32, 
-64,
89 };

private TextView mStatusText;
private Button mCheckLicenseButton;

private LicenseCheckerCallback mLicenseCheckerCallback;
private LicenseChecker mChecker;
// A handler on the UI thread.
private Handler mHandler;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.activity_main);

mStatusText = (TextView) findViewById(R.id.status_text);
mCheckLicenseButton = (Button) 
findViewById(R.id.check_license_button);
mCheckLicenseButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
doCheck();
}
});

mHandler = new Handler();

// Try to use more data here. ANDROID_ID is a single point of 
attack.
String deviceId = Secure.getString(getContentResolver(),
Secure.ANDROID_ID);

// Library calls this when it's done.
mLicenseCheckerCallback = new MyLicenseCheckerCallback();
// Construct the LicenseChecker with a policy.
mChecker = new LicenseChecker(this, new ServerManagedPolicy(this,
new AESObfuscator(SALT, getPackageName(), deviceId)),
BASE64_PUBLIC_KEY);
doCheck();
}

protected Dialog onCreateDialog(int id) {
final boolean bRetry = id == 1;
return new AlertDialog.Builder(this)
.setTitle(R.string.unlicensed_dialog_title)
.setMessage(
bRetry ? R.string.unlicensed_dialog_retry_body
: R.string.unlicensed_dialog_body)
.setPositiveButton(
bRetry ? R.string.retry_button : 
R.string.buy_button,
new DialogInterface.OnClickListener() {
// bretry = 1 if retry button is active

// bretry = 0 if buy button is active

boolean mRetry = bRetry;

public void onClick(DialogInterface dialog,
int which) {
if (mRetry) {
doCheck();
} else {
Intent marketIntent = new Intent(
Intent.ACTION_VIEW,

Uri.parse("http://market.android.com/details?id=";
+ getPackageName()));
startActivity(marketIntent);
}
}
})
.setNegativeButton(R.string.quit_button,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
in

[android-developers] Special Accommodations for Non-Profits?

2012-09-14 Thread Jesse R
Hi all,

I have not been able to find much documentation online so I figured I'd 
turn to the forum. Does anyone know about any special cases that are in 
places for Apps built by and for non-profits? Does the 70/30 transaction 
fee still apply?

Thanks,
Jesse

-- 
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] Documents to Go Ap

2012-09-14 Thread John
Does anyone know if there's some sort of user's guide or something to tell 
mke how the Documents to Go ap works on android...full version?  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] is onActivityResult beeing not called when big amounts of data shall be passed

2012-09-14 Thread madMF
Hi,

i am tracking down a problem I can't really understand. Maybe some one 
knows why this happens.

Basicly Activity A starts Activity B to take a photo by calling 
startActivityForResult(...) in A and
setResult(...,outputIntent) in Activity B.

B is just a camerapreview with the ability to take a picture.

This seems to work fine if i set a small picturesize, if i use a bigger 
size onActivityResult is 
not getting called. All data is set correctly, B.setResult gets called, 
B.finish as well.
B passes the uncompressed imageData to A

Is it possible that Android (somehow, for what ever might be the reason) 
doesn't call onActivityResult
in Application A if the size of the data in the Extras of the outputIntent 
is too big?

regards
martin

ps: unfortunatly the code is pretty abstract because there a lot of other 
features in the app as well, so it would be to complicated to post 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

[android-developers] Re: Tons of error trying to build ADWLauncher

2012-09-14 Thread maleto
galapogos!!! I have the same problems... Did you find a solution?¿

El lunes, 4 de junio de 2012 09:40:55 UTC+2, galapogos escribió:
>
> I'm trying to build ADWLauncher, but I'm getting a ton of compiler 
> errors in Eclipse SDK 3.7.1 in a Win7 32bit PC with JDK7. I imported 
> ADWLauncher to Eclipse. and I'm getting the following errors: 
>
> DescriptionResourcePathLocationType 
> Android requires compiler compliance level 5.0 or 6.0. Found '1.7' 
> instead. Please use Android Tools > Fix Project Properties. 
> ADWLauncher_SSDline 1Android ADT Problem 
> android.os.SystemProperties cannot be resolved to a type 
> Launcher.java/ADWLauncher_SSD/src/com/android/launcherline 
> 1847Java 
> Problem 
> com.android.internal.R cannot be resolved to a variable 
> AllAppsSlidingView.java/ADWLauncher_SSD/src/com/android/launcher  
>   line 
>
> 184Java Problem 
> com.android.internal.R cannot be resolved to a 
> variableLauncher.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 1797Java 
> Problem 
> com.android.internal.R cannot be resolved to a 
> variableLauncher.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 1806Java 
> Problem 
> mBottom cannot be resolved to a 
> variableAllAppsSlidingView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 298Java 
> Problem 
> mBottom cannot be resolved to a 
> variableBubbleTextView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 109Java 
> Problem 
> mBottom cannot be resolved to a 
> variableBubbleTextView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 137Java 
> Problem 
> mContext cannot be resolved to a variableDeleteZone.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 322Java 
> Problem 
> mContext cannot be resolved to a 
> variableLiveFolderAdapter.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 152Java 
> Problem 
> mContext cannot be resolved to a 
> variableLiveFolderAdapter.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 165Java 
> Problem 
> mContext cannot be resolved to a variableUserFolder.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 82Java 
> Problem 
> mContext cannot be resolved to a variableWorkspace.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 1739Java 
> Problem 
> mGroupFlags cannot be resolved to a 
> variableAllAppsSlidingView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 290Java 
> Problem 
> mGroupFlags cannot be resolved to a 
> variableAllAppsSlidingView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 299Java 
> Problem 
> mGroupFlags cannot be resolved to a 
> variableAllAppsSlidingView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 315Java 
> Problem 
> mLeft cannot be resolved or is not a 
> fieldPreviewPager.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 225Java 
> Problem 
> mLeft cannot be resolved or is not a 
> fieldPreviewPager.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 226Java 
> Problem 
> mLeft cannot be resolved or is not a 
> fieldPreviewPager.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 227Java 
> Problem 
> mLeft cannot be resolved to a 
> variableAllAppsSlidingView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 297Java 
> Problem 
> mLeft cannot be resolved to a variableBubbleTextView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 109Java 
> Problem 
> mLeft cannot be resolved to a variableBubbleTextView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 137Java 
> Problem 
> mLeft cannot be resolved to a 
> variableWorkspace.java/ADWLauncher_SSD/ 
> src/com/android/launcherline 575Java Problem 
> mLeft cannot be resolved to a 
> variableWorkspace.java/ADWLauncher_SSD/ 
> src/com/android/launcherline 576Java Problem 
> mPaddingLeft cannot be resolved to a 
> variableAllAppsSlidingView.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 296Java 
> Problem 
> mRight cannot be resolved or is not a 
> fieldPreviewPager.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 225Java 
> Problem 
> mRight cannot be resolved or is not a 
> fieldPreviewPager.java/ 
> ADWLauncher_SSD/src/com/android/launcherline 227Java 
> Problem 
> mRight cannot be resolved to 

[android-developers] Re: NDK Development with Objective-C 2.0

2012-09-14 Thread James
Philippe,

Thank you for creating this post. If I wanted to write an app 
for android in entirely objective-c, could I? 




On Thursday, January 21, 2010 9:12:53 PM UTC-5, Philippe Hausler wrote:
>
> I had started a thread over at the android-porting group, and figured it 
> might be a better venue to post a request here.
>
> Recently I have embarked on a project that aims to imbue the Android NDK 
> gcc 4.2.1 with support for Objective-C 2.0. This project is of course to 
> bolster the Android platform with more options for developers, and not to 
> usurp the current application environment (more choices can make better 
> products). As of the current status of the project, I have been able to 
> successfully modify gcc to compile not only objc code but also objc 2.0 
> code. There are a few features that are still not finished with the 
> compiler end as well as there are no frameworks that I have finished for 
> building applications for Android. However that being said there is a 
> potential for being able to make a directly code compatible set of 
> frameworks targeted for the Android OS that would allow applications 
> written for iPhone to be compiled for Android with zero code modifications 
> to the application, in turn allowing the exact same functionality of the 
> iPhone counterpart to work on Android.
>
> This all being the case, I need some feedback from the community. I am not 
> looking for any sort of comparison of which platform is "better", nor am I 
> looking for a comparison of which language is "better". 
>
> If you are an iPhone developer and an Android developer:
> For any of your iPhone projects, which frameworks would you pose as top 
> priority to create (other than Foundation and UIKit)
> How highly would you rank the need for a gui building interface (perhaps 
> maybe something in Interface Builder that works then with both NDK based 
> apps and Java apps)?
>
> General Android Developers:
> Other than arm-eabi targets, what other targets would be on the top of 
> "must make ports of this compiler"?
> Would a objc interface to the Java ui be useful to your projects?
> What would be the upper limit of the size of a static library that you 
> would include within your apps?
> Would a dynamic library stored in another application bundle (e.g. 
> /data/data/com.example/libs/libSomethingGoesHere.so) to save on user space 
> be preferable?
>
> People with compiler testing/building experience:
> I need help testing the current versions of my fork of the compiler... I 
> narry could fathom that I could anticipate any and all potential code that 
> could create an issue with the compiler, I need testing to track down the 
> bugs (which I know there are already a few).
>
> The fork of the NDK gcc is being hosted at 
> http://code.google.com/p/android-gcc-objc2-0/ I have gotten it to work 
> reasonably so, there are a few things that still are a bit on the squirrly 
> side, and some stuff that is still just flat out broken. Of the things that 
> do work: Objective-C code compiles, properties work, synth'd variables 
> work, private ivars work, blocks work but still need the runtime library 
> (which i just need to commit the changes to add that). 
>
> Sincerely,
> Philippe Hausler
>
>

-- 
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] Including framework which was made in an other project in eclipse

2012-09-14 Thread Michael Kolodziej
Hi,

I'm going through the book Beginning Android Games by Mario Zechner.
For those who don't know it, it describes how to develop a gaming 
framework, the implementation of the framework and finally some example 
games which use this framework.
Now theres one thing which gives me headaches.
I don't know how to lay out the project structures correctly. I created a 
project in eclipse for the framework and the implementation of the 
framework.
I created another project for an example app which uses this framework. I 
add the framework project to the Projects in the Java Build Path at the 
properties of the example-app project. The "cannot be resolved to a type" 
errors vanish.
But when I compile the code I get an "Unable to resolve superclass of 
Lnet/logax/games/glbasics/GLGameTest; (29) error"
GLGameTest extends GLGame, a framework class.

When I copy the framework packages from the framework project to the 
Test-App project, it works.
So I guess it is more an eclipse problem?

Thanks, Michael

-- 
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] iButterfly philippines -- (android version) how to create?

2012-09-14 Thread meridroid
hello masters..
I'm on the move of creating an android version of iButterfly from iOS.
i really need help on creating this game. concepts and ideas on how to 
fulfill this app would be very helpful.
also if you have any suggestions to make it better, i would be glad to know.

thank you!

so far, i know how to create gif on android..

-- 
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: Animating the ExpandableListView

2012-09-14 Thread Lefteris Kororos
I have tried so hard to find a way to do it, howver have not managed to 
find something yet. 

Any help would be appreciated. It would really add a very nice touch to the 
expandablelistview.

Thanks,

Lefteris

Τη Τετάρτη, 3 Νοεμβρίου 2010 1:07:58 π.μ. UTC+4, ο χρήστης Akom έγραψε:
>
> I really would like to know as well. 
>
> Ideally I'd like to animate both expanding/collapsing as well as list 
> scrolling. 
> I'm able to jump to a specific list item without a problem, but doing 
> so in a smooth manner seems tricky - outside of a series of jumps to 
> intermediate points, but that's hardly a pretty solution. 
>
>
> On Sep 20, 5:14 am, Kumar Bibek  wrote: 
> > I guess, this question was dumped away below so many new ones. So, re- 
> > surfacing it. :) 
> > 
> > On Sep 17, 12:36 pm, Kumar Bibek  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > Hi All, 
> > 
> > > Is it possible to animate the expanding and collapsing of the groups 
> > > in a ExpandableListView. I could not find any examples anywhere. 
> > 
> > > Kumar Bibekhttp://techdroid.kbeanie.com

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

[android-developers] Can I install our app from an APK and then update it with Google Play?

2012-09-14 Thread Martin Ellison
What I want to do is to install our app via an APK, but to push updates 
using Google Play. Is there any way to tie the two, so that Play can 
recognise that the app has been installed from an APK file, and can then 
deliver app upgrades?

We are developing the app for our users, and we anticipate that many of 
them will install the app from an APK that we will distribute as a file. 
But we want to be able to upgrade their copy of the app using the usual 
Google Play upgrade mechanism. (Users will also be able to install the app 
via Play, but then upgrades should be as per normal). We would use the 
usual permission model, so users could upgrade or not at their choice.

I've looked through the Android documentation, but I can't see anything on 
this point.

Regards,
Martin

-- 
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] SDK manager doesn't show, not installed packages

2012-09-14 Thread Max Ganiyev




How to show 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

[android-developers] Regaining access (focus) to an EditText

2012-09-14 Thread Iker Pedrosa
I´ve got an activity which has to create new TextViews and EditTexts when a 
button is pressed. The problem is that when I change the focus from one 
EditText to the new one it is impossible to return to the first one. I 
mean: I have only one EditText and I create another one, I focus on the new 
EditText but now I can´t focus on the older one.

I attach you the .xml and the .java

Thank you very much for your help

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

import java.util.Vector;

import com.example.ifirma.R;

import android.app.Activity;
import android.os.Bundle;
import android.text.InputType;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class VistaActaCorreo extends Activity{
	RelativeLayout padreTexto, padreEdito;
	Vector  textos = new Vector();
	Vector  editos = new Vector();
	int contador = 2;
	int margenIzquierdoTexto = 10, margenIzquierdoEdito = 8;
	int margenArribaTexto = 108, margenArribaEdito = 50;
	
	@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
setContentView(R.layout.activity_vistacorreo);

padreTexto = (RelativeLayout) findViewById(R.id.relativeLayout1);
padreEdito = (RelativeLayout) findViewById(R.id.relativeLayout2);
	}
	
	public void anadir(View view){
		TextView nuevoTexto = new TextView(this);
		EditText nuevoEdito = new EditText(this);
		
		nuevoTexto.setText("Direcci?n correo n?"+contador);
		nuevoTexto.setTextSize(15);
		nuevoTexto.setPadding(margenIzquierdoTexto, margenArribaTexto, 0, 0);
		
		nuevoEdito.setEms(10);
		nuevoEdito.setInputType(InputType.TYPE_CLASS_TEXT);
		nuevoEdito.setImeOptions(EditorInfo.IME_ACTION_DONE);
		nuevoEdito.setFocusable(true);
		nuevoEdito.setFocusableInTouchMode(true);
		nuevoEdito.setClickable(true);	
		nuevoEdito.setPadding(margenIzquierdoEdito, margenArribaEdito, 0, 0);

		padreTexto.addView(nuevoTexto);
		padreEdito.addView(nuevoEdito);
		textos.add(nuevoTexto);
		editos.add(nuevoEdito);
		contador++;
		margenArribaTexto += 40;
		margenArribaEdito += 40;
	}
	

}


activity_vistacorreo.xml
Description: XML document


[android-developers] Input tag doesn't override android:layout_toRightOf

2012-09-14 Thread Flufferman
I have a couple of textswitcher's that are very similar so I wanted to 
reuse them (the same with a TextField, but I gonna use the textswitcher as 
example). The views are being used in a RelativeLayout. 

The textswitcher is defined in a separate xml file: 

http://schemas.android.com/apk/res/android";
android:layout_width="wrap_content"
android:layout_height="wrap_content" >



and then I would include it as: 




If needed the whole mainactivity: 


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp">













A tutorial said that you can override every android:layout_* attribute in 
the include tag. So I want to reuse the textswitcher a couple of times, and 
as such the id and the android:layout_toRightOf will change so I override 
it.
Now the weird thing is that it doesn't override the 
android:layout_toRightOf part. It does however work with the id. And when I 
for example do the same but with the following textswitcher: 

http://schemas.android.com/apk/res/android";
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/hoursMinutesSeparatorTextField" >



Than it still doesn't override but it will lay the component out 
accordingly but always to the hoursTextSwitcher instead of the one I 
defined in my input tag.
So is it normal that the android:layout_toRightOf doesn't get overriden? 
And if so is there another way to reuse this component? 

Remark: I know this question has already been posted @ 
http://androidforums.com/developer-101/615194-input-tag-doesnt-override-android-layout_torightof.html,
 
but there hasn't been a response as of yet. Maybe I'll get a response here, 
since this is an official group. I hope someone can clarify if this is 
normal or not. If an answer/solution is given, I'll update the other 
forum/group.

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

  1   2   >