Android is Google's open source OS and system for smart phones and tablets. For user questions, see http://android.stackexchange.com

learn more… | top users | synonyms

-2
votes
0answers
19 views

Notification feed in Python for Android app

I am working on writing backend (REST API using Flask) for a Android app (simple content posting app). I need advice in implementing a notification feed where a user can see all the activities related ...
-4
votes
0answers
33 views

Private Android app design [on hold]

This question is regarding architecture solution and possibility. We are trying to replace all our desktop's with Android Tablets. Plan is to replace our in-house 'Order taking' desktop application ...
3
votes
0answers
74 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 ...
-3
votes
0answers
20 views

Auto-emailing pre-generated image in Android? [on hold]

I currently have an app that generates a QR code based on user input and then scans that in at a later date. In future applications, a barcode would be printed and then scanned, but for now, I was ...
-2
votes
0answers
45 views

Specific design patterns for the backend and database of a mobile application [closed]

I'm writing a social networking app. Here are the features it will have: user accounts/profiles (so I will need to store profile pictures) following other users posting content that will be seen by ...
2
votes
2answers
83 views

Can you charge for apps that use open source software?

I don't know where else to ask this. I have an Android app I want to release on the store, and I want to charge a low fee for it. But if part of my application uses code I did not write (i.e. code ...
2
votes
1answer
51 views

Getting posts from users that are being followed: two different implementations

I have two different implementations for retrieving posts from the users someone is following and I want to know which one you would recommend using. First I'l show you the tables, and then the two ...
1
vote
1answer
36 views

Am I making use of REST if I have implemented an Android app that connects to a localhost?

Would I be using REST or would my app be considered RESTful if I was using the Google Volley library to connect to a database on localhost?
0
votes
3answers
648 views

What is selection and what is projection

I am working on Android with the query() method of the ContentResolver class and it accepts 6 parameters, (uri,projection,selection,selectionArgs,sortOrder,cancellationSignal) for selection and ...
-3
votes
0answers
80 views

How to encrypt a file in Android? [on hold]

I've been trying to implement a file chooser in Android, and I want to encrypt a file when I choose, here is my code //// private OnClickListener btnActivitySimpleOpen = new OnClickListener() { ...
0
votes
1answer
27 views

Where to put peripheral use cases in android while using clean architecture

I'm trying to work myself into the Clean Architecture by Bob Martin with respect to android applications. It seems to me like there are Use Cases which do not encapsulate the Domain Layer, but belong ...
-3
votes
0answers
27 views

How to communicate with a Wifi device (Wifi to Rs 485, Modbus)

I am integrating a Wifi adapter with my variable frequency drive to use my mobile phone to control the direction of motion. I have no programming experience and completely confused as to what is ...
2
votes
3answers
822 views

Cache Json on disk with fast read back in java/android

summary: I need a way to cache a large JSONArray on disk, and be able to quickly read AND CONVERT it back to JSONArray at a later time. NOTE: my output MUST be a >>JASONarray<<, and not a ...
0
votes
0answers
11 views

How would I go about creating a dequeing system annotation system like Mapkit

I simply can't do anything animation based in Android maps. You can't animate markers as custom views like you can with Mapkit. How would I go about creating an overlay projection that dequeues ...
0
votes
0answers
16 views

interoperability between two independent platforms via HL7 FHIR

Mobile app: (Patient) I've developed an android mobile application which you can register, login, enter your personal information, enter your blood pressure factors, heart rate, and blood sugar. In ...
-5
votes
0answers
71 views

How to add entries to an ArrayList in another class?

I'm trying to create a list of Strings that user has saved as favourites. The Favourites are displayed in a class separate to the MainActivity in their own list, but the user is supposed to mark it as ...
2
votes
1answer
347 views

Decoupled architecture in Android

I am building an app for Android that will have multiple data sources depending on who is using it. N-tier architecture with a repository pattern seems like the right way to go about this but I am ...
-2
votes
0answers
77 views

Database structure for an Android chat application

I have a structuring or rather designing problem. I am developing an Android chat application and I need to know if anyone has an idea on how the database should be structured to allow group and ...
0
votes
3answers
105 views

Can the Linux kernel be described as a Server?

I am developping an Android application that is using NDK in order to access to data from the Linux kernel. As you may know, this is done using IPC (Inter Process Communication) through Android's ...
2
votes
3answers
122 views

What is the least bad way of knowing the type of a key from Json file

in our app we have a Json file that contains several properties used for menu configuration. One of the keys should tell us if a menu item should be displayed. The thing is that the value for this ...
38
votes
3answers
130k views

Android development using C and C++ [closed]

I am a C, C++ developer. I am interested in mobile development. I want to know how can I develop Android apps using C and C++, I have read that they are providing a kit for C, C++ developers but it ...
0
votes
1answer
118 views

Can Qt desktop programs be recompiled for Android/iOS as-is?

One of the advantages of open-source programs is that they can be ported easily to any platform simply by recompiling. Qt is also a cross-platform toolkit that can work on several platforms simply by ...
7
votes
4answers
357 views

How to save a list of strings which might grow too large but old data is not useful

I am developing an application which sends certain notifications to the user as read from a read-only external service. The user might dismiss notifications, and those should not appear again. I ...
-3
votes
2answers
123 views

What is the difference between extending a class and instantiating an object of that class?

I frequently see people extending a class like this for example: public class Bananas extends Fruits { public void eatFruit(){ } } rather than public class Bananas { Fruits ...
3
votes
5answers
2k views

How to develop cross platform mobile applications with native UI and Javascript backend?

I want to build a cross platform(Android, iOS, Windows) mobile application. I want the UX of the application to be different on the different platforms so that it will be more platform specific and ...
0
votes
0answers
26 views

Displaying DXF file on android

I have been working on solution for displaying autoCAD files on mobile phones. I will be focusing on Android but iOS support, and eventually the web, is planned too. The main format for autoCAD is DWG ...
3
votes
1answer
145 views

In MVP pattern should the View instantiate a Model object based on UI contents, or just pass these contents as parameters to the Presenter?

I'm using MVP pattern in an android app that I'm developing. I have basically 4 elements: The AddUserView where a new user can be added: The AddUserPresenter The UserInfo (the pojo) The ...
-3
votes
1answer
81 views

How to save strings and integers permanently to a users device?

I'm building an app that requires the user to purchase content and sign to a User Agreement Contract. However, I'm not too sure where to start with in-app purchases and saving data types to the users ...
0
votes
2answers
394 views

Why use XML in Android?

From what I understand, isn't XML used for layouts and to setup how an activity looks? My book says that XML files are converted into Java code but then, why not just write everything in Java?
2
votes
2answers
145 views

Design for an Android app (pharmacy duties)

I am creating an android app for pharmacy duties for different cities. My approach: I created an Interface with method getDuties, and for every cities I create a class named with name of the city ...
2
votes
1answer
135 views

How to deprecate an entire mobile application? [closed]

Six months ago I launched a free app that I developed and self-funded. From peak usage of a few thousand users, it has now bottomed out at a few hundred. It was an interesting project, from which I ...
1
vote
1answer
87 views

Understanding MVP pattern usage in Android

In my current android projects I'm using a sqlite db to store my collections of structured data. The database is accessed by a ContentProvider called by a Loader which updates the UI. It looks like ...
28
votes
8answers
6k views

Should I spend time preventing piracy of my app? [duplicate]

The title says it all, the more I do research about piracy and the tools used to crack an app the more I think it is just wasted time. My biggest threat is that my app is being cracked and uploaded ...
1
vote
1answer
78 views

Let Xamarin clients listen when server send an API

My situation I will make a Xamarin application for Android that can access an ASP.NET MVC webserver with API's. The problem is when I'll send an API to the server, all the connected clients must ...
7
votes
2answers
207 views

Android: Pattern for checking requirements at startup?

My app's launcher activity checks a bunch of requirements like whether GPS is enabled, there's a network connection, the app has device administrator privileges, etc. Some of these checks display ...
4
votes
1answer
330 views

Android or iPhone application collecting payments [closed]

I'm starting to study a project that mainly will allows users to make payments from their iPhones or Androids. Since I don't have e-commerce experience and also I have never owned a smartphone, I ask ...
14
votes
5answers
13k views

Design pattern 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 ...
0
votes
1answer
72 views

Android continually checking Internet, Bluetooth and GPS status?

In my app I want the ability to continually check for Internet, Bluetooth and GPS status (if one is off/on). I need each of these to be on at all times for my application to work effectively. For ...
2
votes
1answer
177 views

Conflict resolution for two-way sync offline sync

How do you manage two-way synchronization between a 'main' database server and many 'secondary' servers, in particular conflict resolution, assuming a connection is not always available(offline ...
0
votes
0answers
11 views

How to improve navigation on various Animators in an acitivity

I have various Animations going on simultaneously in my Android Activity, in MainActivity (like with Fragment pop-up, my Toolbar and some other views Animate Synchronously). How can I manage all such ...
1
vote
0answers
93 views

Handling multiple rest api versions within Android Java client

Actual architecture I have an app where a model is attached to every activity. The model ask a repository for information that can come from server or local db depending on many factors. When it asks ...
4
votes
5answers
727 views

How do you manage the testing of your Android software on physical devices?

I'm in charge of managing mobile application development at my company, and I am currently building a mobile device "library" for testing. Essentially, we want to have a representative device in-house ...
2
votes
1answer
124 views

Is IntentService an implementation of Command Pattern?

According to Wikipedia: In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or ...
2
votes
2answers
4k views

setSoftInputMode versus InputMethodManager

I have seen and used both of the methods to hide the on screen keyboard while coding Android: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); and: ...
0
votes
0answers
44 views

Libgdx texture and sound disposing

I'm writing a game and in the game, I use an asset manager that is in a singleton class, which holds my textures and sounds. If I create several enemies (lets say 4) which call upon my asset manager, ...
0
votes
0answers
40 views

How to get dual UI for an ionic app?

I would like to get some suggestions for building a new app. This app has two faces/UI to it, buyer/seller. Users would have same account, and it would be seller and buyer. Its something similar to ...
2
votes
1answer
54 views

A way to update a list an Android application displays

I just started working on an Android app that should display posts from my site and then a three-column list of some products. The three columns on the list contain the product names, a short ...
9
votes
3answers
6k views

Continuous integration (with iOS and Android projects) [closed]

I'm trying to make some positive changes in my company and one of the changes is implementing continuous integration. We do mobile development (iOS/Android) so I need a CI that supports both types of ...
23
votes
7answers
3k views

what should a developer know/address to build commercial Android Apps? [closed]

Android and mobile development is an exciting area of development. As it is a new discipline, what would be expected of an android developer to build commercially robust applications in terms of ...
8
votes
2answers
11k views

Are ads within average Android applications profitable?

I know ads can be profitable for some incredibly popular applications, but how do average applications fare? I am about to release an application and I think it will be pretty popular, but it's not ...