Re: [android-developers] Creating folders in SD card

2019-11-04 Thread Yves Liu
Thanks Dan for the quick response. So, if the new install app can't see the old folder and hen create the folder again with the same name, will that overwrite the old one? If not, that means the old folder might still be on the sd card and just no way to access it? On Mon, Nov 4, 2019 at 2:20 AM

Re: [android-developers] /storage/emulated/0

2014-03-13 Thread Yves Liu
Anyone can help? On Mar 10, 2014 10:11 PM, yves...@gmail.com yves...@gmail.com wrote: I used content resolver to get a picture from Gallery, get the DATA column and the path is like /storage/emulated/0/downloads/foo.jpg. Then I created a file based on that path, File testFile = new

Re: [android-developers] Download folder

2014-02-26 Thread Yves Liu
, Yves Liu yves...@gmail.com wrote: Sorry, this happens on Nexus 5, kitkat. That's what I thought. Next question - have you declared the new external storage permission? https://developer.android.com/about/versions/android-4.4.html

Re: [android-developers] External Storage lockout in 4.4 update on some Samsung devices.

2014-02-26 Thread Yves Liu
Yes, this is very inconvenient. Does google want to kill all the third party developers? On Tue, Feb 25, 2014 at 12:21 PM, Nathan nathan.d.mel...@gmail.com wrote: On Thursday, February 20, 2014 5:25:28 PM UTC-8, Nathan wrote: There is a chance that if I directed my users to use:

Re: [android-developers] Download folder

2014-02-24 Thread Yves Liu
? Is there an API call to get the path for external removable sd card? Sorry, this happens on Nexus 5, kitkat. Thanks On Sun, Feb 23, 2014 at 10:56 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 24, 2014 at 12:27 AM, Yves Liu yves...@gmail.com wrote: Here is the code snippet OK, first

Re: [android-developers] Download folder

2014-02-23 Thread Yves Liu
TreKing, Here is the code snippet File file = new File( /storage/emulated/0/Download/12345.jpg); if(file.exists()) return true; And another file which I can see through astro file manager there works. On Sun, Feb 23, 2014 at 10:20 PM, TreKing treking...@gmail.com wrote: On Sun, Feb

Re: [android-developers] Question regarding screen orientation change

2013-11-04 Thread Yves Liu
Sorry, I didn't make myself clear. So, if the phone rotates, my app works fine, it changes its orientation when device rotates. But if, say, I go to the settings of the phone, uncheck auto-rotate screen, when device rotates, my app still changes its orientation. I see other apps don't behave this

Re: [android-developers] Question regarding Permissions

2013-06-20 Thread Yves Liu
Thanks Kristopher. Could you elaborate what plug-in means in this context? On Thu, Jun 20, 2013 at 1:19 PM, Kristopher Micinski krismicin...@gmail.com wrote: Not in the same app, permissions are an in app level, the best way would be to make a separate app or a plug in to your original app.

Re: [android-developers] Question regarding Permissions

2013-06-20 Thread Yves Liu
trivial, or at all supported by the Android SDK, so you have to roll your own everything. Dynamic security policies in Android suck. Kris On Thu, Jun 20, 2013 at 4:27 PM, Yves Liu yves...@gmail.com wrote: Thanks Kristopher. Could you elaborate what plug-in means in this context? On Thu

Re: [android-developers] Launch app from Dialer but Dialer still runs

2013-06-12 Thread Yves Liu
And I did try to do abortBroadcast() in the onReceive call. But it didn't help On Wed, Jun 12, 2013 at 9:45 AM, yves...@gmail.com yves...@gmail.comwrote: So, I followed some instructions on the web and able to start my app through Dialer using a specific code, say, 1234. (I was using

Re: [android-developers] Enumerate sd cards

2013-03-12 Thread Yves Liu
Wow, if that is the case, it is a lot of work. :( No bullet proof solution then. On Sun, Mar 10, 2013 at 4:59 PM, RichardC richard.crit...@googlemail.com wrote: By guesswork, testing and end-user feedback on individual devices. On Sunday, March 10, 2013 11:03:36 PM UTC, yve...@gmail.com

Re: [android-developers] Enumerate sd cards

2013-03-10 Thread Yves Liu
Thank for the info. My question is that there are so many third party file explorer apps, how do they figure out the path of internal and external storages? On Fri, Mar 8, 2013 at 5:24 PM, RichardC richard.crit...@googlemail.com wrote: The problem we have here is that

Re: [android-developers] Enumerate sd cards

2013-03-08 Thread Yves Liu
Yes, have read the documentation. But that is not what I am looking for. The getExternalStorage() returns internal sd card (if there are both internal sd card and external sd card). I want to know how to find the external sd card path. On Wed, Mar 6, 2013 at 9:05 PM, TreKing

Re: [android-developers] forceclose problem after startActivity()

2012-07-10 Thread Yves Liu
Thanks. That is what I will do then. On Mon, Jul 9, 2012 at 4:19 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: What I usually do is adding app-internal logging all over the place. The log lines go into a text file, so you don't depend on the system log and don't need to fluff up your app with

Re: [android-developers] forceclose problem after startActivity()

2012-07-09 Thread Yves Liu
No, I don't. Is there an easy way to gather this information from a user? I can put some debug code on this user's machine. On Mon, Jul 9, 2012 at 11:14 AM, Justin Anderson magouyaw...@gmail.com wrote: Do you have access to the stacktrace? Thanks, Justin Anderson MagouyaWare Developer

Re: [android-developers] Motorola Razr ICS upgrade broke my app

2012-07-08 Thread Yves Liu
Hi Kostya, Thank you. It worked. :) For some reason this new ICS update on Razr cares about it, but on other ICS devices they don't care. On Sun, Jul 8, 2012 at 12:18 PM, Kostya Vasilyev kmans...@gmail.com wrote: The only thing that pops out of your description is the use of */* for mime

Re: [android-developers] MediaMetadaRetriever getFrameAtTime() call crashes

2012-03-11 Thread Yves Liu
Anyone? On Fri, Mar 9, 2012 at 11:22 AM, Yves Liu yves...@gmail.com wrote: And another question is here is my code, why can't I capture the crash? @Override       public Bitmap getFrame(String uri) {               try{                       MediaMetadataRetriever retriever = new

Re: [android-developers] MediaMetadaRetriever getFrameAtTime() call crashes

2012-03-09 Thread Yves Liu
And another question is here is my code, why can't I capture the crash? @Override public Bitmap getFrame(String uri) { try{ MediaMetadataRetriever retriever = new MediaMetadataRetriever(); retriever.setDataSource(uri);

Re: [android-developers] Re: Package name

2012-01-15 Thread Yves Liu
Thanks. I think i have to live with what the current name is then. :( On Sun, Jan 15, 2012 at 9:01 AM, James Black planiturth...@gmail.com wrote: If the application is free this is a good choice, but if it is something that people paid for, then forcing them to pay again just because you change

Re: [android-developers] Re: Stored files on sdcard deleted during uninstall or update

2011-10-13 Thread Yves Liu
getExternalStoragePublicDirectory(companyname) in order to create a directory which will not be erased when you uninstall or update your app. On Oct 12, 1:30 am, Yves Liu yves...@gmail.com wrote: I put data on the /data folder directly on sdcard. Not internal memory. That is a bad idea too? Should I use

Re: [android-developers] Stored files on sdcard deleted during uninstall or update

2011-10-12 Thread Yves Liu
I think this happened too if I put some files on phone internal storage (/mnt/sdcard/data) folder. On Tue, Oct 11, 2011 at 10:30 PM, Yves Liu yves...@gmail.com wrote: I put data on the /data folder directly on sdcard. Not internal memory. That is a bad idea too? Should I use /companyname

Re: [android-developers] Stored files on sdcard deleted during uninstall or update

2011-10-11 Thread Yves Liu
I put data on the /data folder directly on sdcard. Not internal memory. That is a bad idea too? Should I use /companyname on sdcard directly? On Tue, Oct 11, 2011 at 9:54 PM, Chris crehb...@gmail.com wrote: On Tuesday, October 11, 2011 11:34:37 PM UTC-4, Nikolay Elenkov wrote: The real

Re: [android-developers] Re: new sdk and backwards compatibility

2011-04-25 Thread Yves Liu
the library media_jni, it throws exception, I think the exception is unsuccessful link error. I don't know if it is because building using older sdk worked, but with new sdk, did they removed media_jni because android 3.0 has api for it? What should I do now? On Fri, Apr 22, 2011 at 11:11 AM, Yves

Re: [android-developers] Re: new sdk and backwards compatibility

2011-04-22 Thread Yves Liu
Thanks, that is exactly what I am looking for. On Fri, Apr 22, 2011 at 12:01 AM, Zsolt Vasvari zvasv...@gmail.com wrote: http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html On Apr 22, 2:39 pm, yves...@gmail.com yves...@gmail.com wrote: I have an app

Re: [android-developers] Re: Share pictures

2011-04-21 Thread Yves Liu
What do you mean? If I take that line out, it will work? On Thu, Apr 21, 2011 at 12:24 PM, lbendlin l...@bendlin.us wrote: looks ok. Do you really have to specify the setType ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] MMS messages

2010-12-24 Thread Yves Liu
On Thu, Dec 23, 2010 at 11:05 AM, Yves Liu yves...@gmail.com wrote: I left a break point in my code, and it never triggered for SMS_receive. I even put MMS_receive, and it didn't work. Any suggestions? On Tue, Dec 21, 2010 at 5:49 PM, xiaoxiong weng ad...@littlebearz.comwrote: I believe

Re: [android-developers] MMS messages

2010-12-22 Thread Yves Liu
); I might be wrong :S On Mon, Dec 20, 2010 at 5:55 PM, Yves Liu yves...@gmail.com wrote: Anyone knows? On Sat, Dec 18, 2010 at 3:10 PM, yves...@gmail.com yves...@gmail.comwrote: Hi I use android.provider.Telephony.SMS_RECEIVED to listen to new SMS message received. But what should I use

Re: [android-developers] MMS messages

2010-12-20 Thread Yves Liu
Anyone knows? On Sat, Dec 18, 2010 at 3:10 PM, yves...@gmail.com yves...@gmail.comwrote: Hi I use android.provider.Telephony.SMS_RECEIVED to listen to new SMS message received. But what should I use to listen to MMS message received? Thanks -- You received this message because you are

Re: [android-developers] Re: Samsung Tab Emulator

2010-11-02 Thread Yves Liu
That worked. Thanks. On Tue, Nov 2, 2010 at 11:34 AM, Kumar Bibek coomar@gmail.com wrote: Switch to 1.6 and add multiple screen support. http://developer.android.com/guide/practices/screens_support.html#attrs On Nov 2, 10:57 pm, yves...@gmail.com yves...@gmail.com wrote: Anybody here

Re: [android-developers] Re: About external Storage

2010-08-11 Thread Yves Liu
I found the post about Incredible. It queries images on both EXTERNAL_CONTENT_URI and phoneStorage. That is a very good solution for this, but it is not finished. For example, if you have images on both phone storage and external SD card, and check the image full path will contain both locations,

Re: [android-developers] Re: Android Developer Device Seeding Program - Updates?

2010-03-29 Thread Yves Liu
I only did the developer program and got an email confirmation on Mar. 5th saying there will be 2 to 4 weeks for me to get mine. I haven't received mine yet. On Fri, Mar 26, 2010 at 2:15 PM, Jeremy Logan jeremy.lo...@gmail.comwrote: But was yours for the market program, or the developer

[android-developers] Re: Date in sms

2009-04-30 Thread Yves Liu
Thanks. On Thu, Apr 30, 2009 at 1:28 AM, swarup me.s...@gmail.com wrote: try using android.text.format.DateUtils.formatDateTime(Context context, long millis, int flags) also look at /packages/apps/Mms/src/com/android/mms/ui/ MessageUtils.java : formatTimeStampString() On Apr 30, 1:03 pm,

[android-developers] Re: Where is the source code for Pictures app

2009-03-22 Thread Yves Liu
Thanks. On Sun, Mar 22, 2009 at 4:38 PM, Andrew Stadler stad...@gmail.com wrote: You'll probably get better results asking this question on the android-platform mailing list, as the gallery is part of the platform distribution, and folks on that mailing list are working on apps like that.

[android-developers] Re: How to move file from sdcard to private location

2009-03-18 Thread Yves Liu
Michael, thanks for the explanation. When you mean copy, does that mean I have to read from one file and write to another one? Or Java provide a way to do the copy? Also, is there a way to mark a file in the sdcard to be private so no other app can see it? That way, I won't need to copy the file