Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm making an app like the image below and want to get all running app in the system, currently I use ActivityManager with API>21 and get runningAppProcesses but it just returns only my app in the result list. I try many other ways like: getRunningTasks,... but get the same result. Anyone have a better solution? Thanks so much for helping me!
(Described image here: https://www.howtogeek.com/wp-content/uploads/2016/06/Screenshot_2016-06-07-21-06-00.png)
The methods you mention were deprecated because of privacy concerns.
The only substitute I know of is the UsageStatsManager, which you can query to get events like ACTIVITY_RESUMED (An activity moved to foreground) or ACTIVITY_STOPPED (Activity became invisible).
It requires the PACKAGE_USAGE_STATS
special permission. You can not ask for it, you have to direct the user to the settings using Settings.ACTION_USAGE_ACCESS_SETTINGS.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I developed an application that uses NFC technology to receive some data when the badge is passed.
When the app is open the screen must always remain accessible and this happens through the use of an external library. It works correctly, but if for example a popup is displayed warning you to update the device, the device goes to lock or if I pass the badge while this window is shown the device instead of using my app to detect the nfc tag uses the system one . How can I solve this problem?
I believe what you're going to need to do for this is use a background isolate.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to detect when an Android user uses the copy and/or cut functionality?
I have a client who's idea pretty much depends on being able to call a method inside the app whenever a user copies or cuts out a piece of text or an image, no matter whether the user is actually inside the app or not (though the app would be running in the background).
My initial guess would be no, but you never know. I haven't been able to find any clear information about it, so thought I should ask.
Is it possible to detect when an Android user uses the copy and/or cut functionality?
Not exactly. You can listen for changes in the clipboard using ClipboardManager. However:
Changes in the clipboard do not always imply "copy and/or cut" operations
You can only listen for such changes while your process is running
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am new to android and I would like to write a "Social" android application that would require voice calling between two phones. How should I approach this? Or would it be easier if I "outsource" the voice calling part to another program like Skype?
Thanks!
The quick easy solution is to use the ACTION_CALL intent and use whatever default calling application the user has. If you want to do the whole thing in your app Twilio has a pretty good SDK, but I don't know that I'd recommend getting into that on your first android app..
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I wonder how google does it?? When you first power your device on, A introduction to apps and features will be shown in green color when user touches it the element will disappear ! I tried searching google but i don't get exact idea of what that layout / element was? Please regret me if this was a duplicate question.
this is definitely what you are looking for
Holo-themed transparent demo overlays
Are you just trying to do something on the first launch and then never again? Or are you looking for that look and feel? If so, it's probably just images and such layed out. If you want to test the first launch, there's a few ways to do it. One of the easiest is to create an empty file in the shared preferences in your onCreate() method, then check to see if it is there. If it's not there, you do your on first launch action and then create the file afterwards.
Check this out: Determine if android app is the first time used
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to build an online application for movie management. I want the application to be an online one, could any have inputs as to how to build it, as in currently i am downloading each of the dynamic content and loading the layouts which is highly inefficient. Could anyone suggest a better procedure to make an online application and guide for the same.
https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae
That link will show you how to make a Google app engine project. The easiest way to use an online database with android. You can post, and get with very little code. What you do with the data you get back is up to you... Throw it into list views, text views, fragments, etc. But yes this is the best place to start as you need an online database or a social network would not work at all. I suggest you do the above totural and then come back with some more questions. Hope this helps!