As I understand it you are supposed to notify the media database of any new
files you add using
http://developer.android.com/reference/android/media/MediaScannerConnection.html.
Android itself will only update the media database automatically on boot.
/Johan
Den torsdag 13 augusti 2015 kl. 0
I think you can get most of that information with: adb shell dumpsys
notification
--
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, sen
What? Whether a Service runs in a separate process or not DOES NOT depend
on whether you bind to it and/or start it using startService. That is only
controlled by the process attribute,
see
http://developer.android.com/guide/topics/manifest/service-element.html#proc.
On Friday, December 5, 20
Why do you need to start the service at boot? That combined with what you
write later about starting and stopping the service while your activity is
running AND binding to it makes no sense to me. You're more likely to get a
good answer if you explain more what you need the service for.
http:/
How does it fail?
Adb works fine on Windows 8.1 for me, tried with a Galaxy Nexus.
--
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, s
> четверг, 15 августа 2013 г., 16:57:56 UTC+5 пользователь Johan Appelgren
> написал:
>>
>> You could have a timestamp set in onPause that you check in
>> onCreate/onResume. If it has been too long redirect to your login activity.
>>
>> On Thursday, August 15,
You could have a timestamp set in onPause that you check in
onCreate/onResume. If it has been too long redirect to your login activity.
On Thursday, August 15, 2013 1:29:55 PM UTC+2, passer wrote:
>
> But how activity knows if user already authenticated.
>
> if I use static variable isAuthenticat
Have you tried analyzing your app with tools like ddms?
http://developer.android.com/tools/debugging/ddms.html
http://android-developers.blogspot.se/2011/03/memory-analysis-for-android.html
On Monday, July 29, 2013 8:22:12 AM UTC+2, Kristoffer wrote:
>
> Hello.
> Iam having trouble with memory l
Says why right there in the documentation.
"These alarms are more power-efficient than the strict recurrences supplied
by setRepeating(int, long, long, PendingIntent), since the system can
adjust alarms' phase to cause them to fire simultaneously, avoiding waking
the device from sleep more tha
Where do you store data and what version of Android do you test on?
--
--
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
Do you bind to the service?
--
--
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...@googlegro
In addition to binding to the service, do you use startService? If you do,
you must also call stopService/stopSelf, just unbinding and calling
stopForeground is not enough.
On Thursday, May 2, 2013 9:07:07 PM UTC+2, Larry Meadors wrote:
>
> I have a bound service that I'm using to play audio.
Even if you have a foregrounded service the process might get killed, and
restarted if the service is configured for it. An example of this is the
music app on my Galaxy Nexus, it gets killed every now and then if I listen
to music and use Flipboard or Chrome beta, memory intensive apps.
On Tu
What error do you get?
On Wednesday, January 30, 2013 11:48:59 AM UTC+1, Davide Moriello wrote:
>
> Hello, I'm developing an android app for some time now. Everything is
> going well. When I close my app with the home button and I reopen it there
> aren't any problems or crashes.
> But, when I
Just decompile, add ad activity, change manifest and recompile. Haven't tried
but can probably be automated for most apps.
--
--
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@googlegr
You'd probably want to persist data even if you have a confirmation dialog on
back since the user might task switch or press home.
--
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@goo
You can get the thread id using
Thread.getId()
http://developer.android.com/reference/java/lang/Thread.html#getId()
On Monday, November 19, 2012 10:14:27 AM UTC+1, AndroidCompile wrote:
>
> Hi,
> Is it possible to retrieve the id of a thread that called a certain
> function? (assuming this func
Have you looked at using Multiple APKs?
http://developer.android.com/guide/google/play/publishing/multiple-apks.html
Wont solve the overhead of managing multiple builds, but at least you wont
"disperse social promotion".
On Wednesday, October 31, 2012 2:35:11 PM UTC+1, Fran wrote:
>
> Hi there
If you want your app to start at boot then you should not allow it to be
installed on external storage.
http://developer.android.com/guide/topics/data/install-location.html#ShouldNot
On Thursday, October 4, 2012 1:58:22 PM UTC+2, Juned Khan wrote:
>
> How do i start my application on startup in
For a lot of apps the life cycle events for activities are enough, no need
bother with whether the user is in a call or not. And isn't the audio focus
mechanism enough for most media/music apps unless you need to support API
level < 8?
If you worry about IMEI, what about Wifi MAC? And what abo
ctivity service service_name>". If your service is listed there, it will show you what its
> current state is -- what is bound to it, whether it is started, etc.
>
> On Fri, Aug 10, 2012 at 2:26 PM, Johan Appelgren
>
> > wrote:
>
>> You're right that I'
s;
}
}
@Override
public IBinder onBind(Intent arg0) {
Log.d(TAG, "onBind");
return mBinder;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(TAG, "onStartCommand");
return START_NOT_STICKY;
}
@Override
public void onCreate() {
L
ocess is in the
> background, it can't bring the service up beyond the background, so it
> doesn't count as a running process but a cached process.
>
> On Thu, Aug 9, 2012 at 3:09 AM, Johan Appelgren
>
> > wrote:
>
>> Ok, thanks. But shouldn't it (non-s
o
> either of these things.
>
> If you don't want it to stay created, either don't bind to it when you
> don't want it around, or don't use BIND_AUTO_CREATE so you aren't forcing
> it to remain created while bound to it.
>
> On Wed, Aug 8, 2012 at 10:
> started or there are one or more connections to it with the
> Context.BIND_AUTO_CREATE flag.
>
> http://developer.android.com/reference/android/app/Service.html
>
> On Wed, Aug 8, 2012 at 1:52 PM, Johan Appelgren
>
> > wrote:
>
>> If I have a simple servi
If I have a simple service that returns START_NOT_STICKY in onStartCommand
and I both start it explicitly (startService) and bind to it (bindService)
in onCreate of my activity the service gets recreated after it has been
killed over and over again. I unbind the service in onPause of my activity
Works fine using 3g on my Galaxy Nexus (stock, Android 4.1.1).
Are you testing using the same carrier and APN settings on the Desire and
Galaxy Nexus? I've had some issues with a bad carrier proxy that garbled
non-port 80 traffic, fixed by removing the proxy from APN.
On Sunday, July 15, 2012
To request a permission you have to use the uses-permission element.
http://developer.android.com/guide/topics/manifest/uses-permission-element.html
What you have done is require that the sender of the BOOT_COMPLETED intent
has been granted the RECEIVE_BOOT_COMPLETED permission. Don't think t
To request a permission you have to use the uses-permission element.
http://developer.android.com/guide/topics/manifest/uses-permission-element.html
What you have done is require that the sender of the BOOT_COMPLETED intent
has been granted the RECEIVE_BOOT_COMPLETED permission. Don't think t
If you mean ANDROID_ID then the documentation is pretty clear I think.
"A 64-bit number (as a hex string) that is randomly generated on the
device's first boot and should remain constant for the lifetime of the
device. (The value may change if a factory reset is performed on the
device.)"
htt
pened, you will
> see that the activity has been restarted, now open the other two apps,
> now return to browser, the page needs a refresh on every tabs.
>
> This is obviously a broken multitasking system.
>
> On May 16, 3:34 pm, Johan Appelgren wrote:
> > You proba
You probably have other apps installed with running services and manifest
registered broadcast receivers receiving broadcasts pushing the fart apps
out. As long as there is some memory free for non-service apps their
processes are cached and reused just fine.
http://developer.android.com/guide/
On Thursday, May 10, 2012 1:30:02 AM UTC+2, Dianne Hackborn wrote:
>
> Yes well there is this meme spread by certain perhaps not unbiased
> entities that having multitasking at all, I mean doing multitasking like
> Android, is bad because it is intrinsically battery consuming. This is of
> cou
What do you mean with default e-mail app? If the user has selected a
default e-mail app the user wont get the chooser. If the user hasn't
selected a default e-mail app the user will get the chooser.
On Thursday, April 12, 2012 9:12:12 AM UTC+2, Put_tiMe wrote:
>
> How do I directly choose the d
Ankit Kasliwal wrote:
>
> so can you tell me the process
>
> On Wed, Mar 28, 2012 at 2:25 PM, Johan Appelgren wrote:
>
>> It is still the wrong thing to do. Just because the API allows you to do
>> something wrong doesn't mean you have to do it.
>>
>>
It is still the wrong thing to do. Just because the API allows you to do
something wrong doesn't mean you have to do it.
On Wednesday, March 28, 2012 10:41:04 AM UTC+2, Ankit Kasliwal wrote:
>
> Johan i use that command the it's working properly.
>
> On Wed, Mar 28, 2
Afaik you should never use android.os.Process.killProcess or
ActivityManager.killBackgroundProcesses.
On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote:
>
> Hello,
> I have problem in my application when i press exit i try to close
> all my activity but GPS running so
You're probably running into this behavior introduced in Android 3.1
http://developer.android.com/sdk/android-3.1.html#launchcontrols
--
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@
Did you try using the FLAG_SECURE flag?
--
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...@g
A quick search in this group gave me
this:
https://groups.google.com/d/msg/android-developers/363Au8CqdLY/UhsUnEgZViIJ
http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE
--
You received this message because you are subscribed to the Google
Groups
Because all pending alarms for an app are removed when it is killed (force
closed). So don't kill your app.
--
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 unsubs
41 matches
Mail list logo