RE: [android-beginners] Re: Unable to start service

2010-07-16 Thread sachin.ravi
You can use getApplicationContext() or current class.this (means if your class name is Abc then use like this Abc.this) -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Bret Foreman Sent: Friday, July 02, 2010 10:32 PM

RE: [android-beginners] closing multiple activities

2010-07-16 Thread sachin.ravi
Start the Activity using startActivityForResult(Intent, int). Use finishActivity (int requestCode) : This force to finish another activity that you had previously started with startActivityForResult(Intent, int). Parameters requestCode: The request code of the activity that you had given to

[android-beginners] Using SQLite update DB

2010-07-16 Thread Bhaban N
Dear All, I am trying to use SQLite on my application. But I am not able to get how to use update method. My sql statement is like this. update poi set visitcount=1 where cate=1 AND name='신사2점(7호)'; I try to use execSQL but it has some problem so I want to use update method. its like

[android-beginners] Regarding R class in application project

2010-07-16 Thread ameya dandekar
Hi, I am currently working on application in which i use a library project as android library and refer to its functionality in my application project.But when i try to use a resource from library it gives error ... R.id can not be resolved. Is it that i can not use the resouces and layouts

[android-beginners] SQL and SQLite

2010-07-16 Thread Raul Martinez
Are SQL and SQLite the same thing? If not what's the difference -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe

[android-beginners] change scroll speed in gallery.

2010-07-16 Thread murali raju
Hi, Can i change the scroll speed in gallery view? i want a constant change in the gallery views irrespective of the speed the user fligs it. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack

Re: [android-beginners] Re: Database handling - when do you open and close

2010-07-16 Thread YuviDroid
mmm I'm not really sure what you are trying to achieve. Exactly, at what times do you want to open/close the db? The db should stay open while your application is running? So, even when you switch among activities (yours activities)? On Thu, Jul 15, 2010 at 6:36 PM, Bender

[android-beginners] Re: Flurry and AppWidgets

2010-07-16 Thread whitemice
Hi Jake Assuming you are talking about Android Home Screen Widgets, I had the same issue which I blogged here: http://blog.zedray.com/2010/05/01/tracking-a-android-home-screen-widget/ I still haven't gotten a response from Flurry, so I suggest you consider the Google Analytics API. While this

Re: [android-beginners] SQL and SQLite

2010-07-16 Thread Mikey
SQL is Structured Query Language, a language for writing queries to an RDBMS SQLite is a lightweight implementation of an RDBMS that runs on Android (among other places) and uses SQL to return data. HTH, Mikey On 16 Jul 2010, at 07:54, Raul Martinez wrote: Are SQL and SQLite the same thing?

[android-beginners] Re: Flurry and AppWidgets

2010-07-16 Thread Jake Colman
Mark, So you call dispatch() from a service upon every call to onUpdate? ...Jake w == whitemice markbr...@zedray.co.uk writes: w Hi Jake w Assuming you are talking about Android Home Screen Widgets, I had w the same issue which I blogged here: w

[android-beginners] HUGE PROBLEM - I really need help: after trying to retrieve videos from sd card, the app disappeared from the emulator entirely

2010-07-16 Thread kivy
Hi there, I was working on the code below, trying to load all available videos from the emulator sdcard into my gridview, I compiled and wanted to test it, but the app has disappeared entirely from my emulator... what can I do or better what have I done wrong in the code that could cause a

Re: [android-beginners] Re: addContentView obscures events

2010-07-16 Thread Justin Anderson
What exactly are you trying to accomplish? Are you trying to get the same sort of effect that the browser or google maps has with the zoom in/out buttons (in that they show up on top of the current view)? The google maps source definitely isn't available, but if the browser source is then you

[android-beginners] Re: Managing an SQLite cursor in a ListActivity

2010-07-16 Thread hiubs
can you post some code? On 14 jul, 20:21, Bret Foreman bret.fore...@gmail.com wrote: I have a ListActivity that selects a cursor from an SQLite table in order to build the list. The cursor is created inside ListActivity.onCreate and closed inside ListActivity.onDestroy. I also call

Re: [android-beginners] Re: Creating a populated sqlite database

2010-07-16 Thread Rodney Lendore
The database will in the end contain about 100 rows and 3 columns. But this database will not be written to by the user simply read from to gain some generic information, depending on which buttons a user clicks. Thanks On Mon, Jul 12, 2010 at 9:23 PM, Justin Anderson

[android-beginners] List content observers

2010-07-16 Thread Froens
Hi there I'm building an app that uses content observers. My problem is, that I tend to register my content observers multiple times. This causes my application to log events several times. How do I find out, if my content observer is already registered? - Frederik -- You received this message

[android-beginners] Re: Managing an SQLite cursor in a ListActivity

2010-07-16 Thread hiubs
Hello Bret, can you post some code? On 14 jul, 20:21, Bret Foreman bret.fore...@gmail.com wrote: I have a ListActivity that selects a cursor from an SQLite table in order to build the list. The cursor is created inside ListActivity.onCreate and closed inside ListActivity.onDestroy. I also

[android-beginners] non-chat bluetooth example

2010-07-16 Thread Affan
I need to send and receive data from an Android client to a Bluetooth SPP server on a non-android platform (not decided, but possibly Arduino with C code). I am mostly trying to correctly read from the serial iostream provided by the bluetooth socket and convert that into a Java class (to use

[android-beginners] List Activity Listener Not Working

2010-07-16 Thread Saket Srivastav
List activity listener is not listening. lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? arg0, View arg1, int position, long arg3) { System.out.println(ARG 2 = +position); Intent i = new Intent(MenuList.this, SICalculator.class); startActivity(i); }

[android-beginners] Re: Java Keyword This and Button Listeners.

2010-07-16 Thread DanH
setOnClickListener takes a reference (pointer) to an object as its argument. That object must implement the onClick() method. So when a click occurs, the onClick method of that object (that specific instance of that class) is called. Using this just directs that the onClick method of the

[android-beginners] Re: Creating a populated sqlite database

2010-07-16 Thread DanH
Certainly with only 100 rows you could write the SQL script containing the create table command and 100 insert commands and then use something like SQLite Expert to execute the script and create the DB. Or you could just write a straight Java application to execute the commands and create the DB.

Re: [android-beginners] List Activity Listener Not Working

2010-07-16 Thread TreKing
On Fri, Jul 16, 2010 at 1:38 PM, Saket Srivastav saketsrivasta...@gmail.com wrote: any reasons why the list item click listener is not working??? Probably Try thishttp://developer.android.com/reference/android/app/ListActivity.html#onListItemClick(android.widget.ListView,

[android-beginners] Including libraries in project

2010-07-16 Thread kypriakos
Hi all, I managed to compile the imported application (the trick was not to just throw the lib directory in the project but to also build a library out of the jars and present that in the project class path). However, I am noticing in DDMS (and in debug perspective) when I launch the app that

[android-beginners] Detecting version of Android at runtime

2010-07-16 Thread Bret Foreman
I'm about to implement a hack to work around a bug in Android 2.1. I'd like that hack to be inactive in 2.2 where the bug is (reportedly) fixed. How can I test at runtime for the version of Android that the phone is running? In case anyone is interested, here's the hack:

[android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria
Hi, I am trying to load videos from my emulated sdcard into my implemented GridView, it worked fine before, when I used the GridView example from Google...but now I get a Force close error when I try to open the app. The entire app works (or rather should work) like this a TabView is launched

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Kostya Vasilyev
Victoria, The cause of this exception appears in logcat: 07-16 19:40:45.124: ERROR/AndroidRuntime(225): Caused by: java.lang.NullPointerException 07-16 19:40:45.124: ERROR/AndroidRuntime(225): at com.mobilevideoeditor.moved.EditGalleryView $VideoAdapter.getCount(EditGalleryView.java:73)

Re: [android-beginners] Re: Java Keyword This and Button Listeners.

2010-07-16 Thread Justin Anderson
I would seriously recommend reading up a little more on Object Oriented programming... The this keyword is an extremely basic and extremely essential concept for OO programming. It is used in Java, C++, C#, and many other OO programming languages. If an OO language doesn't have the this keyword

Re: [android-beginners] Detecting version of Android at runtime

2010-07-16 Thread Justin Anderson
http://developer.android.com/reference/android/os/Build.VERSION.html -- There are only 10 types of people in the world... Those who know binary and those who don't.

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Hey thanks for the fast reply :), I am sorry for the next question but I am really new to all this: how do I set breakpoints?? On Fri, Jul 16, 2010 at 9:58 PM, Kostya Vasilyev kmans...@gmail.com wrote: Victoria, The cause of this exception appears in logcat: 07-16 19:40:45.124:

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread TreKing
On Fri, Jul 16, 2010 at 4:31 PM, Victoria Busse victoriasarabu...@gmail.com wrote: I am sorry for the next question but I am really new to all this: how do I set breakpoints?? Why are you sorry? I could tell you how to set a break point. Or I could tell you that simple Google search lead me

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread TreKing
On Fri, Jul 16, 2010 at 4:41 PM, TreKing treking...@gmail.com wrote: http://help.eclipse.org/helios/index.jsp Stupid Frames: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/task-add_line_breakpoints.htm

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Thanks :) I'll check it now... On Fri, Jul 16, 2010 at 10:43 PM, TreKing treking...@gmail.com wrote: On Fri, Jul 16, 2010 at 4:41 PM, TreKing treking...@gmail.com wrote: http://help.eclipse.org/helios/index.jsp Stupid Frames:

Re: [android-beginners] chat software , android based

2010-07-16 Thread Sam Hobbs
I have not done any Unix/Linux development and networking is not my specialty but chat applications usually use plain old TCP/IP, correct? Is plain TCP/IP not available in Android? Emmen Farooq wrote: Hi , we need to make a android based chat software , now the scenario is as follows let I

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Okay, I set the breakpoint for getCount(); and this is what I got... terminatedMoved [Android Application] disconnectedDalvikVM[localhost:8615] Moved [Android Application] DalvikVM[localhost:8615] Thread [3 main] (Suspended (entry into method getCount in EditGalleryView$VideoAdapter))

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Justin Anderson
Are you using Eclipse? If you are using Eclipse, you should be able to step through your code and examine variables and object state and step through your code one line at a time... -- There are only 10 types of people in the

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Alright :) okay I see what you mean now, I guess, but for most of these lines I get something like source not found... The JAR of this class file belongs to container Android 2.1 - update 1 which does not allow modifications to source attachments on its entries. On Fri, Jul 16, 2010 at 11:18

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Kostya Vasilyev
So far so good, you've successfully hit a breakpoint. Now you need to inspect variables (Google for Eclipse debugging basics). Also set a breakpoint whee data is handed over to the adapter, and see which one gets hit first. BTW, I think adding if (vidUris != null) inside getCount() will fix the

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
I will definitely read and learn about debugging now...Thanks :))) The way you said works... public int getCount() { //return mThumbIds.length; if(vidUris!=null){ return vidUris.length;} return 0; } ...but the videos don't show up, so I still have a problem with

[android-beginners] ActivityNotFoundException and txt files

2010-07-16 Thread Harald
I am trying to open at .txt file in the standard file editor, I tryed this code but all I get is an ActivityNotFoundException File root = Environment.getExternalStorageDirectory(); File f = new File(root, /Android/data/HKKalender/ stdtekster.txt);

[android-beginners] Re: ActivityNotFoundException and txt files

2010-07-16 Thread DanH
http://developer.android.com/reference/android/content/ActivityNotFoundException.html : This exception is thrown when a call to startActivity(Intent) or one of its variants fails because an Activity can not be found to execute the given Intent. On Jul 16, 6:27 pm, Harald

[android-beginners] Can soundpool be made to play sounds and record them at the same time?

2010-07-16 Thread Traveler
I am working on an Android app that generates sounds. Is it possible to generate these sounds and record them at the same time using soundpool? The opject is to send the recording to another Droid after the initial sounds are generated with my Droid. Thanks for any advice. -- You received this

[android-beginners] Re: ActivityNotFoundException and txt files

2010-07-16 Thread Harald
Is there any way to fix it so that Android know how to open .txt files, or can I somehow in my code tell Android to use File Editor to open/edit .txt files. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your

Re: [android-beginners] Re: ActivityNotFoundException and txt files

2010-07-16 Thread Mark Murphy
On Fri, Jul 16, 2010 at 8:26 PM, Harald harald.kron...@gmail.com wrote: Is there any way to fix it so that Android know how to open .txt files, or can I somehow in my code tell Android to use File Editor to open/edit .txt files. I do not know what File Editor is. If that is some third party

[android-beginners] Re: Including libraries in project

2010-07-16 Thread kypriakos
So it is fair to say = Android bytecode != 3rd party code bytecode (particularly from IBM or SUN or Axis)? So the reason I am not seeing the libraries (which otherwise helped me compile my imported app in Eclipse) in the apk file is because they are not recognized by the Android platform? Unless