Questions tagged [android]

Android is Google's mobile operating system, used for programming or developing digital devices (Smartphones, Tablets, Automobiles, TVs, Wear, Glass, IoT). For topics related to Android, use Android-specific tags such as android-intent, android-activity, android-adapter, etc. For questions other than development or programming but related to the Android framework, use this link: https://android.stackexchange.com.

android
Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

Can this be done in AS3?

I have 2 frames which i would like to switch between when rotating a mobile device. These two frames have similar content except that the content in frame one consists of text and graphics and that in ...
lottorist's user avatar
0 votes
1 answer
342 views

How to detect html file is loading android webview or android browser

I create one application in html. In that application I need to implement one functionality. 2 cases I have Case 1: If my application is loaded in browser i need to redirect to one specific point ...
Nishanth's user avatar
0 votes
1 answer
965 views

Error:Execution failed for task ':sampleAppProject:dexDebug'

I just updated my sdk tp version 23 so as my libraries in my application but when it comes to run the app the following error is presented :com.android.ide.common.process.ProcessException: org.gradle....
Mostafa Addam's user avatar
1 vote
0 answers
758 views

Error when compiling OpenSSH for android

I'm trying to cross-compile OpenSSH for an Android Plateform (Armv7) using the Android-NDK. To do this, I followed instructions based on this post : Cross Compile OpenSSH for ARM. I replace the "arm-...
Zedday's user avatar
  • 17
0 votes
0 answers
108 views

Android client getting all the inputStreamReader at the deco from the server

I'm asking for a little help here.. I made a Android app in order to get messages from a server. The app just have to show the server's messages and nothing else. the thing is nothing is shown in ...
Simon Fontaine's user avatar
0 votes
1 answer
66 views

How to Titanium with handle push notification?

I use caffeina GCM with Titanium.I want to convert get push notification object to JSON object. How can I do? I want to make dynamic. Thanks var req = require('it.caffeina.gcm')....
KaraEski's user avatar
0 votes
2 answers
150 views

web service URL to be more configurable in the binary file .ipa/.apk. In order to reduce dependency of re-compiling the app

Is there any possible ways that we can configure URL on app so that if URL has changed then no need to recompile the code and generate the binary file again.
RAVI's user avatar
  • 151
-5 votes
1 answer
1k views

How to get input from check box in android studio [closed]

I am doing code for an app i am working on. There will be registration form and that user itself can check that job detail in user job detail. my problem here i can get or pull the check box input to ...
abiramy's user avatar
  • 33
0 votes
1 answer
194 views

How to give app choices before opening links to facebook, twitter and google plus

I am designing a website. I have links - “follow us on facebook”,” follow us on twitter “and “follow us on google plus” . On mobiles some users use browser for facebook, others some facebook app. Is ...
Anshumali's user avatar
0 votes
1 answer
685 views

Nested Expandable List View Exception:The content of the adapter has changed but ListView did not receive a notification

So I have a Nested Expandable List View. I use a custom Expadable List View to implement the Second Level Expandable List View. The GroupView of the First Level is being implementing in the first ...
VasFou's user avatar
  • 1,609
18 votes
4 answers
1k views

Lvl library and android marshmallow

Lvl library doesn't compile anymore on Android Marshmallow due to the lack apache stuff removed. You can add useLibrary 'org.apache.http.legacy but it's only a temporary workaround. The problem is ...
greywolf82's user avatar
  • 22.1k
0 votes
0 answers
534 views

How to cluster multiple marker in map

I am creating one map application where i want to show many markers. But the problem is that when markers are shown on map there are more than 100 markers at same area so all are not visible clearly. ...
hg1's user avatar
  • 153
1 vote
0 answers
197 views

Free hand crop image on android use OpenCV?

I'm a newbie to OpenCV, I am writing an app require free hand crop using this tool. Have tried pointPolygonTest method to copy the pixel inside the polygon return very slowly. So any solution for more ...
lethanh's user avatar
  • 323
0 votes
0 answers
1k views

Optimize loading speed of WebView

I am using an UIWebView (Android: WebView / WebChromeClient) to show our mobile Web App. The Website, made with jQM, loads very slow. I already tried to activate the Caching Policy at NSURLRequest (...
Sascha K.'s user avatar
  • 623
1 vote
1 answer
876 views

DAO vs RuntimeExceptionDao ORMLite Android?

What is the difference between DAO and RuntimeExceptionDao using Ormlite-Android? When to use one and not other?
Usman Maqsood's user avatar
7 votes
2 answers
27k views

Send a JSON Object from Android to PHP server with POST method and HttpURLConnection

I'm trying to establish communication between my Android app and my WampServer on local network. When I want to read data from the server, I have had success, but I have a problem when I try to send ...
Anaïs's user avatar
  • 259
1 vote
0 answers
58 views

Easiest way to write/work with XML in Android

I have an example XML file like: <?xml version="1.0" encoding="utf-8"?> <Test1> <typ>task</typ> <datestamp>20150602153306</datestamp> <...
korunos's user avatar
  • 778
0 votes
0 answers
136 views

Programmatically opening / showing Android System Settings screen from within Air Application

I created a cross-platform mobile application using adobe air ( 18 ) The application uses the geolocation services on demand. Now when the user turned off the services globally on his device, i get ...
zantafio's user avatar
  • 747
4 votes
1 answer
5k views

Debugging crash in Cordova App

I am currently developing a cordova / AngularJS based cross platform app with some third party plugins (mainly Bluetooth) and am looking for a way to debug the native Java code of the app or log crash ...
Jack Hayfield's user avatar
0 votes
0 answers
65 views

wifi range detection in android

I am writing an application in Android to notify the user when he reaches in a particular location. There will be wifi hotspots will be available in each places and when user reach in the range of ...
user867662's user avatar
  • 1,131
2 votes
1 answer
279 views

Android Offline Map for specific location (Iraq_karbala)

I have an offline map with useful osmdroid library. Everything works correctly (getting image from OpenStreetMap and routing and marker and ....) but my problem is: this app is developed for Iraq(...
hamidreza haajhoseini's user avatar
3 votes
0 answers
431 views

get color code of specified x, y coordinates of Image Inside Scrollview

basic game in which there are 2 Tracks(auto scroll) in which there is an object that will move on track. if the object move out of Track then Game over. Layout:- <FrameLayout> <...
Narendra's user avatar
  • 967
1 vote
1 answer
176 views

Overflow icon kitkat 4.4.2

I am trying to replace overflow three dots icon to a custom icon, it works perfectly fine on android 5.1 but on kitkat 4.4.2 version it's just ignore this and set default icon. I'm using android....
Zeppe's user avatar
  • 83
0 votes
2 answers
73 views

Android - Trigger OnClickListener on LinearLayout even through an ImageButton

I have an horizontal LinearLayout within which there is a small ImageButton. The LinearLayout has its clickable property set to true, and so does the ImageButton. From within code, I look for the ...
Jose Lopez's user avatar
3 votes
0 answers
691 views

Convert JPEG byte[] to NV21 byte[]

I am trying to convert JPEG byte[] data from Camera.PictureCallback to NV21 byte[] format but it didn't work. I try to do this: byte [] getNV21(int inputWidth, int inputHeight, Bitmap scaled) { ...
Olenka's user avatar
  • 31
1 vote
2 answers
403 views

Google Map current location crash

When I try to open my application in my phone it always say "Unfortunately the Application has stopped" Can someone help me with this problem. Here is my code I'm getting and error here ...
Raven Ryuuzaki's user avatar
1 vote
1 answer
3k views

BroadcastReceiver for DATE_CHANGED only works if I set a date in the future

<receiver android:name="com.example.receivers.DateChangedReceiver" android:enabled="true" android:exported="true" > <intent-filter> <action android:name="android....
Kaloyan Roussev's user avatar
-1 votes
1 answer
1k views

Where is project properties in android studio on mac?

I am trying get latitude and longitude from address, for I that I intend to use GeoPoint , it says GeoPoint cannot be resolved. I came across this. Cannot import GeoPoint but I don't find any project ...
Anil M's user avatar
  • 100
3 votes
1 answer
94 views

Crash on android app uninstall via Intent

why does my app crash when I try to call this function? public void uninstall(){ Intent intent; String packageName; packageName = HelloWorldActivity.class.getPackage().getName(); ...
000000000000000000000's user avatar
1 vote
1 answer
1k views

NoClassDefFoundError while creating AmazonSNSClient using AWS SDK for Java

In my Android app I want to work with Amazon SNS AmazonSNSClient snsClient = new AmazonSNSClient(new ClasspathPropertiesFileCredentialsProvider()); But I got this error: Caused by: java.lang....
TOP's user avatar
  • 2,614
1 vote
6 answers
808 views

How to optimize spatial data retrieval in Android

I have SQLite table contains 1.5M lines, the table contains <lat,lng, info>, what i want to do is, for every time I receive data "lat,lng" from the GPS, I should access the table and display the ...
rmaik's user avatar
  • 1,076
0 votes
1 answer
835 views

How to open the shortest path of google map navigation in android?

I'm opening a google map using my android program. I did it with the following URL, http://maps.google.com/maps? saddr=31.186371,121.489885&daddr=31.249351,121.45905&mode=driving But ...
codebot's user avatar
  • 2,588
1 vote
2 answers
3k views

SetContentView for main page

In Xamarin.Android I can write: SetContentView(Resource.Layout.Main); for set the activity content from Main.axml How I can do the same for Xamarin.Forms? How I can move data from Main.axml on main ...
Kirill's user avatar
  • 1,432
0 votes
1 answer
170 views

ParsefacebookUtils returning wrong values in Parse

for my android application i wanted to integrate a facebook login, so i did exactly what is here: https://github.com/ParsePlatform/IntegratingFacebookTutorial Everything seems to work fine however ...
Anas's user avatar
  • 29
16 votes
1 answer
15k views

Dagger 2 on Android: inject same dependency in Activity and retained Fragment

I have objects of classes F1 and F2 that I want to inject in a retained Fragment. I also have an object of class A that depends on Activity, and I want it to be injected in that Activity and in a ...
Giulio Piancastelli's user avatar
0 votes
1 answer
225 views

How soapobject pass property?

I'm confused about this .Here is my app code. public void getUserInform(final String username,final String pwd) { new AsyncTask<Void, Void, String>() { @Override ...
Smith han's user avatar
3 votes
5 answers
10k views

Place imageview next to textview

I'm trying to place an imageview next to a textview. However they keep ending up on different "lines". <ImageView android:layout_width="10dp" android:layout_height="wrap_content" ...
user672009's user avatar
  • 4,516
6 votes
1 answer
3k views

Android AccessibilityManager getEnabledAccessibilityServiceList returns empty list under certain circumstances

My app extends Android's AccessibilityService to monitor the currently active app. In order to detect changes in activities I have to register my service and get the user to consent to allow the ...
Daryl Hurst's user avatar
0 votes
1 answer
567 views

application failed to create folder when other application occupy it

This is my question. First I have create my personal folder on create File parentFolder = new File(MainApplication.getInstance().getExternalCacheDir().getAbsolutePath() + File.separator+"...
user3526542's user avatar
0 votes
1 answer
86 views

TreeSet Customization in Android Java

I am TreeSet<> to get unique values from an ArrayList, and founded all the unique values, but getting like this: [Cars, Bikes] I tried in this way: Set<String> uniqueCategories; // ...
Oreo's user avatar
  • 2,586
0 votes
1 answer
340 views

How to set picture's alpha using openGL 2.0 in android

I have a background picture,shown by using openGL 2.0. Now I want to set the picture's alpha value.but I failed. @Override public void onSurfaceChanged(GL10 gl, int width, int height) { GLES20....
shaotine's user avatar
  • 249
1 vote
0 answers
58 views

Android voice-recognition seems to be case sensitive

I was implementing voice-recognition in my App. Everything is working in English language but e.g. in German there is the problem of case sensitivity. For the command <string name="...
mcd's user avatar
  • 116
0 votes
2 answers
367 views

setLayoutParams resets ImageView position

I have an ImageView that can be moved across the screen. The problem is that when I want to change width and height of the ImageView, ImageView resets to its start position and then resizes. I would ...
user3051755's user avatar
  • 1,527
5 votes
2 answers
3k views

Why match_parent doesn't work when recycler view item root is LinearLayout?

I simplified the code to show the issue Mainactivity.java public class MainActivity extends AppCompatActivity { private RecyclerView mRecyclerView; @Override protected void onCreate(...
MeeYom's user avatar
  • 51
1 vote
1 answer
187 views

Android - loading a big Activity

I am running an activity from another one but I have to inflate like 200 views so it takes 3-4 seconds to start. How do you recommend me to do? Should I make a loading screen? If yes, how hould I do ...
Roman Panaget's user avatar
0 votes
0 answers
109 views

how to make activity running in the background

i have an activity that implements bluetooth functionality and connect to another BT device and receives data. the main purpose of this activity is just to keep receiving data via BT, and to give me ...
rmaik's user avatar
  • 1,076
5 votes
1 answer
458 views

Android Studio -> How to do a CLEAN without BUILD?

In Eclipse, if I do a clean in my Android project, it has a size of 30Mbytes, but in Android Studio, if I do a clean it has a size of 200Mbytes. I also tried to do a clean from the console but it ...
NullPointerException's user avatar
1 vote
0 answers
407 views

Running embedded web server in Android in offline/airplane mode

i am running NanoHTTPD in my android application. i am serving some contents using this server. I am also trying to view the contents in a web view (again in my application ). i use the below code ...
saurav's user avatar
  • 5,676
4 votes
1 answer
22k views

How to add dependencies to project's top-level build.gradle file?

I'm trying a sample code which implements Google Cloud Messaging (GCM) and that is provided by google itself, GCM Demo. I don't know how exactly I can add the dependencies List item Add the ...
Palak's user avatar
  • 1,296
0 votes
1 answer
399 views

using jess rules in android studio .... jess (read) operation how to read from edit text

android app that using jess rules .... how to give the rule the input using edit text (defrule genderrule ?k <- (Human (gender nil)) => (printout t "please enter the gender : female|male ...
int_joy's user avatar
  • 89