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 +
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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,
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
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
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.
...@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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
46 matches
Mail list logo