Questions tagged [android]

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.

Filter by
Sorted by
Tagged with
-2
votes
0answers
14 views

Trigger action on multiple Android devices at the same time

I'm trying to trigger an action inside my Android app on multiple devices at the exact same time (or with the lowest delay/shift possible). The devices are strictly similar (brand, model, version), ...
-5
votes
0answers
25 views

How to start a service of any killed application by system in locked mode in android? [closed]

How to start a service of any application that was killed by android system in locked mode without opening that killed application after unlocking the device in Android?
1
vote
1answer
19 views

Transaction management on mobile applications

While there are prescribed methodologies for the middle layer when it comes to transaction management like Saga pattern etc. I want to know what's the advice on handling such on a mobile application ...
3
votes
2answers
165 views

Is recommendable set as final as classes by default in a SDK?

I am working on the development of an SDK in Android with Java, In general the user doesn't need to inherit any class of the SDK, so the question is if it is a good practice put by default all classes ...
2
votes
3answers
55 views

Best practice for feature flagging in mobile apps while avoiding incomplete functionality?

I'm wondering how best to handle the scenario of releasing a mobile app that includes an incomplete feature behind a feature flag in one version and then the completed feature behind the flag in a ...
0
votes
1answer
130 views

Do shared ViewModels contradict MVVM?

I want to follow the MVVM app architecture. I also need to have some communication between some fragments. But the official approach is pretty confusing. Taken from the docs (https://developer....
4
votes
1answer
494 views

Handling common code among presenters

I'm facing some issues related to code duplication when following MVP architectural pattern in an Android project that I'm working with. My project structure is separated by packages: data, domain, ...
0
votes
1answer
310 views

Check location permissions with MVVM in Android?

I need to request runtime location permissions for the FusedLocationProviderClient api and, once I have them, obtain Location objects and feed them to an algorithm that will make a query to an ...
1
vote
1answer
78 views

Is it good approach to create new viewModel class for every new Ui(Fragment/Activity)?

I am working on a project in which I am following clean Architecture from Google ... and for making code testable I am following an approach in which,I am creating a new ViewModel Class ViewModel ...
0
votes
2answers
124 views

Some Suggestion about Data Modeling

I want to make a social game for Android. I am using NoSQL Based Database (MongoDB) and I am using NodeJs. I am using Android-Volley library to make POST and GET requests. But I am stucked on ...
0
votes
1answer
58 views

When to fetch/send data in an Android application

I am currently creating an Android application and I have the following questions: We have a server which provides data for the app in form of a REST-JSON-API. The App is following the MVVM ...
1
vote
1answer
86 views

Directing user to a specific screen on App after he installs the App

I have a very specific use case. We are working on a Project where user can buy the tickets to an event. In this, we are asking the user to enter an Email id where he can receive the email from where ...
0
votes
0answers
45 views

Internal design of Android app

I have an Android app which stores data in a file system. This file system synchronizes with a server when there is an internet connection available (but is designed to work without a network ...
0
votes
1answer
168 views

Handling Networking on Android

While doing android development. There is really no clear way of doing network operations, Sending and receiving data. Currently I am handing it using HttpsURLConnection and having streams to build a ...
0
votes
0answers
142 views

Code Structure: Keep classes simple or keep usage simple?

Tl;dr: In terms of the "high cohesion and low coupling" principle, how do I best deal with many simple objects that need to access the strings.xml resource in order to correctly parse an output? I'm ...
0
votes
0answers
22 views

Sequence Diagram Assistance with external database

I have 5 Java/android classes which are in sequential order. The user inputs data into the text box and clicks next. Two things happen, 1 the data the user inputs is passed to the next activity and it ...
5
votes
4answers
605 views

Proper way to name a class which has just methods and not fields

GOAL: naming a class which has the responsibility to save data in Android database. The class structure is like this ClassName { public void saveSync(...){ /* implementation*/ } public ...
2
votes
1answer
120 views

Should MVP adapt the software framework, or just reside inside it?

In android there are many different implementations for MVP. Most of them favor to use the Activity or Fragment as the view, a few would make them presenters, and even less, would separate the ...
0
votes
1answer
57 views

Deploying Multiple Versions in One App Package

This is a question about Android, and iOS apps. The technology is Xamarin (C#) but this is not really important. The app will be deployed to the stores. The client app must be compatible with the ...
0
votes
1answer
26 views

What form of single instance class for a cache under Android

The app is to communicate with a bluetooth device with assorted data (config, measurements, service logs, status telemetry) - and it should cache obtained data so the user flipping between activities ...
-3
votes
3answers
3k views

What is the difference between extending a class and instantiating an object of that class? [closed]

I frequently see people extending a class like this for example: public class Bananas extends Fruits { public void eatFruit(){ } } rather than public class Bananas { Fruits ...
2
votes
3answers
480 views

Should business logic be in the app or in the backend?

I've recently started applying the Clean Architecture while developing an Android application. And so I divided my application in 4 different parts. Data layer Contains the implementation of ...
25
votes
1answer
18k views

What to keep in mind when releasing an app which uses libraries licensed under the Apache 2.0 License? [closed]

I'm creating an Android app which is soon ready for release. I'm just going to implement a tab system using this library. I read that it is licensed under the Apache 2.0 License. I've never used any ...
6
votes
2answers
8k views

Using DBUS on Android

I would like to know if it is possible to use DBUS on Android using Java. From what I have been searching till now it appears like there isn't any DBUS programming support on Android. However, ...
0
votes
0answers
30 views

Do I need provide translation for an UI library

I have a library for a lockscreen in Android, that includes diferent dilogs for fingerprints, texts and all that stuff. My question is: What the best practice to provide localization. Should I have ...
0
votes
1answer
252 views

In The MVP architecture does the Activity or Fragment must be the View component?

In our team, we separate the UI logic from the Activity or fragment by creating a new class for the view and let the Activity/Fragment manage the Life Cycle only is this good practice or not? public ...
1
vote
2answers
154 views

who is responsible to define the algorithms, the class and data structures in a scrum team?

We developed our app for iOS and Android in native code. Before using scrum we had the following development logic: We define the overall product requirements (for iOS and Android app) The iOS ...
3
votes
1answer
138 views

Why are cloud services needed for push notifications?

We currently have a customer that wants us to implement push notifications to our app. The problem is that for this customer, security is really, really important... I am not able to find any official ...
1
vote
1answer
87 views

Implementation of Android Fingerprint technology [closed]

I'm currently doing a web based system for multiple organizations, so on my login form, there's 3 simple field: Company code, such as CNN (this is implemented so we can have same username, as long as ...
10
votes
3answers
4k views

Clean Architecture - Too many Use Case Classes

I'm going into Clean Architecture and lift my Android level from MVC to MVP, introducing DI with Dagger 2, Reactivity with RxJava 2, and of course Java 8. In MVP clean architecture there is a layer ...
-1
votes
1answer
43 views

Is a localized Mobile App considered bad and prone to removal from Apple/Google's perspective?

For the occasions that I've been offering SaaS, I've been asked to develop Apps that are pretty much a clone of regular e-commerce webpages, but with a few features like notifications and, well, being ...
0
votes
0answers
160 views

Best practice for Asynchronous CRUD operations in Android/Java

A few months back, I was working on designing a client API (FooManager) for adding/removing/fetching a list of objects (Bar). The requirements were simple- 1. Fetch operation is CPU-intensive and ...
-2
votes
1answer
46 views

IOS/Android Push notifications

I am planning some app as a part of our product. One part of the app will be to receive push messages. Sometimes it's months between uses of the app and, by experience with other apps I've used, it ...
0
votes
1answer
235 views

Storing session data on client or server side

I have an Android application that communicates with the server using REST. During the flow, the client(Android) usually send 3 separate requests to the server with different data. Some of the data ...
3
votes
1answer
643 views

Push notification from web application to my mobile app

I want to create a mobile app(iOS and Android) for business need, ex: the business is Health and Beauty. So I need a mobile app for sale some goods and service. However, I need push notification to ...
-2
votes
1answer
48 views

What happens to threads when On Sleep Mode and after?

When an android device enters sleep mode it is know that cpu sleeps. That means that, services, threads are paused and everything sleeps. Is that true? In case it is, what happens after the device ...
2
votes
1answer
534 views

Is this synchronization required in service onCreate method?

Below is a sample code i captured from android doc Per service instance onCreate will be called only once. Ref: here and here The synchronization and singleton doesn't make any sense to me in this ...
3
votes
1answer
1k views

Unit Testing in VIPER Architecture: Possible?

TL;DR There are no methods in VIPER which are returning any value so how to test them? Reasoning: In VIPER, each layer is communicating with other layer by holding an abstract reference to it (...
-2
votes
3answers
126 views

Is there any rule of thumb regarding which version of Android you should target, minus the current version?

I am working on an Android app, and trying to figure out which version I should target. The current version is 28, so I figure that targeting any version of that minus 3 (ie >= 25) seems reasonable, ...
-2
votes
1answer
55 views

Connecting android app(android studio) to myphpadmin database(already on the server)

I have a website for admin and a mobile app for normal user. Both of them share a same database which is now on the cloud(The website for admin is already deployed with the database on the server). ...
0
votes
1answer
52 views

Optimising network data usage in vehicle tracker

I'm currently working on an Android application that broadcasts the location of the device every 5 seconds. Pseudo showing current app process: deviceLocation = getLocation() if (hasChanged(...
1
vote
1answer
263 views

Best practice API design for mobile app in sending multiple photos in one request?

I'm working on API design for a mobile app where the user can send one or more photos that will be stored in the database. Currently I have three routes, post photo/create which will send one photo ...
-5
votes
1answer
67 views

What happens to media files when a WhatsApp user recalls the message? [closed]

WhatsApp has the "Delete For Everyone" feature that makes it easy to delete messages you did not intend to send to the other user. For text messages, this recall is easy, but what about Video, Photo ...
2
votes
1answer
358 views

Best practices for app-cloud synchronization of database representation

I'm planning a cookbook-like Android app that would let users store/add/edit their e-juice recipes, keep track of the ingredients, etc. Internally, I'll be storing the data in a database on the user's ...
0
votes
1answer
86 views

Can a user read static member values?

For my Android application, I wanted to store values such as username, userid and stuff in a sharedpreferences object. However, when I read more about it, rooted users can still have access to those ...
2
votes
0answers
131 views

Help with understanding/implementing MVP architecture in Android

I'm trying to decipher/understand the best way to implement Model-View-Presenter architecture for the following Android example app... The App: I'm attempting to implement a very basic weather app ...
0
votes
1answer
651 views

What is the meaning of MODULE_LICENSE_BSD_LIKE in Android source code? [closed]

In Android source code, we see files like MODULE_LICENSE_APACHE2, MODULE_LICENSE_BSD_LIKE, MODULE_LICENSE_W3C. An outside observer would think that these specify the intended license that applies to ...
1
vote
1answer
42 views

Doing operations securily from an Android application into a Server

I have come up with a problem in my development and I have searched for correct solutions but have not found any. I am developing an application which lets users login with username and password. ...
4
votes
1answer
2k views

Access multiple entities in repository - clean architecture

I have a API call that returns a list of Payments, each Payment contains a User. I need to call it, save the results in the database, fetch all the payments and users and return them all to the ...
2
votes
3answers
597 views

Can Java applications run on phones (at least android) AND Windows?

Hi all I love stackoverflow so helpful. Afaik IOS has some security measures that dont let other apps (such as jvm) execute code from your app. Not sure how much this is true. But anyway, I heard ...