[android-developers] Creating folders in SD card

2019-11-03 Thread yves...@gmail.com
I have an app which at onCreate function, it creates a folder on the sd card. The code looks like this: File externalStorage = Environment.getExternalStorageDirectory(); mExternalStorageLocation = externalStorage.getAbsolutePath(); File appDirectory = new File(mExternalStorageLocation +

[android-developers] external sd card in HTC one M9

2016-04-13 Thread yves...@gmail.com
I ran into a strange problem. My app scans through external sd card, find a picture it looks for, move it to a folder I created, and then rename it to a random name. Then when user requests, it will move the file out back to the original location. It works for other systems, but for HTC one

[android-developers] Help needed!!!!

2015-08-26 Thread yves...@gmail.com
I had an app on the play store market for awhile now, and i recently fixed a couple of problems and I ran into this problem. I am not sure if this problem is related to the app package name starts with an upper case letter. Here is the problem: Before I was using Eclipse to build the app and

[android-developers] saved files missing after app or os update

2014-03-17 Thread yves...@gmail.com
My app save some important user data on either internal sd card or external sdcard in my special pre-defined location. Not in /data folder. Sometimes, when the app updates or the android os updates, my folder is erased. Anyone else see the similar problem? And how do i prevent this from

[android-developers] /storage/emulated/0

2014-03-10 Thread yves...@gmail.com
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

[android-developers] Download folder

2014-02-23 Thread yves...@gmail.com
This is the strangest thing. -- 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] Download folder

2014-02-23 Thread yves...@gmail.com
This is the strangest thing. This problem I found is on Nexus 5. Maybe this applies to all Android devices. I downloaded a picture from gmail, and from Gallery, i can see that picture. By click on Details, I can see the file path is /storage/emulated/0/Download/12345.jpg. Then in my app, I

[android-developers] Question regarding screen orientation change

2013-11-03 Thread yves...@gmail.com
I have an app which does the correct thing when screen orientation changes. But if I lock the screen orientation on the phone settings, my app still responds to screen orientation change. How do I read the phone setting of if orientation is locked? And how do I deal with this screen

[android-developers] Question regarding Permissions

2013-06-20 Thread yves...@gmail.com
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

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

2013-06-12 Thread yves...@gmail.com
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

[android-developers] Enumerate sd cards

2013-03-06 Thread yves...@gmail.com
I am trying to develop an app which has a feature like FTP. So, at the beginning, I want to enumerate all sd card storages on the device, and ask user to pick where they want to store the data. Then if external sd card is removed, I want to change to internal storage if it set to external sd

[android-developers] forceclose problem after startActivity()

2012-07-08 Thread yves...@gmail.com
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

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

2012-07-07 Thread 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

[android-developers] Remove picture from Gallery

2012-05-16 Thread yves...@gmail.com
So, I developed an app which can delete picture on the background and then I use sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(file:// + Environment.getExternalStorageDirectory(; . This works great on ICS, that if something is deleted, Gallery will refresh and the

[android-developers] MediaMetadaRetriever getFrameAtTime() call crashes

2012-03-09 Thread yves...@gmail.com
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

[android-developers] Package name

2012-01-14 Thread yves...@gmail.com
I have an app in the market already. the package name, by mistake, is com.android.AAA, now, i want to change to my company name YYY.BBB, is that possible? Will market allow updates changing package name? -- You received this message because you are subscribed to the Google Groups Android

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

2011-10-11 Thread yves...@gmail.com
It doesn't happen all the time. There are files I saved on /data/ CompanyName/ folder which got deleted during uninstall of the application or update the application. It happens sometime, any ideas on what happened here? What should I do to make sure the files will always be kept. -- You

[android-developers] How to organize lite and pro version of the code

2011-10-11 Thread yves...@gmail.com
I have an application which has lite and pro versions on the market. Every time I change something, I have to update code on both projects. Is there a simpler way to organize code that two projects will share lots of common code in Eclipse? So, the maintenance work will be minimal. -- You

[android-developers] Any way to embed existing views?

2011-10-11 Thread yves...@gmail.com
I am trying to write an app which I want to show, say, the calendar app in my app. So, is there a way I can just embed the calendar app view into one of my view (because i want to change the display size, etc) as long as I know the name of the class? Also, I want all touch event or keyboard events

[android-developers] new sdk and backwards compatibility

2011-04-22 Thread yves...@gmail.com
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

[android-developers] Share pictures

2011-04-21 Thread yves...@gmail.com
My app can share pictures. When I try to share pictures, it pop up a list of apps which can share. Everything works find. But recently I got some reports that on some phones, the messaging app is not listed in it. But from Gallery, if they try to share, the messaging app is in it. The following is

[android-developers] MMS messages

2010-12-18 Thread yves...@gmail.com
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] Samsung Tab Emulator

2010-11-02 Thread yves...@gmail.com
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?

[android-developers] files stored on SD Card

2010-09-27 Thread yves...@gmail.com
I have an app which stores some files on the sdcard. After several uninstall and install, sometimes, the files just got deleted. Is that normal for android os to do that? What should I do to make sure that those files won't be deleted automatically? -- You received this message because you are

[android-developers] Video playback

2010-09-03 Thread yves...@gmail.com
So, I had the code to shuffle the video names and then call intent.ACTION_VIEW with the shuffled name to playback the video clips. This code works fine before, no matter what format this video is in, even I changed the file extension etc. But with the latest 2.2 update, mp4 files are still find,

[android-developers] About external Storage

2010-08-09 Thread yves...@gmail.com
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? And what their root directory names are? -- You received this

[android-developers] card game samples or pointers

2010-07-28 Thread yves...@gmail.com
I am trying to write a card game, like Solitaire. I have never done this before. Is there any samples or pointers about how to do that? Simple card animation etc. Thanks in advanced. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Post APK on the website

2010-06-09 Thread yves...@gmail.com
I want to post my free version of the APK on my website so people can test it out without going through android market. I am using a third party web host site (windows based server). I tried a href=freeapp.apk, it doesn't work. I did some search and all I found was using Apache server to do that.

[android-developers] Re: Export Signed Application Package... not working

2010-05-24 Thread yves...@gmail.com
...@gmail.com yves...@gmail.com wrote: I am using Windows XP and Eclipse to develop. I updated everything today, the new sdk, the new adt etc. After that, when I tried to exportsigned application package, nothing happened. If I click exportunsigned application package, a dialog box showed up

[android-developers] Export Signed Application Package... not working

2010-05-23 Thread yves...@gmail.com
I am using Windows XP and Eclipse to develop. I updated everything today, the new sdk, the new adt etc. After that, when I tried to export signed application package, nothing happened. If I click export unsigned application package, a dialog box showed up. Anything i missed? How can I fix this

[android-developers] Sqllite database join query

2010-05-12 Thread yves...@gmail.com
Hi, I already use getContentResolver().query(uri, null, null, null, null) to do a query. What if I have two databases, and I want to do one query on two databases and get one data set back? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] How to change app names on the runtime

2010-03-22 Thread yves...@gmail.com
Is there a way that after install a app, user can have the option to change the app name through a configuration page in that app? Where are all app names saved in the system? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Corrupted SharedPreference file

2010-03-22 Thread yves...@gmail.com
I haven't been able to reproduce that. But some of my app users complained that after upgrade to the latest version of the software, the app force closes because app stopped unexpected. It worked before. From what they described, it feels like that when I try to use

[android-developers] App doesn't show for some phones

2010-03-02 Thread yves...@gmail.com
Hi all, I have an app uses android SDK 1.5 (in the manifest.xml file, the minSdkVersion is set to 2). Some of my users reset their phone or bough a new one (like mytouch 3G through T-mobile), and they said they won't be able to see my app in the Market. Did I miss something here? Any help will be

[android-developers] Develop app targeting both 1.6 and 2.0

2009-12-01 Thread yves...@gmail.com
I run into a problem. My app queries contact for phone numbers and emails. in 2.0 version, all apis regarding this are new. So, I can either compile my app targeting 2.0, which works for 2.0 version, but can't install on 1.6 phone; or I can set the target to be 1.6 which compile failed because it

[android-developers] Accessing default Messaging settings

2009-08-24 Thread yves...@gmail.com
I am trying to access the default Messaging app's settings from my app, and i would like to be able to modify those settings as well. But I can't find any examples on how to do this. Any ideas? Thanks. --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Send SMS Message

2009-05-13 Thread yves...@gmail.com
There are lots of post talking about sending SMS messages. But my question is not answered there. So, I can send sms messages using my app, but after the message is sent, I can't find them in the Messaging app's outbox, you know, like it list all incoming and outgoing messages. What I want to

[android-developers] How to display a group of pictures?

2009-05-06 Thread yves...@gmail.com
I want to pick only 5 pictures (there are more than 20 in the same folder) to be displayed in a slideshow. I can use Intent.Action_View and then use setDataAndType with one uri, and it worked. But how to add 5 pictures into it? --~--~-~--~~~---~--~~ You received

[android-developers] Communications between Views

2009-04-22 Thread yves...@gmail.com
Here is my situation, my app has 3 views (say, A, B, and C). A creates B and finishes itself. B creates C and B still alive. 1. So, if I click Home, the app is hidden, and then I start the app again, C shows up. Is there a way for me to do to show A if I restart the app? I tried to playwith the

[android-developers] uninstall vs. upgrade

2009-04-21 Thread yves...@gmail.com
I have an application which stores data in preference (to save initial settings) and sqllite database. So, if uninstall the application (through market), will the preference and database be deleted? how about upgrade? Is there a way for me to test this before I upload my upgrade to the market? I

[android-developers] getContentResolver.query(Images.Media.EXTERNAL_CONTENT_URI ...) returns null on device

2009-04-12 Thread yves...@gmail.com
This code works fine with the emulator, I can get a cursor to all the images, but after I installed the app into the real device (G1), I ran the app, this call returns null. If I change from EXTERNAL_CONTENT_URI to INTERNAL_CONTENT_URI, at least it returns not null cursor and the count is 0.

[android-developers] Re: getContentResolver.query(Images.Media.EXTERNAL_CONTENT_URI ...) returns null on device

2009-04-12 Thread yves...@gmail.com
in the phone? On Sun, Apr 12, 2009 at 5:24 PM, yves...@gmail.com yves...@gmail.com wrote: This code works fine with the emulator, I can get a cursor to all the images, but after I installed the app into the real device (G1), I ran the app, this call returns null. If I change from EXTERNAL_CONTENT_URI

[android-developers] MediaScanner connect

2009-04-03 Thread yves...@gmail.com
I tried to use the following code to rescan some files, but onMediaScannerConnected() is never called. I followed the debugger and saw the last call (mConnection.connect()) is called, but nothing happened after that. Did I do something wrong? Any ideas? BTW, I run the text on a emulator, not the

[android-developers] Adding jpg into content resolver

2009-04-02 Thread yves...@gmail.com
I successfully adding a jpg file into ContentResolver by using insert, and I can query contentResolver to get information about the jpg file. But if I go to Pictures app, the new picture is not showing. I debugged into the code and found out that in the Camera source code, when it tries to

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

2009-03-22 Thread yves...@gmail.com
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

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

2009-03-18 Thread yves...@gmail.com
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