Hi,
You can drop the table by writing DROP TABLE tablename IF EXISTS
But after that it is good to do a VACUUM (info about that in the link
below).
I.e the code might look like:
private SQLiteDatabase db;
private static final String TABLE_NAME = "name_of_table";
try{db.execSQL("DROP TABLE
Kelly Mao wrote:
> Which android's version can support file transfer through bluetooth?
None, presently.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~--
Dev phones indeed explicitly don't get OTA updates, for several reasons:
-developers are assumed to be capable of manually updating their phones.
-those phones are designed to allow running custom versions of the
system, and an automated update could cause some damage.
-developers have legitimate
Google_Android_discussion wrote:
> Hi,
>
> Is it possible to alter the string values(in resources) in APK after
> creating it.
Not easily. The resources are in a "compiled" form in the APK and are
not designed to be modified. In addition, if your APK is signed, any
modification to the contents w
Kelly Mao wrote:
> I have got the code of Android 1.5
Questions regarding the Android source code are best asked on a mailing
list devoted to the Android source code:
http://source.android.com/discuss
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Waresc
BJP wrote:
> I would like to write a file to the SD card from my application, but
> the following code throws an IOException when debugged on a T-Mobile
> G1:
>
> String p = Environment.getExternalStorageDirectory() + "/log.txt";
> File recfile = new File(p);
> recfile.createNewFile();
>
> The l
On Apr 1, 1:32 am, herain wrote:
> I need to load a .so library in my Service onCreate method, but the
> process just down after System.load. On the other hand, the same code
> can work in Activity.
[...]
> 04-01 07:57:25.901: INFO/DEBUG(26719): pid: 26726, tid: 26726 >>>
> com.iflytek.service <
On Mar 31, 2:40 am, Filipe Abrantes wrote:
> so can the the XML inflater be causing this leak? can we get a leak from
> the xml itself?
>
> How would you propose to proceed from here... im running out of options...
Can you make this happen on the emulator (or on a rooted device)? If
so, you can
I am launching an image picker (from the gallery) and my code crashes
every single time. I tried to get some help in another post, but
people quit responding to the post. Please help. When I do a debug,
it tells me this (there are TONS of errors, but these looked the most
important - also, I ch
The exception is:
04-01 14:09:30.274: ERROR/AndroidRuntime(719):
java.lang.RuntimeException: Failure delivering result ResultInfo
{who=null, request=1, result=-1, data=Intent { data=content://media/
external/images/media/7 }} to activity {com.app.name/
com.app.name.activity}:
android.database.Cur
Bobbie wrote:
> I am launching an image picker (from the gallery) and my code crashes
> every single time. I tried to get some help in another post, but
> people quit responding to the post. Please help. When I do a debug,
> it tells me this (there are TONS of errors, but these looked the most
Mark Murphy wrote:
> Cursors are always pointing before the first result.
Actually, to clarify: Cursors are always pointing before the first
result when you initially get the Cursor from a query (whether of a
content provider or database).
--
Mark Murphy (a Commons Guy)
http://commonsware.com |
Correlation is not causation. Yes android is slower than it could be.
But jazelle isn't the only reason. I wouldn't be surprised if the j2me
variant isn't even using jazelle as jits tend to be faster in a lot of
applications. A "simple" jit would probably give a 5-10x+ speed up
of the java (not
Short answer:
Don't use static variables :-)
Somewhat longer answer:
If sub-activities need to access some data held by my main activity, i
usually do create one static variable:
public MyActivity extends Activity {
>> public static final MyActivity ACTIVE_INSTANCE; <<
protected void onCrea
Sorry I never created a web service before.
I only want to use this web service now to send HTTP request (HTTP
POST and HTTP GET) in my Google Android application.
If a user logins at my application (with username and password) the
username and password would be sended to my
web service and checke
Thank you SO much! I hate those 1-liners that kill your app, haha.
Thanks again!!!
On Apr 1, 2:14 pm, Mark Murphy wrote:
> Mark Murphy wrote:
> > Cursors are always pointing before the first result.
>
> Actually, to clarify: Cursors are always pointing before the first
> result when you initia
Thanks Lajos for pointing APE out, I hadn't heard of it until now.
Unfortunately your link to your Android port is broken, can you mend
it as I dont fancy spending another hour porting another library to
Android :D
Thanks
On Mar 31, 9:50 pm, lkelemen wrote:
> Hello everyone,
>
> I was also dis
@Override is a so-called annotation.
It does not generate any byte-code/runnable-code.
It just tells the compiler that the method below it is an override of
its super-class' method.
If your super-class changes its signature of onDraw, your compiler
will warn you about the fact that your method (in
You have to call moveToNext or moveToPosition first before you can use
the cursor.
On Apr 1, 2:13 pm, Bobbie wrote:
> The exception is:
>
> 04-01 14:09:30.274: ERROR/AndroidRuntime(719):
> java.lang.RuntimeException: Failure delivering result ResultInfo
> {who=null, request=1, result=-1, data=In
I'm surprised that calling start() has no effect, and that it takes several
seconds for playback to work again.
Do you have the same issue when playing a file in the music player, for
example?
On Tue, Mar 31, 2009 at 5:35 PM, Eric M. Burke wrote:
>
> I have an Activity that plays a brief OGG "p
I need to animate at a very fast rate (without using OpenGL). Now I am
calling View.invalidate() to paint to the screen, but this has the effect of
A: clearing the screen with black
B: drawing the content view
C: drawing the child view (which occupies only part of the screen, and is
the only thing
see the documentation on this link.It cans help you
http://www.devx.com/wireless/Article/40842/0/page/1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to a
I have found that, if you will be doing a lot of data access, compiled
statements will cut the time to complete most operations in half. This
is particularly true of inserts. Used in conjunction with
beginTransaction()/endTransaction(), using compiled statements can
make your data access quite swi
You will not find anyone at that price hence the revenue share
proposal
On Mar 29, 4:36 pm, androidinsider wrote:
> Eldev LLC is looking for android developer familiar with google image
> search API to write a new application.
>
> This is a contract job with a budget of $3000.
>
> Possibility of
This is one of the things SurfaceView is for. For a regular view hierarchy
you can't draw outside of updates, period.
I don't know what you mean by clearing the screen with black. We don't do
that. Within your window, if the window is translucent, we will clear the
update region back to translu
Thanks for the suggestion... but ScrollView only scrolls vertically up/
down, not horizontally left/right. At least that's what my experience
has been trying the ScrollView widget out, and what I have read about
ScrollView. Is there a way to make it scroll left/right as well?
On Apr 1, 8:53 am,
> A "simple" jit would probably give a 5-10x+ speed up of the java
Yes, this is what I observed in my tests of Nokia 6680 and Sony
Ericsson X1 versus Android G1 for the same computational benchmark. It
is not good for battery life either when the CPU has to spend 5-10
times as many clock cycles f
Just do the scrolling yourself. You are going to need to do some
significant optimizations to be able to efficiently draw a board that size
anyway (checking update rects and such to minimize drawing); to have smooth
scrolling, you may well need to do more than that, such as having it
rendered in a
Just remember that for a lot of applications most of the time is
spent calling native routines not executing java code. It isn't great
for battery life but it isn't as bad as you first think since in a lot
of apps, you spend almost all your time in wait loops so the CPU drain
isn't as important
Hi,
It seems that DDMS does not accept that a debugger in another host
connects to it (a scenario where host A has the Emulator and DDMS
running, and host B has the debugger).
It appears that DDMS is binding to the loopback address. Does anyone
know if that is intentional ?
Regards,
Wesley
--~
It should be noted that there is a spelling mistake in the code
version, this is how it should read:
IntentFilter mFilter = new IntentFilter
("android.intent.action.DATA_SMS_RECEIVED");
I typed it up in a browser and made the mistake.
Thanks.
On Mar 30, 11:24 am, thesquib wrote:
> I have create
Hi,
Is there a way to read the transmitter signal strength ?
TIA
--~--~-~--~~~---~--~~
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
Hi all,
Is there a way to read the cellular radio transmitter signal
strength ?
(TxPower or something similar).
TIA
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group,
It's actually not that much different than modifying any other
compiled program -- especially a normal jar.
Though like you said, it must be resigned after being modified.
On Apr 1, 1:34 pm, Mark Murphy wrote:
> Google_Android_discussion wrote:
> > Hi,
>
> > Is it possible to alter the string v
There is some relevant informaiton http://strazzere.com/blog/?cat=5&paged=3
and http://dedexer.sourceforge.net/ from Gabor.
Hope that helps.
On Apr 1, 10:28 am, Zhubham wrote:
> Hi,
>
> I am keen on understanding how the DVM works and finally what's the
> format of the generated byte code. Can
I am trying to access the memory card but Vista says please insert a
disk into removable disk H: and will not permit me to load files into
the card.
Any ideas as to what is wrong?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Agreed. It takes about 100 msecs to spin up the audio output once it
goes to standby. You will seeing something like this in the log:
W/AudioFlinger( 35): write blocked for 103 msecs
If it's taking several seconds, there must be something else involved.
On Apr 1, 11:51 am, Marco Nelissen wro
You should check out the xda-developers forums regarding creating
themes on the Dream a.k.a. G1. Those guys are doing just what you
mentioned, and resigning it as strazzere mentioned.
~clark
On Apr 1, 2:32 pm, strazzere wrote:
> It's actually not that much different than modifying any other
>
Wait what?
What does altering strings in an self-compiled apk have to do with
themes?
On Apr 1, 6:31 pm, clark wrote:
> You should check out the xda-developers forums regarding creating
> themes on the Dream a.k.a. G1. Those guys are doing just what you
> mentioned, and resigning it as strazze
What OS are you on and what version of Java is installed?
Also, could you provide the commands you are running?
~clark
On Apr 1, 6:17 am, "androch...@gmail.com"
wrote:
> Hi
>
> i try to sign my apk.. i exportet it unsigned.. created my keys and
> when i start now jarsigner i get:
>
> I get th
I've used this and it works for me.
c.getCount();
On Apr 1, 12:34 pm, "nEx.Software" wrote:
> I have found that, if you will be doing a lot of data access, compiled
> statements will cut the time to complete most operations in half. This
> is particularly true of inserts. Used in conjunction wi
Are you recycling your bitmaps? I'm not sure what your
getThumbnailBitmap is doing, but I have something that sounds similar
where I rescale my bitmaps like so:
public static Bitmap getBitmap(Context context,String photoUriPath)
throws Exception {
Uri photoUri = Uri.parse
You will need to extend the View you are displaying the drawable and
override the draw method to add your custom text like this:
@Override
public void draw(Canvas canvas) {
super.draw(canvas);
canvas.drawText("Title", x,
y, t
I've done some more profile based hand optimization and I now have
it running superfast. :) I've put the new version in the same
location as the previous one. I still had some floating point code
that was slowing me down. The difference between floating point and
fixed point is not to be u
Could someone let me know how exactly android makes the sliding text
on an icon slide up to the end of the text? Currently I'm using
TranslateAnimation to slide the text, but this is hard since text can
change lengths and just gets too complex... :(
Help!?
Thanks!
Moto!
my current code:
float
On Apr 1, 2:01 pm, Wesley wrote:
> It seems that DDMS does not accept that a debugger in another host
> connects to it (a scenario where host A has the Emulator and DDMS
> running, and host B has the debugger).
> It appears that DDMS is binding to the loopback address. Does anyone
> know if that
While that works, it will create a Cursor with 'N' rows and then
counts the number of rows. If you instead retrieved "count(*)" as a
column, you'd have a Cursor with 1 row, with a field that contains the
count. The latter is more efficient.
On Wed, Apr 1, 2009 at 5:03 PM, Glen Humphrey
wrote:
>
Awesome.
It is visually much smoother than your first version. Three thumbs up!
On Apr 1, 8:48 pm, Anton wrote:
> I've done some more profile based hand optimization and I now have
> it running superfast. :) I've put the new version in the same
> location as the previous one. I still had
About open-sourcing it:
Thanks! That would be great and i'll be happy to do some work on it to
make it even better (if i *can* do this; you already did a great job).
Let us know when your api is ready to be put on open-source. :-)
On Apr 1, 8:48 pm, Anton wrote:
> I've done some more profi
Hi,
I have download and built android source on my local machine.
Can you please tell me how can I remove all the binaries (*.o,
executables) to clean up everything?
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
I have some good news too, I have successfully ported APE (http://
www.cove.org/ape/) to Android and have a simulation of 50 objects
running extremely smoothly.
Considering I have only spent an hour or so converting everything to
Android and making minimal optimisations this is really good news
i
The drawable's draw() method takes a canvas, so there is no problem having a
drawable use that to draw text.
Also you should almost always implement View.onDraw(), not View.draw().
On Wed, Apr 1, 2009 at 5:23 PM, wrote:
>
> You will need to extend the View you are displaying the drawable and
>
Yes, I'd love to see the results of that.
-Anton
On Apr 1, 6:25 pm, mscwd01 wrote:
> I have some good news too, I have successfully ported APE
> (http://www.cove.org/ape/) to Android and have a simulation of 50 objects
> running extremely smoothly.
>
> Considering I have only spent an
On Wed, Apr 1, 2009 at 11:40 AM, Romain Guy wrote:
>
> Using gestures to navigate within an app has a HUGE problem: it is
> totally undiscoverable.
>
Additionally, it poses a problem with future devices: you shouldn't
assume that every device that will run Android will have a touch
screen.
Evan
Maybe not an object, something like object ID, anyone who knows?
On Apr 1, 4:51 pm, quill wrote:
> Hi, all,
> I have created a MemoryFile object in my client application, and how
> can I get it in my server application? The object is large enough that
> I can't tranfer it by Intent or aidl inter
Hi all,
I want to set default focus in the first focusable view when entering
a new screen, and i use view.requestFocus(View.FOCUS_DOWN) (view is
the root ViewGroup), but it doesn't work. The method alway return
false. And i also found a strange situation: view.getFocusables
(View.FOCUS_DOWN) wil
Is my code worth anything?
--~--~-~--~~~---~--~~
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
I'm curious too! :)
On Apr 1, 9:25 pm, mscwd01 wrote:
> I have some good news too, I have successfully ported APE
> (http://www.cove.org/ape/) to Android and have a simulation of 50 objects
> running extremely smoothly.
>
> Considering I have only spent an hour or so converting everything to
>
I met the same problem from two weeks ago, if any one fixed it pls help me.
Best Regards
Eric Chen
On Wed, Apr 1, 2009 at 5:54 PM, l hx wrote:
> Hi.
> today i get the newest code and make it .but when i mksdcard, and
> mount it as same as i did before. but now i can not acces sd card int
Hi,
Link is working now. I've put
System.exit(0);
to the Activity's onStop and the performance looks stable now.
The state of the physics world is not preserved when you push home and
long push home and swithch back to the app.
What do you think:
Would using a Vector pool in class CollisionResolv
Hi,
I want to get the left and top of a view in relative layout.But the
value alway are relative to its father view.So how can I get the
instinct left and top relative to the window?
Thank you very much.
--~--~-~--~~~---~--~~
You received this message because
Thanks Mark, but I'm debugging the application on a T-Mobile G1 with
installed SD card (real hardware) ~ no emulator, just the real thing.
Is there a permission needed that I'm not recognizing? Or, is there a
special exclusive way to deal with files on the SD card? Any help or
pointing in the ri
Hi Everyone,
Does anybody know how can I sort out a problem with the
WebView.pageDown( boolean ) method that simple does not remains in the
bottom of the web view after invoking loadData() ?
The behavior in the emulator moves to the bottom and right after that
moves back to the top.
Thanks in a
pageDown() does not mean "scroll the web page to the bottom" it means
"scroll down by one page." Just like the "page down" key on a computer
keyboard.
On Wed, Apr 1, 2009 at 9:33 PM, pperotti wrote:
>
> Hi Everyone,
>
> Does anybody know how can I sort out a problem with the
> WebView.pageDown(
On Wed, Apr 1, 2009 at 8:10 PM, lkelemen wrote:
> Link is working now. I've put
> System.exit(0);
> to the Activity's onStop and the performance looks stable now.
Er, that is very wrong. It sounds like you aren't properly cleaning things
up when the activity goes away, perhaps leaving a runnin
hi.
i want to develop a application like imageswitcher but instead of
images that show in gallery i want to display a videos in that
gallery.i want to develop application same as in APIDEMOS-
IMAGESWITHCER .
so any help for that?
thanks.
jaimin
--~--~-~--~~~---~--~
Are you sure that you have write permission to /sdcard ( sdcard
mounted with RW and the directory /sdcard i writable) ?
I suggest you run another app to store some information in /sdcard
for a test
On 4月2日, 下午12时23分, BJP wrote:
> Thanks Mark, but I'm debugging the application on a T-Mobile G
Hi all,
I'm learning how to show pictures now, and following the example
"ApiDemos" given by sdk.I want to add the zoom function to the
ImageSwitcher, but I didn't find useful code in sdk. Can anyone give
me some code to help me about zooming the picture in ImageSwitcher?
Here is the code of "A
Hi,
I have written a video player app. Its working fine, but the problem
is the screen is going to in sleep mode after playing some time. When
I click on "Menu" button on the device, then only it wakes up.
How can I solve this?
Thanks,
Manoj.
--~--~-~--~~~---~--~
Hi I am writing an application which reads the xml data and just
prints it.
The xml data consists of some escape sequence characters like &," ...
I am using DOM parser for this.
When trying to print the data, I am not able to get the original data.
The code, I am using is:
Document d
You need to hold a wakelock to keep the display powered up.
On Apr 1, 10:33 pm, manoj wrote:
> Hi,
>
> I have written a video player app. Its working fine, but the problem
> is the screen is going to in sleep mode after playing some time. When
> I click on "Menu" button on the device, then only
Have you looked at the VideoView widget?
On Apr 1, 2:41 am, jaimin wrote:
> hi,
> i have problem in playing video file. Video file is playing nice but i
> want to play video file in the whole emulator (size).Right now video
> file is playing but in small size.
> so any suggestion or solution plz
Looks like you are repeatedly calling the MediaPlayer.start() method
when it is in an uninitialized state.
On Apr 1, 12:42 am, Ramesh wrote:
> Hi,
>
> I am trying to play media player.Its working fine but in log i am
> getting this kind of error
> Can anybody tell me why this error occured and h
thanks for the suggestion but i have solve that with multiply by 16 to my
320*480px and it runs in full screen
On Thu, Apr 2, 2009 at 11:26 AM, Dave Sparks wrote:
>
> Have you looked at the VideoView widget?
>
> On Apr 1, 2:41 am, jaimin wrote:
> > hi,
> > i have problem in playing video file. V
Hi
How to set position of TextView and EditText using java code. i want to set
EditText just after TextView.
Thanks in advance.
Download prohibited? No problem. CHAT from any browser, without download.
Go to http://in.webmessenger.yahoo.com/
--~--~-~--~~~
Hi all,
I just uploaded the application and got couple of negative rates like
"force closes on start".
On start the tab page populated by Intent which is ListActivity. The
list data is loading from resources. List is really small. No internet
and file system access triggered on start.
The strange
Here is some example.xml:
"Manoj"
"10th"
"male"
...
The name field contains ' " ' ("Manoj" as shown in the above example).
When I was parsing it using the DOM parser as shown in the previous
mail, I am getting only " instead of "Manoj". Not complete strin
hi.
i am new to android .
i want to devlop an appliaction in which i put lots of sms in the
phone's sms database and then i would like to send those sms to
contacts which user selected.
1)so first i want to know how can i see the sms database.
2)and how can i update those sms database
so any sug
hi . i am new to android.
i have same problem or questio that u have so if u find any answer
then plz can u share with me?
because i need the solution very badly.
On Mar 16, 12:41 pm, Kenny wrote:
> Can anybody help? To be clear, I want to write a Android Java program
> to monitor the sent-outS
<>
example in api demos --- Views/Lists/6.ListAdapter Collapsed
On Wed, Apr 1, 2009 at 1:12 PM, Matthias wrote:
>
> Hi,
>
> I am struggling over another layouting problem again. I render a
> ListView with ellipsized TextView elements, but those text views can
> expand in size when the user cl
Can you tell us exactly what you do to access it ?
On Wed, Apr 1, 2009 at 11:37 PM, intbt wrote:
>
> I am trying to access the memory card but Vista says please insert a
> disk into removable disk H: and will not permit me to load files into
> the card.
>
> Any ideas as to what is wrong?
> >
>
When you connect the device to your PC then
1) In the phone notification area it will display connect to USB
open the notification and click on mount
then it will allow you to access memory card
I think it will help you
On Thu, Apr 2, 2009 at 3:07 AM, intbt wrote:
>
> I am trying to access
101 - 182 of 182 matches
Mail list logo