[android-developers] Re: Problem with Android Emulator

2011-11-16 Thread Bishan
ok. i fixed the issue. deleted current one and created a new one. :)

On Wed, Nov 16, 2011 at 1:16 PM, Bishan tvbis...@gmail.com wrote:

 When i start the emulator, it show on taskbar. but it is not comes to my
 pc screen. i tried to get it on my pc screen using task manager by
 selecting Bring to Front command. but it is not comes to infront of my
 screen.

 how could i fix this issue ?


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

[android-developers] Problem with Android Emulator

2011-11-15 Thread Bishan
When i start the emulator, it show on taskbar. but it is not comes to my pc
screen. i tried to get it on my pc screen using task manager by selecting
Bring to Front command. but it is not comes to infront of my screen.

how could i fix this issue ?

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

Re: [android-developers] Swipe gesturing to switch between tabs

2011-11-13 Thread Bishan
thanks  srinivas.

On 11/11/11, venkata srinivas namburi srinivase...@gmail.com wrote:
 Hi Bishan,

 I guess there is sample application using fragments,which walks you through
 the swipe gesture in tabs( FragmentTabsPager.java).

 On Fri, Nov 11, 2011 at 3:09 PM, Bishan tvbis...@gmail.com wrote:

 How to add swipe gesturing to switch between tabs 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




 --
 Thanks and Regards,
 Srinivas.

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

2011-11-11 Thread Bishan
How to add swipe gesturing to switch between tabs 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

[android-developers] Need a help with Android Swipe Action

2011-11-10 Thread Bishan
please see the attachment.

I need to add swipe action to my project with HorizontalPager.java file in
my attached project. i have tried to do that, unfortunately i'm unable to
find a way to do that.

please any one help me to implement swipe action with HorizontalPager.java
file.

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

customized-tabs.rar
Description: application/rar


[android-developers] Re: Need a help with Android Swipe Action

2011-11-10 Thread Bishan
ps: actually i need to add swipe action to views with tabs in my example.

On Fri, Nov 11, 2011 at 12:55 PM, Bishan tvbis...@gmail.com wrote:

 please see the attachment.

 I need to add swipe action to my project with HorizontalPager.java file in
 my attached project. i have tried to do that, unfortunately i'm unable to
 find a way to do that.

 please any one help me to implement swipe action with HorizontalPager.java
 file.


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

2011-11-03 Thread Bishan
I need to show data on popup dialog as a list that retrieved from
database. how could i do 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] About Quick Action Dialog

2011-11-03 Thread Bishan
thanx Mark . i'll try this

On 11/3/11, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Nov 2, 2011 at 10:05 PM, Bishan tvbis...@gmail.com wrote:
 could you please give me some example about UI model that i can use for
 this ?

 AlertDialog.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-11-02 Thread Bishan
I have created a Quick Action Dialog after reading article on
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/.

Now i'm trying to display data on this Quick Action Dialog which retrieved
from sqlite database as a list.
how can i do this? how could implement list on Quick Action Dialog with
data retrieved from sqlite database ?

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

2011-11-02 Thread Bishan
thanx Mark.
could you please give me some example about UI model that i can use for this ?

On 11/2/11, Mark Murphy mmur...@commonsware.com wrote:
 Quick action dialogs like the ones you link to are not designed for
 displaying information, but rather to give the user rapid access to an
 array of actions to take against something. Please use some other UI
 model for displaying a list of output.

 On Wed, Nov 2, 2011 at 6:53 AM, Bishan tvbis...@gmail.com wrote:
 I have created a Quick Action Dialog after reading article
 on http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/.
 Now i'm trying to display data on this Quick Action Dialog which retrieved
 from sqlite database as a list.
 how can i do this? how could implement list on Quick Action Dialog with
 data retrieved from sqlite database ?

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



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

 _Android Programming Tutorials_ Version 4.0 Available!

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

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

2011-11-01 Thread Bishan
Thanx Mark :)

On 11/1/11, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Nov 1, 2011 at 12:19 AM, Bishan tvbis...@gmail.com wrote:
 I have followed instructions to Download the Support Package
 in http://developer.android.com/sdk/compatibility-library.html. but  i
 can't
 see Support Package in my Android SDK and AVD Manager. there is only
 Android
 SDK Tools, revision 15 and Android SDK platform-tools, revision 9 when i
 expand the Android Repository.
 what is the issue ?

 You have not upgraded to the new tools packages.

 how can i download the Support Package ?

 Upgrade to the new tools packages. Then, you will be able to download
 the Android Support package, the Ice Cream Sandwich (Android 4.0) SDK,
 and more.

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

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

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

2011-10-31 Thread Bishan
I have created app with TabHost. i need to add Swipe  action to these tabs.
how can do 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] Can't download Support Package

2011-10-31 Thread Bishan
I have followed instructions to Download the Support Package in
http://developer.android.com/sdk/compatibility-library.html. but  i can't
see Support Package in my Android SDK and AVD Manager. there is only
Android SDK Tools, revision 15 and Android SDK platform-tools, revision 9
when i expand the Android Repository.

what is the issue ? how can i download the Support Package ?

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

2011-09-22 Thread Bishan
I tried to create folder in my dropbox account as below.

DropboxAPI api = new DropboxAPI();

api.createFolder(sandbox, StockSys);

but i got below exception.

09-23 09:09:24.709: ERROR/AndroidRuntime(439): FATAL EXCEPTION: main
09-23 09:09:24.709: ERROR/AndroidRuntime(439): java.lang.NullPointerException
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
com.dropbox.client.DropboxAPI.createFolder(DropboxAPI.java:514)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
com.dropbox.android.sample.DropboxActions$1.onClick(DropboxActions.java:39)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
android.view.View.performClick(View.java:2485)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
android.view.View$PerformClick.run(View.java:9080)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
android.os.Handler.handleCallback(Handler.java:587)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
android.os.Handler.dispatchMessage(Handler.java:92)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
android.os.Looper.loop(Looper.java:123)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
android.app.ActivityThread.main(ActivityThread.java:3683)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
java.lang.reflect.Method.invokeNative(Native Method)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
java.lang.reflect.Method.invoke(Method.java:507)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-23 09:09:24.709: ERROR/AndroidRuntime(439): at
dalvik.system.NativeStart.main(Native Method)

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


Re: [android-developers] Re: How to insert special character into Database

2011-09-21 Thread Bishan
@  Zsolt
no. i got this error.

09-21 12:07:26.876: INFO/Database(19855): sqlite returned: error code
= 1, msg = near S: syntax error

09-21 12:07:26.876: ERROR/Database(19855): Failure 1 (near S: syntax
error) on 0x2ae178 when preparing 'INSERT INTO Client VALUES
('110003', 'MITHUL'S ', 'R1', '3', '0', 'HOTEL', 'BRONZ', '4', '3',
'MAIN ROAD', 'AAA', 'SSS', '1091', 'weqwe', 'Y')'.

On 9/21/11, Zsolt Vasvari zvasv...@gmail.com wrote:
 It's all Unicode, all characters are created equal.

 On Sep 21, 1:38 pm, Bishan tvbis...@gmail.com wrote:
 How to insert ' character or special character into Database using sqlite
 ?

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

2011-09-20 Thread Bishan
How to insert ' character or special character into Database using sqlite ?

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

2011-09-19 Thread Bishan
Got  java.lang.ClassCastException: java.lang.String in line 78

(code in line 78 is cursor = (Cursor) parent.getItemAtPosition(position);)

what is the issue ?
file attached.

On Mon, Sep 19, 2011 at 11:42 AM, Krishna Prasad 
krishnaprasadrs.1...@gmail.com wrote:

 did u get your values from db correctly?


 On Mon, Sep 19, 2011 at 11:21 AM, Bishan tvbis...@gmail.com wrote:

 i got this exception,

 java.lang.ClassCastException: android.widget.ArrayAdapter

 for below code.

 SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter)
 parent.getAdapter();

 On 9/19/11, Bishan tvbis...@gmail.com wrote:
  thanx Krishna. i'll check this.
 
  On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
  final int id = cursor.getint(idColIndex );
 
  just check the value using logcat whether it is getting or not
 
  On Mon, Sep 19, 2011 at 10:57 AM, Krishna Prasad 
  krishnaprasadrs.1...@gmail.com wrote:
 
  id means the String variable where u save the cursor.colum value.
 
 
  On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote:
 
  bundle.putString(any name,Id);
 
  what is the  Id  in above code ?
 
  On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
   welcome..
  
   On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com
 wrote:
  
   thanx Krishna :)
  
   On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com
 wrote:
@Override
public void onItemClick(AdapterView? parent, View
arg1,
int
   i,
long l) {
try {
   
SimpleCursorAdapter simpleCursorAdapter =
(SimpleCursorAdapter) parent
.getAdapter();
final Cursor cursor =
   simpleCursorAdapter.getCursor();
   
final int idColIndex =
  cursor.getColumnIndex(_id);
   
Save the value in a variable  and use bundles
   
   
Bundle bundle = new Bundle();
bundle.putString(any name,Id);
   
Intent intent = new Intent(first
activity.this,
second activity.class);
intent.putExtras(bundle);
startActivity(intent);
   
On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com
wrote:
   
I have wrote a program to get students names from database and
  display
them, using ListActivity. and used OnItemClickListener to click
on
each items.
   
now i want to do, when i click on a student name, display other
information of student (age, sex, address) on another screen.
   
how could i do this?
   
 pls guide me.
   
--
You received this message because you are subscribed to the
Google
Groups Android Developers group.
To post to this group, send email to
   android-developers@googlegroups.com
To unsubscribe from this group, 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
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
  android-developers@googlegroups.com
   To unsubscribe from this group, 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
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
  android-developers@googlegroups.com
  To unsubscribe from this group, 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

Re: [android-developers] Get Data from Database of selected Item

2011-09-19 Thread Bishan
thanx  Krishna

On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
 Use Simple cursor adapter insted of array adapter...

 Check
 http://thinkandroid.wordpress.com/2010/01/09/simplecursoradapters-and-listviews/

 On Mon, Sep 19, 2011 at 4:54 PM, Bishan tvbis...@gmail.com wrote:

 Got  java.lang.ClassCastException: java.lang.String in line 78

 (code in line 78 is cursor = (Cursor) parent.getItemAtPosition(position);)

 what is the issue ?
 file attached.

 On Mon, Sep 19, 2011 at 11:42 AM, Krishna Prasad 
 krishnaprasadrs.1...@gmail.com wrote:

 did u get your values from db correctly?


 On Mon, Sep 19, 2011 at 11:21 AM, Bishan tvbis...@gmail.com wrote:

 i got this exception,

 java.lang.ClassCastException: android.widget.ArrayAdapter

 for below code.

 SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter)
 parent.getAdapter();

 On 9/19/11, Bishan tvbis...@gmail.com wrote:
  thanx Krishna. i'll check this.
 
  On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
  final int id = cursor.getint(idColIndex );
 
  just check the value using logcat whether it is getting or not
 
  On Mon, Sep 19, 2011 at 10:57 AM, Krishna Prasad 
  krishnaprasadrs.1...@gmail.com wrote:
 
  id means the String variable where u save the cursor.colum value.
 
 
  On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote:
 
  bundle.putString(any name,Id);
 
  what is the  Id  in above code ?
 
  On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
   welcome..
  
   On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com
 wrote:
  
   thanx Krishna :)
  
   On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com
 wrote:
@Override
public void onItemClick(AdapterView? parent,
View
arg1,
int
   i,
long l) {
try {
   
SimpleCursorAdapter simpleCursorAdapter =
(SimpleCursorAdapter) parent
.getAdapter();
final Cursor cursor =
   simpleCursorAdapter.getCursor();
   
final int idColIndex =
  cursor.getColumnIndex(_id);
   
Save the value in a variable  and use bundles
   
   
Bundle bundle = new Bundle();
bundle.putString(any name,Id);
   
Intent intent = new Intent(first
activity.this,
second activity.class);
intent.putExtras(bundle);
startActivity(intent);
   
On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com
wrote:
   
I have wrote a program to get students names from database
and
  display
them, using ListActivity. and used OnItemClickListener to
 click
on
each items.
   
now i want to do, when i click on a student name, display
 other
information of student (age, sex, address) on another screen.
   
how could i do this?
   
 pls guide me.
   
--
You received this message because you are subscribed to the
Google
Groups Android Developers group.
To post to this group, send email to
   android-developers@googlegroups.com
To unsubscribe from this group, 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
  
   --
   You received this message because you are subscribed to the
 Google
   Groups Android Developers group.
   To post to this group, send email to
  android-developers@googlegroups.com
   To unsubscribe from this group, 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
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
  android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl

[android-developers] Get Data from Database of selected Item

2011-09-18 Thread Bishan
I have wrote a program to get students names from database and display
them, using ListActivity. and used OnItemClickListener to click on
each items.

now i want to do, when i click on a student name, display other
information of student (age, sex, address) on another screen.

how could i do this?

 pls guide me.

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

2011-09-18 Thread Bishan
thanx Krishna :)

On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
 @Override
 public void onItemClick(AdapterView? parent, View arg1, int i,
 long l) {
 try {

 SimpleCursorAdapter simpleCursorAdapter =
 (SimpleCursorAdapter) parent
 .getAdapter();
 final Cursor cursor = simpleCursorAdapter.getCursor();

 final int idColIndex = cursor.getColumnIndex(_id);

 Save the value in a variable  and use bundles


 Bundle bundle = new Bundle();
 bundle.putString(any name,Id);

 Intent intent = new Intent(first activity.this,
 second activity.class);
 intent.putExtras(bundle);
 startActivity(intent);

 On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote:

 I have wrote a program to get students names from database and display
 them, using ListActivity. and used OnItemClickListener to click on
 each items.

 now i want to do, when i click on a student name, display other
 information of student (age, sex, address) on another screen.

 how could i do this?

  pls guide me.

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

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

2011-09-18 Thread Bishan
bundle.putString(any name,Id);

what is the  Id  in above code ?

On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
 welcome..

 On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote:

 thanx Krishna :)

 On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
  @Override
  public void onItemClick(AdapterView? parent, View arg1,
  int
 i,
  long l) {
  try {
 
  SimpleCursorAdapter simpleCursorAdapter =
  (SimpleCursorAdapter) parent
  .getAdapter();
  final Cursor cursor =
 simpleCursorAdapter.getCursor();
 
  final int idColIndex = cursor.getColumnIndex(_id);
 
  Save the value in a variable  and use bundles
 
 
  Bundle bundle = new Bundle();
  bundle.putString(any name,Id);
 
  Intent intent = new Intent(first activity.this,
  second activity.class);
  intent.putExtras(bundle);
  startActivity(intent);
 
  On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote:
 
  I have wrote a program to get students names from database and display
  them, using ListActivity. and used OnItemClickListener to click on
  each items.
 
  now i want to do, when i click on a student name, display other
  information of student (age, sex, address) on another screen.
 
  how could i do this?
 
   pls guide me.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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

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

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

2011-09-18 Thread Bishan
thanx Krishna. i'll check this.

On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
 final int id = cursor.getint(idColIndex );

 just check the value using logcat whether it is getting or not

 On Mon, Sep 19, 2011 at 10:57 AM, Krishna Prasad 
 krishnaprasadrs.1...@gmail.com wrote:

 id means the String variable where u save the cursor.colum value.


 On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote:

 bundle.putString(any name,Id);

 what is the  Id  in above code ?

 On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
  welcome..
 
  On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote:
 
  thanx Krishna :)
 
  On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
   @Override
   public void onItemClick(AdapterView? parent, View
   arg1,
   int
  i,
   long l) {
   try {
  
   SimpleCursorAdapter simpleCursorAdapter =
   (SimpleCursorAdapter) parent
   .getAdapter();
   final Cursor cursor =
  simpleCursorAdapter.getCursor();
  
   final int idColIndex =
 cursor.getColumnIndex(_id);
  
   Save the value in a variable  and use bundles
  
  
   Bundle bundle = new Bundle();
   bundle.putString(any name,Id);
  
   Intent intent = new Intent(first activity.this,
   second activity.class);
   intent.putExtras(bundle);
   startActivity(intent);
  
   On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote:
  
   I have wrote a program to get students names from database and
 display
   them, using ListActivity. and used OnItemClickListener to click on
   each items.
  
   now i want to do, when i click on a student name, display other
   information of student (age, sex, address) on another screen.
  
   how could i do this?
  
pls guide me.
  
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
  android-developers@googlegroups.com
   To unsubscribe from this group, 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
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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

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

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

2011-09-18 Thread Bishan
i got this exception,

java.lang.ClassCastException: android.widget.ArrayAdapter

for below code.

SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter)
parent.getAdapter();

On 9/19/11, Bishan tvbis...@gmail.com wrote:
 thanx Krishna. i'll check this.

 On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
 final int id = cursor.getint(idColIndex );

 just check the value using logcat whether it is getting or not

 On Mon, Sep 19, 2011 at 10:57 AM, Krishna Prasad 
 krishnaprasadrs.1...@gmail.com wrote:

 id means the String variable where u save the cursor.colum value.


 On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote:

 bundle.putString(any name,Id);

 what is the  Id  in above code ?

 On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
  welcome..
 
  On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote:
 
  thanx Krishna :)
 
  On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote:
   @Override
   public void onItemClick(AdapterView? parent, View
   arg1,
   int
  i,
   long l) {
   try {
  
   SimpleCursorAdapter simpleCursorAdapter =
   (SimpleCursorAdapter) parent
   .getAdapter();
   final Cursor cursor =
  simpleCursorAdapter.getCursor();
  
   final int idColIndex =
 cursor.getColumnIndex(_id);
  
   Save the value in a variable  and use bundles
  
  
   Bundle bundle = new Bundle();
   bundle.putString(any name,Id);
  
   Intent intent = new Intent(first
   activity.this,
   second activity.class);
   intent.putExtras(bundle);
   startActivity(intent);
  
   On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com
   wrote:
  
   I have wrote a program to get students names from database and
 display
   them, using ListActivity. and used OnItemClickListener to click
   on
   each items.
  
   now i want to do, when i click on a student name, display other
   information of student (age, sex, address) on another screen.
  
   how could i do this?
  
pls guide me.
  
   --
   You received this message because you are subscribed to the
   Google
   Groups Android Developers group.
   To post to this group, send email to
  android-developers@googlegroups.com
   To unsubscribe from this group, 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
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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

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


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

2011-09-14 Thread Bishan
i have a xml file.(pls see attachement). and i need insert data in my
xml file to a sqlite database in my android project.

hw can i do 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?xml version=1.0 encoding=UTF-8?
clientDetails xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:es=http://www.elephantgreen.com/Interface;
	client
		clientID1072/clientID
		clientNameLASANTHA STORES/clientName
		routeNameR1/routeName
		visitingFrequency2/visitingFrequency
		creditLimit1000/creditLimit
		outletTypeGROCERY/outletType
		shopGradeBRONZ/shopGrade
		creditPeriodDays4/creditPeriodDays
		streetNumber1/streetNumber
		streetNameHIGHL LEVEL ROAD/streetName
		cityMAHARAGAMA/city
		districtCOLOMBO/district
		csrId1101/csrId
		commentstest/comments
		activeY/active
	/client
	client
		clientID1073/clientID
		clientNameGAYATHRI STORES/clientName
		routeNameR1/routeName
		visitingFrequency4/visitingFrequency
		creditLimit0/creditLimit
		outletTypeGROCERY/outletType
		shopGradeBRONZ/shopGrade
		creditPeriodDays4/creditPeriodDays
		streetNumber2/streetNumber
		streetNameHIGHL LEVEL ROAD/streetName
		cityMAHARAGAMA/city
		districtCOLOMBO/district
		csrId1102/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1074/clientID
		clientNameMITHUL'S /clientName
		routeNameR1/routeName
		visitingFrequency3/visitingFrequency
		creditLimit0/creditLimit
		outletTypeHOTEL/outletType
		shopGradeBRONZ/shopGrade
		creditPeriodDays4/creditPeriodDays
		streetNumber3/streetNumber
		streetNameHIGHL LEVEL ROAD/streetName
		cityMAHARAGAMA/city
		districtCOLOMBO/district
		csrId1103/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1075/clientID
		clientNameCHAMI/clientName
		routeNameR1/routeName
		visitingFrequency2/visitingFrequency
		creditLimit5000/creditLimit
		outletTypeHOTEL/outletType
		shopGradeSILVER/shopGrade
		creditPeriodDays4/creditPeriodDays
		streetNumber4/streetNumber
		streetNameHIGHL LEVEL ROAD/streetName
		cityMAHARAGAMA/city
		districtCOLOMBO/district
		csrId1101/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1076/clientID
		clientNameNILU/clientName
		routeNameR1/routeName
		visitingFrequency7/visitingFrequency
		creditLimit2/creditLimit
		outletTypeGROCERY/outletType
		shopGradeGOLD/shopGrade
		creditPeriodDays7/creditPeriodDays
		streetNumber5/streetNumber
		streetNameHIGHL LEVEL ROAD/streetName
		cityMAHARAGAMA/city
		districtCOLOMBO/district
		csrId1102/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1077/clientID
		clientNameCHAMITHU/clientName
		routeNameR1/routeName
		visitingFrequency1/visitingFrequency
		creditLimit14000/creditLimit
		outletTypeRESTAURANT/outletType
		shopGradeGOLD/shopGrade
		creditPeriodDays1/creditPeriodDays
		streetNumber6/streetNumber
		streetNameHIGHL LEVEL ROAD/streetName
		cityMAHARAGAMA/city
		districtCOLOMBO/district
		csrId1103/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1078/clientID
		clientNameAMAYA/clientName
		routeNameR2/routeName
		visitingFrequency3/visitingFrequency
		creditLimit12000/creditLimit
		outletTypeRESTAURANT/outletType
		shopGradeGOLD/shopGrade
		creditPeriodDays3/creditPeriodDays
		streetNumber2/streetNumber
		streetNameATHURUGIRIYA ROAD/streetName
		cityKOTTAWA/city
		districtCOLOMBO/district
		csrId1101/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1079/clientID
		clientNameCOOL ZONE/clientName
		routeNameR2/routeName
		visitingFrequency14/visitingFrequency
		creditLimit4000/creditLimit
		outletTypeGROCERY/outletType
		shopGradeSILVER/shopGrade
		creditPeriodDays14/creditPeriodDays
		streetNumber5/streetNumber
		streetNameATHURUGIRIYA ROAD/streetName
		cityKOTTAWA/city
		districtCOLOMBO/district
		csrId1102/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1080/clientID
		clientNameBON BON /clientName
		routeNameR2/routeName
		visitingFrequency2/visitingFrequency
		creditLimit3000/creditLimit
		outletTypeHOTEL/outletType
		shopGradeSILVER/shopGrade
		creditPeriodDays3/creditPeriodDays
		streetNumber7/streetNumber
		streetNameATHURUGIRIYA ROAD/streetName
		cityKOTTAWA/city
		districtCOLOMBO/district
		csrId1103/csrId
		comments/comments
		activeY/active
	/client
	client
		clientID1081/clientID
		clientNamePANORAMA/clientName
		routeNameR3/routeName
		visitingFrequency3/visitingFrequency
		creditLimit0/creditLimit
		outletTypeGROCERY/outletType
		shopGradeBRONZ/shopGrade
		creditPeriodDays3/creditPeriodDays
		streetNumber1/streetNumber
		streetNameMALABE ROAD/streetName
		cityPANNIPITIYA/city
		districtCOLOMBO/district
		csrId1101/csrId
		comments/comments
		activeY/active
	/client
	client
		

Re: [android-developers] Re: XML files and SQLITE Database

2011-09-14 Thread Bishan
thanx skink. i'll try this. :)

On Wed, Sep 14, 2011 at 12:33 PM, skink psk...@gmail.com wrote:



 On Sep 14, 8:49 am, Bishan tvbis...@gmail.com wrote:
  i have a xml file.(pls see attachement). and i need insert data in my
  xml file to a sqlite database in my android project.
 
  hw can i do this ?
 
   Client.xml
  18KViewDownload

 See
 http://groups.google.com/group/android-developers/browse_thread/thread/dec5475bcd98ea15/af98b5805d28e709#af98b5805d28e709

 Skip the step about TextView and read something how to use sqlite  in
 android app

 pskink

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

2011-09-14 Thread Bishan
any other answers ?

On 9/14/11, Bishan tvbis...@gmail.com wrote:
 thanx skink. i'll try this. :)

 On Wed, Sep 14, 2011 at 12:33 PM, skink psk...@gmail.com wrote:



 On Sep 14, 8:49 am, Bishan tvbis...@gmail.com wrote:
  i have a xml file.(pls see attachement). and i need insert data in my
  xml file to a sqlite database in my android project.
 
  hw can i do this ?
 
   Client.xml
  18KViewDownload

 See
 http://groups.google.com/group/android-developers/browse_thread/thread/dec5475bcd98ea15/af98b5805d28e709#af98b5805d28e709

 Skip the step about TextView and read something how to use sqlite  in
 android app

 pskink

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

2011-09-14 Thread Bishan
k. i got  it skink.

i know how to read XML. but the problem is how could i insert the data
in XML to the my sqlite database table after reading the XML. that's
the point whats wrong with me.


On 9/14/11, skink psk...@gmail.com wrote:


 On Sep 14, 9:31 am, Bishan tvbis...@gmail.com wrote:
 any other answers ?

 On 9/14/11, Bishan tvbis...@gmail.com wrote:



  thanx skink. i'll try this. :)

  On Wed, Sep 14, 2011 at 12:33 PM, skink psk...@gmail.com wrote:

  On Sep 14, 8:49 am, Bishan tvbis...@gmail.com wrote:
   i have a xml file.(pls see attachement). and i need insert data in my
   xml file to a sqlite database in my android project.

   hw can i do this ?

    Client.xml
   18KViewDownload

  See
 http://groups.google.com/group/android-developers/browse_thread/threa...

  Skip the step about TextView and read something how to use sqlite  in
  android app

  pskink

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

 nope. nobody is gonna do your homework and post full working code
 unless you show what you have done so far and ask whats wrong in your
 code.

 pskink

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

2011-09-14 Thread Bishan
currently i'm reading XML file and put data into a Vector Object. but
i don't know how could i insert the data in that Vector Object into
sqlite database. this is the point where i stuck.

On 9/14/11, skink psk...@gmail.com wrote:


 Bishan wrote:
 k. i got  it skink.

 i know how to read XML. but the problem is how could i insert the data
 in XML to the my sqlite database table after reading the XML. that's
 the point whats wrong with me.


 On 9/14/11, skink psk...@gmail.com wrote:
 
 
  On Sep 14, 9:31 am, Bishan tvbis...@gmail.com wrote:
  any other answers ?
 
  On 9/14/11, Bishan tvbis...@gmail.com wrote:
 
 
 
   thanx skink. i'll try this. :)
 
   On Wed, Sep 14, 2011 at 12:33 PM, skink psk...@gmail.com wrote:
 
   On Sep 14, 8:49 am, Bishan tvbis...@gmail.com wrote:
i have a xml file.(pls see attachement). and i need insert data in
my
xml file to a sqlite database in my android project.
 
hw can i do this ?
 
 Client.xml
18KViewDownload
 
   See
  http://groups.google.com/group/android-developers/browse_thread/threa...
 
   Skip the step about TextView and read something how to use sqlite
    in
   android app
 
   pskink
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
   android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  nope. nobody is gonna do your homework and post full working code
  unless you show what you have done so far and ask whats wrong in your
  code.
 
  pskink
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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

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

2011-09-14 Thread Bishan
thanx Shamim :)

On 9/14/11, Bishan tvbis...@gmail.com wrote:
 currently i'm reading XML file and put data into a Vector Object. but
 i don't know how could i insert the data in that Vector Object into
 sqlite database. this is the point where i stuck.

 On 9/14/11, skink psk...@gmail.com wrote:


 Bishan wrote:
 k. i got  it skink.

 i know how to read XML. but the problem is how could i insert the data
 in XML to the my sqlite database table after reading the XML. that's
 the point whats wrong with me.


 On 9/14/11, skink psk...@gmail.com wrote:
 
 
  On Sep 14, 9:31 am, Bishan tvbis...@gmail.com wrote:
  any other answers ?
 
  On 9/14/11, Bishan tvbis...@gmail.com wrote:
 
 
 
   thanx skink. i'll try this. :)
 
   On Wed, Sep 14, 2011 at 12:33 PM, skink psk...@gmail.com wrote:
 
   On Sep 14, 8:49 am, Bishan tvbis...@gmail.com wrote:
i have a xml file.(pls see attachement). and i need insert data
in
my
xml file to a sqlite database in my android project.
 
hw can i do this ?
 
 Client.xml
18KViewDownload
 
   See
  http://groups.google.com/group/android-developers/browse_thread/threa...
 
   Skip the step about TextView and read something how to use sqlite
    in
   android app
 
   pskink
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
   android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  nope. nobody is gonna do your homework and post full working code
  unless you show what you have done so far and ask whats wrong in your
  code.
 
  pskink
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
  android-developers@googlegroups.com
  To unsubscribe from this group, 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


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

2011-09-14 Thread Bishan
VectorEgCommon vClient = new VectorEgCommon();

for (int temp = 0; temp  getNodes().getLength(); temp++) {

Node nNode = getNodes().item(temp);
if (nNode.getNodeType() == Node.ELEMENT_NODE) {

Element element = (Element) nNode;

Client cl = new Client(
Util.getTagValue(clientID, 
element),
Util.getTagValue(clientName, 
element),
Util.getTagValue(routeName, 
element),

Util.getTagValue(visitingFrequency, element),
Util.getTagValue(creditLimit, 
element),
Util.getTagValue(outletType, 
element),
Util.getTagValue(shopGrade, 
element),

Util.getTagValue(creditPeriodDays, element),

Util.getTagValue(streetNumber, element),
Util.getTagValue(streetName, 
element),
Util.getTagValue(city, 
element),
Util.getTagValue(district, 
element),
Util.getTagValue(csrId, 
element),
Util.getTagValue(comments, 
element),
Util.getTagValue(active, 
element));

vClient.add(cl);

}
}
return vClient;
}

On 9/14/11, skink psk...@gmail.com wrote:


 On Sep 14, 11:29 am, Bishan tvbis...@gmail.com wrote:
 currently i'm reading XML file and put data into a Vector Object. but
 i don't know how could i insert the data in that Vector Object into
 sqlite database. this is the point where i stuck.

 On 9/14/11, skink psk...@gmail.com wrote:





  Bishan wrote:
  k. i got  it skink.

  i know how to read XML. but the problem is how could i insert the data
  in XML to the my sqlite database table after reading the XML. that's
  the point whats wrong with me.

  On 9/14/11, skink psk...@gmail.com wrote:

   On Sep 14, 9:31 am, Bishan tvbis...@gmail.com wrote:
   any other answers ?

   On 9/14/11, Bishan tvbis...@gmail.com wrote:

thanx skink. i'll try this. :)

On Wed, Sep 14, 2011 at 12:33 PM, skink psk...@gmail.com wrote:

On Sep 14, 8:49 am, Bishan tvbis...@gmail.com wrote:
 i have a xml file.(pls see attachement). and i need insert data
 in
 my
 xml file to a sqlite database in my android project.

 hw can i do this ?

  Client.xml
 18KViewDownload

See
   http://groups.google.com/group/android-developers/browse_thread/threa...

Skip the step about TextView and read something how to use sqlite
 in
android app

pskink

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

   nope. nobody is gonna do your homework and post full working code
   unless you show what you have done so far and ask whats wrong in your
   code.

   pskink

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

 And your code is...?

 pskink

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

Re: [android-developers] Re: XML files and SQLITE Database

2011-09-14 Thread Bishan
SQLiteDatabase db = openOrCreateDatabase(TestDB, 
MODE_PRIVATE, null);
db.execSQL(CREATE TABLE IF NOT EXISTS Client (clientID INT, +
 clientName VARCHAR,  +
routeName VARCHAR,  +
visitingFrequency INT,  +
creditLimit INT,  +
outletType VARCHAR,  +
shopGrade VARCHAR,  +
creditPeriodDays INT(2),  +
streetNumber VARCHAR,  +
streetName VARCHAR,  +
city VARCHAR,  +
district VARCHAR,  +
csrId INT,  +
comments VARCHAR,  +
active VARCHAR(1)));

db.execSQL(INSERT INTO Client VALUES (110001,  +
'LASANTHA STORES',  +
'R1',  +
4,  +
0,  +
'GROCERY',  +
'BRONZE',  +
4,  +
'2',  +
'HIGHL LEVEL ROAD',  +
'MAHARAGAMA',  +
'COLOMBO',  +
1091,  +
'Test Client',  +
'Y'));
db.close();

tried above one and it's worked. now i need to insert data in XML to
my database. i know how to read XML file and get values in xml
elements. but have no idea about how to insert them into database.

On 9/14/11, skink psk...@gmail.com wrote:


 On Sep 14, 12:15 pm, Bishan tvbis...@gmail.com wrote:
                 VectorEgCommon vClient = new VectorEgCommon();

                 for (int temp = 0; temp  getNodes().getLength(); temp++)
 {

                         Node nNode = getNodes().item(temp);
                         if (nNode.getNodeType() == Node.ELEMENT_NODE) {

                                 Element element = (Element) nNode;

                                 Client cl = new Client(

 Util.getTagValue(clientID, element),

 Util.getTagValue(clientName, element),

 Util.getTagValue(routeName, element),

 Util.getTagValue(visitingFrequency, element),

 Util.getTagValue(creditLimit, element),

 Util.getTagValue(outletType, element),

 Util.getTagValue(shopGrade, element),

 Util.getTagValue(creditPeriodDays, element),

 Util.getTagValue(streetNumber, element),

 Util.getTagValue(streetName, element),
                                                 Util.getTagValue(city,
 element),

 Util.getTagValue(district, element),
                                                 Util.getTagValue(csrId,
 element),

 Util.getTagValue(comments, element),
                                                 Util.getTagValue(active,
 element));

                                 vClient.add(cl);

                         }
                 }
                 return vClient;
         }


 man, i dont mean xml stuff as its already working, i mean your sqlite
 stuff, how do you try to insert data into your db?

 pskink

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

2011-09-14 Thread Bishan
thanx Cristhian. i'll check this.

On 9/15/11, Cristhian Flores cif...@gmail.com wrote:
 Hi Bishan

 I hope is helpful

 private var sqlc:SQLConnection = new SQLConnection();
 // sqlc is an SQLStatment which we need to execute our sql commands
 private var sqls:SQLStatement = new SQLStatement();
 // ArrayCollection used as a data provider for the datagrid. It has to be
 bindable so that data in datagrid changes automatically when we change the
 ArrayCollection
 private var dp:ArrayCollection = new ArrayCollection();

 private function start():void
 {
  var folder:File = File.applicationDirectory;
  var db:File = folder.resolvePath(test.bd);
 // first we need to set the file class for our database (in this example
 test.db). If the Database doesn't exists it will be created when we open it.
  //var db:File = File.applicationStorageDirectory.resolvePath(test.db);
  // after we set the file for our database we need to open it with our
 SQLConnection.
  sqlc.openAsync(db);
 // we need to set some event listeners so we know if we get an sql error,
 when the database is fully opened and to know when we recive a resault from
 an sql statment. The last one is uset to read data out of database.
  sqlc.addEventListener(SQLEvent.OPEN, db_opened);
 sqlc.addEventListener(SQLErrorEvent.ERROR, error);
  sqls.addEventListener(SQLErrorEvent.ERROR, error);
 sqls.addEventListener(SQLEvent.RESULT, resault);
 }

 private function db_opened(e:SQLEvent):void
 {
 // when the database is opened we need to link the SQLStatment to our
 SQLConnection, so that sql statments for the right database.
  // if you don't set this connection you will get an error when you execute
 sql statment.
 sqls.sqlConnection = sqlc;
  // in property text of our SQLStatment we write our sql command. We can
 also combine sql statments in our text property so that more than one
 statment can be executed at a time.
  // in this sql statment we create table in our database with name
 test_table with three columns (id, first_name and last_name). Id is an
 integer that is auto incremented when each item is added. First_name and
 last_name are columns in which we can store text
  // If you want to know more about sql statments search the web.
 sqls.text = CREATE TABLE IF NOT EXISTS test_table ( id INTEGER PRIMARY KEY
 AUTOINCREMENT, first_name TEXT, last_name TEXT);;
  // after we have connected sql statment to our sql connection and writen
 our sql commands we also need to execute our sql statment.
 // nothing will change in database until we execute sql statment.
  sqls.execute();
 // after we load the database and create the table if it doesn't already
 exists, we call refresh method which i have created to populate our datagrid
  refresh();
 }

 private function addItem():void
 {
 // in this sql statment we add item at the end of our table with values
 first_name.text in column first_name and last_name.text for column last_name
  sqls.text = INSERT INTO test_table (first_name, last_name)
 VALUES('+first_name.text+','+last_name.text+');;
  sqls.execute();
  refresh();
 }

 private function refresh(e:TimerEvent = null):void
 {
 // timer object which we need if sql statment is still executing so that we
 can try again after 10 milliseconds.
  var timer:Timer = new Timer(10,1);
 timer.addEventListener(TimerEvent.TIMER, refresh);
  if ( !sqls.executing )// we need to check if our sql statment is still
 executing our last sql command. If so we use Timer to try again in 10
 milliseconds. If we wouldn't check we could get an error because SQLStatment
 can't execute two statments at the same time.
  {
 // sql statment which returns all the data from our test_table. To retrive
 only data from first_name and last_name columns we would use SELECT
 first_name,last_name FROM test_table
  sqls.text = SELECT * FROM test_table
 sqls.execute();
 }
  else
 {
 timer.start();
  }
 }

 private function resault(e:SQLEvent):void
 {
 // with sqls.getResault().data we get the array of objects for each row out
 of our database
  var data:Array = sqls.getResult().data;
 // we pass the array of objects to our data provider to fill the datagrid
  dp = new ArrayCollection(data);
 }

 // method to remove row from database.
 private function remove():void
 {
 // sql statment to delete from our test_table the row that has the same
 number in number column as our selected row from datagrid
 sqls.text = DELETE FROM test_table WHERE id=+dp[dg.selectedIndex].id;
  sqls.execute();
 refresh();
 }

 2011/9/14 lbendlin l...@bendlin.us

 you seem to have a fundamental problem here. SQLite is a RELATIONAL
 database. XML is HIERARCHICAL. The Mericans would say trying to push a
 square peg in a round hole

 Before you can insert the XML data into SQLite you either need to flatten
 the data, or indicate a parent/child relationship between entries, or
 simply
 store the whole XML as a string.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group

[android-developers] How to Read XML file in SD card

2011-08-30 Thread Bishan
Hi All,

I'm new to Android and this is my first e mail to this group.
I would like to know how can i read a xml file in sdcard and view it
on a text area or any other container.

please any one give me a code fragments to do that.

(i'm developing android with sdk 10 android 2.3.3)

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

2011-08-30 Thread Bishan
Thanks TreKing .

On 8/31/11, TreKing treking...@gmail.com wrote:
 On Tue, Aug 30, 2011 at 4:40 AM, Bishan tvbis...@gmail.com wrote:

 I would like to know how can i read a xml file in sdcard and view it on a
 text area or any other container.


 1 - Read the documentation for how to access the SD card.
 2 - Read the documentation to find a suitable API that can read XML.
 3 - Read the documentation for TextView.
 4 - Put it all together.

 please any one give me a code fragments to do that.


 Please make an attempt to solve your own problem. If you get stuck, ask a
 specific, targeted question.

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

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

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