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
vote
1answer
460 views

encrypting a string with public key in client side and decrypt it in backend using private key

I have a client side android app which needs to send an encrypted string to a server implemented in PHP. For this I have chosen an asymmetric algorithm (RSA). Should I: Save a public key in client ...
1
vote
0answers
320 views

Use Android App Icons for Sharing

I got a question about licensing of android app icons. At the moment I am developing an app and I implemented a share function. The user can select a prefered app to share a text message in a popup ...
5
votes
4answers
3k views

Should I put UI and logic in separate classes?

I currently work on a hobby project which I use to learn more about Android/Java programming and programming in general. Recently, I decided to integrate jUnit into the project. Just getting it in ...
3
votes
1answer
57 views

How can I track who invited who to install?

After a user invites their contacts from within my app, I want to send the first user a notification "so and so installed the app, you can now connect with them." So when a user invites someone, I ...
11
votes
1answer
2k views

Why doesn't CharSequence define contains(CharSequence)?

This applies to to both Java SE & Android, as the contracts are identical. CharSequence documentation for Java SE CharSequence documentation for Android CharSequence does not define a contains(...
0
votes
1answer
738 views

Android Activitiy and Service Sync

I've looked for the solution of my problem but I've failed in finding a suitable answer. I've been trying to develop an Android application with heavy asyncronous networking capabilities. The problem ...
1
vote
2answers
388 views

Deliveryman's position (latitude + longitude) handling on PHP server side from Android app

The context As a school project, I'm building a PHP and Android app for a fake company. Let's call the company "Express Food", which can talk pretty much by itself. The "daily meals" are kept by ...
2
votes
1answer
3k views

Can Kalman Filter make GPS data more accurate?

I'm trying to improve indoor gps accuracy in ios application. Do people apply such filters to gps data in different apps which track your position? I have 10-20 meters error indoors when using raw ...
0
votes
0answers
99 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 ...
1
vote
1answer
390 views

Should I replace switch case of functions determined by options in previous activity?

For example, assume my app has 3 steps with 3 pages: Step 1 : MainActivity: choose color Step 2 : EditTextActivity: input text Step 3 : GreenActivity: display color and input text In ...
3
votes
3answers
1k views

Using JDK in Google Android Studio License Issues

I'm new to android developing and maybe my question is strange. If I want to make commercial apps, libraries, or services for android and use Google Android Studio + Oracle JDK (not OpenJDK) is there ...
0
votes
1answer
294 views

Is it good or bad practice to create alternate styles of rows(eg:alternate background color) in ListView using separate xml?

For example,to create alternate layout in ListView which uses different alternate color : <LinearLayout android:id="@+id/view1" android:layout_width="wrap_content" android:...
1
vote
4answers
195 views

Growing mobile developers inside a web development org

I work for a "mature web startup" as a web developer (mainly using PHP). Our main site has about 8 million registered members at the moment. However, the site is basically impossible to use on ...
2
votes
2answers
225 views

Is it ok to have many libraries for modularity?

Situation: My app exists as standard and branded version, the branded version has some tiny additional features but most stuff is the same. Right now i have a basic library with popups and visual ...
0
votes
1answer
2k views

Is it a good idea to use my own callback mechanism instead of standard implementation like startActivityForResult?

I am trying to create a simple app which has 2 activities, which enter text on one activity and then displays it on the title bar if another activity: EditTextActivity: MainActivity: I know the ...
0
votes
1answer
439 views

What is called the act of extending a Java class with another class?

When we create a Java class for example B that inherits from another class e.g. A, we say that our subclass (B) extends the super class (A). What is this act called in programming. Simply put, for ...
27
votes
2answers
14k views

Does it make sense to use ORM in Android development?

Does it make sense to use an ORM in Android development or is the framework optimized for a tighter coupling between the UI and the DB layer? Background: I've just started with Android development, ...
4
votes
2answers
15k views

Private apps for iOS and Android

Is it possible to develop private apps for iOS (iPhone/iPad) and Android? With "private apps" I mean apps that do not appear on the public app store, but can be downloaded and used only by selected ...
1
vote
0answers
40 views

Best Approach to maintain 2 instances of View Class with its own set of database/sharedPreferences

I have requirements for an Android application. The app already works for one client in V1. In V2 version of the app, we need the app to support 2 clients, for this we need to make changes in only 1 ...
1
vote
1answer
1k views

How to prevent users from decompiling app to find API key?

I'm currently building an Android app that uses OAuth to sign in to a service. With OAuth, I need to provide a client ID and a client secret to the service so it can identify my app. Right now, I'm ...
1
vote
2answers
466 views

Architecture of mobile backend

I would like some input on some refactoring I am to do on a mobile backend (API). I have been tossed a mobile API which I need to refactor and improve upon, especially in the area of performance. ...
0
votes
2answers
2k views

Android MVC with the Activity being the controller?

In an android project, I don't see how the following architecture can be considered MVC. The team said: Android apps are fundamentally MVC the Controller is the Android Activity. the MVC View is ...
0
votes
2answers
10k views

Execute a get request periodically while application is inactive

I have a website that has full support for mobile devices but since opening a browser window seems too much and some people are obsessed with installing apps, I'm now creating an android app which is ...
-5
votes
2answers
120 views

Which applications are developer environments and operating systems coded in?

I have been wondering about this for a while. What applications is programs like visual studio programmed in? But also, where is operating systems like android, ios and windows written in? I just ...
1
vote
1answer
195 views

Paid and Free Version in seperate git branches [duplicate]

How do I manage and update two different app versions, which are with and without advertisements, but are otherwise identical, using git. Up to this point in development, I've only needed to maintain ...
4
votes
1answer
2k views

How many presenters should I use in proper MVP?

I have an Android app which I am refactoring to use MVP. I have an Activity that has two Fragments. Scenario 1 (one presenter): The presenter "knows" each view. So, if one view receives input a ...
-1
votes
1answer
72 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 ...
1
vote
0answers
787 views

Should I wrap all codes into runOnUiThread even some code doesn't need to run on UI thread?

In android, some codes, such as updating UI buttons, needs to be called in UI thread, however, before UI update, some task, such as getting response from internet, need to be done on another thread, ...
0
votes
3answers
79 views

Using only cloud database and authentication service in the cloud as backend for a mobile app - sufficient?

I want to create an Android application with cloud-based functionality. It would entail a (rather simple) loyalty program for consumers and retailers; so, just managing user accounts and some ...
2
votes
1answer
296 views

Formulating a more sensible constructor method

This question is in the context of an Android application written in Java. I have this class which performs a specific action and returns the result of such action with a callback implemented in the ...
5
votes
1answer
555 views

Android: Design for fetching update/syncing from server

I'm building a meeting app where users can create, join (by invite), and edit events like meetings, outings etc. Think What's app chat groups. So I'm looking into designing how the android app would ...
1
vote
2answers
2k views

Class with only one static method

I am using Java for creating an application for Android (so I can use many of Java 7 options, but cannot use all of them). I have two classes: class A{ static String getScript(String input){ ...
3
votes
0answers
702 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 ...
-2
votes
1answer
64 views

Login Register Page for Anroid

I have a mysql database in server, storing user accounts information (username and password). I'm developing the Android login/ register page for an app. When the app is first loaded on client ...
1
vote
2answers
899 views

Real time video communication functionality in android without 3rd party services

I have added video calling functionality to my android app using sinch, I was wondering, what kind of technology-infrastructure is needed to do such a thing without using any 3rd party services? ...
-1
votes
2answers
245 views

How to approach creating musical instrument sounds?

I've started to develop an application that allows the user to play notes on instruments. In particular, traditional Balinese instruments. As with many instruments, they have a certain amount of notes ...
1
vote
2answers
283 views

Is this one method interface a good response to this interview question?

Today I received a rejection letter from a company where as part of the interview process they gave a a couple days to respond to the following question (paraphrased): Let’s say say you have ...
23
votes
6answers
20k views

Design for syncing data in Android

I have been seeing two implementations for syncing data between the server and the client on majority of the apps. This assumes no GCM is set up:- Running an intent service periodically which ...
1
vote
5answers
2k views

Switch case for one condition

I'm doing a code review at the moment on Java Android code. I am looking at a function where a programmer has decided to use a switch statement to wrap a single condition. I am considering making a ...
3
votes
0answers
691 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 ...
5
votes
2answers
360 views

Reactive programming android app architecture

I am going to create a stock market android app. Stock quotes change every few seconds, so to keep the app updated I decided to implement a reactive functional design. My IDEAL design would be: ...
2
votes
0answers
645 views

What are the disadvantages of using a C++ base for cross-platform Android and iOS development? [closed]

I've done some research and one method used for cross-platform mobile application development is to use the lowest common denominator approach, packaging platform-independent functions in a shared C++ ...
3
votes
2answers
1k views

How to manage state in MVP pattern?

I am currently using MVP pattern to develop an android application. I have to implement pagination (i.e. on scrolling at the bottom of the RecyclerView I need to fetch new data). So what is the best ...
2
votes
2answers
92 views

Should I provide as less optional size app icons as possible?

When submitting an app (especially iOS and android), there are some different size of app icons need to add into the app. Among of them, some sizes are optional, is it a good practice that I just ...
1
vote
0answers
620 views

Android intent: Using ?q= in a geo: URI [closed]

I noticed that the Airbnb Android app sends such an intent to open a map app at a particular latitude/longitude: geo:0:0?q=77.77%2C88.88 From my simplistic point of view, they should use the ...
1
vote
1answer
142 views

App uses rest services which use GPL library

I'm developing an app (for Android) which uses data received from my rest services. These services use also GPL libraries: if I have correctly understood, if a server side web application uses GPL ...
1
vote
3answers
665 views

Should a singleton be used in the following case?

Building an android app that displays a list of of Dog objects in Activity A. When you a tap a Dog in the list, that single dog is accessed by Activity B, Fragment B, and 3 other classes. After that ...
1
vote
0answers
597 views

Architecturing my Android app with MVP design pattern

I am developing a Human Activity Recognition android application. Currently, I am at the Design stage where I am designing the architecture of the app. I am using the MVP architecture pattern. I have ...
5
votes
1answer
150 views

Framework logs on client application

We are currently building a framework (closed source static library) that will communicate with some Smart home devices via Wi-Fi. This framework will be used by 3rd party developer to build their own ...
1
vote
0answers
65 views

How should I optimize my RecyclerAdapter (Android) to maximize efficiency of information retrieval in my app's data feed?

I was wondering if there were a set of standards or best practices for displaying information in lists for mobile applications (specifically Android applications that utilize RecyclerViews and custom ...