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
-5
votes
0answers
27 views

Testing plan for Android team

I am planning to implement tests in my company for our android apps. We have 2-3 apps, 3 developers, 1 QA. I want to have a smooth plan for everyone to start learning how to write tests and use ...
3
votes
2answers
152 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
51 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 ...
1
vote
1answer
72 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
1answer
116 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....
0
votes
1answer
57 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 ...
0
votes
0answers
44 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
209 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 ...
0
votes
0answers
140 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
21 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 ...
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 ...
1
vote
3answers
332 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 ...
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 ...
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
135 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 ...
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
55 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 ...
-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
158 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
45 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
203 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 ...
2
votes
1answer
119 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 ...
-2
votes
1answer
47 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 ...
0
votes
1answer
228 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 ...
-2
votes
1answer
50 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(...
-5
votes
1answer
65 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 ...
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 ...
2
votes
1answer
325 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
127 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 ...
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 ...
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. ...
1
vote
1answer
257 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 ...
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 ...
1
vote
0answers
203 views

Android Multiple Threads for I/O Operations in Room

I have a small example that i run on a real device with 4+4 cores. ExecutorService service = Executors.newFixedThreadPool(4); for(int i =0 ; i<1000; i++){ Runnable task = new Runnable() { ...
0
votes
2answers
42 views

Web Services with Android and iOS apps

I have a website which uses REST Api for communication. All data retrieval and save happen through Rest Api calls(polyglot environment). Now I am planning to create an Android and iOS app . I have ...
2
votes
3answers
556 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 ...
0
votes
2answers
185 views

Is this Singleton-like design pattern a feasible framework to build on?

I am posting this question here after it having been determined to be "off-topic" for stackoverflow, and "too hypothetical" for codereview. I am experimenting with different singleton-style design ...
-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
2answers
186 views

The best way method to write an app that takes you to a web page that depends on the time in a browser app?

I'm not a software developer at all, but wondering if this would be a relatively simple project for creating an android shortcut. My parents like doing the guardian quick crossword: https://www....
0
votes
1answer
41 views

What are good strategies to use for learning the workings of larger systems? [duplicate]

For obvious reasons (be a better developer) I desire to gain a deeper understanding of not just my code, but the systems / frameworks / libraries that I work with. As a senior-ish dev* I feel I should ...
0
votes
1answer
58 views

Web designer equivalent in Android and iOS worlds?

When web came, for years designers would create stunning designs in Photoshop, and developers would try to translate those designs to HTML/CSS/JS. This had many problems with itself. Lack of ...
1
vote
0answers
31 views

ExecutorService Doubles Memory in API<26 Android [closed]

My app downloads data from a PHP Server using threads from an ExecutorService with ThreadPool size 4. In API 27, the app runs perfectly without causing any OOM exception from the Heap memory. But all ...
1
vote
1answer
523 views

What is the correct way for one presenter to communicate to another presenter or view with the MVP pattern on Android?

I have an activity with two fragments attached, Fragment/View A controlled by Presenter A and Fragment/View B controlled by Presenter B. View A is on the top half of the screen and does not change ...
0
votes
1answer
167 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 ...
4
votes
4answers
564 views

Is it ethical for an android application to check if its rival application is also installed by the user?

I was just going through a food delivery application's preferences file where I found that it had a boolean to check if the user has one of its rival's app installed or not. Is it ethical to do so on ...
-5
votes
1answer
278 views

Android app using php mysql session

I am developing an android app. Backend code php and mysql. I can register login using php myql. But I want to add profile information using android app. But the information goes as another user id. ...
0
votes
1answer
270 views

Why are the Android runtime and native libraries in the same layer?

Regarding the diagram in Android's website: https://developer.android.com/guide/platform Why did they put the Android Runtime category in the same layer as the native C/C++ libraries category. ...