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

4
votes
4answers
180 views

JSON API or Plain JSON

There is a debate in my company on whether we should use the JSON API specification or stick to plain JSON for developing APIs that will be consumed by mobile apps, mainly iOS and Android. One ...
15
votes
5answers
6k views

Proper workaround for multiple inheritence in Java (Android)

I have a conceptual problem with a proper implementation of code which seems require multiple inheritance, that would not be a problem in many OO languages, but as the project is for Android, there ...
-5
votes
0answers
40 views

Confailulations to my images [on hold]

whats best way to create clip art for HTML 5 based games? i'd like to use standart art but would rather not get my game banned from some funny copyright or accidental trademark mumbo jumbo
-2
votes
0answers
18 views

Can I use the Android Trade Federation Library to save and compress logs in the app and distribute this on the play store?

I want to compress and store logcat on an Android device so that if the user's app crashes while offline, then his/her device will send the logcat feed when the device comes back online. I started ...
1
vote
0answers
23 views

Building back end for iOS/Android app using Django and Heroku

Background: I'm currently building a music streaming app (many requests per second) for a friend and am second-guessing my approach to it. The plan is to have an iOS app and an Android app, though I ...
1
vote
1answer
18 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 ...
-3
votes
0answers
26 views

Where can I find bigger Android Icons (>48dp)? [closed]

I'm making a layout that has 6 icons in a grid layout, 2 across, 3 high, but the icons in the material design page by Google are a maximum of 48dp which is about 50-66% too small and makes them look ...
-3
votes
0answers
56 views

How to submit/get data to website you don't own?

I'm new to programming and would love some direction to how I would go about submitting/getting info from a website I don't own. This website has no available API. Thank you!
2
votes
1answer
84 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
votes
1answer
33 views

Synchronize local data with server data in an android application

I'm starting to develop an android application where I have to persist user data. For server data I want to use Google Cloud with noSQL but I don't know what to use to save data in local memory when ...
0
votes
1answer
71 views

Android, access 1 activity from 2 cases, what design pattern is this?

I'm developing an Android app, encounter this case. There are 2 ways we can enter an activity (named activityB): either from activityA or from notification. 1st case: ActivityA -> activityB 2nd ...
0
votes
1answer
163 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 ...
-1
votes
0answers
15 views

Stack for Web/Android/iOS app

I have been trying searching for this answer but perhaps i am not able to use proper words so apologies if this question has been asked earlier. I want to create something for my startup. I have ...
0
votes
1answer
77 views

How to associate images in SQLite

I'm a newbie and couldn't find anywhere, concise information regarding which approach I should be taking when working with images. The thing is I'm developing an app whose main purpose is to keep ...
2
votes
3answers
939 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 ...
2
votes
1answer
308 views

Building a news app for both phones and tablets

I am building a news app. In phone mode it should have a navigation drawer which slides out when you tap on a hamburger button or slide your finger. That navigation drawer has a fragment with static ...
2
votes
1answer
396 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 ...
0
votes
0answers
93 views

Can MVP be implemented in Android with Activities and Fragments as Presenters and Custom Views?

Lately my team has started considering the implementation of MVP pattern in some of our applications. We followed the several guides and tutorials out there, basically ending up with regular ...
0
votes
1answer
74 views

What is the proper or recommended way to save String[]'s, Array's, ArrayList's and int[]'s to Android?

I've looked up this question many many times but keep seeing different answers, what is the BEST way to save array's? It seems ludicrously infantile that there is no standard or easy way to save ...
0
votes
1answer
159 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 ...
-2
votes
1answer
47 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 ...
-3
votes
0answers
32 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 ...
3
votes
0answers
85 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
2answers
93 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 ...
1
vote
1answer
40 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
702 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 ...
0
votes
1answer
36 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 ...
0
votes
0answers
13 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
22 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 ...
0
votes
3answers
106 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
129 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 ...
39
votes
3answers
132k 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 ...
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
129 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
40 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
161 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
83 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
441 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
146 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
137 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 ...
2
votes
1answer
120 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
105 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
210 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
83 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
197 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 ...