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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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);
}
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
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.
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,
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
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:
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
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)
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
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.
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:
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
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
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:
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
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))
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
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
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
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
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);
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
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
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
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
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
43 matches
Mail list logo