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
1answer
435 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 ...
1
vote
1answer
31 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 ...
0
votes
1answer
196 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 ...
0
votes
1answer
174 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
86 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 case:...
0
votes
1answer
373 views

Android, using a Fragment to hold/edit complex object, accesible from any Activity

I'll do my best to describe the problem, but I'm still very new to several concepts that I think this problem requires to be solved (namely interfaces and threads). I should preface this by saying ...
3
votes
0answers
90 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 ArrayList<...
2
votes
0answers
120 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 ...
2
votes
0answers
277 views

Syncing structured data and files in Android App with an ORM?

I am developing an Android App which I have developed for iOS before. The app requires that structured data and files are synced across android devices. In iOS, I was using Core Data and synced to ...
2
votes
0answers
52 views

Android network Lib development

I have to develop an Android library that should frequently communicate with a server in the background. Access to the lib Object should be guaranteed everywhere in the Apps that will use it, so I ...
2
votes
0answers
1k views

How to get local device time corresponding to NTP server timestamp?

So, I'm trying to use an NTP server to help me synchronize an app across two Android devices (to have them perform some action at the exact same time, give or take < 20 ms). I'm using the SNTP ...
1
vote
0answers
37 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
0answers
139 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 ...
1
vote
0answers
27 views

Integrate non-free (with permission) / differently licenced logos in GPL repository

I'm planning to open source an Android app that I developed against the API of a (small regional) social network. This app is the 'official' version for the website and thus allowed to use the logo ...
1
vote
0answers
381 views

Abstract Alert Dialog Builders (Same Method Calls, Different Objects)

Currently I'm working on an Android library that creates a dialog which allows to select colors from a palette (examples at the end) and I've stumbled upon an interesting design problem. To create ...
1
vote
0answers
250 views

Android: How to set a stop flag in native C thread from Java

In my NDK Android app, Java part runs native C code to perform intensive calculations. It does so by creating an AsyncTask worker object that runs the native code in a separate thread via the JNI. The ...
1
vote
0answers
93 views

Multiple 1024x1024 texture pages or one 2048x2048 texture page?

I have a lot of textures around the size of 512x512, and the LibGDX texture packer can't find a way to put more than one of those on one page for some reason. So, I end up with fifteen or sixteen ...
1
vote
0answers
141 views

URI naming scheme for assets shared between Android app users

A feature of my Android application is to allow users to choose graphical assets from a gallery view. Each asset is physically defined by an individual JSON file on the file system. The application ...
1
vote
0answers
57 views

Individual methods or parameters for Google Analytics abstraction on Android

A coworker and I are having a discussion around the best way to build our abstraction on top of Google Analytics for an Android application. A couple of data points. We have auto-tracking enabled ...
1
vote
0answers
199 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 ...
1
vote
0answers
100 views

VPN system to analyze users traffic (onavo-like)

I would like to develop a system that is able to analize the network traffic of people using it. I am interested in the URLs that the users request. Let's say the users targeted are on iOS or Android ...
1
vote
0answers
43 views

Online error reporting without network access

I have developed an application for android requiring no permissions, but the biggest downside of this is that I don't have error reporting. So, I was playing around for the past week with any ...
1
vote
0answers
134 views

What are the tradeoffs involved in referencing Context in a library?

Context is one of the core classes of Android, and many functions it contains are useful in Android library projects, particularly accessing configuration. What are the trade offs involved in ...
0
votes
0answers
12 views

Best way to create integratable module for mobile apps

Let's say I want to build a mobile App which others can include/integrate in their app as a separtate module. The goal is that the customers can add the functinality of my app into theirs. Since the ...
0
votes
0answers
23 views

The best implementation for fromJson factory method and json-mappings with inheritance?

I have BaseComponent (with field "type") and it's subclasses TextComponent, ListComponent, etc. Some of them has same fields. I want to create them and init their fields from json. Some of possible ...
0
votes
0answers
38 views

How to keep user credentials between app updates in Android app built with Xamarin?

I'm building a cross-platform app using Xamarin. When I release a new version of the app to the Play store and users download the new release, they are no longer logged in. How do I solve this issue ...
0
votes
0answers
18 views

What is the best practice for A/B testing prices for in-app purchpases in Android?

I want to monitize my Android app through in-app purchpases. I however don't know the optimal price that I should charge and want to find out that price with A/B testing. What's the best practice to ...
0
votes
0answers
11 views

RubyMotion deployments

I would like to start an application for iOS and Android and I'm considering the option of using RubyMotion for that. I know that you can write Ruby and then deploy to the desired platform. After ...
0
votes
0answers
41 views

Should fragments register directly to an event bus or should only activites do so?

Please correct me if I'm wrong about any of the following. I understand that if a fragment wants to make a network call it tells it's activity then the activity makes the call and returns the answer ...
0
votes
0answers
112 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
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
31 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
0answers
57 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 ...
0
votes
0answers
12 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 ...
0
votes
0answers
62 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
43 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 ...
0
votes
0answers
34 views

Pseudorandom in Android

I am building a security mechanism and I need a Pseudorandom functionality in my app. More particularly I need to convert a String to fix length. My strings are random already, they just to long so I ...
0
votes
0answers
75 views

Android TranslateAnimation :: How to get the Speed of Mass Object

I'm currently having a project for making a springs-joint effect on android. And With two objects : A Mass Object A Springs (for hanging the mass object) And this link is my GIF animated of the ...
0
votes
0answers
140 views

Better Approach for retrieving multiple RESTful calls

I have an Android application that associates bluetooth beacons with data that is retrieved from a server via RESTful calls. Once the app is launched, we have a page with a table that is being filled ...
0
votes
0answers
40 views

Database search results by deviation from query in Java

When every i try something new, I always 'throw myself in the deep end'. I'm in the initial stages of an android app build (my first android app, and first attempt at anything java) I want to know ...
0
votes
0answers
121 views

How to create calendar events in android (that will work with iPhone later too)

I'm developing an Android app right now with a cloud back-end using Google App Engine + Cloud Endpoints (a RESTFUL service). Eventually, I will find an iPhone developer to make my app for iPhone too,...
0
votes
0answers
304 views

Best approach for an android local database-based application containing non-sensitive data

What's the best approach to design an android application with the question title specification? The application will show a first list of buttons with an alphabetical classification (like button1: A-...
0
votes
0answers
320 views

Android runtime - does ART miss optimization opportunities over Dalvik?

Is ART a strict improvement over Dalvik, or there are optimizations that an ahead-of-time compiler will miss compared to JIT, but Google decide they don't matter in practice? For example, with JIT, ...
0
votes
0answers
1k views

Hybrid Apps and Storage - how does it work with Native apps and which to use?

I'm using Ionic at the moment. I believe, like many others, that hybrid apps will become more more common/important than they are now simply because the frameworks are getting better and better. ...
0
votes
0answers
292 views

Using a code library for Android with Apache 2.0 license

If: I want to create an app (e.g. for a business who wants all its employees to download the app from Google Play freely) I do not have an "about" button in the app. The app is closed source. How ...
0
votes
0answers
339 views

What are the implications of the cache when using notifyDataSetChanged?

I use Volley to return JSON from an API. I parse this JSON and add StoreItem objects to a List, then use an adapter to display in a listview. I use the cache functionality in Volley, and I'm ...
-1
votes
0answers
37 views

Android - Information leakage flaw

I have developed an application in the Cordova Framework, and I have added a camera plugin for capture functionality. I am getting an Information Leakage flaw in the code below, using veracode to scan ...
-2
votes
0answers
22 views

Open Camera in fix Landscape mode - Android

I am calling camera via intent , my requirement is that camera should open and be fix in landscape mode only i.e camera in default landscape mode. Is it possible via intent camera or i have to write ...