Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Android is Google's open source OS and system for smart phones and tablets. Use this tag for software engineering questions about Android; for user questions, visit our sister site Android Enthusiasts Stack Exchange.
4
votes
Switch case for one condition
There are situations where today I have one case, but I know I'm going to add more cases tomorrow.
There are situations where many functions follow the same pattern, some ending with a dozen cases, …
1
vote
How to approach creating musical instrument sounds?
Well, my rather old piano has high quality recordings of every single note, at 8 different volume levels each (because a loud not isn't just louder, it also sounds different). Recording every fifth no …
0
votes
Should I wrap all codes into runOnUiThread even some code doesn't need to run on UI thread?
Never, ever, ever wait for anything on a UI thread. You call an asynchronous method to read data from the internet, which might take some time, pass a callback method, and that method runs the rest of …
1
vote
How Should I Design JSON Serializable Data Classes To Respect Future @NonNull Fields
You are looking at the technological solution, but really you need to look at the data.
If you expect a field ABC with a string value, then in your JSON data you can have: Nothing (the field isn't t …
0
votes
What is the difference between extending a class and instantiating an object of that class?
You were taught to use the second example? That's totally weird. You should examine what you need in a particular situation, and use the thing that is appropriate in that situation.
And be very, ver …
4
votes
Is it ethical for an android application to check if its rival application is also installed...
It seems that the security of the operating system is broken. An app should not be able to find out what other applications are running on your device.
0
votes
IOS/Android Push notifications
On iOS there is no time limit imposed by Apple. Note that any push notifications will lead to a notification shown on the screen (under control of the app), so it wouldn’t matter whether the app is ru …
-2
votes
Is recommendable set as final as classes by default in a SDK?
If another developer can change your class from final to non-final then marking it as final doesn’t mean “cannot be subclassed”, it means “I didn’t give the question whether it can or should be subcla …
0
votes
"Public APIs are forever: Only one chance to get it right"?
Changing a widely used API is a pain. You need a very good reason.
Many languages allow you to mark things as “deprecated”. So the first step is to provide a better API, mark the old one as deprecated …
1
vote
Should I provide as less optional size app icons as possible?
Only talking about iOS (but I suppose it's similar for Android): There is a huge number of icon sizes. …
2
votes
Accepted
Best practice for feature flagging in mobile apps while avoiding incomplete functionality?
The old client version can’t handle weather data. Therefore it mustn’t even try, whatever the server says. So If you want most of the code present but not operational, your client itself must contain …
0
votes
GPS application targeting mobile devices
The ten hours is a bit pushing it.
On iOS you would likely us an “Enterprise account” instead of the usual developer account. The app can only be used within your company, but doesn’t have privacy r …
7
votes
JSON API or Plain JSON
I'm not interested in JSON, I'm interested in the objects that are created from JSON. Like in your example, turning plain JSON into objects is easy. How difficult is it for new developers? Mostly they …
2
votes
How do I prove an app is mine?
You either are the owner, or you’re not. It only matters if someone else claims to be the owner and complains. Like if I complained to Apple or Google that the app is really mine, then I and you would …
4
votes
Why local database should be the only source of truth for mobile application?
You need a single source of truth. Having a single source of truth that is always available is very handy.
It really makes life easier if you use an always available database as single source of tru …