[android-developers] What is a ".db-journal" file in device?

2009-10-22 Thread yukinoba
to dear all Android developers, Does anyone know what exactly a file is ".db-journal" under the /data/data//databases ? I created a database by SQLiteOpenHelper, and wrote something into it for application storage. However I found that there is no data in the .db file, then appears a strange file

[android-developers] Cannot process file I/O in InstrumentationTest?

2009-10-18 Thread yukinoba
to dear all Android developers, Is the file I/O operations during InstrumentationTest not really written back (aka. committed) to the device storage? Recently I was working on the InstrumentationTest to verify my own applications, however it always shows no data in the local preference and databa

[android-developers] What would cause a DeadObjectException?

2009-09-30 Thread yukinoba
to dear all Android developers and fans, Does anyone ever meet a "android.os.DeadObjectException" thrown by a remote service in Android? The problem I met is, the transact method in the service binder interface threw this exception to me. I wrote a remote service, and called it through the servi

[android-developers] Re: xmlpullparser don't write in xml?

2009-06-28 Thread yukinoba
to dear winger, What's this? an AndroidManifest.xml or a Preference file? If it's a Preference, you should edit it through the PreferenceEditor object. If it is an AndroidManifest.xml file, you can't modify it in runtime, you should modify it with your code editor. Best regards On 6月26日, 上午10時1

[android-developers] Does Android not support old SSLv3 protocols?

2009-04-13 Thread yukinoba
to dear All, Does anyone meet "NoSuchAlgorithmException" in SSLContext.getInstance ("SSLv3") method? I found Android may close the downward support of old SSL protocols, and keep the latest TLS connections only. Is this true that SSLv3 is not supported in Android? Could anyone provide some inform

[android-developers] Why all mails were turned to unread?

2009-03-09 Thread yukinoba
Does anyone ever notice that the mail client (POP3) on Android will turn all the mails' status from "read" into "unread" after a "Force Close" event happened? I found this when I survey whether Android could open a meeting request message. When I opened the "meeting.ics" attachment which includes

[android-developers] Re: How to get the UTC bias from TimeZone information?

2009-02-19 Thread yukinoba
tc = utc + (mMyTimeZone.getDSTSavings() / 360); } On 2月19日, 下午3時14分, bw wrote: > I also couldn't find the solution.. > > A lookup table/database workaround is posted > here:http://groups.google.com/group/android-developers/browse_thread/threa... > > On Jan 22, 9:59 pm, yukinoba wrote: >

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-12 Thread yukinoba
s any information, still thanks all Android developers. Sincerely, On 2月13日, 上午11時04分, yukinoba wrote: > More information: > > The "_id" column brings no trouble as an ORDER BY argument, but can > not exist in the projection map. The reason is still unknown. > > Needs

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-12 Thread yukinoba
More information: The "_id" column brings no trouble as an ORDER BY argument, but can not exist in the projection map. The reason is still unknown. Needs help, please. Sincerely, Nicholas On 2月13日, 上午10時32分, yukinoba wrote: > To dear all, > > I found that when you use

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-12 Thread yukinoba
las On 2月12日, 下午4時15分, yukinoba wrote: > Hi all, > > More information found: > The database could be written by the execSQL method, however, it could > not be read from the query method. > > A "Write-Only" database? that's weird... > > I open my data

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-12 Thread yukinoba
mDbHelper = new DatabaseHelper(mCtx); mDb = mDbHelper.getWritableDatabase(); Is it possible that the read-access is "locked" by the first database? I'm sure that I close my database with mDbHelper.close() after each query... On 2月12日, 下午4時00分, yukinoba wrote: > to dear

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-12 Thread yukinoba
Best regards, Nicholas On 2月12日, 下午2時49分, yukinoba wrote: > I have a new question for this: > > Can there have multiple databases created in the same application or > service? > I have 2 databases, one for query and store the information about > phone numbers, and one for the names.

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-11 Thread yukinoba
never get rid of that status. So, my question is, does each application / service have been limited to have only one single database? Plz provides any help or suggestion Best regards, Nicholas On 2月12日, 上午9時23分, yukinoba wrote: > Could someone give a little bit information about any possi

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-11 Thread yukinoba
Could someone give a little bit information about any possible solution or hint? I have searched in this forum and nothing about this topic :-( On 2月11日, 下午6時44分, yukinoba wrote: > More information: > > Most of the data (surname) here are utf-8 encoded, does this cause the > er

[android-developers] Re: What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-11 Thread yukinoba
More information: Most of the data (surname) here are utf-8 encoded, does this cause the error? Could anyone tell me how to push an utf-8 String in the SQL statement? Thanks for any help! :-) Best regards, Nicholas On 2月11日, 下午5時18分, yukinoba wrote: > to dear all Android developers, >

[android-developers] What will cause SQLiteQueryBuilder.query infinite loop?

2009-02-11 Thread yukinoba
to dear all Android developers, I'm dealing with database operation on Android recently. However, there has a problem troubles me that the query method in SQLiteQueryBuilder infinitely loops and has no return. The operation code is like below: // CODE section --// SQLiteQueryBuilder

[android-developers] How to get the UTC bias from TimeZone information?

2009-01-22 Thread yukinoba
to dear all Android developers, I need to know the UTC bias of my phone to correct the UTC time information I got from a site. I have read earlier posts and already found the solution to get TimeZone information from the "System.currentTimeMillis();" method. However, I need to translate the TimeZ

[android-developers] Re: Where could I get an ADT 0.9.0?

2009-01-07 Thread yukinoba
ell me. I could mail you my own built ADT zip file to you. Best regards, Nicholas On 1月1日, 上午5時59分, Wah wrote: > Yukinoba: > > I tried to build using build_server.sh with the following set of > commands and failed: > > setenv ECLIPSE_HOME /usr/local/installed/eclipse > cd ~/my

[android-developers] Re: How could I know a Service is already started?

2009-01-07 Thread yukinoba
to dear Dianne, I don't think using remote callback is a good idea and mechanism. :-( The callback of ServiceConnection can only be triggered "when the service is already started" but not "when the service is not yet started", and there will be a confusion during waiting for the callback is trig

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread yukinoba
created or destroyed via the appropriate callbacks. > > > > On Tue, Jan 6, 2009 at 1:24 AM, yukinoba wrote: > > > to dear Dianne, > > > I need to implement a remote background service and a service > > controller activity. I want to present an effect which the co

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread yukinoba
acks. > > > > On Tue, Jan 6, 2009 at 1:24 AM, yukinoba wrote: > > > to dear Dianne, > > > I need to implement a remote background service and a service > > controller activity. I want to present an effect which the controller > > activity could know wh

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread yukinoba
llbacks. > > > > On Tue, Jan 6, 2009 at 1:24 AM, yukinoba wrote: > > > to dear Dianne, > > > I need to implement a remote background service and a service > > controller activity. I want to present an effect which the controller > > activity could know wh

[android-developers] Re: How could I know a Service is already started?

2009-01-06 Thread yukinoba
its state, you can just set a global variable while it is running. > > Why do you need to do this? > > > > On Mon, Jan 5, 2009 at 10:34 PM, yukinoba wrote: > > > Hi all, > > > I have already found out how to get this done. Please refer to the > > followin

[android-developers] Re: How could I know a Service is already started?

2009-01-05 Thread yukinoba
ervice; if(serviceName.getClassName().equals(className)) { return serviceName; } } return null; } Best regards, Nicholas On 1月6日, 上午10時58分, yukinoba wrote: > Ummm... does anyone know? have any ideas? > > On

[android-developers] Re: How could I know a Service is already started?

2009-01-05 Thread yukinoba
Ummm... does anyone know? have any ideas? On 1月5日, 下午12時05分, yukinoba wrote: > To dear all Android developers, > > Is there a way to check whether a service is already started or not? > This issue has been discussed ealier (and much earlier) in April, in > the last year, on this

[android-developers] How could I know a Service is already started?

2009-01-04 Thread yukinoba
To dear all Android developers, Is there a way to check whether a service is already started or not? This issue has been discussed ealier (and much earlier) in April, in the last year, on this forum. http://groups.google.com/group/android-developers/browse_thread/thread/2b3a7b1c5801dc9c/40b16552

[android-developers] Re: certificate ssl webservice keystore

2008-12-30 Thread yukinoba
OK, and thanks for your mention :-) I have read your source code, and I found it's similar to the source of the email client embedded in the Android source code now. My one question is, the cause that 3rd-party applications could not create a SSL socket, is because of 3rd-party applications can n

[android-developers] Re: Emulator is not able to connect to network

2008-12-29 Thread yukinoba
https doesn't work, well, I don't know > - use -debug-http-proxy when launching the emulator, and post the output > here. that should probably give more information I can decode > > On Fri, Dec 19, 2008 at 8:49 AM, yukinoba wrote: > > > hi David, > > > I ha

[android-developers] Re: Where could I get an ADT 0.9.0?

2008-12-29 Thread yukinoba
月28日, 上午1時41分, Kenny Yu wrote: > I built cupcake, which has been merged to master HEAD. The ADT is > quite OK. Can you share more info? > > Kenny > > On Dec 26, 11:35 am, yukinoba wrote: > > > To dear all, > > > Does anyone have the cupcake? The SDK in there is

[android-developers] Where could I get an ADT 0.9.0?

2008-12-25 Thread yukinoba
To dear all, Does anyone have the cupcake? The SDK in there is not applicable to the ADT plugin (Android Development Tools plugin) of Eclipse any more, and Eclipse throws a message told me I should get an updated ADT with version 0.9.0. However, I tried to build one in the source, and found that

[android-developers] Re: HTC G2's home effection is very well,I saw it on www,Is it real or just a flash?

2008-12-23 Thread yukinoba
I m not going to offense ur dream... However, these pictures are provided and designed by Android fans only. The actual T-Mobile G2 pictures are not going to be published yet. All we know til now is G2 will have a virtual keyboard and be published during March in the next year. On 12月22日, 上午3時07分

[android-developers] Re: certificate ssl webservice keystore

2008-12-19 Thread yukinoba
es not (and should not) make it a trusted certificate in > Thunderbird. > > As a developer and a user I see it as a good thing that Android doesn't > let applications do this, and I would be against any change to this > policy just to make developers lives a bit easier. > &

[android-developers] Re: Emulator is not able to connect to network

2008-12-18 Thread yukinoba
hi David, I have the same situation to this. However, I could connect to internet by using HttpClient and get responses. The "3G icon" appears in the top of Android home, but browser does not work at all. I have my own proxy address with proxy.local:80, and sets in the Eclipse preference and usin

[android-developers] Re: certificate ssl webservice keystore

2008-12-18 Thread yukinoba
hi, I have surveyed lots of solutions to this problem. However, most solutions break (or say, cheat) the SSL verification for development usage, and surely I don't want to make this kind of solutions in my own application. Could you help to provide a guideline how to create application-specific k

[android-developers] Re: Does LogCat support UTF-8 to display?

2008-12-18 Thread yukinoba
Thx Ralf ;-) On 12月16日, 上午5時35分, Ralf wrote: > On Thu, Dec 11, 2008 at 11:55 PM, yukinoba wrote: > > > hi all > > > does anyone know thatlogcatsupports utf-8 display or not? > > I ve tried to transfer non-unicode string message objects to the Log > > m

[android-developers] Re: Does LogCat support UTF-8 to display?

2008-12-15 Thread yukinoba
Ummm...does ANYONE know? or could Mr./Mrs. Googles answer? @_...@? Best Regards, Nicholas On 12月12日, 下午3時55分, yukinoba wrote: > hi all > > does anyone know that logcat supports utf-8 display or not? > I ve tried to transfer non-unicode string message objects to the Log > m

[android-developers] Does LogCat support UTF-8 to display?

2008-12-11 Thread yukinoba
hi all does anyone know that logcat supports utf-8 display or not? I ve tried to transfer non-unicode string message objects to the Log method, with new String(s.getBytes(""), "utf-8"), and then put it into the Log.v(, ) then I found, logcat shows results with wrong encoding characters... does

[android-developers] Re: Send Http Request

2008-11-28 Thread yukinoba
dear Salman, plz try to survey this package: org.apache.http this package, there will have all you need in HTTP request/response get a HTTP client: mHTTPClient = new DefaultHttpClient(); create a POST request from pre-defined URI: HttpPost post = new HttpPost(uri); (you need to implement HttpReq

[android-developers] [Problem] Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-26 Thread yukinoba
Hi, I'm a totally newbie to the Android SDK. I have been installed Eclipse 3.4 (Ganymede), ADT 0.7.1 and Android 0.9 SDK with JRE 6 updated 7. It seems weird when I follow the "Hello, Android!" guideline on Google site. First I encountered the problem of Android libray. It seems eclipse won't inc