Developing Android Apps

Subscribe to Developing Android Apps feed
News for Android developers with the who, what, where when and how of the Android community. Probably mostly the how. Here, you'll find: - News for Android developers - Thoughtful, informative articles - Insightful talks and presentations - Useful libraries - Handy tools - Open source applications for studyingDeveloping Android Apps
Updated: 16 min 1 sec ago

What happens after 11th of April with Client Apps

42 min 17 sec ago

Hello Community,

long-time reader, first post.

I have an issue with migration to FCM. Situation is as follows:- currently released version is 2.x- we are in heavy development for 3.0 (target release date: early June 2019)- 2.x still uses GCM client library (version 11.0.2)- we have migrated our backend to FCM- please don't ask why we still haven't migrated. Politics. :)

The big question is: what will happen with Apps that use GCM after 11th of April? I have found misleading information from Google, see:

" The GCM server and client APIs have been deprecated and will be removed as soon as April 11th, 2019. "

and

" What happens to my users who don't update their apps?

As long as users have GCM logic in their apps, they will still receive messages. FCM is backwards compatible with GCM, so even if you don't update your server endpoint now, you can still update your app's logic, and vice versa."

(as of https://android-developers.googleblog.com/2018/04/time-to-upgrade-from-gcm-to-fcm.html).

I assume that existing Apps will work just fine. The thing I cannot verify is whether token generation API will still be operable? (eg. for Users freshly installing App)

Does anyone have any *confirmed* information?

submitted by /u/braczkow
[link] [comments]
Categories: Android, Linux

Outside-In TDD on Android

1 hour 37 min ago
Categories: Android, Linux

What sort of things should I look into for high security apps? eg banking apps

1 hour 50 min ago

Been looking at jobs requiring expertise in app security, what should I look at to gain relevant security knowledge? I know the basics of encryption etc from university.

submitted by /u/joeymoto1
[link] [comments]
Categories: Android, Linux

Weekly "anything goes" thread!

2 hours 13 min ago

Here's your chance to talk about whatever!

Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

Remember that while you can talk about any topic, being a jerk is still not allowed.

submitted by /u/AutoModerator
[link] [comments]
Categories: Android, Linux

Do you find out handling runtime permission always end up with a lot duplicated code?

2 hours 26 min ago

I find out when I need to handle runtime permission, I always end up with a lot of duplicated code.

For instance, I need to ask for local storage permission, before I perform any local backup.

Such actions can happen in different fragments/ activity.

Because we can hardly make the following functionality as static functions (They are part of Fragment members). I need to write those code within a fragment class

  • onRequestPermissionsResult

So, a lot of time, as I need to override onRequestPermissionsResult in every related fragments, they will end up with the same code most of the time.

I was wondering, do you have the same feeling as I do? If yes, how do you avoid duplicated code problem?

submitted by /u/yccheok
[link] [comments]
Categories: Android, Linux

What type of service is good to use for creating a pause/resume timer?

5 hours 10 min ago

Basically I am creating a app that increments a variable every second.

I thought about using IntentService but I've ran into trouble when trying to figure out how to pause and resume the execution of the IntentService. Do I just keep trying to use IntentService and use a BroadcastReceiver to end the thread, save the state of all the variables in the IntentService and create a new IntentService when the user tries to resume? Or is it easier to use regular service? Thanks!

submitted by /u/Okmanl
[link] [comments]
Categories: Android, Linux

What is the state of Google Pay use for Google Play in-app purchases

5 hours 57 min ago

There seem to be a proliferation of "Payment declined" for in-app purchases.

What percentage of purchases are affected - and how much harm to developers ?

There are cases where Google Pay users are able to purchase from websites, but get "Payment declined" for Google Play in-app purchases. If they switch payment methods to PayPal, they get the same failure.

And no amount of effort from the user in talking to Google Pay representative or by the developer seem to resolve these situations.

It seems Google Pay seems to blacklist some users for one reason or other for Google Play purchases (i.e. it is a ban on the user, not the app, I think).

What are the solutions available for this problem ?

submitted by /u/stereomatch
[link] [comments]
Categories: Android, Linux

How much does an Android app earn?

7 hours 30 min ago

This answer can't be generalized so Can you please give an example of how much some not popular app make on google play store? If you have such app earning from play store,plz include them.

submitted by /u/sulavtims
[link] [comments]
Categories: Android, Linux

Allow view to expand by combine with other views.

7 hours 57 min ago

How to make layout like this ( from left to right ) by only XML.

https://i.redd.it/r5o7dt48p4b21.png

parent | A -> B -> C | parent

A : width as wrap_content

C : width as wrap_content

B width is allowed to expand whereas A and C still shown and reach to parent left and right, as the below image.

https://i.redd.it/xguvui8hp4b21.png

submitted by /u/Free_Sky_1102
[link] [comments]
Categories: Android, Linux

Left android development for a year, want to get back into it

Thu, 01/17/2019 - 23:45

From where should i start? What are the new things in android development?

I need help!

submitted by /u/videogamefanatic93
[link] [comments]
Categories: Android, Linux

Android converting to encoding utf-8

Thu, 01/17/2019 - 22:38
<?xml version="1.0" encodings="utf-8"?> <resources> <string name="app_name">GeoQuiz</string> <string name="action_settings">Settings</string> <string name="true_button">True</string> <string name="question_text">Dogs like cats?</string> <string name="false_button">False</string> <string name="menu_settings">Settings</string> <string name="correct_toast" >Correct</string> <string name="incorrect_toast" ></string> </resources>

`` org.gradle.api.tasks.TaskExecutionException:Execution failed for task ':app:mergeDebugResources'.`

Caused by: /Users/channy/AndroidStudioProjects/GeoQuiz/app/src/main/res/values/strings.xml:1:29: Error: The ' = ' character must follow "encoding" in the XML declaration.at com.android.ide.common.resources.MergingException.throwIfNonEmpty(MergingException.java:152) at com.android.ide.common.resources.DataSet.loadFromFiles(DataSet.java:255) at com.android.ide.common.resources.ResourceSet.loadFromFiles(ResourceSet.java:55) at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:298) ```

submitted by /u/bitsofshit
[link] [comments]
Categories: Android, Linux

Hey redditors. I'm curious what was the very first app you built all on your own? How did it to in the Play Store? Was it really buggy or were you proud of it?

Thu, 01/17/2019 - 22:10

Include links to Google Play if you can. I'm just really curious how everyone started their paths.

submitted by /u/whompum101
[link] [comments]
Categories: Android, Linux

Single.retryWhen in RxJava2

Thu, 01/17/2019 - 22:02

Im trying to use Single.retryWhen() in rxjava2 but the onError() of my rxchain receives a throwable of type NoSuchElementException. Why is that?

submitted by /u/lawloretienne
[link] [comments]
Categories: Android, Linux

Pages