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
-4 votes
2 answers
65 views

What are the possible *root causes* of a SocketTimeoutException?

I understand that a SocketTimeoutException (I'm in Java, but I guess it's the same in just about every major language) happens after a server or client doesn't respond after a period of time, let say ...
user avatar
0 votes
0 answers
17 views

Android Compose, how to handle response states in Composable code

In my app I have sealed class Resource for work with data results: sealed class Resource<T>( open val data: T? = null, open val error: Throwable? = null, private val stateName: ...
user avatar
0 votes
0 answers
53 views

Is splitting Android activities/classes into many Kotlin extension functions a good or bad practise?

I have been working on an Android application for some time, and ever since the beginning I've developed a practice of splitting my class's (mostly activity/fragment) code up into multiple files. This ...
user avatar
1 vote
1 answer
101 views

How to integrate Androidx Paging-3 in Clean Architecture?

This blog on "Clean Architecture" describes how to build a modular Android application along with using Clean Architecture. In that example project, the author places the business logic in a ...
user avatar
-1 votes
2 answers
74 views

How do android developers develop BLE-Clients without BLE Hardware? [closed]

First an foremost I would like to apologise if this is a trivial question, however it has been costing me a few workdays worth of freetime and I am appearantly too incompetent to figure this out ...
user avatar
0 votes
0 answers
24 views

How to show new inventory added to DB to FE and mobile app, where the user shouldn't refresh the page or pull down in web app?

Planning to use Ruby on Rails on the backend. May be Redis and other tools if necessary. I don't know much about mobile app development. In Front end and in mobile app, for an user(based on their ...
user avatar
  • 101
0 votes
2 answers
116 views

Which is the best approach I should follow use private fields in data class primary constructor or use Interfaces Inheritance?

I want to perform some operations on data class fields before accessing them and I am confused about which approach I should follow. I want to write code so that it makes sense to everyone and follows ...
user avatar
0 votes
0 answers
115 views

How to implement domain driven design on Android

i created some bounded contexts and integrate them, also implemented the API in Spring with the layered Architecture. Now i want to implement it on Android. Also i want to use the recommended MVVM ...
user avatar
  • 17
0 votes
0 answers
22 views

Android Compose, create an object wrapper for composable functions

I'm trying to create a kind of "form-bulder" with Compose, I've already done something similar with the old xml view system, and it was inspired by Django Forms. The things involved were a ...
user avatar
2 votes
1 answer
296 views

What is the MVVM way of loading images in list in Android?

Scenario: A very simple android app needed to be developed. It has just one screen with a list of items. Each item has a label and an icon. We fetch the item list from the server, and the server ...
user avatar
2 votes
1 answer
360 views

Secure way of storing client secrets in Xamarin / Android mobile apps

What would be a secure way of storing client secrets used for authentication (webservices) in Xamarin/Android apps ? Secure Storage, which interacts with Android Keystore, seems very useful for ...
user avatar
0 votes
0 answers
118 views

How to set up login pin system

i want to set up basic login page in xamarin.forms. There is no username/password, just a simple pin so far i have 3 pages to do this Sign-up Pin page Sign-up Confirm Pin Page (re-enter pin to ...
user avatar
  • 101
0 votes
0 answers
146 views

Designing a unique id reliably based on a String date?

I am creating an Android application that sets alarms based on the String date of a list of Objects (PendingIntents, with each taking in an id, that is an integer). In order to cancel the ...
user avatar
  • 129
0 votes
0 answers
124 views

How to maintain and deploy a poc (Proof Of Concept) version of an app?

In our organization we sometimes have to create a poc (proof of concept) to either validate or invalidate the way to go. Currently we're having a discussion around how to embed this within our ...
user avatar
  • 109
0 votes
0 answers
185 views

In what layer should API be called in Clean Architecture - in Repository or in Use Case?

I am trying to implement Clean Architecture on my Android App with standard MVVM components. Almost every example I have found deals with simple business logic, i.e. simple CRUD operations over data ...
user avatar
  • 181
1 vote
1 answer
177 views

Offline audio comparison for Android

I have two audio clips: Source of truth Recording of user I want to compare the two, testing if they are similar enough, removing accents, etc. Any idea how I could do this on Android? To add more ...
user avatar
  • 361
-4 votes
1 answer
48 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. ...
user avatar
  • 1
-1 votes
1 answer
130 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 ...
user avatar
2 votes
0 answers
51 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
2 votes
0 answers
93 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 ...
user avatar
  • 121
-2 votes
1 answer
68 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), ...
user avatar
  • 17
2 votes
2 answers
157 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 ...
user avatar
-3 votes
1 answer
41 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 ...
user avatar
1 vote
0 answers
573 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. ...
user avatar
  • 119
1 vote
2 answers
1k 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 ...
user avatar
  • 235
-4 votes
2 answers
91 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 ...
user avatar
  • 11
1 vote
3 answers
286 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 ...
user avatar
-1 votes
3 answers
109 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 ...
user avatar
1 vote
2 answers
170 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 ...
user avatar
0 votes
0 answers
208 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 ...
user avatar
  • 161
2 votes
3 answers
413 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 ...
user avatar
  • 147
-1 votes
1 answer
49 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 ...
user avatar
  • 111
-1 votes
1 answer
348 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 -> ...
user avatar
  • 128
2 votes
4 answers
395 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 ...
user avatar
  • 403
-1 votes
1 answer
821 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 ...
user avatar
-2 votes
1 answer
294 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 ...
user avatar
  • 1
0 votes
0 answers
81 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 (...
user avatar
  • 187
-2 votes
1 answer
69 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 ...
user avatar
  • 11
-4 votes
3 answers
934 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 ...
user avatar
-1 votes
4 answers
1k 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 ...
user avatar
1 vote
1 answer
672 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 ...
user avatar
  • 261
1 vote
0 answers
23 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 ...
user avatar
  • 169
1 vote
1 answer
196 views

What architecture to follow when I need to make user login in Android app?

I am writing an android app. Some of its functionalities require the user to be authenticated. I am planning to create an annotation like this: @RequiresAuth fun commentOnTask(){ .... } This ...
user avatar
1 vote
0 answers
26 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 ...
user avatar
1 vote
1 answer
30 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 ...
user avatar
3 votes
2 answers
175 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 ...
user avatar
  • 369
2 votes
3 answers
229 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 ...
user avatar
  • 193
2 votes
1 answer
176 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 ...
user avatar
1 vote
1 answer
2k 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....
user avatar

1
2 3 4 5
12