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
-3
votes
0answers
18 views

The Best Android Emulator For Linux Mint [closed]

I need to install emu for android on my Linux, distro Mint 20. Furthermore, there is a project in Memento DB, that I need to cover with this emulator and android, so I am ok with that, too. What do I ...
-3
votes
0answers
18 views

How to implement UI when image/video messages sending are in progress like any chat application? [closed]

I am working on a chat application. I want to implement a UI like any chat app while uploading images/videos. For example: In WhatsApp; when we send images/videos, they are shown in RecyclerView of ...
-1
votes
0answers
31 views

Designing Turn Based Android App with a Firebase backend

I'm working through how best to utilize firebase as a backend for my turn based rpg style game. The difficulty is that rather than turns taking place consecutively (p1 does his turn, it completes, ...
2
votes
2answers
254 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 ...
1
vote
1answer
184 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 ...
-3
votes
1answer
7k views

Android Apps: How can I view an apps code/files?

I love taking apart applications, software, and websites to see how developers were able to create a feature or how a game handles AI. Something I'd like to be able to do is view an app's files (...
0
votes
2answers
95 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 ...
0
votes
0answers
74 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 ...
0
votes
0answers
17 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 ...
5
votes
2answers
972 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, ...
1
vote
3answers
226 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 ...
0
votes
1answer
520 views

How to integrate Google Cloud Messaging with Cloud Endpoints and Google App Engine

I am trying to build a simple chat messaging app with Android. I have an Android Studio project with a Cloud Endpoints module. I use this Cloud Endpoints API which is published on my Google App ...
2
votes
1answer
178 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 ...
0
votes
0answers
15 views

Android SDK in memory session data storage options

I'm developing an SDK that involves jumping out of the app to others through intents and restoring of the same in memory session. The SDK is initialized using some parameters that are saved as ...
0
votes
0answers
16 views

What is the proper way to communicate with Android Service from Jetpack Composables?

I'm working on an Android application where a Manager/Controller class encapsulates basically the core functionality of the program. It has some StateFlows defined and also a few public methods to ...
0
votes
0answers
14 views

Q: In Android recommended MVVM architecture should repository be using AppDatabase or DAO directly?

hope you're doing fine. I'm going straight to the point, I'm trying to implement Android recommended MVVM architecture with repository pattern using Room as local data source, currently I'm at ...
0
votes
0answers
53 views

What's the proper way to avoid long parameter lists? [duplicate]

If I architect to utilize use-cases then I soon arrive at long param lists. As an example: class MainViewModel @Inject constructor( private val getUsers: GetUsers, private val deleteUser: ...
0
votes
0answers
77 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 ...
0
votes
0answers
93 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 ...
0
votes
0answers
100 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 ...
0
votes
0answers
82 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 ...
1
vote
1answer
169 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 ...
1
vote
1answer
169 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 ...
0
votes
1answer
349 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 ...
-1
votes
1answer
775 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 ...
-4
votes
1answer
46 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
98 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 ...
2
votes
0answers
50 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
27 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
64 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 ...
30
votes
4answers
13k 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 ...
-2
votes
1answer
61 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
154 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
40 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 ...
3
votes
1answer
205 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 ...
1
vote
0answers
520 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. ...
-4
votes
2answers
87 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 ...
12
votes
4answers
1k views

Why don't mobile platforms support generational garbage collection?

Both Windows Phone/Xbox and Android lack support for generational garbage collection. This is frustrating for a lot of programmers. There seems to be a legitimate engineering reason to it, but I can't ...
1
vote
2answers
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 ...
1
vote
1answer
1k views

How does package naming affects Android application once deployed?

Are there conventions to follow when naming an application package for an Android application? I'm coding in Xamarin Studio, using .Net, so I feel far from this "com.myapp.etc" naming convention. ...
1
vote
1answer
2k views

Android - Clean Architecture - best way to structure packages?

Can you all take a look at my package structure to understand how i implemented clean architecture in android: if we take a look at the clean architecture diagram it looks like frameworks is apart of ...
4
votes
1answer
4k views

On Android and IOS does javascript run on inactive browser tabs? [closed]

In the design of a javascript based web app I was concerned if my app would run on inactive windows on Android and IOS since is basically a webapp wrapped by a native app. Does anyone know how these ...
1
vote
2answers
160 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 ...
-1
votes
3answers
100 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 ...
7
votes
1answer
224 views

Finger Paint path gets huge over time and slows the app

So I am writing a Finger paint app. I have multiple color which user can select. I save the path and paint information inside an array. ArrayList<PaintPath> arrayPaintPath = new ArrayList<...
-1
votes
2answers
155 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
0answers
172 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 ...
2
votes
3answers
330 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
47 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 ...
1
vote
1answer
171 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
2 3 4 5
12