id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
28,776,679
Firebase get Index of child value programmatically in Android
<p>Is there any way to get the index of a child of a <code>Firebase</code> in Android? Unfortunately I do not have 10 reputation so I'll post my picture here: <a href="http://gyazo.com/70d095cfac4fa92ea344e137fa44ef6d" rel="nofollow">http://gyazo.com/70d095cfac4fa92ea344e137fa44ef6d</a></p> <p>What I want is in somewa...
Is there any way to get the index of a child of a Firebase in Android? Unfortunately I do not have 10 reputation so I'll post my picture here: http://gyazo.com/70d095cfac4fa92ea344e137fa44ef6d What I want is in someway get the amount of values in a certain child to loop with an index: [CODE]
android|firebase
2
2015-02-28T00:36:16.467Z
2,015
2
0
5
4,332
1
292
61
2
1
true
false
true
false
false
false
low
28,776,693
Can I put Google Analytics code in the html files of my Android webview app?
<p>I have an Android app that uses a WebView to load html pages. Instead of putting the code in the Java part of the app, can I just put it on the html pages of the app. Will it still work like that?</p>
I have an Android app that uses a WebView to load html pages. Instead of putting the code in the Java part of the app, can I just put it on the html pages of the app. Will it still work like that?
android|google-analytics
0
2015-02-28T00:38:56.827Z
2,015
2
0
5
143
1
196
76
2
0
false
false
false
false
false
false
zero
28,776,756
android bitmap/drawable size after imageview scaletype set to matrix
<p>How can I get the size of the bitmap/drawable from the ImageView after its scale type has been set to matrix?</p> <p>I have tried the following, but everything returns 0</p> <pre><code>Drawable drawable = imageview.getDrawable(); Rect bounds = drawable.getBounds(); </code></pre>
How can I get the size of the bitmap/drawable from the ImageView after its scale type has been set to matrix? I have tried the following, but everything returns 0 [CODE]
android|matrix|bitmap|imageview|drawable
0
2015-02-28T00:48:41.630Z
2,015
2
0
5
440
0
169
68
5
1
true
true
false
false
false
false
zero
28,776,802
Is there any way to download an (unpulished) APK from the Google Play dashboard?
<p>A teammate put the APK in the wrong account in Google Play, now, I need to fix without the original binary. So, I want to know if I can download the APK out of the wrong account, then signon with the correct account and upload?</p> <p>FWIW - the APK is not yet published, it is still a draft as we need to put the r...
A teammate put the APK in the wrong account in Google Play, now, I need to fix without the original binary. So, I want to know if I can download the APK out of the wrong account, then signon with the correct account and upload? FWIW - the APK is not yet published, it is still a draft as we need to put the remaining req...
android|google-play|apk
0
2015-02-28T00:53:52.913Z
2,015
2
0
5
145
3
357
80
3
0
false
false
false
false
false
false
zero
28,776,907
Application's icon not displayed in ActionBar
<p>I'm new in the Android programming world, and I don't understand why the system is not displaying the application icon on the left side of the 'ActionBar' of my first Android application (HelloWorld).</p> <p>In the 'ActionBar' developer guide it's stated that: "By default, the system uses your application icon in t...
I'm new in the Android programming world, and I don't understand why the system is not displaying the application icon on the left side of the 'ActionBar' of my first Android application (HelloWorld). In the 'ActionBar' developer guide it's stated that: "By default, the system uses your application icon in the action b...
android|android-actionbar|icons
0
2015-02-28T01:09:29.320Z
2,015
2
1
5
2,515
2
1,143
45
3
4
true
false
false
false
false
false
zero
28,776,908
how to have string and image as a content of a button
<p>I have a button in which I set its background a to 9 patch drawable and I set the text to some value. All works well. Now I want to add an image with the text (so text and image inside the button). How can I do that?</p> <p>Thanks</p>
I have a button in which I set its background a to 9 patch drawable and I set the text to some value. All works well. Now I want to add an image with the text (so text and image inside the button). How can I do that? Thanks
android
-1
2015-02-28T01:09:32.583Z
2,015
2
1
5
25
1
223
53
1
0
false
false
false
false
false
true
negative
28,776,947
cannot bind data from sqlliteData-base to simplecursoradaptor
<p>I don´t know how to connect the data my array String [] station = {"København", "Grenaa", "Hanstholm"}; in my MyListActivity to the simpleCursorAdaptor I have made a SQLitedatabase, a Helperclass and anActivityclass - but I get the error " java.lang.IllegalArgumentException: column 'København' does not exist". I...
I don´t know how to connect the data my array String [] station = {"København", "Grenaa", "Hanstholm"}; in my MyListActivity to the simpleCursorAdaptor I have made a SQLitedatabase, a Helperclass and anActivityclass - but I get the error " java.lang.IllegalArgumentException: column 'København' does not exist". I have a...
java|android
0
2015-02-28T01:16:35.043Z
2,015
2
1
5
48
1
434
61
2
2
true
false
false
false
false
false
zero
28,776,969
A basic way to have cache/data handled by manager class that my Android Activities can all access?
<p>So what I'm wanting to do is have a few different single manager classes that handle the caching of data that I've pulled down from the internet. I want the data in these classes/objects to be accessible from different activities in my application, whereby any of the activities can manipulate data or call functions ...
So what I'm wanting to do is have a few different single manager classes that handle the caching of data that I've pulled down from the internet. I want the data in these classes/objects to be accessible from different activities in my application, whereby any of the activities can manipulate data or call functions as ...
java|android|class|object|android-intent
1
2015-02-28T01:20:10.393Z
2,015
2
1
5
751
3
1,936
98
5
0
false
false
false
false
false
false
low
28,776,970
Android build error: ro.build.fingerprint cannot exceed 91 bytes
<p>I'm building an android rom from the android source code but after about 5 minutes it gives this error.</p> <pre><code>error: ro.build.fingerprint cannot exceed 91 bytes: Android/mini_emulator_x86/mini-emulator-x86:5.0.555/AOSP/username02280306:userdebug/test-keys (97) make: *** [out/target/product/mini-emulator-x8...
I'm building an android rom from the android source code but after about 5 minutes it gives this error. [CODE] How do I increase the ro.build.fingerprint size limit? Plus I'm building on a Mac.
java|android|build|terminal|android-source
6
2015-02-28T01:20:11.827Z
2,015
2
1
5
7,280
2
193
64
5
1
true
false
true
false
false
false
medium
28,777,017
Notify list item of the navigation drawer on any new update
<p>I want a badge on one list item of the navigation drawer and update it whenever i make request. I have done the xml part as well as make the drawer. But problem is the i want to change the value from a child fragment which is in side a parent fragment and that parent fragment is in a main container activity along wi...
I want a badge on one list item of the navigation drawer and update it whenever i make request. I have done the xml part as well as make the drawer. But problem is the i want to change the value from a child fragment which is in side a parent fragment and that parent fragment is in a main container activity along with ...
android|android-fragments|navigation-drawer
1
2015-02-28T01:27:08.167Z
2,015
2
1
5
1,092
0
637
59
3
5
true
true
false
false
false
false
low
28,777,026
Unable to add Android Virtual Device in Qt Creator?
<p>I am trying to develop an Android app with Qt and Qt Creator for the first time on Windows 7. Everything worked quite well, but I am running into one issue I cannot work around for Android.</p> <p>I have followed all the getting started steps as outlined here (<a href="http://doc-snapshot.qt-project.org/qt5-stable/...
I am trying to develop an Android app with Qt and Qt Creator for the first time on Windows 7. Everything worked quite well, but I am running into one issue I cannot work around for Android. I have followed all the getting started steps as outlined here ( http://doc-snapshot.qt-project.org/qt5-stable/androidgs.html ). T...
android|qt|avd
1
2015-02-28T01:27:30.420Z
2,015
2
1
5
1,499
0
1,040
51
3
1
true
true
false
false
false
false
low
28,777,165
Point and Rectangle collision detection?
<p>So I have created a method that detects collision between a BallView ball and a Rectangle rect. I have broken it up into 4 parts; it detects collision between the very top of the circle, very left of the circle, very bottom of the circle, and the very right of the circle, and the rectangle. Two of those work which a...
So I have created a method that detects collision between a BallView ball and a Rectangle rect. I have broken it up into 4 parts; it detects collision between the very top of the circle, very left of the circle, very bottom of the circle, and the very right of the circle, and the rectangle. Two of those work which are ...
java|android|collision-detection
1
2015-02-28T01:46:27.343Z
2,015
2
1
5
2,491
1
955
40
3
1
true
false
false
false
false
false
low
28,777,176
ActionBarDrawerToggle clickable through open drawer layout
<p>I'm trying to implement a simple navigation drawer. For this I use the support libraries for DrawerLayout, ActionBarActivity and ActionBarDrawerToggle.<a href="http://imgur.com/a/lr0Rj" rel="nofollow">This is how it currently looks</a>. The problem is that the navigation drawer toggle is clickable when the drawer la...
I'm trying to implement a simple navigation drawer. For this I use the support libraries for DrawerLayout, ActionBarActivity and ActionBarDrawerToggle. This is how it currently looks . The problem is that the navigation drawer toggle is clickable when the drawer layout is opened. You can see that in this short youtube ...
android|drawerlayout|android-actionbaractivity|actionbardrawertoggle
0
2015-02-28T01:47:31.237Z
2,015
2
1
5
804
1
524
58
4
2
true
false
false
false
false
false
zero
28,777,212
Prevent loading Thumb-2 code on old ARM device
<p>I have an Android app that uses some native code, which the NDK compiles to use the Thumb-2 instruction set. On some really old devices, it will crash with SIGILL when it tries to load because the device's CPU does not support Thumb-2. I've tried to hack around this by checking if the architecture is "armeabi", but...
I have an Android app that uses some native code, which the NDK compiles to use the Thumb-2 instruction set. On some really old devices, it will crash with SIGILL when it tries to load because the device's CPU does not support Thumb-2. I've tried to hack around this by checking if the architecture is "armeabi", but tha...
android|arm
0
2015-02-28T01:53:24.397Z
2,015
2
1
5
70
0
443
46
2
0
false
true
false
false
false
false
zero
28,777,217
java variable in XML android
<p>I would like to know how to be able to use variables in XML from my java file. The variables are Doubles, with most being null, so I believe I would have to convert them to Strings and set those equal to null as "unknown", but how would I get those Strings to be of use in my strings.xml file? This is my first questi...
I would like to know how to be able to use variables in XML from my java file. The variables are Doubles, with most being null, so I believe I would have to convert them to Strings and set those equal to null as "unknown", but how would I get those Strings to be of use in my strings.xml file? This is my first question,...
java|android|xml
0
2015-02-28T01:54:09.440Z
2,015
2
1
5
892
1
668
28
3
0
false
false
false
false
false
false
zero
28,777,246
How do I pass the values of an Array through Android Intents?
<p>I did a good amount of searching, but I couldn't find consistent answers regarding transferring Array values, so I gave it a shot, but I failed</p> <p>This is the Array I want to transfer</p> <pre><code> public String[] usersAnswers1 = { "Test Array", //Array 0 }; </code></pre> <p>This is the Activity that i'm tr...
I did a good amount of searching, but I couldn't find consistent answers regarding transferring Array values, so I gave it a shot, but I failed This is the Array I want to transfer [CODE] This is the Activity that i'm trying to pass the intent from [CODE] I then try to catch it in the 2nd Activity, while trying to move...
android|arrays|android-intent
-1
2015-02-28T01:58:56.067Z
2,015
2
1
5
195
4
619
61
3
5
true
false
false
false
false
true
negative
28,777,314
UnsatisfiedLinkError in Android Studio using Gradle
<p>I recently migrated from Eclipse to Android Studio and am having some trouble accessing the native functions. The first native function that is called is nativeClassInit(). Most of what I've seen regarding this question involved a missing "static" identifier, but I've included it in MainActivity.java. I've been tryi...
I recently migrated from Eclipse to Android Studio and am having some trouble accessing the native functions. The first native function that is called is nativeClassInit(). Most of what I've seen regarding this question involved a missing "static" identifier, but I've included it in MainActivity.java. I've been trying ...
android-studio|gradle|java-native-interface|native
0
2015-02-28T02:11:16.250Z
2,015
2
2
5
2,091
1
735
51
4
6
true
false
false
false
false
false
zero
28,777,354
Install a GooglePlay located App from NFC
<p>Working with Lollipop, I have a <em>device-owner</em> app that is installed with NFC at provision time.<br /> What I need now is to handle automatic updates for my App, from Google Play to rely on the standard Android App update system...</p> <p>So far I can imagine 2 ways to get this done, but don't know how to ha...
Working with Lollipop, I have a device-owner app that is installed with NFC at provision time. What I need now is to handle automatic updates for my App, from Google Play to rely on the standard Android App update system... So far I can imagine 2 ways to get this done, but don't know how to handle any of them : in my N...
android|google-play|nfc|android-5.0-lollipop|device-owner
5
2015-02-28T02:16:39.313Z
2,015
2
2
5
1,667
2
2,865
41
5
1
true
false
false
false
false
false
low
28,777,414
How to get Android Studio 1.1.0 to not use default folders and pay attention to env. variable?
<p>Specifically, on Windows 7 Pro SP1, it uses <code>C:/Users/Alan/{.android,.AndroidStudio,.gradle}</code>. I want it to use <code>S:/Android/{SDK_Home,SDK_Root}/{.android,.AndroidStudio,.gradle}</code>.</p> <p>I have tried setting environment variables: <code>ANDROID_SDK_HOME = S:\Android\SDK_Home and ANDROID_SDK_...
Specifically, on Windows 7 Pro SP1, it uses C:/Users/Alan/{.android,.AndroidStudio,.gradle} . I want it to use S:/Android/{SDK_Home,SDK_Root}/{.android,.AndroidStudio,.gradle} . I have tried setting environment variables: ANDROID_SDK_HOME = S:\Android\SDK_Home and ANDROID_SDK_ROOT = S:\Android\SDK_Root . But it makes n...
android|android-studio
1
2015-02-28T02:25:25.007Z
2,015
2
2
5
634
1
1,906
94
2
0
false
false
false
false
false
false
low
28,777,444
Thread progresse bar fragment
<p>I am trying to develop a small application to analyze directory numbers. My application is composed of a menu to redirecting fragments . I created a thread that shows a loading bar . The problem occurs when I use Thread.Join . Indeed, the loading bar no longer appears . If I don't Thread.Join uses the main thread to...
I am trying to develop a small application to analyze directory numbers. My application is composed of a menu to redirecting fragments . I created a thread that shows a loading bar . The problem occurs when I use Thread.Join . Indeed, the loading bar no longer appears . If I don't Thread.Join uses the main thread to co...
java|android|multithreading|android-fragments|progress-bar
0
2015-02-28T02:31:20.340Z
2,015
2
2
5
96
3
440
29
5
1
true
false
false
false
false
false
zero
28,777,449
Android: Is onPause() guaranteed to be called after finish()?
<p>Couldn't find a solid answer to this anywhere. I have a method where finish() is being called, and onPause() is called afterward.</p> <p>Is onPause() guaranteed to be called after a call to finish() ?</p>
Couldn't find a solid answer to this anywhere. I have a method where finish() is being called, and onPause() is called afterward. Is onPause() guaranteed to be called after a call to finish() ?
java|android
9
2015-02-28T02:31:40.993Z
2,015
2
2
5
8,197
4
193
61
2
0
false
false
true
false
false
false
medium
28,777,459
Android One as beacon transmitter
<p>I tried using <a href="https://github.com/AltBeacon/altbeacon-transmitter-android" rel="nofollow">altbeacon-transmitter-android</a> to make my android one(Mito Impact) as beacon transmitter. When I ran it, I got error message "E/BeaconTransmitter﹕ Advertisement start failed, code: 4".</p> <p>I can use android one a...
I tried using altbeacon-transmitter-android to make my android one(Mito Impact) as beacon transmitter. When I ran it, I got error message "E/BeaconTransmitter﹕ Advertisement start failed, code: 4". I can use android one as beacon receiver, so I'm sure that my android one support bluetooth low energy (BLE). Could I use ...
android|bluetooth-lowenergy|altbeacon
1
2015-02-28T02:32:54.340Z
2,015
2
2
5
594
1
354
33
3
0
false
false
false
false
false
false
low
28,777,530
How to interact with scene from layer in cocos2d-js?
<p>Hi guys im developing application and i wanna make pop up window when game is finished.<img src="https://i.stack.imgur.com/Ryu2Y.png" alt="My app"></p> <p>I wanna this result where background is not active and only button "restart" is clickable. I made this with 2 layers in one scene. In background layer is counter...
Hi guys im developing application and i wanna make pop up window when game is finished. I wanna this result where background is not active and only button "restart" is clickable. I made this with 2 layers in one scene. In background layer is counter which is equal to 0 when game is finished I need to add (or set visibl...
android|ios|cocos2d-js
0
2015-02-28T02:45:09.017Z
2,015
2
2
5
236
1
516
52
3
0
false
false
false
false
false
false
zero
28,777,705
How to make Android Studio 1.1 call generateDebugTestSources instead of assembleDebugTest during "Make" instruction?
<p>I have a project with 1,000+ tests running fine with Robolectric. After switching to Android Studio 1.1 when I go to "Run" -> "All Tests" during the "Make" instruction Android Studio calls Gradle's assembleDebugTest instead of generateDebugTestSources .. In my case this makes the build system to start dexing and pac...
I have a project with 1,000+ tests running fine with Robolectric. After switching to Android Studio 1.1 when I go to "Run" -> "All Tests" during the "Make" instruction Android Studio calls Gradle's assembleDebugTest instead of generateDebugTestSources .. In my case this makes the build system to start dexing and packag...
android|gradle|android-gradle-plugin|build.gradle
3
2015-02-28T03:16:10.713Z
2,015
2
3
5
885
1
544
116
4
1
true
false
false
false
false
false
low
28,777,707
Adding java library to android project gives TOP LEVEL EXCEPTION
<p>I need to develop an app which should work with DICOM protocol, as a result I need to use pixelmed library to extract data of files since as much as I know imebra is weak in such a thing. But when I add pixelmed.jar to my lib folder and add the line <code>compile files('libs/pixelmed.jar')</code> to my build.gradle ...
I need to develop an app which should work with DICOM protocol, as a result I need to use pixelmed library to extract data of files since as much as I know imebra is weak in such a thing. But when I add pixelmed.jar to my lib folder and add the line compile files('libs/pixelmed.jar') to my build.gradle it gives me belo...
java|android|android-studio
0
2015-02-28T03:16:44.013Z
2,015
2
3
5
382
1
411
64
3
1
true
false
false
false
false
false
zero
28,777,715
onTouch and onTouchEvent methods in Android
<p>I wrote like below with 'onTouch' method.</p> <p>But 'getPointerCount()' and 'getAction()' spits out the same values all the time.</p> <p>This code can't recognize multi-touch.</p> <p>And 'onTouch' method isn't called when MotionEvent.ACTION_UP occurs.</p> <pre><code>protected void onCreate(Bundle savedInstanceS...
I wrote like below with 'onTouch' method. But 'getPointerCount()' and 'getAction()' spits out the same values all the time. This code can't recognize multi-touch. And 'onTouch' method isn't called when MotionEvent.ACTION_UP occurs. [CODE] So, I tried the same thing with onTouchEvent method and this works. [CODE] What's...
android|touch-event|ontouch
1
2015-02-28T03:18:39.887Z
2,015
2
3
5
3,085
1
355
43
3
2
true
false
true
false
false
false
low
28,777,720
How to reduce size of MainActivity/outsource UI code
<p>most of my apps are apps with just one screen (due to the functionality) sometimes being extended by "floating" popups that are basically RelativeLayouts (containing other UI elements) that are being added to the Main layout, keeping the UI Elements of the Main layout active and "touchable" in the background.</p> <...
most of my apps are apps with just one screen (due to the functionality) sometimes being extended by "floating" popups that are basically RelativeLayouts (containing other UI elements) that are being added to the Main layout, keeping the UI Elements of the Main layout active and "touchable" in the background. For a bet...
java|android
0
2015-02-28T03:19:43.047Z
2,015
2
3
5
354
1
1,793
52
2
0
false
false
false
false
false
false
zero
28,777,740
How to encode json in java for Android
<p>I am trying to encode some data to JSON format and sent the same to PHP Server script to store to mysql. I am able to encode the data in JSON format but when transimmting the same to PHP I get a "\" backlash on doublecoloum. Below is how my output look like. </p> <pre><code>[{\"enquiry_no\":\"1\"},{\"enquiry_no\":\...
I am trying to encode some data to JSON format and sent the same to PHP Server script to store to mysql. I am able to encode the data in JSON format but when transimmting the same to PHP I get a "\" backlash on doublecoloum. Below is how my output look like. [CODE] Below is the andorid code for sending the data to PHP ...
java|php|android|json
0
2015-02-28T03:23:25.940Z
2,015
2
3
5
65
1
362
38
4
3
true
false
false
false
false
false
zero
28,777,800
Cant able to run Android app and error: Error retrieving parent for item error
<p>I recently installed eclipse and set up the libraries for android development, i just created a new android application from eclipse with configuration as minimum version as 2.2, target version as 4.1.2, compile version as 4.1.2. When i cleaned the project after creating it i was getting a lot of errors in the cons...
I recently installed eclipse and set up the libraries for android development, i just created a new android application from eclipse with configuration as minimum version as 2.2, target version as 4.1.2, compile version as 4.1.2. When i cleaned the project after creating it i was getting a lot of errors in the console ...
android|eclipse|android-appcompat
1
2015-02-28T03:32:37.017Z
2,015
2
3
5
143
1
735
78
3
1
true
false
false
false
false
false
low
28,777,873
How many AVDs do I need?
<p>How many AVDs do I need to properly test all layouts? I tried using the stock Google nexus devices but many of the different layouts were tested on the same device. What devices should I use so each layout has an appropriate device? Also, what is the best way to allow flexibility for sp adjustments?</p>
How many AVDs do I need to properly test all layouts? I tried using the stock Google nexus devices but many of the different layouts were tested on the same device. What devices should I use so each layout has an appropriate device? Also, what is the best way to allow flexibility for sp adjustments?
android|avd
1
2015-02-28T03:43:59.477Z
2,015
2
3
5
82
3
300
24
2
0
false
false
false
false
false
false
low
28,777,896
How to update multiple rows (not ever row) with same value?
<p>My table <code>tbl1</code> looks like this (<a href="http://sqlfiddle.com/#!7/cca17/3" rel="nofollow">SQLFiddle</a>):</p> <pre><code>id col1 col2 col3 1 0 1 0 2 1 0 0 3 0 0 1 4 1 1 1 5 0 0 0 </code></pre> <p>My requirement is that I get s...
My table tbl1 looks like this ( SQLFiddle ): [CODE] My requirement is that I get some positive number from the user for each column, and I need to update the rows of a particular column if they contain zero, and finally I should count the number of rows updated and the difference between the user input and the updated ...
android|sqlite
-1
2015-02-28T03:48:47.197Z
2,015
2
3
5
962
2
695
59
2
3
true
false
false
false
false
true
negative
28,777,897
ImageView add to the map and drag Api V2
<p>I want to add an image on the GoogleMap and I can drag it there. Make no mistake, it is not a label I want. It is an ImageView.</p>
I want to add an image on the GoogleMap and I can drag it there. Make no mistake, it is not a label I want. It is an ImageView.
android|google-maps|maps|google-maps-android-api-2
0
2015-02-28T03:49:04.673Z
2,015
2
3
5
419
1
127
40
4
0
false
false
false
false
false
false
zero
28,777,901
Space between LinearLayout children in HorizontalScrollView
<p>I'm having trouble separating children in a LinearLayout which is a child of a HorizontalScrollView. I have tried with numerous approaches on the LinearLayout element (padding_right, layout_margin, divider) but none of them working. Picture below illustrate what I would like to achieve(The top is the expected result...
I'm having trouble separating children in a LinearLayout which is a child of a HorizontalScrollView. I have tried with numerous approaches on the LinearLayout element (padding_right, layout_margin, divider) but none of them working. Picture below illustrate what I would like to achieve(The top is the expected result wh...
android|layout|horizontalscrollview
1
2015-02-28T03:50:47.627Z
2,015
2
3
5
4,914
3
582
59
3
4
true
false
true
false
false
false
low
28,777,923
Null on CompositionSubscription in Fragment?
<p>Why Do i keep getting an NPE on this compositeSubscription, whereever I put it in the fragment.</p> <pre><code> public CompositeSubscription subscriptions; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); subscriptions = new CompositeSubscription(); } ...
Why Do i keep getting an NPE on this compositeSubscription, whereever I put it in the fragment. [CODE] I put the subscription in onResume and the same error happens. [CODE]
android|android-fragments|reactive-programming|rx-java|rx-android
0
2015-02-28T03:55:25.267Z
2,015
2
3
5
134
0
172
44
5
2
true
true
false
false
false
false
zero
28,777,975
how to send extra data in sinch payload
<p>I'm using sinch SDK and I use gcm to send push notification, what I do is registering the user using the function <code>registerPushData (reg_id.getbytes ())</code>,the <code>reg_id</code> is the GCM registeration id but I want to send extra things like the user name and id.</p> <p>I want to know how to do that and...
I'm using sinch SDK and I use gcm to send push notification, what I do is registering the user using the function registerPushData (reg_id.getbytes ()) ,the reg_id is the GCM registeration id but I want to send extra things like the user name and id. I want to know how to do that and I also want to know the proper way ...
android|push-notification|bytearray|sinch
2
2015-02-28T04:05:21.340Z
2,015
2
4
5
634
1
417
39
4
0
false
false
false
false
false
false
low
28,777,981
Can meteor be used to develop mobile app completely
<p>I am a novice in Meteor and have never worked with Android or IOS programming. </p> <p>Currently I am using meteor to develop a mobile-device application. </p> <p>So I am wondering, is it possible through meteor to develop a complete mobile application,I did some little research and saw that there are couple of pa...
I am a novice in Meteor and have never worked with Android or IOS programming. Currently I am using meteor to develop a mobile-device application. So I am wondering, is it possible through meteor to develop a complete mobile application,I did some little research and saw that there are couple of packages to implement s...
javascript|android|cordova|jquery-mobile|meteor
1
2015-02-28T04:06:30.733Z
2,015
2
4
5
528
1
581
51
5
0
false
false
false
false
false
false
low
28,778,040
Progress bar (circle) not rotating in Android
<p>I am using Progress bar (Circle) while my data is loading from database in splash screen. I used the Progress bar in xml using its tags... but in activity it is not rotating... Suggest help..what's wrong with it?</p> <pre><code>xml: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayou...
I am using Progress bar (Circle) while my data is loading from database in splash screen. I used the Progress bar in xml using its tags... but in activity it is not rotating... Suggest help..what's wrong with it? [CODE]
android|xml|splash-screen|android-progressbar
6
2015-02-28T04:19:02.793Z
2,015
2
4
5
12,574
3
219
45
4
1
true
false
true
true
false
false
medium
28,778,072
Calculate different seconds between two Timepickers
<p>I tried to follow the suggestion here : </p> <p><a href="https://stackoverflow.com/questions/13124332/android-calculating-time-difference-for-setting-alarm">android calculating time difference for setting alarm</a></p> <p>So this is what i did :</p> <pre><code> Calendar start = Calendar.getInstance(); star...
I tried to follow the suggestion here : android calculating time difference for setting alarm So this is what i did : [CODE] Where toTime and timeSchedule is TimePicker . However, the result is incorrect. I suspect its because the AM and PM . Please kindly help me, Thanks very much for your help. UPDATE Thanks to @Ragh...
android|datetime|time
0
2015-02-28T04:24:41.103Z
2,015
2
4
5
109
1
535
51
3
2
true
false
false
false
false
false
zero
28,778,210
How can I make a multi column list view which is horizontally scrollable?
<p>I am trying to implement something like this where the list view has sectioned headers and can be scrolled horizontally across multiple columns. What is the best way to implement this. Is ListView even the right way to implement this?</p> <p><img src="https://i.stack.imgur.com/L6olA.png" alt="enter image descriptio...
I am trying to implement something like this where the list view has sectioned headers and can be scrolled horizontally across multiple columns. What is the best way to implement this. Is ListView even the right way to implement this?
android|android-layout|android-listview|android-view
0
2015-02-28T04:51:27.537Z
2,015
2
4
5
300
0
234
73
4
0
false
true
false
false
false
false
zero
28,778,233
Android broadcast receiver get registered multiple times when activity minimise and maximise
<p>Hi I am working with android.I am looking to update ui from service data. So that I get data from service via broadcast receiver succesfully and I updated listview when value changes.My problem is that during activity running, if i minimise the activity and then maximise, the another receiver is get registered and w...
Hi I am working with android.I am looking to update ui from service data. So that I get data from service via broadcast receiver succesfully and I updated listview when value changes.My problem is that during activity running, if i minimise the activity and then maximise, the another receiver is get registered and whic...
android|service|broadcastreceiver
2
2015-02-28T04:54:45.943Z
2,015
2
4
5
1,542
3
428
92
3
1
true
false
false
false
false
false
low
28,778,269
setAnimation() method behaves like startAnimation() in Android
<p>In the code below, the animation starts automatically even though I don't want it.</p> <pre><code>anim = AnimationUtils.loadAnimation(this, R.anim.my_anim); imageview.setAnimation(anim); </code></pre> <p>I tried two more things and found out when the problem occurs.</p> <p>The code below starts the animation when...
In the code below, the animation starts automatically even though I don't want it. [CODE] I tried two more things and found out when the problem occurs. The code below starts the animation whenever it is executed. [CODE] However the code below doesn't start the animation anymore after the first execution. [CODE] When a...
android|xml|animation
1
2015-02-28T04:58:49.883Z
2,015
2
4
5
1,662
0
552
62
3
3
true
true
false
false
false
false
low
28,778,326
Android;use "ContentProvider" to download from web server
<p>Is it possible to use <code>ContentProvider</code> for retrieving(query) data from web server?</p> <p>Some data that are used in App are stored locally and some others stored in web server,I want to encapsulate retrieving data and also storing data by <code>ContentProvider</code>.</p> <p>Obviously retrieving local...
Is it possible to use ContentProvider for retrieving(query) data from web server? Some data that are used in App are stored locally and some others stored in web server,I want to encapsulate retrieving data and also storing data by ContentProvider . Obviously retrieving local data is simple and may be done by ContentPr...
android|android-asynctask|android-contentprovider
1
2015-02-28T05:08:13.693Z
2,015
2
5
5
490
2
623
57
3
0
false
false
false
false
false
false
low
28,778,380
Using Volley, how i can use Session Cookie with StringRequest, if response having more than one Cookie?
<p>How i can send session-cookie with StringRequest to identify the request by the web server. If there is two session cookies coming from server ? </p> <p>here is my code,</p> <p>[1] making new request (StringRequest) , code snip let,</p> <pre><code>@Override public Map&lt;String, String&gt; getHeaders(...
How i can send session-cookie with StringRequest to identify the request by the web server. If there is two session cookies coming from server ? here is my code, [1] making new request (StringRequest) , code snip let, [CODE] [2] getting session cookies [CODE] But above code is not working and Response coming is "Author...
android|android-volley
2
2015-02-28T05:15:52.620Z
2,015
2
5
5
3,744
1
445
103
2
2
true
false
true
false
false
false
low
28,778,389
Display menu items on ActionBar
<p>I want to display my menu items on ActionBar with android I found some samples but It was not what I wanted</p> <p>Menu should be similar picture below(Overflow Icon or text) <img src="https://i.stack.imgur.com/DhOlm.jpg" alt="enter image description here"></p> <p>My menu.xml is : </p> <pre><code>&lt;menu xmlns:a...
I want to display my menu items on ActionBar with android I found some samples but It was not what I wanted Menu should be similar picture below(Overflow Icon or text) My menu.xml is : [CODE] and my android code : [CODE]
android
-1
2015-02-28T05:16:45.527Z
2,015
2
5
5
80
4
220
31
1
2
true
false
false
false
false
true
negative
28,778,394
OpenCV4Android FaceRecognizer.predict(Mat src, int[] labels, double[] confidence) vs. OpenCV FaceRecognizer.predict(Mat src)
<p>Can anyone help me with my problem? I can't seem to get any answer from the internet. I've been searching for like the whole day. So here's my problem. I am creating a face recognition android application using opencv4android 2.4.10 and Android Studio as my IDE.</p> <p>I need to use FaceRecognition.predict(Mat src,...
Can anyone help me with my problem? I can't seem to get any answer from the internet. I've been searching for like the whole day. So here's my problem. I am creating a face recognition android application using opencv4android 2.4.10 and Android Studio as my IDE. I need to use FaceRecognition.predict(Mat src, int[] labe...
android|opencv|image-processing|opencv4android
1
2015-02-28T05:17:51.133Z
2,015
2
5
5
1,114
1
603
124
4
1
true
false
false
false
false
false
low
28,778,407
PUT Request fails on android Lollipop
<p>Following the REST API, I encounter an error while using the PUT method through retrofit call. The error occurs only in Lollipop version of android whereas it works fine on the other O.S. as tested thoroughly . I am sending data in the body of the request and while debugging it , it shows that the body has been suc...
Following the REST API, I encounter an error while using the PUT method through retrofit call. The error occurs only in Lollipop version of android whereas it works fine on the other O.S. as tested thoroughly . I am sending data in the body of the request and while debugging it , it shows that the body has been success...
android|android-5.0-lollipop|put|retrofit
3
2015-02-28T05:20:03.137Z
2,015
2
5
5
219
0
469
37
4
0
false
true
false
false
false
false
low
28,778,424
Play/Pause forward buttos not Working android media controller
<p>Following is the code that i am using in my app. I don't know whats wrong in it anybody help me please</p> <pre><code>VideoView videoView = (VideoView) dialoglayout.findViewById(R.id.videoView); MediaController mediaController = new MediaController(getActivity(),false); Uri video = Uri.parse(link); ...
Following is the code that i am using in my app. I don't know whats wrong in it anybody help me please [CODE]
android
0
2015-02-28T05:22:50.320Z
2,015
2
5
5
782
1
109
62
1
1
true
false
false
false
false
false
zero
28,778,438
Retaining EditText changes when using Loaders after orientation change
<p>I have a fragment that's used for editing a project. I load all the data with a loader and then let the user edit it. The problem is that when a user enters some data in <code>EditText</code> and then rotates the device the loader reloads the data and overrides all changes made by the user. Of course when I comment ...
I have a fragment that's used for editing a project. I load all the data with a loader and then let the user edit it. The problem is that when a user enters some data in EditText and then rotates the device the loader reloads the data and overrides all changes made by the user. Of course when I comment out initLoader()...
android|loader|orientation-changes
0
2015-02-28T05:24:22.977Z
2,015
2
5
5
288
1
766
70
3
1
true
false
false
false
false
false
zero
28,778,456
SpannableString on button not works for API21?
<p>I try to put an icon on the toggle button by using SpannableString. and working on API17 but not on API21.</p> <p><img src="https://i.stack.imgur.com/99aY7.png" alt="spanable string on button and text"></p> <p>As you can see, It's work on Button and TextView for API17 but work on TextView only on API21 (The 'Z' is...
I try to put an icon on the toggle button by using SpannableString. and working on API17 but not on API21. As you can see, It's work on Button and TextView for API17 but work on TextView only on API21 (The 'Z' is not replace by icon). [CODE] and [CODE] Note: I dont want to use setCompoundDrawablesWithIntrinsicBounds , ...
android|android-5.0-lollipop|spannablestring
4
2015-02-28T05:26:45.980Z
2,015
2
5
5
1,867
1
466
46
3
2
true
false
false
false
false
false
low
28,778,481
Android Wear Message Listener
<p>I need some help I have Android Wear with message api working but I'm stuck sending some commands this is my listener.</p> <pre><code>import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import a...
I need some help I have Android Wear with message api working but I'm stuck sending some commands this is my listener. [CODE] I want to call the methods of my phone on my code I can initialize the phone class but after that I can't call more methods like : on | off. How do I call methods of the MainActivity class? I al...
java|android|android-intent|wear-os|android-wear-data-api
0
2015-02-28T05:30:31.850Z
2,015
2
5
5
612
1
413
29
5
1
true
false
false
false
false
false
zero
28,778,511
How to display .docx file contents in a textview on Android Activity?
<p>I am trying to display the contents of .doc/.docx file in the textview in Android Activity by using the code.</p> <pre><code>File sdcard = Environment.getExternalStorageDirectory(); File file = new File(sdcard,"demo.docx"); StringBuilder text = new StringBuilder(); try { BufferedReader br = n...
I am trying to display the contents of .doc/.docx file in the textview in Android Activity by using the code. [CODE] But, I am getting output like this, http://i.stack.imgur.com/TAqCW.jpg It works fine for .txt file but not for .doc/.docx file. Please Help me, how to display the contents of .doc/.docx file in textview ...
java|android|android-xml
0
2015-02-28T05:36:05.343Z
2,015
2
5
5
3,497
1
340
69
3
1
true
false
true
false
false
false
zero
28,778,531
android : Getting "null" from intent
<ul> <li><p>I am developing an application in which i want to capture the image from the camera and display it in another activity in an image view, my problem is that in OnActivityResult I am getting a "null" in data... I don't know why</p></li> </ul> <p>Here is my Code.. <code>PictureOptions.java</code></p> <pre><c...
I am developing an application in which i want to capture the image from the camera and display it in another activity in an image view, my problem is that in OnActivityResult I am getting a "null" in data... I don't know why Here is my Code.. PictureOptions.java [CODE] PictureOptions.xml [CODE] ShowImage.java [CODE] S...
java|android|eclipse|android-intent|android-studio
1
2015-02-28T05:39:34.703Z
2,015
2
5
5
1,039
3
339
36
5
4
true
false
false
false
false
false
low
28,778,561
Assign a custom ringtone to a group in android
<p>I know how to assign custom ringtone to specific contact, but I want to set custom ringtone to a particular group. So that, when incoming call from any number belonging to that particular group my custom ringtone should be played.</p>
I know how to assign custom ringtone to specific contact, but I want to set custom ringtone to a particular group. So that, when incoming call from any number belonging to that particular group my custom ringtone should be played.
java|android|android-contacts|android-broadcast
2
2015-02-28T05:43:12.663Z
2,015
2
5
5
170
0
230
46
4
0
false
true
false
false
false
false
low
28,778,648
Android fragment transaction error when "clean up memory"
<p><strong>Short story:</strong></p> <p>I got error when use FragmentTransaction.setCustomAnimations(....). When I checking animation listener is only call onStartAnimation &amp; not call onEndAnimation. (it's only happen when I use some tool optimized ram).</p> <p><strong>Long story:</strong></p> <p>Here is follow ...
Short story: I got error when use FragmentTransaction.setCustomAnimations(....). When I checking animation listener is only call onStartAnimation & not call onEndAnimation. (it's only happen when I use some tool optimized ram). Long story: Here is follow I test in my app. Input: We have 2 fragment A, B. MainActivity wi...
android|android-fragments
1
2015-02-28T05:54:46.823Z
2,015
2
5
5
199
0
817
57
2
1
true
true
false
false
false
false
low
28,778,675
Google Analytics showing cannot resolve a method in android?
<p>In my application i am using Google Analytics.but GoogleAnalytics showing cannot resolve a method.</p> <p>build:gradle:</p> <pre><code>dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.squareup.picasso:picasso:2.5.0' comp...
In my application i am using Google Analytics.but GoogleAnalytics showing cannot resolve a method. build:gradle: [CODE] Manifest file: [CODE] please help me out. which lib i need to add? import: [CODE]
android|google-analytics|android-library
0
2015-02-28T05:57:59.173Z
2,015
2
5
5
1,251
1
201
60
3
3
true
false
false
false
false
false
zero
28,778,686
How to convert value from getAmplitude() to it's corresponding RMS voltage value (mV)
<p>I am writing an android app in which I want to convert the signal amplitude coming from microphone to its corresponding rms voltage. </p> <p>I know we can use <code>getMaxAmplitude()</code>. But I don't know how to convert the value that we get from <code>getMaxAmplitude()</code> to a RMS voltage. </p> <p>I rese...
I am writing an android app in which I want to convert the signal amplitude coming from microphone to its corresponding rms voltage. I know we can use getMaxAmplitude() . But I don't know how to convert the value that we get from getMaxAmplitude() to a RMS voltage. I researched a lot but didn't find anything. Thanks.
android|audio|microphone|amplitude
1
2015-02-28T05:58:56.763Z
2,015
2
5
5
341
1
318
85
4
0
false
false
false
false
false
false
low
28,778,708
Connection Refused on Android Mobile Device
<p>I am getting a strange exception while I try to hit my server api url from my mobile device.It occurs sometimes on my device and the problem goes away when I switch off and On the Wifi. Why this is so?</p> <p>There are so many relevant questions and answers available on the StackOverflow regarding the same, but no ...
I am getting a strange exception while I try to hit my server api url from my mobile device.It occurs sometimes on my device and the problem goes away when I switch off and On the Wifi. Why this is so? There are so many relevant questions and answers available on the StackOverflow regarding the same, but no one has exp...
android|httpconnection
0
2015-02-28T06:01:41.827Z
2,015
2
6
5
598
0
570
43
2
1
true
true
false
false
false
false
zero
28,778,709
How to create server to use chat room realtime (SignalR) in android
<p>I am beginner in android xamarin. I want to use chat room realtime using SignalR. But i dont know what is "<a href="http://10.0.2.2:8081/echo" rel="nofollow">http://10.0.2.2:8081/echo</a>" mean in this example. Is it a server???There are something in that server - like php file, database or something else??? hope yo...
I am beginner in android xamarin. I want to use chat room realtime using SignalR. But i dont know what is " http://10.0.2.2:8081/echo " mean in this example. Is it a server???There are something in that server - like php file, database or something else??? hope your answer, thanks :D or anybody show me how to build a g...
android|xamarin|signalr|chat
0
2015-02-28T06:01:53.410Z
2,015
2
6
5
1,069
3
490
67
4
1
true
false
false
false
false
false
zero
28,778,733
Get mail intent from whatsapp
<p>I am trying to receive the sending whatsapp intent when sharing the conversation via email.I can't make my application appear in the possible applications to share.I need information on how to properly configure my androidmanifest and receive the attachment * .txt.Thanks and I hope I have expressed myself well.</p>
I am trying to receive the sending whatsapp intent when sharing the conversation via email.I can't make my application appear in the possible applications to share.I need information on how to properly configure my androidmanifest and receive the attachment * .txt.Thanks and I hope I have expressed myself well.
java|android|email
3
2015-02-28T06:04:47.463Z
2,015
2
6
5
271
2
312
29
3
0
false
false
false
false
false
false
low
28,778,813
Android : Using context to get all TextView
<p>Is it possible to get all the TextView in an activity and change their values without knowing any ID? May be something like UI automtor tool that return UI hierarchy but at Java programming level. I tried to Google this but couldn't find any solution. </p> <p><strong>Edit</strong></p> <p>What I am trying to achiev...
Is it possible to get all the TextView in an activity and change their values without knowing any ID? May be something like UI automtor tool that return UI hierarchy but at Java programming level. I tried to Google this but couldn't find any solution. Edit What I am trying to achieve here is, I have an external library...
android
3
2015-02-28T06:17:00.147Z
2,015
2
6
5
6,342
3
484
43
1
0
false
false
true
false
false
false
low
28,778,843
Error when playing file on button press
<p>I apologize for my noobiness in java, but I am trying to make a very basic app for someone for their birthday and have only really done any programming in python. I have been trying to implement the code found in <a href="https://stackoverflow.com/questions/19464782/android-how-to-make-a-button-click-play-a-sound-fi...
I apologize for my noobiness in java, but I am trying to make a very basic app for someone for their birthday and have only really done any programming in python. I have been trying to implement the code found in android - how to make a button click play a sound file every time it been pressed? and am having trouble. I...
java|android
0
2015-02-28T06:21:00.843Z
2,015
2
6
5
45
2
642
39
2
2
true
false
false
false
false
false
zero
28,778,883
Can I send WhatsApp messages from my Java (or any language) applications?
<p>We can send emails or SMS through our application written in Java or many languages. Is there any mechanism to send WhatsApp messages through our applications / web site?</p>
We can send emails or SMS through our application written in Java or many languages. Is there any mechanism to send WhatsApp messages through our applications / web site?
java|android|api|message|whatsapp
0
2015-02-28T06:27:25.663Z
2,015
2
6
5
1,385
1
170
73
5
0
false
false
false
false
false
false
zero
28,778,919
Android: Listen for incomming sms when GoSMSPro installed
<p>Here is my code:</p> <pre><code>&lt;receiver android:name=".IncomingSms" android:permission="android.permission.BROADCAST_SMS"&gt; &lt;intent-filter android:priority="2147483648"&gt; &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt; &lt;category android:name="android.in...
Here is my code: [CODE] My app work fine when GoSMSPro is not installed.I install my app fisrt then install GoSMSPro but still can not receive sms. I have another question and it is: how BeeTalk can receive registration sms when even GoSMSPro is installed?
java|android|sms
1
2015-02-28T06:31:59.703Z
2,015
2
6
5
130
1
256
57
3
1
true
false
false
false
false
false
low
28,778,962
RefreshToken from GoogleDrive sdk from authTOken received
<p>I am trying to integrate GoogleDriveSDK</p> <p>Here is my code</p> <pre><code>mGoogleClient = new GoogleApiClient.Builder(this) .addApi(Drive.API) .addScope(Drive.SCOPE_FILE) .addConnectionCallbacks(new ConnectionCallbacks() { @Override public void onConnect...
I am trying to integrate GoogleDriveSDK Here is my code [CODE] Now the problem is,i am not sure how can i get RefreshToken from authToken and save it for later use. Secondly how can i use this refreshtoken saved to initialise Drive?
java|android|eclipse|google-drive-api
0
2015-02-28T06:39:15.507Z
2,015
2
6
5
93
2
232
57
4
1
true
false
false
false
false
false
zero
28,778,978
Android: data not loading in fragmentstateviewpager while setting current page
<p>I am using fragmentstateviewpager where the fragments are created dynamically. Each page loads data by calling a web service. My viewpager will have 5 items, by default I am setting the current item as the 5th item using:</p> <pre><code>mPager.setCurrentItem(4); </code></pre> <p>The 5th item is getting displayed b...
I am using fragmentstateviewpager where the fragments are created dynamically. Each page loads data by calling a web service. My viewpager will have 5 items, by default I am setting the current item as the 5th item using: [CODE] The 5th item is getting displayed but data is not loaded in it. When I swipe two items back...
android|android-viewpager
0
2015-02-28T06:41:10.073Z
2,015
2
6
5
58
0
417
78
2
1
true
true
false
false
false
false
zero
28,778,987
Android Libgdx - Error loading data/uiskin.json
<p>i'm trying to use the samples to develop my Tests, with the same "structure system", but i get an error when loading uiskin.json</p> <p>I tried a couple of things....but nothing.</p> <p>Thanks in advance!</p> <p>CODE:</p> <pre><code> public static void load() { TextureAtlas textureAtlas = new TextureA...
i'm trying to use the samples to develop my Tests, with the same "structure system", but i get an error when loading uiskin.json I tried a couple of things....but nothing. Thanks in advance! CODE: [CODE] ERROR: [CODE] uiskin.json [CODE]
android|json|libgdx
1
2015-02-28T06:42:24.300Z
2,015
2
6
5
2,507
1
236
47
3
3
true
false
false
false
false
false
low
28,778,999
Pick specific text automatically from SMS in Android
<p>I am trying to verify 6 digit number through my APP. I would like to do this automatically once I receive a specific text message. </p> <p>I have a separate broadcast receiver file that can receive message. I receive it and then stop the Broadcast Receiver. </p> <p>I have two issues:</p> <ol> <li><p>I am not sure...
I am trying to verify 6 digit number through my APP. I would like to do this automatically once I receive a specific text message. I have a separate broadcast receiver file that can receive message. I receive it and then stop the Broadcast Receiver. I have two issues: I am not sure on how to insert the 6 digit number i...
android|broadcastreceiver|android-broadcast
-3
2015-02-28T06:44:34Z
-1
-1
-1
-1
783
1
659
52
3
0
false
false
false
false
false
true
negative
28,779,018
Is there a "break" method for android.os.Looper?
<p>I'm new to Android development (coming from C/C++, Win32 world).</p> <p>I'm trying to write a single-threaded service that should process various kinds of callbacks (system events, timers).</p> <p>What I need is a (sort of) emulation of a modal message-processing loop. That is, I want to be able to call some funct...
I'm new to Android development (coming from C/C++, Win32 world). I'm trying to write a single-threaded service that should process various kinds of callbacks (system events, timers). What I need is a (sort of) emulation of a modal message-processing loop. That is, I want to be able to call some function that waits unti...
android|android-looper
0
2015-02-28T06:47:37.230Z
2,015
2
6
5
196
0
1,681
48
2
0
false
true
false
false
false
false
zero
28,779,024
Having error messages in my new activity in my android app
<p>I just created a new activity called "activity_direction" in my android app,but I discovered an error message in two lines of my new activity. First one is on <code>setContentView(R.layout.activity_direction);</code> of the <code>onCreate()</code> method.The error message says:</p> <p><code>"activity_direction cann...
I just created a new activity called "activity_direction" in my android app,but I discovered an error message in two lines of my new activity. First one is on setContentView(R.layout.activity_direction); of the onCreate() method.The error message says: "activity_direction cannot be resolved to a type or is not a field"...
android
0
2015-02-28T06:49:34.447Z
2,015
2
6
5
45
2
475
58
1
1
true
false
false
false
false
false
zero
28,779,101
Access to html basic protected image via SapUI5 & Cordova
<p>I'm trying to access an image protected by a simple http basic authentication mechanism. This example works fine when using my browser</p> <pre><code>... var mImage = sap.m.Image("Im1"); mImage.setSrc("http://user:password@192.168.0.100/image.jpg"); ... var page = new sap.m.Page({ title: "Image", content: mImage ...
I'm trying to access an image protected by a simple http basic authentication mechanism. This example works fine when using my browser [CODE] Yet when I wrap it in a Cordova container (Android) this simple way of attaching user+pw does not seem to work. The webserver responds with a 401 error and my app does not send a...
android|cordova|xmlhttprequest|basic-authentication|sapui5
0
2015-02-28T07:01:13.517Z
2,015
2
7
5
196
1
661
57
5
2
true
false
false
false
false
false
zero
28,779,204
API To Get Camera Info On Android
<p>How can I get the camera info of the <strong><em>Rear Camera</em></strong> on Android ?<br> Any API that would do it for me ?<br> I need - </p> <ul> <li><code>Manufacturer Name</code></li> <li><code>Sensor Codemane</code></li> <li><code>Sensor Size</code></li> <li><code>Aperture</code></li> <li><code>is Auto-Focus ...
How can I get the camera info of the Rear Camera on Android ? Any API that would do it for me ? I need - Manufacturer Name Sensor Codemane Sensor Size Aperture is Auto-Focus Available is Optical Image Stabilization Available
android|api|android-camera
4
2015-02-28T07:14:43.647Z
2,015
2
7
5
6,501
2
224
33
3
0
false
false
true
false
false
false
low
28,779,356
Issue resolving gradle dependency in android studio?
<p>I am trying to add a styled progress bar from <a href="https://android-arsenal.com/details/1/1375">https://android-arsenal.com/details/1/1375</a></p> <p>There it says:</p> <p>Add the specific repository to your build file:</p> <pre><code>repositories { maven { url "https://jitpack.io" } } </code></pre...
I am trying to add a styled progress bar from https://android-arsenal.com/details/1/1375 There it says: Add the specific repository to your build file: [CODE] Add the dependency in your build file (do not forget to specify the correct qualifier, usually 'aar'): [CODE] Well I did that... build.gradle (Project) [CODE] bu...
android|android-studio|gradle|dependencies
8
2015-02-28T07:38:11.743Z
2,015
2
7
5
8,724
2
1,641
52
4
4
true
false
true
false
false
false
medium
28,779,383
SPDY multiplexing makes requests slower than HTTP
<p>I have an application that makes a mixture of network requests, some small items (~20kB) and some large items (>2mB). If my understanding of SPDY is correct, SPDY multiplexes requests on the same connection, so the smaller requests could potentially be slowed down if they're behind the larger requests. Since OkHttp ...
I have an application that makes a mixture of network requests, some small items (~20kB) and some large items (>2mB). If my understanding of SPDY is correct, SPDY multiplexes requests on the same connection, so the smaller requests could potentially be slowed down if they're behind the larger requests. Since OkHttp doe...
android|performance|okhttp|spdy|multiplexing
0
2015-02-28T07:41:28.040Z
2,015
2
7
5
193
1
621
49
5
0
false
false
false
false
false
false
zero
28,779,386
When I install my app thru Google Play, it's home screen name is different from what's in the app menu
<p>When I install my app from Google Play, and it goes on my home screen, it's "label" is the value of <code>@string/slogan</code>, but in the apps menu, it's the value of <code>@string/app_name</code>.</p> <p><code>minSdkVersion</code> is 14.</p> <p>My Manifest:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8...
When I install my app from Google Play, and it goes on my home screen, it's "label" is the value of @string/slogan , but in the apps menu, it's the value of @string/app_name . minSdkVersion is 14. My Manifest: [CODE] I'm not sure why... Right now, I'm going with Ferran Negre's solution, but I wonder if there's a way to...
java|android|xml|android-intent|manifest
-1
2015-02-28T07:41:31.057Z
2,015
2
7
5
40
2
343
102
5
1
true
false
false
false
false
true
negative
28,779,389
same webview for different activities
<p>i have many buttons in main activity that each button link to another activity that contain listview that each item in listview link one html file that is in asset folder. in my codes i'm using one webview activity for each activity. how can i use one same webview activity for all activity. i have eight different ac...
i have many buttons in main activity that each button link to another activity that contain listview that each item in listview link one html file that is in asset folder. in my codes i'm using one webview activity for each activity. how can i use one same webview activity for all activity. i have eight different activ...
android|html|listview|webview|assets
1
2015-02-28T07:42:16.593Z
2,015
2
7
5
1,177
2
586
37
5
2
true
false
false
false
false
false
low
28,779,401
I got zip aligned error
<p>I have an apk finished, when I tried to upload it, I get an error of zipalign, I tried to fix it but I didn't know how! The line is </p> <pre><code>zipalign [-f] [-v] &lt;alignment&gt; infile.apk outfile.apk </code></pre> <p>Let's say I have mine.apk and I have zipalign.exe in my laptop, can someone please tell me...
I have an apk finished, when I tried to upload it, I get an error of zipalign, I tried to fix it but I didn't know how! The line is [CODE] Let's say I have mine.apk and I have zipalign.exe in my laptop, can someone please tell me what to type? I tried many things!
android|apk|zipalign
1
2015-02-28T07:43:53Z
-1
-1
-1
-1
185
3
264
23
3
1
true
false
false
false
false
false
low
28,779,444
how to receive json object from android using POST method
<p>I am working on a php script which receives data sent by android in json format using POST method. But i am not getting any data, here is my code</p> <pre><code>$josn = file_get_contents("php://input"); $json_data = json_decode($josn, true); </code></pre> <p>i just tried to print $json_data by </p> <pr...
I am working on a php script which receives data sent by android in json format using POST method. But i am not getting any data, here is my code [CODE] i just tried to print $json_data by [CODE] but its not showing any values
php|android
2
2015-02-28T07:50:39.007Z
2,015
2
7
5
1,201
1
226
57
2
2
true
false
false
false
false
false
low
28,779,452
How can i achieve this in android.(Encircled in the image)
<p><img src="https://i.stack.imgur.com/yGrO9.png" alt="enter image description here"> I want to show order status in my app. I am stuck in this think like how to show the order status. Can anybody guide me through this.</p>
I want to show order status in my app. I am stuck in this think like how to show the order status. Can anybody guide me through this.
android|progress-bar
0
2015-02-28T07:52:16.523Z
2,015
2
7
5
60
1
133
58
2
0
false
false
false
false
false
false
zero
28,779,481
Launching deep level activity
<p>I have a main activity where user provides an input according to which i jump to a activity deep inside the heirarchy eg: Let activities be B->C->D->E On user input it will jump from A to E.What i want to do is i want to add B C D onto the backstack so that when user press back button it navigate according to the h...
I have a main activity where user provides an input according to which i jump to a activity deep inside the heirarchy eg: Let activities be B->C->D->E On user input it will jump from A to E.What i want to do is i want to add B C D onto the backstack so that when user press back button it navigate according to the heira...
android
-1
2015-02-28T07:56:40.100Z
2,015
2
7
5
37
1
765
29
1
0
false
false
false
false
false
true
negative
28,779,544
Where does android studio find this proxy?
<p>I am new to android and trying android studio. </p> <blockquote> <p>I have imported an existing android project and I see Failed to sync Gradle project Error: Unknown host 'company.proxy.com' </p> </blockquote> <p>In my laptop there is indeed this proxy set for my work but in my home I can connect directl...
I am new to android and trying android studio. I have imported an existing android project and I see Failed to sync Gradle project Error: Unknown host 'company.proxy.com' In my laptop there is indeed this proxy set for my work but in my home I can connect directly to the internet. My browser somehow does not go over th...
java|android|android-studio|proxy|gradle
3
2015-02-28T08:05:49.443Z
2,015
2
8
5
448
1
746
42
5
0
false
false
false
false
false
false
low
28,779,552
How do you use Processing for Android to display a stereoscopic image in a Google Cardboard device?
<p>Processing was designed to make drawing with Java much easier. Processing for Android has the power of its desktop sibling plus information from sensors. Putting these things together, shouldn't it be easy to display a stereoscopic image and move around it like Oculus Rift or Google Cardboard?</p>
Processing was designed to make drawing with Java much easier. Processing for Android has the power of its desktop sibling plus information from sensors. Putting these things together, shouldn't it be easy to display a stereoscopic image and move around it like Oculus Rift or Google Cardboard?
android|processing|stereo-3d|google-cardboard|virtual-reality
3
2015-02-28T08:07:17.317Z
2,015
2
8
5
3,479
2
294
99
5
0
false
false
true
false
false
false
low
28,779,593
Null Pointer Exception in OnClickListener
<p>I am pretty new to Android. I have the following code to display a Custom Dialog when the user clicks on a button. Here is the code:</p> <p>MainActivity.java</p> <pre><code>public class MainActivity extends ActionBarActivity implements View.OnClickListener { @Override protected void onCreate(Bundle savedInstance...
I am pretty new to Android. I have the following code to display a Custom Dialog when the user clicks on a button. Here is the code: MainActivity.java [CODE] And here is the custom_layout.xml file [CODE] WHenever i run the app, and click on the Custom Button, the app Crashes with the following error: [CODE] I am pretty...
java|android
0
2015-02-28T08:13:31.503Z
2,015
2
8
5
185
1
434
41
2
3
true
false
false
false
false
false
zero
28,779,620
ListView's empty view is not showing when the list is empty
<p>My <code>ListView</code> is not showing empty view when the list is empty. Here is my code of <code>Fragment</code> and the <code>Layout</code>.</p> <pre><code>public class ViewSearchClientFragment extends BaseFragment implements OnItemClickListener { ArrayList&lt;ClientDetails&gt; clientArrayList; ...
My ListView is not showing empty view when the list is empty. Here is my code of Fragment and the Layout . [CODE] And this is the Layout . [CODE]
android
0
2015-02-28T08:16:47.850Z
2,015
2
8
5
823
3
145
59
1
2
true
false
false
false
false
false
zero
28,779,627
ListView with custom adapter: some items are hidden
<p>I have a ListView with a custom adapter, but when scroll in ListView some items are hidden: <img src="https://i.stack.imgur.com/Pzn1H.png" alt="enter image description here"></p> <p>From the image you can see that from a69 jumps to a72 leaving hidden items a70 and a71.</p> <p>Here is the code of the custom adapte...
I have a ListView with a custom adapter, but when scroll in ListView some items are hidden: From the image you can see that from a69 jumps to a72 leaving hidden items a70 and a71. Here is the code of the custom adapter: [CODE] EDIT: Here are the layout of activity: [CODE] And the addcurrency_item: [CODE]
android|android-layout|android-listview|android-adapter
0
2015-02-28T08:18:15.340Z
2,015
2
8
5
233
1
305
51
4
3
true
false
false
false
false
false
zero
28,779,701
In some device in china not found package for GCM Registeration
<p>com.google.android.gsf package couldn't be found</p> <pre><code>FATAL EXCEPTION: main Process: com.innowaystimesheet, PID: 1309 java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf at com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98) at com.innowaystimesh...
com.google.android.gsf package couldn't be found [CODE] can we add package in app side or any other way to resolve??
android|google-api|google-cloud-messaging
-1
2015-02-28T08:31:08.330Z
2,015
2
8
5
198
2
116
63
3
1
true
false
false
false
false
true
negative
28,779,706
How to animate a layout within a CardView (i.e. SlideUp & SlideDown) in android
<p>I have a <code>RelativeLayout</code> having the visibility <code>gone</code> containing 3 action buttons. I want to animate this layout to SlideUp and SlideDown on clicking on an dropdown image. </p> <p><img src="https://i.stack.imgur.com/sRM1M.jpg" alt="enter image description here"></p>
I have a RelativeLayout having the visibility gone containing 3 action buttons. I want to animate this layout to SlideUp and SlideDown on clicking on an dropdown image.
android|android-animation|material-design
1
2015-02-28T08:31:30.507Z
2,015
2
8
5
1,889
1
168
79
3
0
false
false
false
false
false
false
low
28,779,724
changing screen brightness via android app
<p>I have the same need like <a href="https://stackoverflow.com/questions/7646865/changing-screen-brightness-programmatically-as-with-the-power-widget">this</a>, but I found the answer under that question aren't work.</p> <p>I want to make buttons to change my screen brightness while my app is running. </p> <p>I have...
I have the same need like this , but I found the answer under that question aren't work. I want to make buttons to change my screen brightness while my app is running. I have found this code, but it doesn't work if I copy this code into my mainActivity directly. [CODE] I use android studio and API level is 21 and I add...
android
1
2015-02-28T08:34:18.410Z
2,015
2
8
5
10,219
3
415
42
1
1
true
false
true
false
false
false
low
28,779,751
How to search string from any position of ListView in android?
<p>I have a listview on which i am setting custom arrayadapter with title and icon. Title is s string which i am filtering using </p> <pre><code> edittext.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count...
I have a listview on which i am setting custom arrayadapter with title and icon. Title is s string which i am filtering using [CODE] But the i want to filter string from any index For example i have a string like "Subcontractor HSSE Assessment and Selection Procedure" and when i am searching from any index like "and Se...
android
0
2015-02-28T08:38:00.503Z
2,015
2
8
5
680
2
507
62
1
1
true
false
false
false
false
false
zero
28,779,908
How to fetch list from HashMap <String,List<String>> to another list
<p>How to fetch list from HashMap > to another list in Android</p> <p>Suppose <code>Hashmap&lt;String, List&lt;String&gt;&gt; myHashMap</code> has values:</p> <pre><code>{nature2, fruits} {nature2, vegs} {nature3, flowers} </code></pre> <p>And,</p> <pre><code>fruits = [apple,grapes,mango] veges = [potato,beans] flo...
How to fetch list from HashMap > to another list in Android Suppose Hashmap<String, List<String>> myHashMap has values: [CODE] And, [CODE] I have a List<String> elements I want to fetch List from "myHashMap" to elements based on the String id. Eg.: when I pass id=2, I want to fetch list of 'veges" to "elements" i.e. el...
java|android|list|expandablelistview
1
2015-02-28T08:55:59.020Z
2,015
2
8
5
673
2
443
68
4
2
true
false
false
false
false
false
low
28,779,953
PaddingTop not working on ImageButton
<p>I have a Imagebutton with a icon of a barcode as the background. I am trying to put a paddingtop on the item so its not touching the top of the screen. </p> <p>The paddingtop works for the textview but not the imagebutton?</p> <p>Any tricks I can try to move it 5dp down?</p> <pre><code>&lt;RelativeLayout xmlns:an...
I have a Imagebutton with a icon of a barcode as the background. I am trying to put a paddingtop on the item so its not touching the top of the screen. The paddingtop works for the textview but not the imagebutton? Any tricks I can try to move it 5dp down? [CODE]
android-relativelayout|android-imagebutton
1
2015-02-28T09:02:23.470Z
2,015
2
9
5
492
1
263
37
2
1
true
false
false
false
false
false
low
28,779,986
How to find and clear app cache?
<hr> <p>I've read about using an LRUCache to cache bitmaps which are stored on the file system.the examples here: <a href="http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html" rel="nofollow">http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html</a>. Now I want to make a clea...
I've read about using an LRUCache to cache bitmaps which are stored on the file system.the examples here: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html . Now I want to make a clearner app to delete cache of apps.I need to find cache of apps on android device. I don't know how to do that. Ca...
android
0
2015-02-28T09:05:36.547Z
2,015
2
9
5
294
0
344
32
1
0
false
true
false
false
false
false
zero
28,779,989
Intel HAXM runs successfully, but android emulator says HAX is not working, why? Windows 8.1 64 bit, CPU-Intel Core i5
<p>===== some info of my environment =====</p> <pre><code>OS : Windows 8.1 64 bit CPU : Intel Core i5 IDE : Android Studio 1.1.0 </code></pre> <p>===== the end =====</p> <p>First, Bios settings have the virtual technology enabled;</p> <p>Second, I have intel haxm installed;</p> <p>Third, reboot the machine and ch...
===== some info of my environment ===== [CODE] ===== the end ===== First, Bios settings have the virtual technology enabled; Second, I have intel haxm installed; Third, reboot the machine and check; [CODE] Forth, launch the android emulator; [CODE] Finally, Android Studio log shows: [CODE] Where am I wrong? Please help...
android|android-emulator|haxm
2
2015-02-28T09:05:55.093Z
2,015
2
9
5
1,513
1
338
118
3
4
true
false
false
false
false
false
low
28,780,008
Animation on a button android
<p>Is it possible in android to click a button and then the button size change and take the whole screen is it possible to do that because i can figured how to do this</p> <p>i'm tring this but it's not taking the whole screen and it goes only in one </p> <pre><code>direction Button btn = (Button) findViewById(R.id.b...
Is it possible in android to click a button and then the button size change and take the whole screen is it possible to do that because i can figured how to do this i'm tring this but it's not taking the whole screen and it goes only in one [CODE]
android|button
0
2015-02-28T09:08:13.253Z
2,015
2
9
5
52
1
247
29
2
1
true
false
false
false
false
false
zero
28,780,059
Android Alpha Animation Very Slow
<p>I have an app that show a SurfaceView that shows a camera preview, and on top of that a couple other UI elements (buttons). Basically, the user inputs their code, i FadeOut the UI leaving the normal preview and take a picture which is later uploaded. This all worked fine on an older tablet, however, switching to an ...
I have an app that show a SurfaceView that shows a camera preview, and on top of that a couple other UI elements (buttons). Basically, the user inputs their code, i FadeOut the UI leaving the normal preview and take a picture which is later uploaded. This all worked fine on an older tablet, however, switching to an XPE...
java|android
1
2015-02-28T09:13:52.430Z
2,015
2
9
5
1,061
1
762
33
2
1
true
false
false
false
false
false
low
28,780,093
android.database.sqlite.SQLiteException: no such column: locationlocation_setting (code 1):
<pre><code>02-28 14:35:52.946 1923-1937/com.example.android.sunshine.app E/AndroidRuntime﹕ FATAL EXCEPTION: ModernAsyncTask #1 Process: com.example.android.sunshine.app, PID: 1923 java.lang.RuntimeException: An error occured while executing doInBackground() at android.support.v4.content.ModernAsy...
[CODE]
android|sqlite
-2
2015-02-28T09:17:06.533Z
2,015
2
9
5
1,498
1
6
91
2
1
true
false
false
false
false
true
negative
28,780,120
Android: distinguish between device resolutions when providing resources
<p>I have and android project providing different dimens.xml for different screen resoultions. I am doing so by defining values-swXXXdp folders in my /res folder.</p> <p>However, I am now having trouble distinguishing the following two screen resolutions:</p> <ol> <li>768x1280, 160dpi from</li> <li>768x1024, 160dpi</...
I have and android project providing different dimens.xml for different screen resoultions. I am doing so by defining values-swXXXdp folders in my /res folder. However, I am now having trouble distinguishing the following two screen resolutions: 768x1280, 160dpi from 768x1024, 160dpi What I tried so far: values-sw768dp...
android|xml|screen-resolution
1
2015-02-28T09:19:57.097Z
2,015
2
9
5
214
1
617
72
3
0
false
false
false
false
false
false
low
28,780,161
In order to inject dependencies into an object, i must first inject it into the right component?
<p>So if I have a class in which i would like to inject some objects then first i have to get an application context somehow and inject this object into the component stored by the main application class?</p>
So if I have a class in which i would like to inject some objects then first i have to get an application context somehow and inject this object into the component stored by the main application class?
java|android|dependency-injection|dagger-2
0
2015-02-28T09:24:31.567Z
2,015
2
9
5
59
0
201
96
4
0
false
true
false
false
false
false
zero
28,780,172
How can i use Polymer project in my web view Android Application
<p>I want to use my polymer project in Android Web view but polymer element need a localHost server to run ?? so how can i run my Application without any localhost server in web view Android</p>
I want to use my polymer project in Android Web view but polymer element need a localHost server to run ?? so how can i run my Application without any localhost server in web view Android
javascript|android|webview|polymer-designer-tool
0
2015-02-28T09:25:20.263Z
2,015
2
9
5
451
1
187
64
4
0
false
false
false
false
false
false
zero
28,780,239
Fatal Exception AsyncTask3 error while calling webservice
<p>I'm trying to call webservice and set returned value to textview from service. But I get that fatal exception error when I click button. Where is my mistake?</p> <p>Java Code:`</p> <pre><code>public class Login extends Activity { private String SOAP_ACTION = "http://appointmentsystem.somee.com/HelloWorld"; privat...
I'm trying to call webservice and set returned value to textview from service. But I get that fatal exception error when I click button. Where is my mistake? Java Code:` [CODE] Error: [CODE]
android|eclipse|android-asynctask|fatal-error
0
2015-02-28T09:34:18.180Z
2,015
2
9
5
193
3
190
57
4
2
true
false
false
false
false
false
zero
28,780,255
GoogleMap V2 doesn't start with user current location
<p>I am newbie on Android. I want to develop a simple GoogleMap application. But my app doesn't start with user current location my user current location object is null on application start, when i press the menu key and rerun my app, it shows but i want to show current location when the application start. </p> <p>Tha...
I am newbie on Android. I want to develop a simple GoogleMap application. But my app doesn't start with user current location my user current location object is null on application start, when i press the menu key and rerun my app, it shows but i want to show current location when the application start. Thanks. This is...
java|android|google-maps|gps|location
0
2015-02-28T09:36:03.327Z
2,015
2
9
5
139
1
631
53
5
5
true
false
false
false
false
false
zero