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 Dan  wrote:

> File permissions.
> Likely 0x700 and your app is getting a new Unix UID when reinstalled so it
> can't read/write there.
>
> The fact that it works at all is a security issue, as sometimes some other
> app is refusing the UID and gets access.
>
> You could let anyone see it with 0x777, but that just exposes the data all
> the time instead of to whoever gets the recycled UID.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/a5c81fe6-5024-4ca1-b389-643c047ff285%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAGexN0nrzWY7xiSkhv0%3DZ9JWTB9Vov2R0X4RQH31uYV-fKYv5g%40mail.gmail.com.


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"  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 File(path);
>  //path = "/storage/emulated/0/downloads/foo.jpg"
> Then I tried testFile.exists() call to make sure the file exists, it does.
> Then I tiried to open this file FileInputStream inStream = new
> FileInputStream(testFile), it throws Exception (open failed: ENOENT (No
> such file or directory))
>
> I did declare "READ_EXTERNAL_STORAGE" permission in my app. How should I
> resolve this?
>
> I did try to CanonicalPath, etc, they all report the same thing.
>
> Any help?
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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  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:
>> Android/data/com.example.foo/ on external storage devices that they might
>> be able to use their valued card.
>>
>> However, that is difficult to test as I don't have one of the target
>> devices, much less all of them.
>>
>
> Another snag with that idea I had. Based on this API, those files will get
> wiped if the app is uninstalled.
>
> Very undesirable if the user uninstalled and reinstalled and loses
> valuable data.
>
> Nathan
> public abstract 
> File[]
>  getExternalFilesDirs 
> (String
>  type)
> Added in API level 
> 19
>
> Returns absolute paths to application-specific directories on all external
> storage devices where the application can place persistent files it owns.
> These files are internal to the application, and not typically visible to
> the user as media.
>
> This is like 
> getFilesDir()
>  in that these files will be deleted when the application is uninstalled,
> however there are some important differences:
>
>
>  --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Download folder

2014-02-26 Thread Yves Liu
Yes, I did. The problem is like this. In my gallery, say, there are 6
pictures, when i do the file.exist call, (with the path I got from
Gallery), two works, and 4 of them are not working.


On Tue, Feb 25, 2014 at 8:15 AM, TreKing  wrote:

>
> On Tue, Feb 25, 2014 at 1:26 AM, Yves Liu  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
>
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Download folder

2014-02-24 Thread Yves Liu
Yes, I actually not hardcode the path. The app queries the content provider
to get the picture path, which is different from the path I get
from getExternalStorageDirectory(). Is there a better way for me to know if
the picture is in internal build-in sd card or external removable sd card?
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  wrote:

>
> On Mon, Feb 24, 2014 at 12:27 AM, Yves Liu  wrote:
>
>> Here is the code snippet
>
>
> OK, first thing is you should not be hard-coding paths. Use the external
> storage APIs.
>
> Second, you didn't answer the other question: which platform version are
> you running on?
>
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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

>
> On Sun, Feb 23, 2014 at 6:41 PM, yves...@gmail.com wrote:
>
>> Then in my app, I tried to access that picture, it says file is not found.
>
>
> What API level are you running and how are you accessing the file?
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 way. I didn't do anything specific about orientation. So,
anything I missed? I have overwrite some functions? Also, how do I check if
the phone auto-rotate is on or off?




On Mon, Nov 4, 2013 at 1:24 AM, Mek's Sree Rama
wrote:

> Share your Manifest fle code snippet  where you have locked ?
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Question regarding Permissions

2013-06-20 Thread Yves Liu
Kris, thank you!


On Thu, Jun 20, 2013 at 2:16 PM, Kristopher Micinski  wrote:

> It doesn't mean anything, some people develop elaborate plugin systems
> for their apps so that you can have another app interface with your
> app through RPC.  However, this is by no means 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  wrote:
> > Thanks Kristopher. Could you elaborate what "plug-in" means in this
> context?
> >
> >
> > On Thu, Jun 20, 2013 at 1:19 PM, Kristopher Micinski
> >  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.
> >>
> >> Kris
> >>
> >> On Thu, Jun 20, 2013 at 3:34 PM, yves...@gmail.com 
> >> wrote:
> >> > I am trying to add a new feature to my current play store app. The new
> >> > feature does require a new permission. Since not all my customer would
> >> > want
> >> > this new feature, so, I don't want to add this new permission to the
> >> > apk.
> >> > Will that be possible to develop an add-on feature (for example, for
> >> > people
> >> > who click the acquire button, the download will happen) which is free
> >> > and
> >> > this new add-on feature will require this new permission.
> >> >
> >> > If there is a way to do this, any pointers or examples?
> >> >
> >> > Thanks
> >> >
> >> > --
> >> > --
> >> > 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 to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/android-developers?hl=en
> >> > ---
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "Android Developers" group.
> >> > To unsubscribe from this group and stop receiving emails from it, send
> >> > an
> >> > email to android-developers+unsubscr...@googlegroups.com.
> >> > For more options, visit https://groups.google.com/groups/opt_out.
> >> >
> >> >
> >>
> >> --
> >> --
> >> 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 to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >> ---
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Android Developers" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to android-developers+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >
> > --
> > --
> > 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 to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "Android Developers" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to android-developers+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> --
> 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 to
> a

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  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.
>
> Kris
>
> On Thu, Jun 20, 2013 at 3:34 PM, yves...@gmail.com 
> wrote:
> > I am trying to add a new feature to my current play store app. The new
> > feature does require a new permission. Since not all my customer would
> want
> > this new feature, so, I don't want to add this new permission to the apk.
> > Will that be possible to develop an add-on feature (for example, for
> people
> > who click the acquire button, the download will happen) which is free and
> > this new add-on feature will require this new permission.
> >
> > If there is a way to do this, any pointers or examples?
> >
> > Thanks
> >
> > --
> > --
> > 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 to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "Android Developers" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to android-developers+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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

> 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
> BroadcastReceiver onReceive). But the problem is after my app quits, the
> dialer will start dialing 1234. Is there a way to stop this?
>
> Thanks
>
>
>  --
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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
 wrote:
> By guesswork, testing and end-user feedback on individual devices.
>
>
> On Sunday, March 10, 2013 11:03:36 PM UTC, yve...@gmail.com wrote:
>>
>> 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 
>> wrote:
>> > The problem we have here is that getExternalStorageDirectory does NOT
>> > return
>> > the location of the sd card.  In fact it has nothing to do with sd cards
>> > and
>> > never has.  From the docs:
>> >
>> > "Note: don't be confused by the word "external" here. This directory can
>> > better be thought as media/shared storage. It is a filesystem that can
>> > hold
>> > a relatively large amount of data and that is shared across all
>> > applications
>> > (does not enforce permissions). Traditionally this is an SD card, but it
>> > may
>> > also be implemented as built-in storage in a device that is distinct
>> > from
>> > the protected internal storage and can be mounted as a filesystem on a
>> > computer."
>> >
>> >
>> > http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()
>> >
>> > It is that part of the file system that is mounted when you attach an
>> > external device such as a desktop computer via the USB port.
>> >
>> > There is NO documented way in Android to enumerate removable storage.
>> >
>> >
>> > On Friday, March 8, 2013 9:21:38 PM UTC, yve...@gmail.com wrote:
>> >>
>> >> 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  wrote:
>> >> >
>> >> > On Wed, Mar 6, 2013 at 10:29 PM, yve...@gmail.com 
>> >> > wrote:
>> >> >>
>> >> >> So, I want to know, first, how to enumerate all storage locations
>> >> >
>> >> >
>> >> > Did you check the documentation?
>> >> >
>> >> > http://developer.android.com/guide/topics/data/data-storage.html
>> >> >
>> >> >>
>> >> >> , second, monitor sdcard insert/eject events.
>> >> >
>> >> >
>> >> > See the various MEDIA broadcasts.
>> >> >
>> >> >
>> >> > http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_BAD_REMOVAL
>> >> >
>> >> >
>> >> >
>> >> > -
>> >> > TreKing - Chicago transit tracking app for Android-powered devices
>> >> >
>> >> > --
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups "Android Developers" group.
>> >> > To post to this group, send email to android-d...@googlegroups.com
>> >> > To unsubscribe from this group, send email to
>> >> > android-developers+unsubscr...@googlegroups.com
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/android-developers?hl=en
>> >> > ---
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "Android Developers" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to android-developers+unsubscr...@googlegroups.com.
>> >> > For more options, visit https://groups.google.com/groups/opt_out.
>> >> >
>> >> >
>> >
>> > --
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-d...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Android Developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to android-developers+unsubscr...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>
> --
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more option

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  wrote:
> The problem we have here is that getExternalStorageDirectory does NOT return
> the location of the sd card.  In fact it has nothing to do with sd cards and
> never has.  From the docs:
>
> "Note: don't be confused by the word "external" here. This directory can
> better be thought as media/shared storage. It is a filesystem that can hold
> a relatively large amount of data and that is shared across all applications
> (does not enforce permissions). Traditionally this is an SD card, but it may
> also be implemented as built-in storage in a device that is distinct from
> the protected internal storage and can be mounted as a filesystem on a
> computer."
>
> http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()
>
> It is that part of the file system that is mounted when you attach an
> external device such as a desktop computer via the USB port.
>
> There is NO documented way in Android to enumerate removable storage.
>
>
> On Friday, March 8, 2013 9:21:38 PM UTC, yve...@gmail.com wrote:
>>
>> 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  wrote:
>> >
>> > On Wed, Mar 6, 2013 at 10:29 PM, yve...@gmail.com 
>> > wrote:
>> >>
>> >> So, I want to know, first, how to enumerate all storage locations
>> >
>> >
>> > Did you check the documentation?
>> >
>> > http://developer.android.com/guide/topics/data/data-storage.html
>> >
>> >>
>> >> , second, monitor sdcard insert/eject events.
>> >
>> >
>> > See the various MEDIA broadcasts.
>> >
>> > http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_BAD_REMOVAL
>> >
>> >
>> > -
>> > TreKing - Chicago transit tracking app for Android-powered devices
>> >
>> > --
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-d...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Android Developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to android-developers+unsubscr...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>
> --
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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  wrote:
>
> On Wed, Mar 6, 2013 at 10:29 PM, yves...@gmail.com 
> wrote:
>>
>> So, I want to know, first, how to enumerate all storage locations
>
>
> Did you check the documentation?
>
> http://developer.android.com/guide/topics/data/data-storage.html
>
>>
>> , second, monitor sdcard insert/eject events.
>
>
> See the various MEDIA broadcasts.
> http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_BAD_REMOVAL
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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  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 another really sensitive permission.
>
> For covering crashes you can set a custom UncaughtExceptionHandler for
> logging the stack trace. Make sure to use the default uncaught exception
> handler for processing that exception (or at least kill the app process),
> otherwise your app thinks that everything is alright.
>
>
> On Monday, July 9, 2012 6:03:18 PM UTC-5, yve...@gmail.com wrote:
>>
>> 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 
>> wrote:
>> > Do you have access to the stacktrace?
>> >
>> > Thanks,
>> > Justin Anderson
>> > MagouyaWare Developer
>> > http://sites.google.com/site/magouyaware
>> >
>> >
>> >
>> > On Sun, Jul 8, 2012 at 12:03 AM, yves...@gmail.com 
>> > wrote:
>> >>
>> >> We have an app on the market for a while now, mostly it works great.
>> >> But
>> >> recently we got a couple report that it force closes on some devices,
>> >> since
>> >> we don't have those devices to debug the problem, I hope I can ask the
>> >> question here and maybe someone can share some lights about what we
>> >> should
>> >> do.
>> >>
>> >> The basic problem is that we have an activity A, which has a button for
>> >> people to configure some information. So, we have an Activity B which
>> >> collects those information. So, user click the button and Activity B
>> >> will
>> >> pop up, after users finish the settings, they click finish button or
>> >> cancel
>> >> button there and Activity B closes and Activity A has a
>> >> "onActivityResult"
>> >> call which collect which button was clicked and will adjust some
>> >> information. But this force closes on some devices after user click
>> >> either
>> >> button.
>> >>
>> >> We added some debug code in "onActivityResult" but it finished the call
>> >> to
>> >> the end without crashing, so, we have no idea what other function
>> >> should be
>> >> called after that. We don't have onResume function in Activity A
>> >> because we
>> >> thought since we don't care about it, it should just use the default
>> >> implementation. And we do have onSaveInstanceState function. So, one
>> >> user
>> >> who has this problem is willing to test anything or we can add debug
>> >> code to
>> >> anywhere, but since onActivityResult returns okay, we have no idea what
>> >> to
>> >> do next.
>> >>
>> >> Any suggestions about how to figure this out without the actual device
>> >> to
>> >> hook up the debugger?
>> >>
>> >> Thanks
>> >>
>> >> --
>> >> 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 to
>> >> android-developers+unsubscr...@googlegroups.com
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/android-developers?hl=en
>> >
>> >
>> > --
>> > 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 to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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  wrote:
> Do you have access to the stacktrace?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Sun, Jul 8, 2012 at 12:03 AM, yves...@gmail.com 
> wrote:
>>
>> We have an app on the market for a while now, mostly it works great. But
>> recently we got a couple report that it force closes on some devices, since
>> we don't have those devices to debug the problem, I hope I can ask the
>> question here and maybe someone can share some lights about what we should
>> do.
>>
>> The basic problem is that we have an activity A, which has a button for
>> people to configure some information. So, we have an Activity B which
>> collects those information. So, user click the button and Activity B will
>> pop up, after users finish the settings, they click finish button or cancel
>> button there and Activity B closes and Activity A has a "onActivityResult"
>> call which collect which button was clicked and will adjust some
>> information. But this force closes on some devices after user click either
>> button.
>>
>> We added some debug code in "onActivityResult" but it finished the call to
>> the end without crashing, so, we have no idea what other function should be
>> called after that. We don't have onResume function in Activity A because we
>> thought since we don't care about it, it should just use the default
>> implementation. And we do have onSaveInstanceState function. So, one user
>> who has this problem is willing to test anything or we can add debug code to
>> anywhere, but since onActivityResult returns okay, we have no idea what to
>> do next.
>>
>> Any suggestions about how to figure this out without the actual device to
>> hook up the debugger?
>>
>> Thanks
>>
>> --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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  wrote:
> The only thing that pops out of your description is the use of */* for mime
> type.
>
> Have you tried using the actual mime type to see if it fixes the issue?
>
> -- K
>
> 2012/7/8 yves...@gmail.com 
>
>> We have an app on the Market, which works for ICS (we tried on Galaxy
>> Nexus and Galaxy S3 etc), and older android system, like original Razr. But
>> with the new ICS upgrade to razr, this app doesn't work anymore. Here is the
>> issue.
>>
>> This app basically captures an image, and saves it to the sdcard or
>> internal phone memory (depends on the user settings). And then we use
>> MediaScanner to scan it, the call we used is mScanner.ScanFile(fileName,
>> "*/*"); Then we could query ContentResolver and the file is there. But the
>> gallery on Razr (with ICS upgrade) will not see the new file. Since we don't
>> have a Razr to test it with, the information we got from users is that if
>> they copy this file to a computer, and then move it to the sdcard, and then
>> reboot the phone, Gallery will see the file. We have no idea what is going
>> on because we thought  the Gallery queries ContentResolver as well. What did
>> we do wrong? And why other ICS devices works just fine?
>>
>> Any pointers and suggestions?
>>
>> Thanks
>>
>>
>> --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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  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
> MediaMetadataRetriever();
>                       retriever.setDataSource(uri);
>                       return retriever.getFrameAtTime();
>           } catch(IllegalArgumentException ex) {
>               ex.printStackTrace();
>           } catch (RuntimeException ex) {
>               ex.printStackTrace();
>           } catch (Throwable e){
>               e.printStackTrace();
>           } finally {
>           }
>           return null;
>       }
>
>
>
> On Fri, Mar 9, 2012 at 11:18 AM, yves...@gmail.com  wrote:
>> I have a question which I have no idea what is going on. I have an
>> application which uses MediaMetadataRetriever class to get a video
>> thumbnail, I don't really care which frame it returns, so, I use
>> getFrameAtTime() call to do that. It worked on all API level 10 or up
>> phones before. Recently, I restructured my code and moved this piece
>> of code into a library project, so my other applications can use the
>> same class. But since then, it FC on a lot of phones.
>>
>> I did some research online and found out that there is a bug created
>> for a similar issue
>>
>> http://code.google.com/p/android/issues/detail?id=24300
>>
>> And I also found that some people mentioned that if memory is full or
>> mediascanner is running, this will fail as well.
>>
>> My question is that why it worked for me before? is that because I
>> moved the code the library project? I am out of ideas. Any suggestions
>> will be very appreciated.
>>
>> --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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);
   return retriever.getFrameAtTime();
   } catch(IllegalArgumentException ex) {
   ex.printStackTrace();
   } catch (RuntimeException ex) {
   ex.printStackTrace();
   } catch (Throwable e){
   e.printStackTrace();
   } finally {
   }
   return null;
   }



On Fri, Mar 9, 2012 at 11:18 AM, yves...@gmail.com  wrote:
> I have a question which I have no idea what is going on. I have an
> application which uses MediaMetadataRetriever class to get a video
> thumbnail, I don't really care which frame it returns, so, I use
> getFrameAtTime() call to do that. It worked on all API level 10 or up
> phones before. Recently, I restructured my code and moved this piece
> of code into a library project, so my other applications can use the
> same class. But since then, it FC on a lot of phones.
>
> I did some research online and found out that there is a bug created
> for a similar issue
>
> http://code.google.com/p/android/issues/detail?id=24300
>
> And I also found that some people mentioned that if memory is full or
> mediascanner is running, this will fail as well.
>
> My question is that why it worked for me before? is that because I
> moved the code the library project? I am out of ideas. Any suggestions
> will be very appreciated.
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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  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
> the package name would be really annoying, so for a paid version supporting
> both may be better.
>
>
> On Sat, Jan 14, 2012 at 11:54 PM, Ricardo Amaral 
> wrote:
>>
>> No, Market doesn't allow that. Here's what you could do instead:
>>
>> Publish your app under the new company/package name and wait for it to be
>> live. Once that's done, publish an update to your older app. That update
>> should simply change the app into redirecting users to the new app on the
>> Market and politely apologize for the inconvenience and ask them to remove
>> the old app after installing the new one. You could also detect the old app
>> when running the new one and, if found, suggest the user to uninstall it.
>>
>> You need to be careful though with the user data though. You should
>> provide means for them to migrate that data from the old app to the new one
>> BEFORE UNINSTALLING IT or they'll lose everything. Maybe an export/import
>> procedure will do the job. If you do it right, it only takes a few seconds
>> for them to export all the data from the old app and import it into the new
>> one.
>>
>> --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> "I know that you believe you understand what you think I said, but I'm not
> sure you realize that what you heard is not what I meant."
> - Robert McCloskey
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2011-10-13 Thread Yves Liu
Thanks Llanox, this is what I will try.

On Wed, Oct 12, 2011 at 4:31 AM, Llanox  wrote:
> That is a bad idea too?
> No, If you don't need store private data there.
>
>  Should I use /companyname on sdcard
> directly?
>
> In API Level 8 or greater, you could use
> 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  wrote:
>> 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  wrote:
>>
>> > On Tuesday, October 11, 2011 11:34:37 PM UTC-4, Nikolay Elenkov wrote:
>>
>> >> The real problem is that it gets deleted on *update* as well in some
>> >> early Froyo versions. So it's not safe to use prior to 2.3.
>>
>> > Eeesh.  I've had test devices with every Android version up to (but not
>> > including 3.x) and I've never come across this.  I don't use this path
>> > because it doesn't help me at all, but man ... considering the suggestion 
>> > on
>> > d:
>>
>> > "You should then write your data in the following directory:
>>
>> > /Android/data//files/"
>>
>> > ...this sounds like a bad misdirection.
>>
>> > --
>> > 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 to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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  wrote:
> 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  wrote:
>>
>>
>> On Tuesday, October 11, 2011 11:34:37 PM UTC-4, Nikolay Elenkov wrote:
>>>
>>> The real problem is that it gets deleted on *update* as well in some
>>> early Froyo versions. So it's not safe to use prior to 2.3.
>>
>> Eeesh.  I've had test devices with every Android version up to (but not
>> including 3.x) and I've never come across this.  I don't use this path
>> because it doesn't help me at all, but man ... considering the suggestion on
>> d:
>>
>> "You should then write your data in the following directory:
>>
>> /Android/data//files/"
>>
>> ...this sounds like a bad misdirection.
>>
>> --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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  wrote:
>
>
> On Tuesday, October 11, 2011 11:34:37 PM UTC-4, Nikolay Elenkov wrote:
>>
>> The real problem is that it gets deleted on *update* as well in some
>> early Froyo versions. So it's not safe to use prior to 2.3.
>
> Eeesh.  I've had test devices with every Android version up to (but not
> including 3.x) and I've never come across this.  I don't use this path
> because it doesn't help me at all, but man ... considering the suggestion on
> d:
>
> "You should then write your data in the following directory:
>
> /Android/data//files/"
>
> ...this sounds like a bad misdirection.
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2011-04-25 Thread Yves Liu
After I followed the document, it is still not working right. Here is more
details.

Right now, I build my app using 3.0 sdk. And for platform 2.3.3 or later, it
worked fine. But for older system, when I need to call
MediaMetadataRetriver, it did get into the old code, but when it tries to
load 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 Liu  wrote:

> Thanks, that is exactly what I am looking for.
>
>
> On Fri, Apr 22, 2011 at 12:01 AM, Zsolt Vasvari 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"  wrote:
>> > I have an app which uses mediametadataretriever to generate thumbnails
>> > for videos. In the older system, I always use the media_jni library
>> > and define my own mediametadataretriever class and it worked fine.
>> > With API level 10 or later, mediametadataretriever is an built-in API
>> > now. So, I am not sure what I should do. If I still build my project
>> > using earlier version of the SDk, then because media_jni library
>> > doesn't exist in the new sdk, so, my call will not work. If I import
>> > the new media.mediametadataretriever, then I have to use new sdk to
>> > build the project and use the new API to do it. It works on the new
>> > system, But my old code will not work anymore.
>> >
>> > So, what should I do now? Is splitting the project into 2, one for old
>> > system and use older sdk to build, and one for new system and use the
>> > latest sdk to build, the only option?
>> >
>> > Thanks
>>
>> --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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  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"  wrote:
> > I have an app which uses mediametadataretriever to generate thumbnails
> > for videos. In the older system, I always use the media_jni library
> > and define my own mediametadataretriever class and it worked fine.
> > With API level 10 or later, mediametadataretriever is an built-in API
> > now. So, I am not sure what I should do. If I still build my project
> > using earlier version of the SDk, then because media_jni library
> > doesn't exist in the new sdk, so, my call will not work. If I import
> > the new media.mediametadataretriever, then I have to use new sdk to
> > build the project and use the new API to do it. It works on the new
> > system, But my old code will not work anymore.
> >
> > So, what should I do now? Is splitting the project into 2, one for old
> > system and use older sdk to build, and one for new system and use the
> > latest sdk to build, the only option?
> >
> > Thanks
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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  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 to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] MMS messages

2010-12-24 Thread Yves Liu
Thanks Kapil, but it is only for the permission, and I don't know how to
register my class to monitor the incoming MMS.

On Wed, Dec 22, 2010 at 9:59 PM, Kapil Lokhande wrote:

> see this
>
> http://developer.android.com/reference/android/Manifest.permission.html#RECEIVE_MMS
>
> On Thu, Dec 23, 2010 at 11:05 AM, Yves Liu  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 wrote:
>>
>>> I believe it's the same as SMS_receive but you parse the data as
>>> setType("image/png");
>>> I might be wrong :S
>>>
>>> On Mon, Dec 20, 2010 at 5:55 PM, Yves Liu  wrote:
>>>
>>>> Anyone knows?
>>>>
>>>>
>>>> On Sat, Dec 18, 2010 at 3:10 PM, yves...@gmail.com 
>>>> wrote:
>>>>
>>>>> 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 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 to
>>>>> android-developers+unsubscr...@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/android-developers?hl=en
>>>>
>>>>
>>>>  --
>>>> 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 to
>>>> android-developers+unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>>>
>>>
>>>
>>>
>>> --
>>> littleb...@littlebearz.com
>>> +1-647-771-2551 SMS Call 24/7
>>>
>>> > This message and any attached documents contain information from the
>>> > LittleBearZ that may be confidential and/or
>>> > privileged. If you are not the intended recipient, you may not read,
>>>
>>>
>>>
>>>
>>>
>>> > copy, distribute, or use this information. If you have received this
>>> > transmission in error, please notify the sender immediately by reply
>>> > e-mail and then delete this message.
>>>
>>>
>>>
>>>  --
>>> 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 to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>  --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] MMS messages

2010-12-22 Thread Yves Liu
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 wrote:

> I believe it's the same as SMS_receive but you parse the data as
> setType("image/png");
> I might be wrong :S
>
> On Mon, Dec 20, 2010 at 5:55 PM, Yves Liu  wrote:
>
>> Anyone knows?
>>
>>
>> On Sat, Dec 18, 2010 at 3:10 PM, yves...@gmail.com wrote:
>>
>>> 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 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 to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> 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 to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> littleb...@littlebearz.com
> +1-647-771-2551 SMS Call 24/7
>
> > This message and any attached documents contain information from the
> > LittleBearZ that may be confidential and/or
> > privileged. If you are not the intended recipient, you may not read,
>
>
> > copy, distribute, or use this information. If you have received this
> > transmission in error, please notify the sender immediately by reply
> > e-mail and then delete this message.
>
>
>
>  --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

> 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 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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  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"  wrote:
> > Anybody here tried the Samsung Tab emulator?
> http://innovator.samsungmobile.com/galaxyTab.do
> >
> > My app layout doesn't look right. I am using Relative Layout, and both
> > width and height are fill_parent. But when I run this in the emulator,
> > it only occupies a small portion of the screen. Any ideas?
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2010-08-10 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, but I am not sure
how to figure out the root of both storages.

For example, on Galaxy S (2.1 firmware),
The SD Card location is like /sdcard/sd/foo/image1.jpg
The internal storage is like /sdcard/DCIM/image2.jpg.

On EVO (2.1 firmware)
The SD Card location is like /sdcard/mnt/sdcard/foo/image1.jpg
The internal location is like /sdcard/mnt/foo/image1.jpg

etc.

I am not sure how to parse the file full path and find out which portion, or
i mean how far is the root directory of both locations. Any suggestions?

Yves

On Mon, Aug 9, 2010 at 8:58 AM, Kostya Vasilyev  wrote:

> Patrick,
>
> Um, I have a Galaxy S here (European version), and
> getExternalStorageDirectory returns "/sdcard", which is internal memory.
>
> The "external" microSD memory card gets mounted at "/sdcard/sd".
>
> Maybe this is what you meant, too, but I thought I'd clarify the exact
> names.
>
> As for getting its name from code, someone posted a while ago a trick to
> get the internal memory name for the HTC Incredible. I can't find it now,
> but it involved querying a content provider. Maybe a similar trick would
> work on the Galaxy S as well?
>
> -- Kostya
>
> 09.08.2010 19:28, patrick пишет:
>
>  on the Galaxy S which has an internal sdcard + external sdcard slot,
>> getExternalStorageDirectory returns only path to the internal sdcard:
>> /mnt/internal_sd
>>
>> note that when you have an external sdcard, it will be available
>> under /mnt/internal_sd/external_sd/ but i dont know if there is a
>> method to get it.
>>
>>
>>
>>
>> On Aug 9, 2:02 pm, Mark Murphy  wrote:
>>
>>
>>> On Mon, Aug 9, 2010 at 3:26 AM, yves...@gmail.com
>>>  wrote:
>>>
>>>
 There are more and more phone has built in storage and a sd card slot.
 What's the best way to enumerate them all?
 getExternalStorageDirectory() only returns one, right? How would the
 app know there are more than one external storage?


>>>  From the standpoint of the Android SDK, there is only one "external
>>> storage".
>>>
>>>
>>>
 And what their root directory names are?


>>> Please just use getExternalStorageDirectory().
>>>
>>> --
>>> Mark Murphy (a Commons Guy)http://commonsware.com|
>>> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>>>
>>> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
>>> Available!
>>>
>>>
>>
>>
>
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.com
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

> But was yours for the market program, or the developer program? I
> heard people were getting confirmations for the market program, but I
> hadn't heard anything for the developer program.
>
>
> On Mar 25, 8:05 pm, makeramen  wrote:
> > It takes a while.
> >
> > I just received my Nexus One yesterday :D
> >
> > The only other communication I got was a confirmation of my shipping
> > address and that it would arrive in 2-4 weeks. Rather vague timeline,
> > but can't complain about a free phone.
> >
> > On Mar 25, 5:20 pm, Jeremy Logan  wrote:
> >
> > > Oh, I'm fine with patience... especially for free things :)
> >
> > > I was just wanting to make sure I hadn't screwed something up since I
> > > hadn't heard anything since filling in the form.
> >
> > > On Mar 25, 1:03 pm, Streets Of Boston  wrote:
> >
> > > > I haven't heard anything yet. I think we just need to have a little
> > > > patience :-)
> >
> > > > On Mar 25, 2:10 pm, Jeremy Logan  wrote:
> >
> > > > > I (as well as many others) received an email telling us that Google
> > > > > would like to give us a new Android device for "your contribution
> to
> > > > > the success of Android's community forums". The email continued
> asking
> > > > > us to fill out the form by Monday, March 15th, 6pm PST.
> >
> > > > > I filled out the form as soon as the email hit my inbox (long
> before
> > > > > the due date) and have still not heard anything back from them (10
> > > > > days after the due date). Has anyone else heard anything back about
> > > > > this?
> >
> > > > > Please note that this isn't the "Device Seeding Program for Top
> > > > > Android Market Developers" but the "Android Developer Device
> Seeding
> > > > > Program" that I'm talking about here.
> >
> >
>
> --
> 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 to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe from this group, send email to android-developers+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

-- 
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: Date in sms

2009-04-30 Thread Yves Liu
Thanks.

On Thu, Apr 30, 2009 at 1:28 AM, swarup  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, "yves...@gmail.com"  wrote:
> > I am using contentProvider to retrieve old sms. And for the column
> > "Date", I got a big number, like 1241077422384. Can anyone tell me how
> > to translate this into readable date and time?
> >
>

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  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.
>
>
>
> On Sun, Mar 22, 2009 at 4:01 PM, yves...@gmail.com 
> wrote:
> >
> > I just downloaded Android source code, but I can't find the source
> > for "Pictures" app. I did see "Calculator" code. Anyone know where I
> > can find the "Pictures" or why it is not in the source code package?
> >
> >
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 anymore. :)

On Wed, Mar 18, 2009 at 10:43 AM, Michael MacDonald <
googlec...@antlersoft.com> wrote:

>
> Rename won't work because they are on different file system.  You'll
> have to physically copy from one to the other.
>
> yves...@gmail.com wrote:
> > I want to move some files from sdcard to /data/data/myapp/files
> > folder, I can use OpenInputFile and OpenOutputFile and write to it,
> > then delete the original one. But it is slow, so, I tried to use
> > oldFile.Rename(newFile), but it always return false. Any idea? The
> > reason I am doing this is to hide some files from my sdcard, so,
> > nobody can see them.
> >
> > >
>
>
> >
>

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---