Tagged Questions
Android is Google's OS for digital devices[Phone, Tablet, Auto, TV, Watch]. Please use Android-specific tags such as [android-intent], not [intent]. For non-developer/programming questions, see http://android.stackexchange.com.
1
vote
1answer
8 views
What is the best practice for providing resources for an Android AnimationDrawable PNG sequence?
I have created a sequence of PNG's for a splash loader animation in the various screen densities. I am using AnimationDrawable and have created the animation in an XML file. The sequence of PNG's for ...
-1
votes
0answers
6 views
Android image capture and imageview
I am trying to save an image capture to internal app memory and show the image in an imageview on the activity. I am fairly new to android, and I know people will not want to give me an easy answer. ...
0
votes
1answer
13 views
Store a query statement inside database
the question is very simple, while developing in android I have a query to INSERT some data in the database:
writeDB("INSERT INTO procedencia (procedencia) VALUES(" +
...
0
votes
1answer
18 views
Send string variable from Activity to AsyncTask Class
I need to send a string variable from my main activity class to the AsyncTask Class and use that string as part of the url to make the api call.
I tried using Intent and share preferences but ...
-1
votes
1answer
8 views
Android studio assets folder
when i try to create a webView in android studio and point it here: file:///src/main/assets/www/index.html, it keeps saying that it can not find the file path.
Thanks in advance.
Mitch
0
votes
0answers
14 views
Android image won't upload to PHP server
I don't know much about PHP but i'm trying to upload a picture to a PHP server. The following code allows me to take the picture but then says "Error Null".
Is there something wrong with the android ...
0
votes
0answers
10 views
ListView not appearing in Fragment class
I have a fragment class which is part of several other classes in a viewpager. I wanted to create a listview through and array adapter and display the content from the listview on one of the ...
0
votes
0answers
5 views
Convert a compass bearing sensor reading to a direction mark (N,S,W,E) in Unity3d for Android
I need some assistance on making a bearing compass js script snippet I have, to transform the sensor readings to a GUI.Label , as of N, W, S, E, etc.
I want on Android screen to show e.g. this ...
0
votes
1answer
7 views
android change list of spinner depending on another spinner
I have several spinners on my activity
Is it possible to change the contents of spinner 2 depending on what item was selected on spinner 1
the spinners are as follows
<Spinner
...
0
votes
0answers
5 views
AndroidGameWindow.SetDisplayOrientation NullReferenceException
I developed a game for Android using MonoGame & Xamarin. I incorporated BugSense into it and quickly started getting the following exception stack trace:
System.NullReferenceException: Object ...
0
votes
0answers
4 views
Setting the size of a SurfaceView with SurfaceHolder.setFixedSize(width,height)
As part of my MainActivity classes layout I have a SurfaceView:
<LinearLayout
android:id="@+id/screen_game"
android:layout_width="match_parent"
...
0
votes
0answers
6 views
service stops sending pictures to FTP server in Android
I have a problem that really has me already without ideas.
Context
I have a service charge every 30 seconds to check the existence of images in a directory, for it created a Handler that ...
1
vote
0answers
13 views
Keep interface method names in proguard
Lets say I have..
public class SomeClass {
public interface someInterface {
public void firstMethod(String variable);
public void secondMethod(String variable);
...
0
votes
1answer
11 views
how to play YouTube video with fullscreen in android application
I want to play the YouTube video in fullscreen mode by default in my Android application. I have tried with the options force_full screen and flag_full screen, but nothing is working.Can you please ...
0
votes
1answer
10 views
Sample Apps for lower Api levels for android
Browsing google's sample webpage for android i found that several apps required high minSdkVersion
(for example the NFC example requires Api level 19)
where can i find the Samples for lower Api ...
0
votes
1answer
6 views
Android admob id dynamicly
We : me and my partner , are making an android app and we would like to share the revenue of our app equaly , 50% each ! We both have admob account and keeping them seperat would work perfectly .
What ...
0
votes
0answers
2 views
Shorten delay on android RTSP stream with AOSP?
I'm trying to stream a live webcam to an android app over RTSP.
I'm having problems with the delay and buffer and i get 8-10 delay.
Is there any way to shorten the delay with AOSP code editing?
I ran ...
0
votes
1answer
10 views
App development: easiest way to get a phones current location
I have reviewed the docs for google's geolocation API: https://developers.google.com/maps/documentation/business/geolocation/#auth
but it asks for inputs which I am not sure how one would know before ...
0
votes
2answers
19 views
Start activity instead of fragment in tabhost
I want to know if there is a way that I start an activity instead of launching a fragment on tabhost tab select.
What I want to acomplish if to launch an activity where the user can write a post and ...
0
votes
0answers
11 views
Android Studio not recognizing SDKs
I have updated my Android Studio to Beta 0.8.6 but now am not able to build because I cannot seem to get the sdks working correctly. I have checked my path and it is pointing to the correct place and ...
1
vote
0answers
19 views
SQLite Ways to delete column: Using temporary table vs Renaming using ALTER TABLE
I am trying to find the best way to delete a column in SQLite. Here are the two ways I found:
From the official website http://www.sqlite.org/faq.html#q11:
BEGIN TRANSACTION;
CREATE TEMPORARY TABLE ...
0
votes
1answer
5 views
In ViewGroup subclass component, how to tell when a referenced ViewPager has been initialized?
I am building an activity that has a ViewPager in it and I am implementing a custom page indicator component that will show what page the view pager is currently showing. My question is: How can my ...
0
votes
0answers
4 views
can't add more than 2 views to a viewswitcher
In Asyntask, I want to change textswitcher text and If I add new view, app crash.
Code sample:
textSwitcher.setInAnimation(MainActivity.this,android.R.anim.slide_in_left);
...
0
votes
0answers
4 views
Android - Ion FutureCallBack with result=“”
I am developing an App and I use the lib Ion from koush: here
Sometimes it works great and I get the result "succeed" or "User already exists" from the php file(echo "succeed";) and sometimes the ...
0
votes
1answer
12 views
ImageView in SplashScreen is not showing
I am very new to android and trying to add a splash screen I am half way succeeded. But a weird think happening that surely an easy one. here i have tried :-
I wanted to stop the SplashScreen for ...
0
votes
2answers
36 views
Dynamic variables in a for loop?
I've got a layout which is called activity_main.xml which is my parent layout, and I am then inserting a child layout (activity_main_card.xml) within a for loop.
I also have an array, and what I am ...
0
votes
0answers
7 views
libgdx + gdx-sqlite can't access database on android
Hi I'm working on a project using libgdx-eclipse-gradle and gdx-sqlite for creating and accessing databases.
I can't get the 'demo code' from the git repo of gdx-sqlite to work completely on android. ...
0
votes
0answers
6 views
Hide/Change title-view of android ExpandableListView while showing the content-view
I was using this library's ExpandableListItemAdapter & the result is as usual. But I need to change as well as hide the title-view while showing the content-view just like these pictures.
Can ...
0
votes
1answer
14 views
Libgdx collision detect from two sources on one body [array out of bounds excpetion -1]
So you have [libgdx Rectangle Arrays]
private Array<Rectangle> var1;
private Array<Rectangle> var2;
private Array<Rectangle> var3;
and var1 is the array we want to detect a ...
0
votes
0answers
11 views
Action menu item not showing on first page of viewpager for pre Android 4.2
I have built an app which works perfectly on Android 4.2-4.4 but now I need to provide support for users on 4.1 and possibly 4.0 also. I have set the minSDKVersion to 15 in the Android manifest file. ...
-1
votes
1answer
13 views
How to change ActionBar Pop up menu background color?
Hi guys I am trying to change ActinBar's Overflow menu background color to white using "Theme.AppCompat.Light.DarkActionBar". Default in this theme background color is black. But to my app it is not ...
-2
votes
0answers
8 views
Android Application Crashes On Wakeup(Parse)
I am using Parse as a Back-end service for my application,and would like to know what it is that is causing this app to shut down when the lock screen is turn off and then back on. The logcat is ...
1
vote
2answers
31 views
Use device sensors to tell if phone is moving in vehicle?
I'm having a pretty interesting dilemma right now, and after looking around on SO and doing some googling, it seems coming up with a solution is not as easy as I thought.
I'm looking to use Android's ...
0
votes
2answers
10 views
GCM Json Post method
I'm doing an android app for first time which uses gcm. I'm unable to push message notification to users with multicast. I have implemented for individual users though! Please suggest a way to ...
0
votes
0answers
65 views
Draw on canvas is way off in KitKat - works fine on older phones
Im working on a function for my learn-to-code app where the users are supposed to be able to put markers on a map (a bitmap in a imageview). I have written something like this (C# in Xamarin):
...
0
votes
0answers
4 views
showing DoughnutChart in Slices using aChartEngine
I want to know how can I show my DoughnutChart created in aChartEngine library in slices as figure below. I spend an hour in finding a way of doing that but failed.
0
votes
1answer
23 views
How to refresh tabs when clicked
I have an application which communicates with php and MySQL through an AsynchTask.
What I try to implement is to refresh/reload the current tab and "restart" Asynch-Method to get the current MySQL ...
0
votes
0answers
3 views
Android Studio: Admob inconvertible types
i finnaly got admob working on my app but. . . i ran into a another problem. When i put the code "AdView adView = (AdView)this.findViewById(R.id.adView);
AdRequest adRequest = new ...
0
votes
0answers
4 views
GsonRequest with POST
This is currently the code that I'm using:
/**
* Volley adapter for JSON requests that will be parsed into Java objects by Gson.
*/
public class GsonRequest<T> extends Request<T> {
...
0
votes
1answer
9 views
Adapter update not visible rows
If you review this question Update adapter from different method you will see this answer http://stackoverflow.com/a/25632407/1270400 This answer works only with visible rows.But I have to add badge ...
0
votes
3answers
17 views
Register onclick for animated ImageView
I've got an ImageView I animated using a translate animation to infinitely drop my image down the screen. I want to register touches that are made to the ImageView as it falls however my onClick ...
1
vote
1answer
7 views
Set ImageView to bottom
Hi I am trying android and i am WP c# developer. So having a problem to set the image to the bottom middle of the screen. In WP it is quite easy for me. so here what i have attempted :-
...
0
votes
0answers
2 views
Drop down list/ opens extra menu based on choice
I am using android studio. Using a drop down list, how do I make my selection open a sub window/menu that allows me to select different options?
0
votes
2answers
12 views
Google Maps Fragment returning null inside a fragment
So I have an empty fragment that contains a map fragment. Whenever I try to activate the fragment containing the map, my app crashes and returns a null pointer error on this line:
map = ...
0
votes
0answers
3 views
Error when using Robolectric to test an ActionBarActivity
I'm using Robolectric to test an activity from my application. The Activity extends ActionBarActivity. When I test the activity I get the error : "IllegalStateException: You need to use a ...
-1
votes
1answer
10 views
Red Exclamation (!) Mark on my project name in eclipse
I imported one project in Eclipse. but it showing me Red exclamation mark next to my project name.i have seen this Question has been asked many times here. I tried some solutions but those answers ...
0
votes
0answers
8 views
Modifying the existing app to display only a character in a text box
Can someone explain me what or how to modify the app available here so that it only displays every second character in a textbox instead of displaying all the received characters.When the this app is ...
0
votes
0answers
9 views
How do I tell if the device is pointing down with yaw pitch and roll or quaternion
I have a simple Adobe Air game that I need help on. The app contains a Bucket and I need to to dump out its contents whenever the user "dumps" the phone. I have an ANE that gives me the yaw pitch and ...
0
votes
2answers
22 views
What is the best way to pre-load data with the application?
So, I have an app that I want to store a large series of Strings with, and I want it to ship with the application. In Android's onCreate method, should I just have a huge (couple of hundred lines) ...
0
votes
1answer
15 views
Any easy way to change Android Action Bar “selected” color?
I'm able to change a lot of colors through using the Android style documentation from here and looking at the source here and here.
Using what I learned above, I was able to change the ...