Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-3
votes
0answers
23 views

Python 3-Based, Aerial mapping program via thermal imaging? [on hold]

So, first of all, I have to say that while I'm pretty familiar with computer hardware and networking fundamentals, I haven't the slightest idea about programming. I'm in a giant learning process, and ...
-3
votes
0answers
10 views

using a custom array adapter [on hold]

I make a todo app and try to put item from textview to listview with my custom adapter. I only get an error in my log no code errors java.lang.ClassCastException: com.izildo.android.todoapp....
1
vote
1answer
68 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 ...
0
votes
1answer
25 views

How to reduce a big ViewModel into small classes

I'm currently developing an android application using the Androidx Lifedata and data binding components to apply the MVVM pattern. In the application we have a MapFragment quite similar to google ...
0
votes
1answer
122 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 ...
2
votes
1answer
105 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 ...
0
votes
2answers
98 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
36 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
vote
1answer
70 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 ...
6
votes
3answers
3k 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 ...
-1
votes
1answer
39 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
68 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 ...
4
votes
1answer
387 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, ...
-2
votes
1answer
41 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
55 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 ...
3
votes
1answer
504 views

Push notification from web application to my mobile app

I want to create a mobile app(iOS and Android) for business need, ex: the business is Health and Beauty. So I need a mobile app for sale some goods and service. However, I need push notification to ...
0
votes
1answer
45 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 ...
0
votes
1answer
122 views

Correct way to receive bulk data from a server in Android?

Ok so to explain I have server in Java that receives data from a C++ program that I have no control over. So the data is transferred over TCP/IP and the Java server just receives it. The volume of ...
1
vote
0answers
48 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
39 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
1answer
496 views

Is this synchronization required in service onCreate method?

Below is a sample code i captured from android doc Per service instance onCreate will be called only once. Ref: here and here The synchronization and singleton doesn't make any sense to me in this ...
3
votes
1answer
998 views

Unit Testing in VIPER Architecture: Possible?

TL;DR There are no methods in VIPER which are returning any value so how to test them? Reasoning: In VIPER, each layer is communicating with other layer by holding an abstract reference to it (...
-2
votes
3answers
116 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
1answer
33 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
45 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(...
1
vote
1answer
173 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 ...
-5
votes
1answer
61 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 ...
2
votes
1answer
74 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
84 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
80 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 ...
0
votes
1answer
548 views

What is the meaning of MODULE_LICENSE_BSD_LIKE in Android source code? [closed]

In Android source code, we see files like MODULE_LICENSE_APACHE2, MODULE_LICENSE_BSD_LIKE, MODULE_LICENSE_W3C. An outside observer would think that these specify the intended license that applies to ...
4
votes
3answers
381 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. ...
2
votes
1answer
909 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 ...
2
votes
3answers
274 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 ...
-1
votes
2answers
39 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 ...
1
vote
0answers
147 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
175 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 ...
5
votes
1answer
181 views

If I develop a media player for mobile or desktop do I have to pay for a license if my player is able to read MP3 files?

I know MP3 is not open source format but proprietary and I found this website http://mp3licensing.com/help/developers.html that states that you need a license for basically everything that uses MP3. ...
6
votes
2answers
49k views

String[] args vs (String . . . args)

When programming for android, whenever I use an AsyncTask the doInBackground method looks like this. protected String doInBackground(String... args) But when using the arguments anywhere in that ...
-2
votes
2answers
184 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....
1
vote
1answer
8k views

How can I access my Handler/runnable class from all my other classes in Android?

I am trying to create a class which allows me to do something every 5 seconds and I want to be able to start and stop this from running from any of the other classes. Here is my Timer class: public ...
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 ...
0
votes
1answer
39 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
0answers
41 views

Mobile app for existing responsive web app?

I have an existing enterprise application that lives on a lamp stack (not single page app). All html is responsive using twitter bootstrap. The question of sending push notifications to mobile devices ...
1
vote
1answer
618 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 ...
1
vote
0answers
27 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
352 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
3k views

Best Practice for handling data sync with React Native, MobX and REST?

We're developing an app using React Native and MobX for the state stores, and also using a Web API REST service for the GETs and POSTs. All is going well, so far we're able to use FETCH to get the ...
3
votes
1answer
897 views

In the MVP architecture, how should the Model layer get its data?

I am new to high-level (Android / Java) application development and I learned of the MVP (Model, View, Presenter) architecture. But it's not clear what the role and design of the Model layer is ...