[android-developers] Query regarding unbounded service

2012-06-02 Thread Bhavin
Dear Sir,

in my application,i have 24 Buttons [12 group of Two [12 * 2], 1 for
SET  Other for Reset].

-
  [Group 1]
I am having requirement to Start service on Click of Button 1.

and stop same service by clicking on Button 2.
-

[Group 2]
same is for Button 3  Button 4.
-
and so on..

Code of each service is same,but it changes the name of flag.

moreover,say button 1 start service,should not stop when i press
button 4 [for OFF]

Because they are from different group.

Do i need to create 12 service for each,group.Or any other idea.

Thanks for help 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] Adding markers with different drawables on google map in android

2012-06-02 Thread mehedi hasan khan
Here are some of the points I am plotting:
latitude:30.2782345,longitude:-82.1603470
latitude:30.2768497,longitude:-82.1673126
latitude:30.2713966,longitude:-82.1601944
latitude:30.2767563,longitude:-82.1324768
latitude:30.2897949,longitude:-82.1278839
latitude:30.2755909,longitude:-82.1269608
latitude:30.2761593,longitude:-82.1239471

These are obtained from a webservice.I am multiplying each lat/lng value
with 100.0 while creating GeoPoint with them.

On Sat, Jun 2, 2012 at 1:58 AM, James Black planiturth...@gmail.com wrote:

 Do you use modified latitude and longitude coordinates?

 Can you give an example of what points you are plotting to?
  On Jun 1, 2012 3:37 PM, mehedi hasan khan mehedi.mail...@gmail.com
 wrote:

 I've zoomed it manually and searched for the pins.still can't see any
 other pin than the source and the last added one.Zoomed the map as far as
 the zoom controlls allow.I'll recheck if the points are accurate.

 On Sat, Jun 2, 2012 at 12:13 AM, TreKing treking...@gmail.com wrote:

 On Fri, Jun 1, 2012 at 12:26 PM, mehedi hasan khan 
 mehedi.mail...@gmail.com wrote:

 will u plz explain?


 You know the word is spelled please, right? The 'z' doesn't even make
 sense ... :-)
 Sorry, pet peeve ... anyway ...


  I've used
 mapView.getController().zoomToSpan(sourcemarker.getLatSpanE6(),
 sourcemarker.getLonSpanE6());  won't that do the zooming?


 I mean literally, physically zoom the map out yourself, with your
 finger, using the zoom controls on the map. Go looking for your markers to
 make sure they didn't up in Zimbabwe or something. When I started with
 adding a map to my app, I was trying to plot a bus stop in downtown Chicago
 but ended up placing it in the middle of the Atlantic Ocean. It happens -
 all it takes is one wrong digit ...



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

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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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




-- 
*Mehedi*
CSE'07,BUET
মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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

2012-06-02 Thread David Olsson
http://www.catb.org/~esr/faqs/smart-questions.html

Send different intents to the service? That adds which groups and which
button? But I have no idea of what you are after.

On Sat, Jun 2, 2012 at 8:32 AM, Bhavin alertsavemyl...@gmail.com wrote:

 Dear Sir,

 in my application,i have 24 Buttons [12 group of Two [12 * 2], 1 for
 SET  Other for Reset].


 -
  [Group 1]
 I am having requirement to Start service on Click of Button 1.

 and stop same service by clicking on Button 2.

 -

 [Group 2]
 same is for Button 3  Button 4.

 -
 and so on..

 Code of each service is same,but it changes the name of flag.

 moreover,say button 1 start service,should not stop when i press
 button 4 [for OFF]

 Because they are from different group.

 Do i need to create 12 service for each,group.Or any other idea.

 Thanks for help in advance.

 :)

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Adding markers with different drawables on google map in android

2012-06-02 Thread Fred Niggle
Why are you multiplying by 100.0?
Also have you ensured that latitude and longitude are not transposed?
(I had an issue when creating a KML output file: I thought that because my
label said latitude it was correct, and the bug only threw itself into
light when the point appeared over the sea!)

On 2 June 2012 07:33, mehedi hasan khan mehedi.mail...@gmail.com wrote:

 Here are some of the points I am plotting:
 latitude:30.2782345,longitude:-82.1603470
 latitude:30.2768497,longitude:-82.1673126
 latitude:30.2713966,longitude:-82.1601944
 latitude:30.2767563,longitude:-82.1324768
 latitude:30.2897949,longitude:-82.1278839
 latitude:30.2755909,longitude:-82.1269608
 latitude:30.2761593,longitude:-82.1239471

 These are obtained from a webservice.I am multiplying each lat/lng value
 with 100.0 while creating GeoPoint with them.

 On Sat, Jun 2, 2012 at 1:58 AM, James Black planiturth...@gmail.comwrote:

 Do you use modified latitude and longitude coordinates?

 Can you give an example of what points you are plotting to?
  On Jun 1, 2012 3:37 PM, mehedi hasan khan mehedi.mail...@gmail.com
 wrote:

 I've zoomed it manually and searched for the pins.still can't see
 any other pin than the source and the last added one.Zoomed the map as far
 as the zoom controlls allow.I'll recheck if the points are accurate.

 On Sat, Jun 2, 2012 at 12:13 AM, TreKing treking...@gmail.com wrote:

 On Fri, Jun 1, 2012 at 12:26 PM, mehedi hasan khan 
 mehedi.mail...@gmail.com wrote:

 will u plz explain?


 You know the word is spelled please, right? The 'z' doesn't even make
 sense ... :-)
 Sorry, pet peeve ... anyway ...


  I've used
 mapView.getController().zoomToSpan(sourcemarker.getLatSpanE6(),
 sourcemarker.getLonSpanE6());  won't that do the zooming?


 I mean literally, physically zoom the map out yourself, with your
 finger, using the zoom controls on the map. Go looking for your markers to
 make sure they didn't up in Zimbabwe or something. When I started with
 adding a map to my app, I was trying to plot a bus stop in downtown Chicago
 but ended up placing it in the middle of the Atlantic Ocean. It happens -
 all it takes is one wrong digit ...



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

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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

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

2012-06-02 Thread Uberall, Android

Hi,

This is P B Lal from Pune, I would like to suggest you that create a 
class by extending Thread in which you should create two button , one 
for start and other for stop.
Always create object of that class and put it in the Linear Layout , in 
this manner you will not get any issue flag naming or value confusion.


Thanks  Regards
P B Lal
On 02-06-2012 11:58, Save My Life! wrote:

*Dear Sir,

in my application,i have 24 Buttons [12 group of Two [12 * 2], 1 for 
SET  Other for Reset].


-
  [Group 1]
I am having requirement to Start service on Click of Button 1.

and stop same service by clicking on Button 2.
-

[Group 2]
same is for Button 3  Button 4.
-
and so on..

*Code of each service is same,but it changes the name of flag.

moreover,say button 1 start service,should not stop when i press 
button 4 [for OFF]


Because they are from different group.

*Do i need to create 12 service for each,group.Or any other idea.

Thanks for help in advance.

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


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

2012-06-02 Thread Ralph Bergmann | the4thFloor.eu
Am 02.06.12 00:31, schrieb Jeremy Villalobos:
 On build, the plugin creates the png's from the svg's, but the svgs are
 not added to the release package.
 
 Is there such a tool ?

http://digitalsquid.co.uk/patchworker/

http://code.google.com/p/svg-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] Adding markers with different drawables on google map in android

2012-06-02 Thread mehedi hasan khan
I am multiplying by 1E6 because GeoPoint needs latitude/longitude in micro
degrees. How to check if latitude/longitude are transposed?

On Sat, Jun 2, 2012 at 2:40 PM, Fred Niggle fred.nig...@googlemail.comwrote:

 Why are you multiplying by 100.0?
 Also have you ensured that latitude and longitude are not transposed?
 (I had an issue when creating a KML output file: I thought that because my
 label said latitude it was correct, and the bug only threw itself into
 light when the point appeared over the sea!)

 On 2 June 2012 07:33, mehedi hasan khan mehedi.mail...@gmail.com wrote:

 Here are some of the points I am plotting:
 latitude:30.2782345,longitude:-82.1603470
 latitude:30.2768497,longitude:-82.1673126
 latitude:30.2713966,longitude:-82.1601944
 latitude:30.2767563,longitude:-82.1324768
 latitude:30.2897949,longitude:-82.1278839
 latitude:30.2755909,longitude:-82.1269608
 latitude:30.2761593,longitude:-82.1239471

 These are obtained from a webservice.I am multiplying each lat/lng value
 with 100.0 while creating GeoPoint with them.

 On Sat, Jun 2, 2012 at 1:58 AM, James Black planiturth...@gmail.comwrote:

 Do you use modified latitude and longitude coordinates?

 Can you give an example of what points you are plotting to?
  On Jun 1, 2012 3:37 PM, mehedi hasan khan mehedi.mail...@gmail.com
 wrote:

 I've zoomed it manually and searched for the pins.still can't see
 any other pin than the source and the last added one.Zoomed the map as far
 as the zoom controlls allow.I'll recheck if the points are accurate.

 On Sat, Jun 2, 2012 at 12:13 AM, TreKing treking...@gmail.com wrote:

 On Fri, Jun 1, 2012 at 12:26 PM, mehedi hasan khan 
 mehedi.mail...@gmail.com wrote:

 will u plz explain?


 You know the word is spelled please, right? The 'z' doesn't even
 make sense ... :-)
 Sorry, pet peeve ... anyway ...


  I've used
 mapView.getController().zoomToSpan(sourcemarker.getLatSpanE6(),
 sourcemarker.getLonSpanE6());  won't that do the zooming?


 I mean literally, physically zoom the map out yourself, with your
 finger, using the zoom controls on the map. Go looking for your markers to
 make sure they didn't up in Zimbabwe or something. When I started with
 adding a map to my app, I was trying to plot a bus stop in downtown 
 Chicago
 but ended up placing it in the middle of the Atlantic Ocean. It happens -
 all it takes is one wrong digit ...



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

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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
*Mehedi*
CSE'07,BUET
মহাবিশ্বের কোন 

[android-developers] VBO problem using OpenGL ES 2.0 on android 2.2

2012-06-02 Thread usual

Hello,

I'm trying to display a simple triangle on my Samsung Spica.
I'm using the following data:

float triangle_vertices[] = {
 0.0f,  0.8f,
-0.8f, -0.8f,
 0.8f, -0.8f
  };

vertex shader:
attribute vec2 vPosition;
void main(void)
{
  gl_Position = vec4(vPosition, 0.0, 1.0);
}

fragment shader:
void main()
{
gl_FragColor[0] = gl_FragCoord.x/640.0;
gl_FragColor[1] = gl_FragCoord.y/480.0;
gl_FragColor[2] = 0.5;
}

If I display it without VBO, it will show on the screen:
  GLES20.glVertexAttribPointer(
agrPositionHandle, // attribute
2, // number of elements per vertex
GLES20.GL_FLOAT,  // the type of each element
false,  // take our values as-is
2*Float.SIZE/8, // vertices
//0, // no extra data between each position
triangleVB  // FloatBuffer
  );
GLES20.glEnableVertexAttribArray(agrPositionHandle);
Utils.displayGLErrorCode(TAG, 
onDrawFrame:glEnableVertexAttribArray);

GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 3);
Utils.displayGLErrorCode(TAG, onDrawFrame:glDrawArrays);

To use the VBO, I needed to implement the GLES20Fix from this post:
http://stackoverflow.com/questions/8552365/vertex-buffer-objects-vbo-not-working-on-android-2-3-3-using-gles20

Then I replaced the call to GLES20.glVertexAttribPointer() with:
GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, agrVboTriangle.get(0));
GLES20Fix.glVertexAttribPointer(
agrPositionHandle, // attribute
   2, // number of elements per vertex
GLES20.GL_FLOAT,  // the type of each element
false,  // take our values as-is
2*Float.SIZE/8, // vertices
0  // offset
  );
Utils.displayGLErrorCode(TAG, onDrawFrame:glVertexAttribPointer);

But in that case, the screen remains blank. And I saw no OpenGL error.

Any hints would be appreciated.

-
Fabien


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

2012-06-02 Thread Bhavin
Dear sir,

I am having following scenario:

Service class
.
.
.
.(Extends) Class1
.
.
.
.
 (Extends) Class2


Now i wanted to start class2 as a service.

what to do?

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] clystone launcher in android

2012-06-02 Thread phanisurya
Hai,
I have a doubt about clystone launcher in android. i want to create
an android app look like a clystone launcher .
Please tell me how to design that view like sliding from front to back
and top to bottom screens. I didn't catch the actual development
process. please suggest me how to design that views and please give me
sample code for clystone!!

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

2012-06-02 Thread Plabon Modak
Hi guys,

I am working on an android application where i have to use multiple
databases. I have used previously created db file. Actually i am copying
the db file from asset folder.
Now there is option to add data for the user(add favorites). The user data
will be added in all three db.

Now the problem is i need to upgrade all the db when there is a new version
of the app. I have to keep the user data inserted by the user and add the
changes of the new db.
I have done some googling and find solution to upgrade one db but i can not
find a solution to upgrade all the databases and keep the old versions user
data.

Here is my dbhelper class:

//
package riskycoder.database.helper;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Locale;

import riskycoder.utils.AppStaticValues;

import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class DataBaseHelper extends SQLiteOpenHelper {
 private static String DB_PATH = /data/data/riskycoder.login/databases/;
public static String DB_NAME = datenbank_EN.sqlite;
private SQLiteDatabase myDataBase;
private final Context myContext;
private static final int DATABASE_VERSION = 1;
 private static final String DB_NAME_ENG = datenbank_EN.sqlite;
private static final String DB_NAME_GER = datenbank_DE.sqlite;
private static final String DB_NAME_SPA = datenbank_SP.sqlite;
private Cursor updateCursor;

public static void setDataBaseName(String lan)
{
if(lan.equals(ENG))
{
DB_NAME=DB_NAME_ENG;
}
else if(lan.equals(GER))
{
DB_NAME=DB_NAME_GER;
}
else if(lan.equals(SPA))
{
DB_NAME=DB_NAME_SPA;
}
}
 public DataBaseHelper(Context context) {
super(context, DB_NAME, null, DATABASE_VERSION);
this.myContext = context;
updateCursor=null;
}

public void createDataBase() throws IOException {
boolean dbExist = checkDataBase();
if (dbExist) {
this.getWritableDatabase();
} else {
this.getWritableDatabase();
try {
this.close();
copyDataBase();
} catch (IOException e) {
throw new Error(Error copying database);
}
}

}

private boolean checkDataBase() {
SQLiteDatabase checkDB = null;
try {
String myPath = DB_PATH + DB_NAME;
checkDB = SQLiteDatabase.openDatabase(myPath,
null,SQLiteDatabase.OPEN_READWRITE);
} catch (SQLiteException e) {
}
if (checkDB != null)
checkDB.close();
return checkDB != null ? true : false;
}

private void copyDataBase() throws IOException {

InputStream myInput = myContext.getAssets().open(DB_NAME);
String outFileName = DB_PATH + DB_NAME;
OutputStream myOutput = new FileOutputStream(outFileName);
byte[] buffer = new byte[2048];
int length;
while ((length = myInput.read(buffer))  0) {
myOutput.write(buffer, 0, length);
}
myOutput.flush();
myOutput.close();
myInput.close();
 //myDataBase.setVersion(DATABASE_VERSION);
}

public void openDataBase() throws SQLException {
String myPath = DB_PATH + DB_NAME;
myDataBase = SQLiteDatabase.openDatabase(myPath,
null,SQLiteDatabase.OPEN_READWRITE);
Log.d(Test, Database version:  +myDataBase.getVersion());
 if(updateCursor!=null  updateCursor.getCount()!=0)
{
updateCursor.moveToFirst();
do{
 myDataBase.execSQL(UPDATE Content SET is_favourite='1' WHERE  content_id
='+updateCursor.getInt(updateCursor.getColumnIndex(content_id))+' AND
 category_id =
'+updateCursor.getInt(updateCursor.getColumnIndex(category_id))+');
}while(updateCursor.moveToNext());
 updateCursor.close();
}
}

@Override
public synchronized void close() {
if (myDataBase != null)
myDataBase.close();
super.close();
}
 public Cursor Get_Header_Cursor(){
Cursor cursor;
 cursor = myDataBase.rawQuery(select * from Headers ORDER BY
header_orderId,null);
return cursor;
}
 public Cursor Get_Group_Cursor(int id){
Cursor cursor = myDataBase.rawQuery(select * from Categories where
header_id = +id+ ORDER BY category_orderId,null);
return cursor;
}
 public Cursor Get_Content_Cursor(int id){
Cursor cursor = myDataBase.rawQuery(select * from Content where
category_id = +id,null);
return cursor;
}

public Cursor Get_Favourite_Cursor(){
Cursor cursor = myDataBase.rawQuery(select * from Content where
is_favourite = 1,null);
return cursor;
}

@Override
public void onCreate(SQLiteDatabase db) {
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 if(newVersionoldVersion)
{
 updateCursor = db.rawQuery(select * from Content where is_favourite =
1,null);
Log.d(Test, is fav+updateCursor.getCount());
try {
copyDataBase();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

 }
}

///

Please help how to upgrade all the databases...

[android-developers] Solving Missing R

2012-06-02 Thread dev0708
I have gotten various kinds of advice for solving Missing R. I'm
trying to organize that into a checklist to work through the problem
efficiently.
- Any comments on the efficacy of these steps?
- Any additional techniques?
- Any change in order?
Thanks.

Solving Missing R error
1.  Find and fix the problem in the XML file
2.  Check file names in /res/ have proper characters: a-z0-9_
3.  Save all open files
4.  Clean project
5.  Refresh project
6.  Build Project (if that choice is available in menu)
7.  Delete existing R and build
8.  Close Eclipse and re-open
9.  Turn off Auto build
10. Re-install SDK

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

2012-06-02 Thread Mark Murphy
On Sat, Jun 2, 2012 at 10:12 AM, dev0708 webdev0...@gmail.com wrote:
 I have gotten various kinds of advice for solving Missing R.

Personally, I just try stirring my alphabet soup a bit more to see if
an R got stuck on the bottom of the bowl.

:-)

 - Any comments on the efficacy of these steps?
 - Any additional techniques?
 - Any change in order?

Some thoughts, all IMHO:

- #3 should be first and #6 should be second, to the point where they
are more or less prerequisites for determining if you really do have a
problem

- I am not sure what Refresh project is -- if you mean F5 in
Eclipse, that is a variation on #3 and should be done around the same
time as #3

- #7 should be the same as #4, unless the project is very broken

- I am not aware that #9 matters (and actually can make things worse,
if people then start forgetting to manually build)

- #10 is unlikely to help, insofar as I am unaware that you will
simply wind up with a missing R class if the SDK is that broken

I'd also toss in do a command-line build, if you have been using
Eclipse. That's probably somewhere between #8 and #10 in your current
list. Sometimes, errors get reported nicely on the command line that I
cannot find in any of the various error-reporting places in Eclipse.

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

Android Training in NYC: http://marakana.com/training/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: Issuing refund to users after 15-minute window

2012-06-02 Thread fiber
Yes, it does know. If you have LVL implemented in your app it will
receive a Not Licensed response from Google.
My experience has been that Google will try to automatically uninstall
the application from their device as well.  I do not know if that part
is documented anywhere.



On Jun 1, 12:40 pm, vistaman azgol...@gmail.com wrote:
 If I issue a refund to a user after the 15-minute refund window, does
 the Android Licensing know about this? i.e. in the licensing check
 should receive a 'Not licensed' response, if the user tries to run the
 app. 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: Turn off screen but not hardware keys, catch input with screen off

2012-06-02 Thread Mathias Lin
 I 've seen apps locking the hard keys and not the touchscreen but 

Do you mean the apps turn off the screen but still enable it to listen to 
touch events? Can you point me to the apps that you have seen? Because I am 
actually looking for a way to implement such.
Thanks.


On Friday, 1 July 2011 21:21:08 UTC+8, lousou76 wrote:

 Hi, 

 I am new to android apps and I am trying to figure out a way to keep 
 an application in foreground running, getting input from the hardware 
 keys only (like volume up and down) but without turning on the screen 
 or unlocking. 

 I mean lets say you aquire a nice cpu partial wakelock to do your 
 staff, you run an app for chating like a walkie talkie and you want 
 the user to be able to respond to audio messages by pressing the 
 volume up and talking. 

 You can;t have the screen on all the time, it is draining the battery 
 and you can;t have screen lighting or diming on every hard click. 

 You also cant use the camera button if you don;t have one, and the 
 media button is only available when using a handsfree. Still you have 
 to open the screen, disable the keyguard, bring the app to foreground 
 if not already and then receive input from the hard key pressed. So 
 how can I protect the touchscreen or at least turn off the screen but 
 disable the keyguard after the timeout to save battery? 

 I 've seen apps locking the hard keys and not the touchscreen but 
 there is no documentation or availability on turning off the screen 
 light with keyguard locking only the touchscreen leaving the hard keys 
 to the foreground application. 

 Please note that many of the devices do not push buttons so easilly 
 and are on pockets inside cases with holes that allow the user to 
 press buttons but those are not easilly pressed in pocket. 



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

2012-06-02 Thread Mathias Lin
Why does the SDK not allow that for third party apps? Also, why does 
turning the brightness to 0 entirely turns the screen off and lock it? Why 
is there no way to just turn the screen off (entirely dim) without locking 
it, and also keep it listening to touch events?
(So many limitations in the SDK, it forces the developers to use inofficial 
method calls, if there are any for the specific case.)


On Friday, 8 April 2011 15:34:49 UTC+8, Dianne Hackborn wrote:

 Doing this kind of stuff from third party apps isn't really supported. 
  You may be able to hack up a somewhat working solution, but I don't think 
 you can actually implement a fully working robust solution with the SDK 
 APIs.

 On Fri, Apr 8, 2011 at 12:24 AM, luiX_ lui...@gmail.com wrote:

 Hi,

 I'm trying to develop something similar to the proximity event of the 
 dialer during a call, this is: when something is near the proxmity sensor 
 turn off the screen and when there's not power it on again.

 I've had no problem making the sensor's events work, that was easy, but 
 I'm having a lot of trouble trying to set the screen on/off, this is what 
 I've got this far:

- I can power the screen off by setting brightness to zero (using the 
WindowManager.LayoutParams), the problem is that it locks the screen 
instead of just setting it off. 
- I've tried using a PowerManager.WakeLock to several things:
   - using as flag PARTIAL_WAKE_LOCK which should keep the cpu 
  running but allowing the screen and keyboard to go off (but not 
 actually 
  setting them off at the moment, it waits for the configured 
 timeout) 
  - using as flag SCREEN_DIM_WAKE_LOCK | ACQUIRE_CAUSES_WAKEUP 
  and then setting the screen off using the brightness trick but I 
 still do 
  have to manually press the button to bring the screen up.
   
 Now, I'm playing with some flags in the Window, but still nothing, I 
 always do have to bring the screen back by pressing the power button.

 Any ideas/snippets to make this work like when you're inside a call in 
 Android's default dialer?

 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




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

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



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

[android-developers] Re: Multiple sqlite db upgrade

2012-06-02 Thread lbendlin
what exactly do you need to upgrade? Can't you just run a few scripts in 
onUpgrade  ?

On Saturday, June 2, 2012 8:02:22 AM UTC-4, RawCoder wrote:

 Hi guys,

 I am working on an android application where i have to use multiple 
 databases. I have used previously created db file. Actually i am copying 
 the db file from asset folder.
 Now there is option to add data for the user(add favorites). The user data 
 will be added in all three db. 

 Now the problem is i need to upgrade all the db when there is a new 
 version of the app. I have to keep the user data inserted by the user and 
 add the changes of the new db.
 I have done some googling and find solution to upgrade one db but i can 
 not find a solution to upgrade all the databases and keep the old versions 
 user data.

 Here is my dbhelper class:


 //
 package riskycoder.database.helper;

 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
 import java.util.Locale;

 import riskycoder.utils.AppStaticValues;

 import android.content.Context;
 import android.database.Cursor;
 import android.database.SQLException;
 import android.database.sqlite.SQLiteDatabase;
 import android.database.sqlite.SQLiteException;
 import android.database.sqlite.SQLiteOpenHelper;
 import android.util.Log;

 public class DataBaseHelper extends SQLiteOpenHelper {
  private static String DB_PATH = /data/data/riskycoder.login/databases/;
  public static String DB_NAME = datenbank_EN.sqlite;
 private SQLiteDatabase myDataBase;
  private final Context myContext;
 private static final int DATABASE_VERSION = 1;
  private static final String DB_NAME_ENG = datenbank_EN.sqlite;
  private static final String DB_NAME_GER = datenbank_DE.sqlite;
 private static final String DB_NAME_SPA = datenbank_SP.sqlite;
  private Cursor updateCursor;

 public static void setDataBaseName(String lan)
  {
 if(lan.equals(ENG))
 {
  DB_NAME=DB_NAME_ENG;
 }
 else if(lan.equals(GER))
  {
 DB_NAME=DB_NAME_GER;
 }
  else if(lan.equals(SPA))
 {
 DB_NAME=DB_NAME_SPA;
  }
 }
  public DataBaseHelper(Context context) {
 super(context, DB_NAME, null, DATABASE_VERSION);
  this.myContext = context;
 updateCursor=null;
 }

 public void createDataBase() throws IOException {
 boolean dbExist = checkDataBase();
  if (dbExist) {
 this.getWritableDatabase();
 } else {
  this.getWritableDatabase();
 try {
 this.close();
  copyDataBase();
 } catch (IOException e) {
 throw new Error(Error copying database);
  }
 }

 }

 private boolean checkDataBase() {
 SQLiteDatabase checkDB = null;
  try {
 String myPath = DB_PATH + DB_NAME;
 checkDB = SQLiteDatabase.openDatabase(myPath, 
 null,SQLiteDatabase.OPEN_READWRITE);
  } catch (SQLiteException e) {
 }
 if (checkDB != null)
  checkDB.close();
 return checkDB != null ? true : false;
 }

 private void copyDataBase() throws IOException {

 InputStream myInput = myContext.getAssets().open(DB_NAME);
  String outFileName = DB_PATH + DB_NAME;
 OutputStream myOutput = new FileOutputStream(outFileName);
  byte[] buffer = new byte[2048];
 int length;
 while ((length = myInput.read(buffer))  0) {
  myOutput.write(buffer, 0, length);
 }
 myOutput.flush();
  myOutput.close();
 myInput.close();
  //myDataBase.setVersion(DATABASE_VERSION);
 }

 public void openDataBase() throws SQLException {
  String myPath = DB_PATH + DB_NAME;
 myDataBase = SQLiteDatabase.openDatabase(myPath, 
 null,SQLiteDatabase.OPEN_READWRITE);
  Log.d(Test, Database version:  +myDataBase.getVersion());
  if(updateCursor!=null  updateCursor.getCount()!=0)
 {
 updateCursor.moveToFirst();
  do{
  myDataBase.execSQL(UPDATE Content SET is_favourite='1' WHERE 
  content_id 
 ='+updateCursor.getInt(updateCursor.getColumnIndex(content_id))+' AND 
  category_id = 
 '+updateCursor.getInt(updateCursor.getColumnIndex(category_id))+');
  }while(updateCursor.moveToNext());
  updateCursor.close();
  }
 }

 @Override
  public synchronized void close() {
 if (myDataBase != null)
 myDataBase.close();
  super.close();
 }
  public Cursor Get_Header_Cursor(){
 Cursor cursor;
   cursor = myDataBase.rawQuery(select * from Headers ORDER BY 
 header_orderId,null);
  return cursor;
 }
  public Cursor Get_Group_Cursor(int id){
 Cursor cursor = myDataBase.rawQuery(select * from Categories where 
 header_id = +id+ ORDER BY category_orderId,null);
  return cursor;
 }
  public Cursor Get_Content_Cursor(int id){
 Cursor cursor = myDataBase.rawQuery(select * from Content where 
 category_id = +id,null);
  return cursor;
 }

 public Cursor Get_Favourite_Cursor(){
  Cursor cursor = myDataBase.rawQuery(select * from Content where 
 is_favourite = 1,null);
 return cursor;
  }
  
 @Override
 public void onCreate(SQLiteDatabase db) {
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
  if(newVersionoldVersion)
 {
  updateCursor = db.rawQuery(select * from 

[android-developers] get the text in edit text on button click

2012-06-02 Thread Raghavendra Rao
hi,

how can i get the text entered by the user in the Edit Text on button
click, kindly do help me on this

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

Re: [android-developers] Svg to hdpi, mdpi, ldpi

2012-06-02 Thread Tony Houghton
On Sat, 02 Jun 2012 02:37:00 +0400
Kostya Vasilyev kmans...@gmail.com wrote:

 On 06/02/2012 02:31 AM, Jeremy Villalobos wrote:
  It would be nice to have a folder for svg's on the Android project 
  (Eclipse), and have a tool that automatically creates the icons for 
  each screen based on the svg provided by the designer.
 
  On build, the plugin creates the png's from the svg's, but the svgs 
  are not added to the release package.
 
  Is there such a tool ?
 
 FWIW, I save my artwork as PNGs at -xhdpi resolution and then run a 
 script to update the lower-res versions:
 
 http://kmansoft.com/2012/05/23/scale-android-drawables-with-a-script/
 
 Supposedly you can do svg to png conversion with ImageMagick, or with 
 Inkscape:
 
 http://stackoverflow.com/questions/9530524/imagemagick-convert-svg-to-transparent-png-with-antialiasing
 
 So, with just a little scripting, it should be possible to do what 
 you're after.

I do exactly this with the convert tool from imagemagick in Debian
GNU/Linux. I don't know how to get eclipse/ant to automate it so I've
written a Makefile, which also runs a script to make texture atlases.
The convert commands are something like this:

convert -background '#' othersrc/vpad.svg -geometry 192x192 \
res/drawable-hdpi/vpad.png

but in the Makefile I have to add a backslash (\) before the '#'.

On Debian and Ubuntu etc you also need the package librsvg2-bin. And
imagemagick+librsvg is broken on Ubuntu Lucid, better use inkscape
instead in that case.

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


[android-developers] is there a way to explore directory structure in assets/?

2012-06-02 Thread Latimerius
There's AssetManager.list() but that doesn't seem to pick up
subdirectories.  Other than via AssetManager, how am I supposed to
find out what's in assets/?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] get the text in edit text on button click

2012-06-02 Thread Fred Niggle
did you try the google search for this?
On 2 Jun 2012 19:07, Raghavendra Rao raghu1...@gmail.com wrote:

 hi,

 how can i get the text entered by the user in the Edit Text on button
 click, kindly do help me on 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

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

2012-06-02 Thread Fred Niggle
what to do indeed have you worked through a few service tutorials?
On 2 Jun 2012 11:54, Bhavin alertsavemyl...@gmail.com wrote:

 Dear sir,

 I am having following scenario:

 Service class
 .
 .
 .
 .(Extends) Class1
 .
 .
 .
 .
  (Extends) Class2


 Now i wanted to start class2 as a service.

 what to do?

 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

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

2012-06-02 Thread Doug Gordon
I'll shortly be releasing my first widget product and am wondering if 
there are any restrictions as to how the user updates a widget when a 
new version is posted. I've noticed that if you use the App Manager to 
delete a widget that's in use without removing it from the home screens, 
an error message ends up being displayed in that location on the screen 
(which you then have to remove in the standard way).


But if an updated version is installed over the existing version, is the 
updated widget now displayed as expected on the home screen? Or would 
the user be forced to remove the existing instances and add back the 
updated widget?


Doug Gordon
GHCS Software

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Invoking a web service created in java

2012-06-02 Thread James Black
If you look at this link:
http://stackoverflow.com/questions/5321906/how-to-find-the-jar-of-java-rmi-package

you will see that this problem is difficult to resolve, but there are some
suggestions that may help you.

The problem is that there is a missing class that java on the desktop has,
which is why you get the error on the android.

You may want to try using ksoap ( http://code.google.com/p/ksoap2-android/ )
instead of axis, and your problem may go away.

On Fri, Jun 1, 2012 at 11:51 PM, Bunty gautam.i...@gmail.com wrote:

 No. I have got Axis.jar in my android project build path. the same
 thing when i do in java project, it works excellently. But in android
 project it does not.

 Compilation error:

 The type java.rmi.RemoteException cannot be resolved. It is indirectly
 referenced from required .class files

 and many more..seems like its not supported in android project.

 Please help me with possible ways.

 On Jun 2, 8:44 am, James Black planiturth...@gmail.com wrote:
  What kind of errors are you getting?
 
  It may be that you are missing a library, perhaps.
 
 
 
 
 
 
 
 
 
  On Fri, Jun 1, 2012 at 11:27 PM, Bunty gautam.i...@gmail.com wrote:
   Hi all,
 
   I need to invoke a web service from android app. I have the wsdl file
   of a web service created in java, i don't have the source code of the
   same.
 
   In java, i use the Generate Client option to generate the files from
   a wsdl and then invoke the web service via my java app using Axis.jar.
 
   When i click the Generate Client option the files are generated
   along with some compilation errors. But the same thing when i am doing
   in an java app, the generated files does not have any compilation
   errors.
 
   Please inform the proper way of doing the same from the android
   prospective.
 
   Regatds,
   Bunty
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Resume  Projects:http://careers.stackoverflow.com/jamesblack
 
  I know that you believe you understand what you think I said, but I'm
 not
  sure you realize that what you heard is not what I meant.
  - Robert McCloskey

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




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

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

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

[android-developers] Re: get the text in edit text on button click

2012-06-02 Thread Raghavendra Rao
Yes i tried, but am not able to get the logic behind tht, am new to this
kindly help me

On 2 June 2012 23:36, Raghavendra Rao raghu1...@gmail.com wrote:

 hi,

 how can i get the text entered by the user in the Edit Text on button
 click, kindly do help me on 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