Questions tagged [android-development]
Used to tag questions related to Android programming and new development features. Android is a platform and complete development stack from the Operating System to the APIs. developer.android.com is the official site for information about Android development.
111 questions
4
votes
2
answers
504
views
Backup for an Android offline password manager
I am building an Android password management app, where passwords are locally kept for security reasons. The network endpoints are only for creating an account, email verifications etc.
I want to ...
2
votes
2
answers
322
views
Designing Password Recovery for an Offline-First Password Manager
I'm designing a password manager app for Android that prioritizes offline first security the idea is to store the vault locally and avoid any cloud dependencies during normal usage.
However, I'm ...
0
votes
0
answers
56
views
Google Play API development
I have a simple product consisting of 3 apps - Android mobile app in Google Play, backend API and backend administration website.
The API is connected to various external services but this question is ...
1
vote
1
answer
130
views
am I understanding MVVM correctly? [duplicate]
ViewModel has Two-way data binding with UI which means UI can access the data from ViewModel and can update the view models data.
The Model has one-way data binding and is only supposed to respond ...
2
votes
1
answer
1k
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 ...
2
votes
1
answer
636
views
Message queues alternative in mobile development
please let me know if this StackExchange isn't the place for this and I will move the question.
I'm trying to write a mobile app that will have a 'notification' aspect. I have web development ...
-4
votes
1
answer
84
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.
...
2
votes
0
answers
361
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 ...
4
votes
3
answers
247
views
Creating sub-classes of all external classes
I am in a team developing Android applications in an enterprise corporate .One of team members suggested that we should create our own classes, so extending every classes of UI kit (Material Design).
...
0
votes
1
answer
486
views
How do I plan my refactor of my android app for better architecture?
The current structure of my app is as follows:
One activity and multiple fragments (about 25 fragments)
One huge monolithic repository
One huge monolithic viewmodel
Databinding is being used but with ...
1
vote
0
answers
783
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
votes
1
answer
1k
views
Android Chat Application Architecture with websocket
I'm trying to build chat application in Android (future maybe webapp also) using websockets. The purpose of this project is to familiar with websockets, get know websockets and real time applications. ...
-1
votes
3
answers
297
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 ...
-2
votes
1
answer
93
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 ...
-1
votes
4
answers
2k
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
1
answer
351
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 ...
-2
votes
1
answer
158
views
What does app class means? [closed]
In framworks for developing app whether it be a joomla or react or angular i see app class. What does it mean. Like if there is some user class, or some input class or that make sense for some purpose ...
1
vote
2
answers
1k
views
How to connect IOT devices to Android App(initial connection) [closed]
Background
I am starting a new project, and I want custom IOT sensors for an app I am writing. I want to keep everything as simplistic as possible so the IOT devices wont be running any major software ...
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....
5
votes
3
answers
4k
views
Why using ViewModel when using also Repository?
I read this guide about recommended app architecture for Android.
Here is a graphical summery:
The role of ViewModel is clear, but I don't understand why we need it if we use Repository. The purpose ...
1
vote
1
answer
189
views
Database structure for an app used to capture data in warehouses
I am in the process of creating an android app for our clients that would replace the paper-trail in their facilities with electronic inspections.
Although I have coding experience, I have little ...
1
vote
1
answer
202
views
Are "I'm writing android applications" and "follow open-closed principles" reasons to allow global state?
For example, suppose I have an android application, in simple, there are 3 activities :
MainActivity -> Main2Activity -> Main3Activity
,which user can visit them in sequence (eg: by button ...
0
votes
0
answers
2k
views
Sending push notifications to android by nodejs server
I am having the requirement in my project, that nodejs server has to send the notification (kind of push notification) to our mobile, and user( or mobile holder ) have to act on that notification like ...
-1
votes
1
answer
376
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
1
answer
197
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). ...
1
vote
1
answer
1k
views
Android application to RTL (Arabic)
I have an Android application (E-commerce) in English, Now I want to change language to Arabic and RTL(Right to Left)
I am new in that, where and how much efforts it take?
What specific problems ...
1
vote
1
answer
401
views
Some questions on mobile push notification?
I need to work on android mobile push notification. I have recently gone through some of the tutorial on google. I would like to summarize
the my understanding first
Developer registers the app with ...
4
votes
1
answer
2k
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 ...
2
votes
1
answer
181
views
Preloaded/Starter Data in an Android App when installing?
I'm working on my first android app. It's a companion app for a video game, and it should come with preloaded data. I'm not entirely sure how to best go about this. I apologize if this has been asked ...
-2
votes
3
answers
290
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, ...
1
vote
1
answer
1k
views
Android Clean Architecture - Seperate Usecases, Single Usecase, or not a Usecase at all?
I'm working on refactoring an older project of mine to follow the Clean Architecture paradigm (and loving it so far) and one of my components is causing me a bit of confusion in relation to whether or ...
0
votes
1
answer
426
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
1
answer
460
views
Watermark on Video implementation , Server or Client
Below is the context,
Right now i'm developing an android application, which will allow the user to upload the video and image to the server. I want to allow the users(his friends) to download the ...
-4
votes
1
answer
829
views
Create an apk that's a slideshow of images? (Android)
Non-developer UI / UX designer here. Looking at ways to show android prototypes on some dev tablets that are locked down. Locked down in a sense that they can't get to android market they only have ...
-1
votes
1
answer
115
views
Avoiding extra parameters through API or device (Android, iOS)
What is the best practice for REST API call from and device (Android, iOS). I am getting extra parameters/fields in JSON response, while calling an API. Throughout the the application there are ...
0
votes
2
answers
1k
views
Version control locally on Android
I am trying to make some version control locally on my Android project. It is just to have control about my changes, but I do not want to upload them to any external repository. Neither I want to ...
1
vote
1
answer
403
views
Unicode Telugu language characters
I am developing a mobile app in android in which I use Telugu (Indian language) texts. On my mobile Telugu language alphabets are available. Therefore, I am not facing any problem for testing my app. ...
3
votes
2
answers
8k
views
Build a realtime chat app which stores messages in a MySQL database
I'm thinking of making a realtime chat app that would allow me to store user messages into a MySQL database. So far these are the two ideas I have.
1) Create and API which the message is sent to and ...
2
votes
1
answer
1k
views
Understanding application licenses when using third party libraries in an android project
I'm developing an app for the 2nd time but it's the first time i'm using third party libraries in my application. One of the libraries seems to have an MIT license and the other is the android ...
-1
votes
1
answer
112
views
Which would be one easy,reliable and secure way (preferably the best one) to check that a date taken by an Android App is the real date?
By easy I mean easy to implement in code.
By reliable I mean that it doesn't depend sources who might fail under which there is no good control.
By secure I mean that it cannot be worked around or ...
0
votes
0
answers
135
views
Mobile development and infinite List pattern
I m currently working on a React Native application which aims to provide à huge list of items, using infinite scroll and a local state (no matter the technology / plaform, it's stored in RAM) of the ...
8
votes
2
answers
4k
views
Pure Dependency Injection - How to implement it
I'm doing an Android project for an online course. I would like to use DI in that project, so I started to use dagger2, but now I started to have typical newbie problems that are holding me back.
As ...
-1
votes
1
answer
215
views
What are some ways to compare and contrast software architecture strategies?
I am currently working on an Android project that I have concluded needs refactoring done for a core part of the app experience. Let's call this part of the experience "Search".
From looking at bug ...
-1
votes
1
answer
92
views
Retro-engineering an application on Android
I'm trying to retrieve some personal data from an application that has completely disappeared from Google Play, and its author has answered none of my emails.
(I'm namely trying to retrieve a private ...
4
votes
0
answers
902
views
Handling account roles in Android app
I'm building an Android app where different "types" of users can log in - lets say User and Admin are the two roles (there could be more than two). User can access some views in the app, by pressing ...
3
votes
0
answers
800
views
Multithreading in Android
Looking for resources that teach multithreading in Android and list best practices. I want to do some image processing on the preview frame of the camera (already have this part set up) but want to ...
3
votes
3
answers
995
views
How to keep Activity navigation logic generic enough to be reused in different workflows
I structure my Android application following Uncle Bob's Clean Architecture which basically comprise of at least following relevant layers:-
Presentation - Using MVVM approach. This layer contains ...
8
votes
2
answers
8k
views
What's the best implementation for offline mobile app synchronization?
We have an Android app written as a Cordova AngularJS SPA which has now grown so that we need to add some work to it meaning we have to improve the synchronization part of the app. The app is mainly ...
3
votes
1
answer
377
views
Architecture recommendation for Android
Recently I developed an Android application which is very difficult to maintain. We are stuck in a complicated situation. We developed Android Apps which contained 500k LOC and another team developed ...
0
votes
2
answers
1k
views
Class instance while retaining variables between activities
First: This is for a project that is already deployed, and requires a solution that isn't "rewrite how the whole thing works"!
I have a "record detail" screen of sorts that is storing the ...