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
-1
votes
0answers
20 views

Reading static data in Android java app

My project will require reading static data sets that, over the lifetime of the app, will have additional sets of that data in the same format. I don't need to write or modify this data from the app, ...
-1
votes
0answers
15 views

Can update feature of a native mobile application using native Native iOS and Android or Flutter like React Native?

We build a super app mobile application using react-native because we can update dynamic code with javascript. Can I do the same thing with flutter or native like WeChat? and How?
-1
votes
1answer
132 views

The implementation of of GDPR without a server [closed]

If some app developer uses admob or integrates a payment gateway the app developer must take consent for the use of data of the ad providers and payment gateways otherwise the app developer may be ...
-4
votes
1answer
36 views

Android app development (daily journal type)

I want to get help from you all about building an android app that is capable of logging daily journal type data. I want to have these feature primarily in the app: Capable of logging the daily logs. ...
-1
votes
1answer
41 views

How does Power saving mode for detecting location in Android work?

On Android, the "Power saving" option within the location settings means that wifi and mobile networks are used to determine location. What data points from these access points does it use ...
1
vote
0answers
42 views

How can a mobile app measure the phone's rough distance with the user's laptop?

I have a mobile app (iOS and android compatible) that needs to know if it's far or close to the user's laptop/ desktop (e.g. whether it's within 5 meters or not). I need to make it secure such that ...
0
votes
1answer
24 views

menu content link in Backend VS menu content link in UI

Goal: Have a common and same menu content link (for instance Home, about, consumer product, support) when you are using Angular, NativeScript and Android. Background: The menu contain seven different ...
2
votes
0answers
28 views

Reading (GET) Facebook Ads From Ad Library and Reading (GET) Personal Ad Account Billing Data in my Android Application

I'm trying to create an android application for personal use to do the following: Get ads from the Facebook ad library (commercial ones) not the ones with politics topics etc. and then insert them ...
0
votes
0answers
5 views

How to use UDP MulticastSocket for Reception with ThreadHandler-Looper-Handler in Android

I am trying to find the right architecture to be able to listen to UDP Multicast socket, receive the datagram packet that is in JSON format and then send the data to my BroadCast Receiver. It is ...
-2
votes
1answer
53 views

System Hungarian Notation for Android UI components?

Is using System Hungarian Notation for Android UI components (Views) valid? I mean using it ONLY for Views - no strSomething, boolStuff or similar names. For example, tvDescription (TextView), ...
2
votes
2answers
139 views

Better way than repeatedly passing the same parameters?

I have some methods in my code that essentially hide/show some Views, like showTitleHideBody(), showBodyHideTitle(), etc. They just change their Views' (tvTitle, tvBody) visibility. Initially those ...
-3
votes
1answer
36 views

Using same algorithm in web and Android application

For my project I need to use same algorithm for both web and Android application. I thought about handling the algorithm server side but I feel this would put too much unnecessary load on the server ...
1
vote
0answers
18 views

Firestore implement Notifications View

So to begin with this question is not related to Push Notifications. What I want to achieve is a View in which all notifications are displayed. Something like Instagram or Facebook. There could be a ...
1
vote
0answers
155 views

Common business logic in android MVVM

Requirement I am currently working on an android application that uses MVVM, live data and databinding. I have a use-case where I need to show a Comment button in multiple screens in my android app. ...
1
vote
2answers
130 views

Can you modify the front-end source code of a mobile app?

I get that a front-end isn't secure on the web because one could theoretically access the front-end code by opening dev tools and changing the code. Do I also need to be careful about security for a ...
0
votes
0answers
19 views

Using coroutines dispatchers as executor

We can use coroutines dispatchers as executor like Dispatchers.Default.asExecutor() and we do it when we want to use a coroutine just as a executor for operations in application lifetime like ...
-4
votes
2answers
75 views

MVVM construction questions

I am trying to understand how MVVM works. Here are two examples (in Andrdoid) on how I understand it should work, please tell me if I understood correctly. I currently want to make a list of ...
1
vote
3answers
128 views

Best way to Model Classes associated with other Classes?

I'm trying to make a sports stats app in Java/Android + Realm. I have the following classes: Season Player Matches I would like the Season to contain a "list" of all the players that played that ...
-1
votes
3answers
86 views

What makes more sense: (a) To have multiple apps accessing the same DB (b) single app

On Android, do people create separate apps accessing the same database? For example an app that has users, producers and a customer support. How can one decide if it makes more sense to have a ...
1
vote
2answers
93 views

What goes on behind the scenes when data is passed through the use of interfaces?

I understand an interface is a contract and if a class implements that interface, it must define those abstract methods from the interface. What I don't understand is, how is data passed between two ...
0
votes
0answers
25 views

Android Design Question - Should a Reporting App Operate with Non-Standard Launch Modes?

My company has an application largely designed around the idea of running reports. When we had originally conceived the project, we had decided that it made the most sense to use the Android provided '...
0
votes
0answers
39 views

Common patterns for Observable data layer on iOS

I am working on learning native iOS development in Swift, and I am trying to find something that is similar to what I've learned in Android development with Kotlin. In particular I am referring to ...
0
votes
0answers
102 views

Android : How to represent one activity starting another activity with an intent in a UML sequence diagram and class diagram?

In this simple example I have two activities ActivityA and ActivityB. ActivityA is the foreground activity. User clicks a button that executes dispatchActivityBIntent() that creates a intent and ...
2
votes
3answers
146 views

Should services in a service layer be thread safe?

This is for an Android app, but I think the question applies to any software designed with a service layer. Our app is structured with a presentation layer that handles the UI and a service layer ...
-1
votes
1answer
41 views

GPS application targeting mobile devices

I'm working on making a product for tracking workers/staffs locations and in that case the application need to be able to run on the phone for at least 10 hours without the phone suddenly closing the ...
0
votes
0answers
21 views

Factory to create view models with non optional mutable data storage

I'm not sure how to improve this architecture, involving view models and Koin: Typical purchase flow with several steps, each is a screen / fragment (using the nav component) You can navigate back ...
-1
votes
1answer
133 views

Clean Architecture: are repositories always needed?

I'm trying to apply Clean Architecture to a mobile Android App, but I still have some doubts about how to manage API calls. Currently, the classes are structured like this: View -> ViewModel -> ...
2
votes
4answers
349 views

In mobile games that work across android and iOS is game logic written twice?

I was playing one of my favorite games from Supercell, and I imagine it’s a rather complicated game, and it stems across the two main mobile platforms. My question is, do the developers write the ...
0
votes
1answer
349 views

Android project, clean architecture and modular approach

I have this project with MVVM and clean architecture well implemented but I've decided to split it into modules. Right now I have: apimodule apimodule: with the retrofit dependencies app: with the ...
-2
votes
1answer
133 views

Which Software Architecture am I using? XAMPP, Apache, MySQL, PHP Android

I use XAMPP to host an Apache web server and a MySQL database. Most of the data processing is done on the user's mobile phone. After a certain activity, information of the user is sent to the web ...
0
votes
0answers
64 views

confusion for view's and viewmodel's responsibility in mvvm architecture in android

i have a confusion about what code should be placed in view and what in viewmodel for example click events here is a snippet code of google ToDo app example for showing application architecture (...
-2
votes
1answer
63 views

Big scale projects

I had a question about big scale projects. what if the team decides to change a library and therefor the codes should be changed. for example what if the team wants to change the picasso library to ...
-4
votes
3answers
285 views

Why local database should be the only source of truth for mobile application?

Being mobile developer for quite some time (ios/android) I've learnt that local database is very rarely needed. Mobile application are mobile by definition, they usually serve only as clients to ...
-1
votes
4answers
366 views

How do I prove an app is mine? [closed]

So I am in the process of finishing an app (android for now), and I have a doubt about if I should have papers that proof that I made that app. Its the first time for me to publish an app, and I am ...
1
vote
1answer
296 views

How does .Net's Mono Framework, Work on Android

Android uses the modified version of JVM known as Android Runtime to execute android apps. How do games (with Unity 3d) and Apps (Xamarin) written in C# (which require dot Net's Mono framework) run ...
1
vote
0answers
20 views

How to lay out a core java module with an Android GUI layer on top

How can I use Java modules in an Android app repository? In particular, what directory structure should I use? I have a project in mind for which I would like to have a GUI-independent core Java 9 ...
0
votes
0answers
25 views

Maintaining the Single Responsibility of Views in Android

I'm trying to improve on the structure of some android fragments. I have the following block of pseudocode: <layout> <50 lines of loading spinner> <50 lines of content/> ...
1
vote
0answers
23 views

How to implement item based collaborative filtering on android using CSV dataset

I have developed an android application on food delivery where I have used Firebase to store and retrieve data. I wanted to implement collaborative filtering algorithm on my dataset and I am stuck on ...
1
vote
1answer
22 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
168 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
112 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 ...
2
votes
1answer
93 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
784 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
74 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
1answer
2k 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
1answer
63 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 ...
5
votes
3answers
4k 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
36 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
159 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
185 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
2 3 4 5
12