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

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 wrote: > @YuviDroid >

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

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: SQL and SQLite

2010-07-16 Thread DanH
Yes, SQL is a "standard" for a database query language and API, and SQLite is an (open source, portable) implementation of that standard. Some would quibble about how well SQLite adheres to the standard, but one can also say the same of most other implementations (there are lots of "dialects"), and

[android-beginners] Re: Using SQLite update DB

2010-07-16 Thread DanH
Just a hint: SQLite generates some pretty good diagnostic messages. I'm assuming (I've not used SQLite on Android) that the message info is in the SQLiteException. You need to print that out and report the message when asking for help. On Jul 16, 1:31 am, Bhaban N wrote: > Dear All, > I am tryi

[android-beginners] Re: Flurry and AppWidgets

2010-07-16 Thread Jake Colman
Mark, Your blog postings hit the nail directly on the head! I guess I'll do as you suggest and see what Google Analytics can do for me. Thanks. ...Jake > "w" == whitemice writes: w> Hi Jake w> Assuming you are talking about Android Home Screen Widgets, I had w> the same issu

[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 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> http://blog.zedray.com/2010/05/01/tracking-

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

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 cou

[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 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 startManagingCursor right aft

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 wrote: > Unless the databas

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

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

[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); } })

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

2010-07-16 Thread Justin Anderson
If I were doing it I would just create it in code... It is quite a small database. -- There are only 10 types of people in the world... Those who know binary and those who don't. --

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

2010-07-16 Thread Kostya Vasilyev
Rodney, Just one more option - write a small Android app to create the database, then pull it from the device using "adb pull" and place into the "real" project as an asset. -- Kostya 16.07.2010 23:31, Justin Anderson ?: If I were doing it I would just create it in code... It is quite a

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

2010-07-16 Thread Keith Roberts
setOnClickListener actually takes the callback method that will be invoked when the user presses the button interface as an argument, so it doesn't take a view Basically you're saying "this" is just a reference to the current object you're in. So if you're in a specific method and you use th

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

[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 wrote: > any reasons why the list item click listener is not working??? > Probably Try this

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

[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: https://sites.google.com/a

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

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

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

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 wrote: > Victoria, > > The cause of this exception appears in logcat: > > > 07-16 19:40:45.124: ERROR/AndroidRuntime(225

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 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 to this, where you can fin

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 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 wrote: > On Fri, Jul 16, 2010 at 4:41 PM, TreKing 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_

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 b

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... Moved [Android Application] DalvikVM[localhost:8615] Moved [Android Application] DalvikVM[localhost:8615] Thread [<3> main] (Suspended (entry into method getCount in EditGalleryView$VideoAdapter)) EditGalleryView$VideoAdapter.get

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 wo

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

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 retrie

[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 wrote: > I am trying

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

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

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

2010-07-16 Thread Mark Murphy
On Fri, Jul 16, 2010 at 8:26 PM, Harald 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 text editor, contact t

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