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,801,602
how to change hintText color in textField Titanium?
<p>this is my code,and I want to change the hintText Color, how to do?</p> <pre><code> "#email":{ width: '70%', left:'13%', font:{ fontSize:'20sp' }, color: '#fff', hintText:'请输入手机号', borderColor:'transparent', bottom:'2%', //backgroundColor:'#d9d9d9', backgroundColor...
this is my code,and I want to change the hintText Color, how to do? [CODE]
titanium|titanium-alloy|titanium-android
2
2015-03-02T01:57:46.903Z
2,015
3
1
0
3,551
6
74
51
3
1
true
false
true
false
false
false
low
28,801,643
Android menu not appearing on google maps activity (Api v2)
<p>I have an activity in android that is supposed to show google maps using the google maps api v2, with a menu on top. The map appears like it should, but the menu never shows up for some reason.</p> <p>I have debugged the application, and the <code>onCreateOptionsMenu(Menu menu)</code> method is never called. Why is...
I have an activity in android that is supposed to show google maps using the google maps api v2, with a menu on top. The map appears like it should, but the menu never shows up for some reason. I have debugged the application, and the onCreateOptionsMenu(Menu menu) method is never called. Why is this? This is my activi...
android|google-maps|android-menu
1
2015-03-02T02:03:49.837Z
2,015
3
2
0
5,479
5
412
59
3
3
true
false
true
false
false
false
low
28,801,646
Android Studio Mute/Unmute Phone
<p>So this link helps a lot: <a href="https://stackoverflow.com/questions/7317974/android-mute-unmute-phone">Android mute/unmute phone</a><br> But I am a not the best at interpreting other people's code and everytime I try to put in there code my program crashes. Could someone help me with how to I can fix it? Spent ab...
So this link helps a lot: Android mute/unmute phone But I am a not the best at interpreting other people's code and everytime I try to put in there code my program crashes. Could someone help me with how to I can fix it? Spent about an hour trying to figure it out.
android|volume|mute
0
2015-03-02T02:03:54.883Z
2,015
3
2
0
3,624
1
265
32
3
0
false
false
true
false
false
false
zero
28,801,667
Trouble passing context to helper class method
<p>Not entirely sure if I'm using those terms (context, helper class) correctly, so excuse me if I'm not.</p> <p>Anyway, my issue is that I have a class chessboard which needs to call a method in another class, this being the class for the 'knight' piece. The method in this knight class generates a list of possible mo...
Not entirely sure if I'm using those terms (context, helper class) correctly, so excuse me if I'm not. Anyway, my issue is that I have a class chessboard which needs to call a method in another class, this being the class for the 'knight' piece. The method in this knight class generates a list of possible moves that th...
java|android|android-activity|android-toast
2
2015-03-02T02:06:53.870Z
2,015
3
2
0
183
2
847
46
4
2
true
false
false
false
false
false
low
28,801,738
how to write subscript and superscript in the textview text?
<p>I'm working on app on android studio and i need subscript and superscript in my <code>textview</code> and I know how to do it programmatic-ally like:</p> <hr> <pre><code> Html.fromHtml(r7.getText().toString()+" m&lt;sup&gt;&lt;small&gt;2&lt;/small&gt;&lt;/sup&gt;") </code></pre> <hr> <p>but when writing ...
I'm working on app on android studio and i need subscript and superscript in my textview and I know how to do it programmatic-ally like: [CODE] but when writing it the text of textview give me this error: Error:(104) Error parsing XML: not well-formed (invalid token) So how to solve this problem, please ???
android|string-formatting|textview
3
2015-03-02T02:16:53.573Z
2,015
3
2
0
4,731
2
308
60
3
1
true
false
true
false
false
false
low
28,801,787
Android Studio "Unfortunately my project has stopped"
<p>The project itself does not report any error, but when I run my project with the emulator, it popped up "Unfortunately project has stopped", can anyone look at my project and know what error is? I got following logcat error:</p> <pre><code>Process: edu.drexel.weatherundergroundapi, PID: 1800 java.lang.RuntimeExcept...
The project itself does not report any error, but when I run my project with the emulator, it popped up "Unfortunately project has stopped", can anyone look at my project and know what error is? I got following logcat error: [CODE] There are three java classes and three xml files: 1. MainActivity.java 2. CustomListAdap...
java|android|xml|android-layout|adapter
0
2015-03-02T02:23:04.897Z
2,015
3
2
0
2,004
1
488
53
5
6
true
false
false
false
false
false
zero
28,801,848
Is there any Openfire-based Instant message tutorial?
<p>Recently I want to build a simple instant message android application. As far as I know, openfire + spark + smack is a solution. But I can't find demos. So, is there any Openfire-based instant message tutorial that I can learn?</p> <p>Besides, I do find some codes about smack API, such as:</p> <p><code>some defini...
Recently I want to build a simple instant message android application. As far as I know, openfire + spark + smack is a solution. But I can't find demos. So, is there any Openfire-based instant message tutorial that I can learn? Besides, I do find some codes about smack API, such as: some definitions...... connection.lo...
android|xmpp|openfire|instant-messaging
0
2015-03-02T02:32:04.473Z
2,015
3
2
0
1,539
1
953
53
4
0
false
false
false
false
false
false
zero
28,801,866
PHP running in Background/Server
<p>I would like to run PHP in Server like this for example i want to check customers birthdays...</p> <pre><code>$someones_birthday_today = mysql_query("SELECT * FROM users WHERE birthdate=".date('Y-m-d')." "); if($someones_birthday_today){ mysql_query("INSERT INTO birthdays (`user_id`, `birthdate`) VALUE ('$user...
I would like to run PHP in Server like this for example i want to check customers birthdays... [CODE] To query Select and Insert does not slow the process. But this is a Http Request From a Mobile App im developing. I dont want to Request everytime the user visit my app log view. Every minute/day/month, it will check f...
php|android|api|laravel-4|httprequest
0
2015-03-02T02:35:11.293Z
2,015
3
2
0
154
1
794
32
5
1
true
false
false
false
false
false
zero
28,801,941
Camera opening on two different tabs
<p>I am fairly new to developing Android applications. I am trying to create an application that allows you to save a picture in the "Pictures" folder named Property_Picture.jpg using the last (camera) tab. However, both the last two tabs are opening the camera, and the picture is also not being saved once you take a p...
I am fairly new to developing Android applications. I am trying to create an application that allows you to save a picture in the "Pictures" folder named Property_Picture.jpg using the last (camera) tab. However, both the last two tabs are opening the camera, and the picture is also not being saved once you take a pict...
android|android-fragments|android-camera
0
2015-03-02T02:44:45.870Z
2,015
3
2
0
656
0
398
36
3
1
true
true
false
false
false
false
zero
28,801,954
FrameBuffer texture breaks after changing device language
<p>I am happily using libgdx for an android game application.</p> <p>At a specific point in the game, I use a FrameBuffer object to render the screen onto, and then use its attached color texture for rendering that to the screen (to be able to render a half-transparent screen with full-color rectangular zones).</p> <...
I am happily using libgdx for an android game application. At a specific point in the game, I use a FrameBuffer object to render the screen onto, and then use its attached color texture for rendering that to the screen (to be able to render a half-transparent screen with full-color rectangular zones). The documentation...
android|libgdx
2
2015-03-02T02:47:21.737Z
2,015
3
2
0
75
0
1,646
57
2
0
false
true
false
false
false
false
low
28,802,028
android prevent refresh on change orientation
<p>I have <code>layout/activity_main.xml</code> and <code>layout-land/activity_main.xml</code>. When I change orientation the activity reload again. </p> <p>I try to use this code <code>android:configChanges="keyboardHidden|orientation"</code> and it work the activity is not reloading just what i like but the problem ...
I have layout/activity_main.xml and layout-land/activity_main.xml . When I change orientation the activity reload again. I try to use this code android:configChanges="keyboardHidden|orientation" and it work the activity is not reloading just what i like but the problem is the layout is not switching from layout/activit...
android|layout|android-orientation
3
2015-03-02T02:57:48.040Z
2,015
3
2
0
9,315
2
479
45
3
0
false
false
true
false
false
false
low
28,802,062
Programmatically connect Bluetooth Device in Android from Broadcast Receiver
<p>In my Broadcast Receiver, I've retrieved a list of bonded bluetooth devices.</p> <pre><code>BluetoothStateChangedReceiver extends BroadcastReceiver </code></pre> <p>This is how I get the paired devices:</p> <pre><code>private void getPairedDevices(){ Set&lt;BluetoothDevice&gt; pairedDevices = mBluetoothAdapte...
In my Broadcast Receiver, I've retrieved a list of bonded bluetooth devices. [CODE] This is how I get the paired devices: [CODE] I call this code: [CODE] My UUID is [CODE] However, I came never able to get a connection to the devices? I'm simply trying to connect to a bluetooth speaker programmatically once I turn on B...
java|android|android-studio|bluetooth|broadcastreceiver
0
2015-03-02T03:00:40.723Z
2,015
3
3
0
1,847
1
348
76
5
4
true
false
false
false
false
false
zero
28,802,070
Webview javascript not working
<p>I am trying to put user login after page successfully load,i am using javascript like</p> <pre><code> webView.loadUrl("javascript:document.getElementById(\"myText\").value = \"Johnny Bravo\";" ); } </code></pre> <p>but can't seem any changes I already tested javascript working if I using just</p> <pre><cod...
I am trying to put user login after page successfully load,i am using javascript like [CODE] but can't seem any changes I already tested javascript working if I using just [CODE] I am really stucked can't understand what is wrong with android...
javascript|android|webview
0
2015-03-02T03:01:39.277Z
2,015
3
3
0
267
1
245
30
3
2
true
false
false
false
false
false
zero
28,802,093
starting a new activity that uses asynctask
<p>My app crashes when I try to start a new <code>Activity</code> that will use <code>AsyncTask</code>,my <code>LoginActivity</code>. It works fine when I start any of my other activities, which do not use <code>AsyncTask</code>. This is my <code>MainActivity</code>:</p> <pre><code>public class MainActivity extends Ac...
My app crashes when I try to start a new Activity that will use AsyncTask ,my LoginActivity . It works fine when I start any of my other activities, which do not use AsyncTask . This is my MainActivity : [CODE] Here is the code for my LoginActivity: [CODE]
android|android-intent|android-activity|android-asynctask
1
2015-03-02T03:04:06.403Z
2,015
3
3
0
67
1
256
43
4
2
true
false
false
false
false
false
low
28,802,112
java.lang.NullPointerException: storage == null
<p>The previous bug was "Your content must have a listview whose id attribute is "Android.R.id.list" And I did some googling and then it turned out to be this</p> <pre><code>Caused by: java.lang.NullPointerException: storage == null at java.util.Arrays$ArrayList.&lt;init&gt;(Arrays.java:38) at java.util.Arrays.asList(...
The previous bug was "Your content must have a listview whose id attribute is "Android.R.id.list" And I did some googling and then it turned out to be this [CODE] These are the code in CustomListActivity. [CODE] This is the code in mainActivity [CODE] And this is activity_main.xml [CODE] And this is listview.xml [CODE]
java|android
1
2015-03-02T03:06:59.390Z
2,015
3
3
0
3,248
2
320
47
2
5
true
false
true
false
false
false
low
28,802,115
I am trying to test android deep link urls through adb to launch my app
<p>When I type the command in adb:</p> <pre><code>./adb shell am start -W -a android.intent.action.VIEW -d "example:gizmos" com.myapp </code></pre> <p>I get this error:</p> <pre><code>Starting: Intent { act=android.intent.action.VIEW dat=example://gizmos pkg=com.myapp } Error: Activity not started, unable to resolve...
When I type the command in adb: [CODE] I get this error: [CODE] But when I type the command in adb: [CODE] Everything works fine and I get the message and I can see the activity launch on the phone: [CODE] My question is why do I need to get full path of my activity and not just package name? Because when the external ...
android|android-manifest|adb|deep-linking
104
2015-03-02T03:07:26.600Z
2,015
3
3
0
132,768
15
440
71
4
5
true
false
true
true
true
false
high
28,802,189
Convert bitmap to Base64 using Base64InputStream
<p>I'm working on an Android app that will send a Base64 encoded image to a backend. Since some images are large (and I've been getting Out of Memory errors because of this) I want to use the <code>Base64InputStream</code> to encode the images.</p> <p>I currently have the following:</p> <pre><code>import org.apache.c...
I'm working on an Android app that will send a Base64 encoded image to a backend. Since some images are large (and I've been getting Out of Memory errors because of this) I want to use the Base64InputStream to encode the images. I currently have the following: [CODE] ... [CODE] However this isn't working. I'm always ge...
android|bitmap|base64|android-bitmap
1
2015-03-02T03:18:50.827Z
2,015
3
3
0
1,510
3
447
48
4
2
true
false
false
false
false
false
low
28,802,237
ANDROID: How to put an image on the bottom third of a button
<p>I am trying to make a small game that has different levels. For each level, if you beat it you will be awarded a number of stars. How should I display these stars at the bottom on the level?</p> <p>If the level has not been completed, no stars would appear, but if the level was completed I want to add an image (one...
I am trying to make a small game that has different levels. For each level, if you beat it you will be awarded a number of stars. How should I display these stars at the bottom on the level? If the level has not been completed, no stars would appear, but if the level was completed I want to add an image (one with one s...
java|android|image|button
0
2015-03-02T03:25:17.910Z
2,015
3
3
0
65
3
416
60
4
0
false
false
false
false
false
false
zero
28,802,250
Error with gradle using crosswalk on phonegap + ionic
<p>After install crosswalk with ionic i get this gradle error when i try to build android:</p> <p><img src="https://i.stack.imgur.com/EX9JH.jpg" alt="enter image description here" /></p> <p>Didn't found any solution about this, if i create a ionic proyect without crosswalk the build work perfect.</p> <p><code>ionic inf...
After install crosswalk with ionic i get this gradle error when i try to build android: Didn't found any solution about this, if i create a ionic proyect without crosswalk the build work perfect. ionic info here: OS: Windows 8.1 Node Version: v0.12.0 Cordova CLI: 4.2.0 Ionic Version: 1.0.0-beta.14 Ionic CLI Version: 1....
cordova|ionic-framework|android-gradle-plugin|crosswalk-runtime
-1
2015-03-02T03:27:57.513Z
2,015
3
3
0
817
1
486
53
4
1
true
false
false
false
false
true
negative
28,802,258
Android Studio - Exception locking surface cannot be caught
<p>Hi I made a game in Android Studio. Occasionally when I close and restart the application on the emulator I get the following spammed into logcat:</p> <pre><code>Exception locking surface java.lang.IllegalStateException: Surface was already locked </code></pre> <p>I tried surrounding <code>canvas = this.surfaceHo...
Hi I made a game in Android Studio. Occasionally when I close and restart the application on the emulator I get the following spammed into logcat: [CODE] I tried surrounding canvas = this.surfaceHolder.lockCanvas(); with a try-catch block but the exception is not being caught. is there a way I could check if the canvas...
java|android|exception|canvas|android-studio
4
2015-03-02T03:29:23.043Z
2,015
3
3
0
2,569
1
412
59
5
2
true
false
false
false
false
false
low
28,802,263
How to send data from Android to Arduino using Bluetooth?
<p>I'm a beginner and I'm developing an android app that will send data to the Arduino using the Bluetooth module. It will light an LED in the Arduino if the data sent from Android is recognized. I already have the code but it is not functioning when I'm integrating it. Please help me.</p>
I'm a beginner and I'm developing an android app that will send data to the Arduino using the Bluetooth module. It will light an LED in the Arduino if the data sent from Android is recognized. I already have the code but it is not functioning when I'm integrating it. Please help me.
android|bluetooth|arduino
0
2015-03-02T03:29:48.220Z
2,015
3
3
0
187
1
283
57
3
0
false
false
false
false
false
false
zero
28,802,272
Duplicate files during packaging of an APK in Android Studio?
<p>I am trying to use the libraries from Twilio to send SMS but I am having issues importing them to my project. I am following this <a href="https://www.twilio.com/docs/java/install" rel="nofollow noreferrer">tutorial</a> and they say to create <code>pom.xml</code> and put the following.</p> <pre><code>&lt;dependency...
I am trying to use the libraries from Twilio to send SMS but I am having issues importing them to my project. I am following this tutorial and they say to create pom.xml and put the following. [CODE] I found this question so I followed the answer and converted the dependency to the following and added it to build.gradl...
android|maven|twilio
0
2015-03-02T03:30:38.593Z
2,015
3
3
0
454
1
756
61
3
4
true
false
false
false
false
false
zero
28,802,276
How to stop camera flash when triggering autofocus?
<p>In my camera app, I'm triggering an autofocus when the user taps the screen, using this code:</p> <pre><code>mCamera.autoFocus(null); </code></pre> <p>I'm also allowing the user to set the camera flash mode in an options screen. The problem is that when triggering an autofocus the camera flash sometimes triggers o...
In my camera app, I'm triggering an autofocus when the user taps the screen, using this code: [CODE] I'm also allowing the user to set the camera flash mode in an options screen. The problem is that when triggering an autofocus the camera flash sometimes triggers on some phones, and users are complaining about this. On...
android|android-camera|camera-api
11
2015-03-02T03:30:54.713Z
2,015
3
3
0
686
0
654
51
3
1
true
true
false
false
true
false
medium
28,802,280
Android app to app communication
<p>Just a quick question which i have been trying to search up on google and well came with results that do not fully satisfy what i am looking for. What I want to develop are two apps one that essentially only i can see and work with, so the main app and then another one on the client side. The client app will only se...
Just a quick question which i have been trying to search up on google and well came with results that do not fully satisfy what i am looking for. What I want to develop are two apps one that essentially only i can see and work with, so the main app and then another one on the client side. The client app will only see w...
android
2
2015-03-02T03:31:15.460Z
2,015
3
3
0
1,012
1
916
32
1
0
false
false
false
false
false
false
low
28,802,310
Camera App - Android
<p>I'm trying to build my camera app as part of my project I followed the documentation , and It takes a photo , store it and it Just Freeze, I need to be able to capture more photos </p> <p>I tried to add <code>camera.startPreview();</code> after <code>mCamera.takePicture(null, null, mPicture);</code> but this cause...
I'm trying to build my camera app as part of my project I followed the documentation , and It takes a photo , store it and it Just Freeze, I need to be able to capture more photos I tried to add camera.startPreview(); after mCamera.takePicture(null, null, mPicture); but this cause an exception this My Activity [CODE] C...
android|android-camera
0
2015-03-02T03:35:10.107Z
2,015
3
3
0
707
1
393
20
2
3
true
false
false
false
false
false
zero
28,802,327
URL Transmission using TI sensor Tag
<p>I have been Trying since past two weeks just make the TI Sensor tag transmit URL to a Android App. Please let me know as to how I can Modify the Sensortag and transmit it.</p>
I have been Trying since past two weeks just make the TI Sensor tag transmit URL to a Android App. Please let me know as to how I can Modify the Sensortag and transmit it.
ibeacon|ibeacon-android|altbeacon
0
2015-03-02T03:36:49.337Z
2,015
3
3
0
154
1
171
36
3
0
false
false
false
false
false
false
zero
28,802,337
Android: Should I pass in serializable or recreate the object from Bundle?
<p>So I have a Calendar obj which implements serializable by default and I want to pass it in a bundle so the value of it is saved on screen rotation.</p> <p>Should I pass it as a serializable or extract the values and recreate the obj for efficiency?</p> <pre><code>bundle.putSerializable("key", calendar); </code></p...
So I have a Calendar obj which implements serializable by default and I want to pass it in a bundle so the value of it is saved on screen rotation. Should I pass it as a serializable or extract the values and recreate the obj for efficiency? [CODE] or [CODE]
java|android|serialization|bundle
2
2015-03-02T03:37:52.730Z
2,015
3
3
0
1,963
4
258
74
4
2
true
false
false
false
false
false
low
28,802,409
How to custom MTP/PTP device icon?
<p>when the device in MTP mode,the device icon is a portable device.</p> <p>when the device in PTP mode,th device icon is a camera type device.</p> <p>Now,I want to change the device icon when the device is pluged into pc.</p> <p>How to custom MTP/DEVICE device icon?</p> <p>Thanks very much</p>
when the device in MTP mode,the device icon is a portable device. when the device in PTP mode,th device icon is a camera type device. Now,I want to change the device icon when the device is pluged into pc. How to custom MTP/DEVICE device icon? Thanks very much
android|window|usb|mtp
1
2015-03-02T03:47:32.027Z
2,015
3
3
0
419
0
260
34
4
0
false
true
false
false
false
false
low
28,802,450
Android: add actions from Menu to own title bar RelativeLayout
<p>In Android project most Activities have ActionBar disabled with style</p> <pre><code>&lt;style name="AppTheme" parent="AppBaseTheme"&gt; &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt; &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt; &lt;/style&gt; </code></pre> <p>and use own title...
In Android project most Activities have ActionBar disabled with style [CODE] and use own title bar that is based on RelativeLayout via include [CODE] There is no intetion of using ActionBar but I would like to find how to implement adding Menu item on title bar like ActionBar does. Currently those actions are defined i...
android|layout|menu|android-relativelayout
0
2015-03-02T03:51:58.587Z
2,015
3
3
0
665
1
759
62
4
3
true
false
false
false
false
false
zero
28,802,526
Android Expansion File to Custom Picasso Downloader - InputStream
<p>I’m working on this code where I populate the city picture using Picasso and getting it from expansion file. Then, I followed the instructions <a href="https://github.com/square/picasso/issues/447" rel="nofollow">here</a> and <a href="http://blog.jpardogo.com/autoscroll-a-listview-with-listviewautoscrollhelper/" rel...
I’m working on this code where I populate the city picture using Picasso and getting it from expansion file. Then, I followed the instructions here and here . No one worked for me. The code bellow and few more details follows: [CODE] I have put breakpoints in the downloader and the main reason is because load is not be...
android|inputstream|picasso|apk-expansion-files
2
2015-03-02T04:00:54.997Z
2,015
3
4
0
1,491
0
653
65
4
2
true
true
false
false
false
false
low
28,802,597
Android: Pull out emoji keyboard on button press
<p>I know that you can specify a short message input type in order to turn the enter key of the keyboard into an emoji button and pressing it will show up the emoji list but what i want to do is open up the emoji list programatically from a button. Is this possible?</p>
I know that you can specify a short message input type in order to turn the enter key of the keyboard into an emoji button and pressing it will show up the emoji list but what i want to do is open up the emoji list programatically from a button. Is this possible?
android
3
2015-03-02T04:11:19.580Z
2,015
3
4
0
1,367
1
263
48
1
0
false
false
false
false
false
false
low
28,802,598
android How to set image chosen to input type='file' in webview
<p>I try to open file or image with on webview. My android version is 4.4.2 so some of the methods does not work anymore. I found linking: <a href="https://github.com/cdibened/filechooser" rel="nofollow">https://github.com/cdibened/filechooser</a> but i don't know how to implement it, may be i need the full project.</...
I try to open file or image with on webview. My android version is 4.4.2 so some of the methods does not work anymore. I found linking: https://github.com/cdibened/filechooser but i don't know how to implement it, may be i need the full project. After working for a day, i plan to detect the button and use intent to ope...
android|webview
1
2015-03-02T04:11:21.813Z
2,015
3
4
0
1,072
1
545
63
2
2
true
false
false
false
false
false
low
28,802,609
when to call notifyDataChanged() on childview in ExpandableListview android
<p>In <code>ExpandableListview</code> I using multiple <code>Group Header</code> with multiple <code>Child view</code></p> <p>The first <code>Group Header</code> text "Shape" that has childview containing <code>imageview</code> and <code>checkbox</code> </p> <p>Initially I get 6 fresh <code>shape names</code> in <cod...
In ExpandableListview I using multiple Group Header with multiple Child view The first Group Header text "Shape" that has childview containing imageview and checkbox Initially I get 6 fresh shape names in childview when I scroll this ,the name repeats (not getting remaining 6 fresh names) ExpandableListviewActivity.jav...
android|expandablelistview
0
2015-03-02T04:14:07.273Z
2,015
3
4
0
88
2
362
75
2
2
true
false
false
false
false
false
zero
28,802,764
Is it possible to make a file created by my app unmodifiable
<p>My app creates files. Now, I save the name of these filename in SharedPreferences, and query the folder to get the files by the names stored in SharedPreferences. If someone goes to the folder and changes the name of a file, then that will be lost, as the new name will not be contained within my SharedPreferences, a...
My app creates files. Now, I save the name of these filename in SharedPreferences, and query the folder to get the files by the names stored in SharedPreferences. If someone goes to the folder and changes the name of a file, then that will be lost, as the new name will not be contained within my SharedPreferences, and ...
java|android
0
2015-03-02T04:34:17.597Z
2,015
3
4
0
75
1
429
60
2
0
false
false
false
false
false
false
zero
28,802,816
how to hide navigation drawer indicator while using appcompat21
<p>I am using the toolbar widget as the ActionBar following Cris Banes Guide. In my use case, i needed to hide the navigation drawer in the activity while swiping to another fragment contained inside ViewPager. Previously, I was using the following properties while using the ActionBar Widget to hide the navigation Dra...
I am using the toolbar widget as the ActionBar following Cris Banes Guide. In my use case, i needed to hide the navigation drawer in the activity while swiping to another fragment contained inside ViewPager. Previously, I was using the following properties while using the ActionBar Widget to hide the navigation Drawer....
android|android-actionbar|navigation-drawer|android-appcompat
12
2015-03-02T04:39:15.627Z
2,015
3
4
0
22,910
3
625
63
4
1
true
false
true
true
true
false
medium
28,802,869
how to get value from xml tag in android
<p>I have made a parser,in that i am getting all the values of that xml tag,But i want to get some values which are inside tag as an argument,I dont know how to get it from tags,The sample xml is as below: <strong>sample.xml</strong></p> <pre><code> &lt;ChargeableRateInfo averageBaseRate="226.7" averageRate="192.69" ...
I have made a parser,in that i am getting all the values of that xml tag,But i want to get some values which are inside tag as an argument,I dont know how to get it from tags,The sample xml is as below: sample.xml [CODE] ,I want to get value of "averageRate","nightlyRateTotal","total",But I have no idea how to get that...
android|xml|xml-parsing
1
2015-03-02T04:44:35.517Z
2,015
3
4
0
4,136
3
355
40
3
2
true
false
true
false
false
false
low
28,802,880
Why Merge sort is used for objects in Android/Java API?
<p>In Java <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#sort(byte[],%20int,%20int)" rel="nofollow noreferrer">Arrays.sort()</a> for primitive type uses quick sort. On the other hand <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#sort(java.lang.Object[])" rel="nofollow...
In Java Arrays.sort() for primitive type uses quick sort. On the other hand Arrays.sort() for objects uses Merge sort. And, same goes for Collection.sort() which also uses Merge sort. Collections sort uses Arrays sort implementation underneath. So, in simple sense i can say that primitives are sorted using quick sort b...
java|android|sorting|quicksort|mergesort
5
2015-03-02T04:46:33.940Z
2,015
3
4
0
1,224
4
1,118
55
5
2
true
false
false
false
false
false
low
28,802,953
app resets after restarting
<p>I am trying to develop a simple app that when I buy an activity it makes the button enabled.</p> <p>My code works fine but the problem is when I exit the app and reopen it, the buttons that was previously enabled after the purchase they become disabled however it doesn't allow to repurchase again.</p> <p>(I need t...
I am trying to develop a simple app that when I buy an activity it makes the button enabled. My code works fine but the problem is when I exit the app and reopen it, the buttons that was previously enabled after the purchase they become disabled however it doesn't allow to repurchase again. (I need to do it on time pur...
android|in-app-purchase
0
2015-03-02T04:56:07.050Z
2,015
3
4
0
91
2
1,399
27
2
3
true
false
false
false
false
false
zero
28,803,031
How to detect the end of the custom scroll view?
<p>I have done the vertical scroll view.what is my requirement is,I just need to detect the end of the scroll view and make the button visible.Can anybody tell me how to detect that the scroll view has reached the bottom?</p> <pre><code>public class LockableVerScroll extends ScrollView { private boolean isScrollable;...
I have done the vertical scroll view.what is my requirement is,I just need to detect the end of the scroll view and make the button visible.Can anybody tell me how to detect that the scroll view has reached the bottom? [CODE] need help..thanks in advance.!!
android|scrollview
0
2015-03-02T05:06:53.840Z
2,015
3
5
0
763
2
257
48
2
1
true
false
false
false
false
false
zero
28,803,042
where to initialize the ID from GCM?
<p>I use GCM in my project.Where do I get an ID, so it is always available at all times? Here is my code:</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (!CloudMessaging.checkPlaySe...
I use GCM in my project.Where do I get an ID, so it is always available at all times? Here is my code: [CODE] "but if I turn aside and then expand Programmes at, then again will get ID." ->Possibly: If I change my orientation, then again I get a new Id.
android|google-cloud-messaging
0
2015-03-02T05:07:52.143Z
2,015
3
5
0
123
2
253
36
2
1
true
false
false
false
false
false
zero
28,803,056
How to reduce Table load time in android
<p>My application has a search product option. I need to search few products out of 150 products(minimum). I have already done that, but when I remove last character in product search option, I have to wait for few seconds(30 seconds), because within that time all the products should be loaded into the table(150 produc...
My application has a search product option. I need to search few products out of 150 products(minimum). I have already done that, but when I remove last character in product search option, I have to wait for few seconds(30 seconds), because within that time all the products should be loaded into the table(150 products)...
java|android|sqlite
0
2015-03-02T05:09:05.083Z
2,015
3
5
0
97
1
520
40
3
1
true
false
false
false
false
false
zero
28,803,116
Android ndk aborting... stop
<p>I am facing the following error in android studio but this app works perfect in eclipse. Help me solve this problem .<img src="https://i.stack.imgur.com/vjghM.png" alt="enter image description here"></p>
I am facing the following error in android studio but this app works perfect in eclipse. Help me solve this problem .
android|android-studio|android-ndk
0
2015-03-02T05:16:03.237Z
2,015
3
5
0
451
0
117
28
3
0
false
true
false
false
false
false
zero
28,803,190
White Icon in my Notification Bar in Nexus 5
<p>Surprising my APP's icon comes up with white color icon in notification bar on my Nexus 5. This is only in Nexus 5. </p> <p><img src="https://i.stack.imgur.com/cqJSj.png" alt="enter image description here"></p> <p>There is a question already about this the answer shows I need have: target 20. Which I have tried al...
Surprising my APP's icon comes up with white color icon in notification bar on my Nexus 5. This is only in Nexus 5. There is a question already about this the answer shows I need have: target 20. Which I have tried already: Like below no difference. [CODE] Can somebody help me fix this? Let me know! Thanks!
android
2
2015-03-02T05:26:53.067Z
2,015
3
5
0
2,189
1
308
44
1
1
true
false
false
false
false
false
low
28,803,319
Android : Control Smooth scroll over recycler view
<p>I am using Recyclerview with CardView. I am aware how to control speed on list view. But not for Recyclerview.</p> <p>I searched a lot in found class name <a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller.html" rel="noreferrer">SmoothScroll</a>. How to use that? ...
I am using Recyclerview with CardView. I am aware how to control speed on list view. But not for Recyclerview. I searched a lot in found class name SmoothScroll . How to use that? I have no Idea! Right now Recyclerview by default scroll is fast. UPDATE: I Summarized Gil Answer with this
android|android-5.0-lollipop|android-support-library|android-recyclerview
54
2015-03-02T05:40:03.443Z
2,015
3
5
0
72,271
4
287
50
4
0
false
false
true
true
true
false
high
28,803,463
How to make chart slide along X-axis in achartEngine by not showing the graph outside y axis
<p>I am working on the aChartEngine and plotting a bar chart. The chart i have been able to plot successfully but as i need to plot the values on the X-axis dynaimcally so i made the graph scrollable on the x-axis but when I am scrolling the chart on the X-axis, The bar chart are crossing the Y-axis and some part are v...
I am working on the aChartEngine and plotting a bar chart. The chart i have been able to plot successfully but as i need to plot the values on the X-axis dynaimcally so i made the graph scrollable on the x-axis but when I am scrolling the chart on the X-axis, The bar chart are crossing the Y-axis and some part are visi...
android|achartengine
1
2015-03-02T05:53:04.087Z
2,015
3
5
0
272
0
699
92
2
1
true
true
false
false
false
false
low
28,803,471
Sending emoticons in android chating application through xmpp
<p>I want to send the emoticon in my chatting application which is an android application and use's the XMPP server for sending and receiving the message. So any one can just help hoe to send the emoticon..? </p>
I want to send the emoticon in my chatting application which is an android application and use's the XMPP server for sending and receiving the message. So any one can just help hoe to send the emoticon..?
android|android-layout|android-activity|xmpp
1
2015-03-02T05:53:50.520Z
2,015
3
5
0
243
0
204
61
4
0
false
true
false
false
false
false
low
28,803,488
ListView Not Showing New Data
<ol> <li><p>I recently transferred over my Android Project from Eclipse to Android Studio and changed the API to 21. I realize that I probably should have done this in 2 steps, but I've made lots of code changes since then, and it's too late to turn back the clock.</p></li> <li><p>The Code was transferred by simply cre...
I recently transferred over my Android Project from Eclipse to Android Studio and changed the API to 21. I realize that I probably should have done this in 2 steps, but I've made lots of code changes since then, and it's too late to turn back the clock. The Code was transferred by simply creating a new Android Project ...
android|listview|android-studio|android-arrayadapter
1
2015-03-02T05:55:48.593Z
2,015
3
5
0
127
0
1,144
29
4
0
false
true
false
false
false
false
low
28,803,499
Linux command/tool for getting continuous HID reports from a USB device
<p><code>lsusb -v</code> gives the information of the device descriptor of a USB device. Is there any command/tool which can give us the continuous HID input reports from a USB HID device in Linux?</p>
lsusb -v gives the information of the device descriptor of a USB device. Is there any command/tool which can give us the continuous HID input reports from a USB HID device in Linux?
android|linux-kernel|hid
0
2015-03-02T05:56:13.373Z
2,015
3
5
0
5,204
3
181
71
3
0
false
false
true
false
false
false
zero
28,803,503
Image is does not show in ImageView dynamically from sdcard
<p>In My Code The image is not open in ImageView from sdcard i already checked the permissions in 'manifest.xml'. Same if i try to open it using static name then it will showed by ImageView but not dynamically.</p> <p><strong>Main Activity</strong></p> <pre><code>private OnClickListener OnCapture = new OnClickListen...
In My Code The image is not open in ImageView from sdcard i already checked the permissions in 'manifest.xml'. Same if i try to open it using static name then it will showed by ImageView but not dynamically. Main Activity [CODE] EffectActivity [CODE] } I am trying to open image which i saved in before this activity and...
android
1
2015-03-02T05:56:37.393Z
2,015
3
5
0
227
2
385
59
1
2
true
false
false
false
false
false
low
28,803,511
Cannot Resolve R after update
<p>I just updated Android studio and every java file now has a cannot resolve R error.</p> <p>I have tried rebuilding and cleaning the project nothing has fixed it.</p> <p>I am not sure what code to show you all since I didn't change any since the update... </p>
I just updated Android studio and every java file now has a cannot resolve R error. I have tried rebuilding and cleaning the project nothing has fixed it. I am not sure what code to show you all since I didn't change any since the update...
android|android-layout|android-resources
0
2015-03-02T05:57:30.733Z
2,015
3
5
0
130
2
240
29
3
0
false
false
false
false
false
false
zero
28,803,554
Android SQLITE query exception error?
<p>I want to add sqlite in my application i have created DB and table but the SELECT and INSERT query is not working i Don't know why? Here i have added my code:</p> <pre><code>static Cursor c; SQLiteDatabase db; db=openOrCreateDatabase("weatherregisterDB", Context.MODE_PRIVATE, null); db.execSQL("CREATE TAB...
I want to add sqlite in my application i have created DB and table but the SELECT and INSERT query is not working i Don't know why? Here i have added my code: [CODE] My Error is: [CODE]
android|sqlite
-1
2015-03-02T06:02:29.800Z
2,015
3
6
0
855
4
185
37
2
2
true
false
false
false
false
true
negative
28,803,565
Android Studio 1.1.0 does not get references of aar file build from 1.0.0
<p>I made a module library in android studio 1.0.0. From that I took the .aar file &amp; used it to other project. But after updating my android studio to 1.1.0 when I import it, I does not get any reference from it.</p> <p>Doing some research I found that it is for gradle build version in build.gradle</p> <pre><code...
I made a module library in android studio 1.0.0. From that I took the .aar file & used it to other project. But after updating my android studio to 1.1.0 when I import it, I does not get any reference from it. Doing some research I found that it is for gradle build version in build.gradle [CODE] If downgrade it to 1.0....
android|android-studio|android-gradle-plugin
2
2015-03-02T06:03:40.540Z
2,015
3
6
0
1,852
1
455
73
3
1
true
false
false
false
false
false
low
28,803,652
How to display child items of its respective group item in another listview
<p>I want to display the child items of its respective group item available in expandable listview into seperate listview.</p> <p>I have done the following,</p> <pre><code>package com.example.demo_data1; import java.util.ArrayList; import android.annotation.SuppressLint; import android.app.Activity; import android....
I want to display the child items of its respective group item available in expandable listview into seperate listview. I have done the following, [CODE] Now here in the above code the child items are getting displayed below the group item in same listview instead i want to display the child items in different listview...
android|android-listview|expandablelistview
0
2015-03-02T06:11:54.777Z
2,015
3
6
0
764
2
444
75
3
1
true
false
false
false
false
false
zero
28,803,678
How to make a function wait for parse.com's saveInBackground result? (in android)
<p>I have a code that saves data into parse.com, problem is, it doesnt wait for <code>saveInBackground</code> to finish, so it always return <code>false</code> (meaning no errors) even there are errors found. Please help. thanks</p> <pre><code> Boolean result; public boolean insertToParseAndDB(String payType, int ...
I have a code that saves data into parse.com, problem is, it doesnt wait for saveInBackground to finish, so it always return false (meaning no errors) even there are errors found. Please help. thanks [CODE]
android|eclipse|parse-platform
1
2015-03-02T06:13:54.907Z
2,015
3
6
0
780
1
206
81
3
1
true
false
false
false
false
false
low
28,803,738
Connection reset by peer in PHP Socket Server
<p>I am trying write a PHP Socket Server for messenger. This is my PHP code:</p> <pre><code>if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) { echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; } if (socket_bind($sock, $address, $port) === false) { echo...
I am trying write a PHP Socket Server for messenger. This is my PHP code: [CODE] When I connected via Terminal it works great. But when tried via Android connection refused. And shows me error: socket_read() failed: reason: Connection reset by peer . This is my Android code: [CODE] What I must to do to solve this probl...
php|android|sockets|server
1
2015-03-02T06:20:12.590Z
2,015
3
6
0
674
0
334
45
4
2
true
true
false
false
false
false
low
28,803,762
Getting X and Y Co-ordinates in rotation animation in Android
<pre><code> Is there any better way to get x and y co-ordinates of a view if the view is set to animate for a few seconds in a clockwise direction. @Override public void onAnimationStart(Animation animation) { // TODO Auto-generated method stub Log.d("Anim", "Anim starte...
[CODE] Iam using below code to get X,Y co-ordinates. The requirement is to rotate a view in circular fashion and listener to capture the motion event to get XY coordinates along the animation path.
android|android-animation|android-canvas
0
2015-03-02T06:23:25.800Z
2,015
3
6
0
130
1
197
61
3
1
true
false
false
false
false
false
zero
28,803,804
How to use ORMan library in android?
<p>I want to use you ORMan library in android for my app. I googled a lot but was unable to get proper tutorials for this.</p> <p>I just need some useful links which can give my detailed idea of ORMan.</p> <blockquote> <p>Can anybody please provide me some helpful links? which can take me to integrate ORMan in my...
I want to use you ORMan library in android for my app. I googled a lot but was unable to get proper tutorials for this. I just need some useful links which can give my detailed idea of ORMan. Can anybody please provide me some helpful links? which can take me to integrate ORMan in my android app.
android|database|orm
0
2015-03-02T06:26:04.127Z
2,015
3
6
0
77
0
297
36
3
0
false
true
false
false
false
false
zero
28,803,823
How to make layout for 8 inch tablet
<p>Hello i am making an app in android which need to target 8 inch tablet. I can use weight sum to arrange my layout in proportion but in some layouts i have a button over imageview(in Relativelayout). Now when imageview expands the layout gets distorted. So please suggest me a way to target 8 inch tablet. Reading all ...
Hello i am making an app in android which need to target 8 inch tablet. I can use weight sum to arrange my layout in proportion but in some layouts i have a button over imageview(in Relativelayout). Now when imageview expands the layout gets distorted. So please suggest me a way to target 8 inch tablet. Reading all oth...
android|layout
0
2015-03-02T06:27:35.683Z
2,015
3
6
0
1,881
2
477
36
2
0
false
false
false
false
false
false
zero
28,803,867
Cannot play music using MusicService in Fragment
<p>I have a fragment that gives me the listView of all songs that that I have stored on my phone. When I click on a particular song in my list, I should be able to play it using a MusicService.</p> <p>This fragment (menu2_Fragment) is initialized in an ActionBarActivity when a particular drawer item is selected. See f...
I have a fragment that gives me the listView of all songs that that I have stored on my phone. When I click on a particular song in my list, I should be able to play it using a MusicService. This fragment (menu2_Fragment) is initialized in an ActionBarActivity when a particular drawer item is selected. See following co...
android-activity|android-fragments|android-listview|illegalstateexception|mediacontroller
1
2015-03-02T06:31:36.857Z
2,015
3
6
0
841
1
675
48
5
3
true
false
false
false
false
false
low
28,803,878
Know default keyboard on android
<p>I want to know the default keyboard chosen by the user in Android. I know I can access the list of enabled input methods using the <code>InputMethodManager</code>, but I want to know which one is the user currently using. </p> <p>So far, I've tried to get the current input method subtype:</p> <pre><code>InputMeth...
I want to know the default keyboard chosen by the user in Android. I know I can access the list of enabled input methods using the InputMethodManager , but I want to know which one is the user currently using. So far, I've tried to get the current input method subtype: [CODE] But this object only seems to give me the L...
java|android|keyboard
4
2015-03-02T06:32:55.310Z
2,015
3
6
0
2,652
1
964
32
3
2
true
false
true
false
false
false
low
28,803,898
Android app communicate peer-to-peer using wifi-direct
<p>I would like to do an Android app (not for an assignment. It is a community event and I volunteered to make this app) that can send messages to peers using wifi-direct. </p> <p>Basically, each phone running the app acts as a jeopardy buzzer. When a person presses the "answer" button, it disables the buttons on othe...
I would like to do an Android app (not for an assignment. It is a community event and I volunteered to make this app) that can send messages to peers using wifi-direct. Basically, each phone running the app acts as a jeopardy buzzer. When a person presses the "answer" button, it disables the buttons on other people's p...
android|wifi-direct
0
2015-03-02T06:34:05.080Z
2,015
3
6
0
440
0
968
54
2
0
false
true
false
false
false
false
zero
28,803,908
Support v7 ActionBarActivity, OnCreateOptionsMenu() called after each call to SupportInvalidateOptionsMenu()
<p>In my <code>Activity</code> which is a Support v7 <code>ActionBarActivity</code>, I have menu and a navigation drawer.</p> <p>When ever the navigation drawer is open I want to hide the menu items. I hide them in the <code>onPrepareOptionsMenu()</code>.</p> <p>As stated in the documentation from android, in order t...
In my Activity which is a Support v7 ActionBarActivity , I have menu and a navigation drawer. When ever the navigation drawer is open I want to hide the menu items. I hide them in the onPrepareOptionsMenu() . As stated in the documentation from android, in order to trigger an onPrepareOptionsMenu() you need to call sup...
android|android-actionbar|android-lifecycle|android-menu|android-optionsmenu
2
2015-03-02T06:34:54.687Z
2,015
3
6
0
1,812
1
622
108
5
0
false
false
false
false
false
false
low
28,803,956
Is there any way to post multiple image on google plus using ACTION_SEND
<p>I am working on an Android App in which I am fetching images from Url. I have to share more than one image on Google+. One image is working fine. Please suggest. I am using following following peace of code.</p> <pre><code> Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent....
I am working on an Android App in which I am fetching images from Url. I have to share more than one image on Google+. One image is working fine. Please suggest. I am using following following peace of code. [CODE]
java|android|android-intent
2
2015-03-02T06:38:37.743Z
2,015
3
6
0
80
1
214
72
3
1
true
false
false
false
false
false
low
28,803,988
Android: Volley Error response 404
<p>Hi I am developing one android application in that I wanna user to login in into the application and during the login I will save all the data from the server by using Shared Preference. I but its just showing the Bad url error and error 404. I don't know what it is. And my code is.</p> <pre><code>public class Main...
Hi I am developing one android application in that I wanna user to login in into the application and during the login I will save all the data from the server by using Shared Preference. I but its just showing the Bad url error and error 404. I don't know what it is. And my code is. [CODE] and the errors are [CODE] Not...
android|android-volley
2
2015-03-02T06:40:31.387Z
2,015
3
6
0
4,502
0
506
34
2
2
true
true
true
false
false
false
low
28,803,990
Cannot add childs to linearLayout
<p>In my app what i want is to dynamically add buttons to a linear layout based on the length of the array.For example if the length of array is 4 then ,4 buttons should be added to the linear layout.I tried doing that but always my app crashes</p> <p>The linearlayout which is at the bottom of the xml is where i wanna...
In my app what i want is to dynamically add buttons to a linear layout based on the length of the array.For example if the length of array is 4 then ,4 buttons should be added to the linear layout.I tried doing that but always my app crashes The linearlayout which is at the bottom of the xml is where i wanna add the bu...
android|xml|android-layout
1
2015-03-02T06:40:46.727Z
2,015
3
6
0
81
2
399
33
3
3
true
false
false
false
false
false
low
28,803,997
SCORE isn't included on post
<p>First of all, this is my first app and I am really having a hard time with it. So please bare with my codes for it might not be pleasing to your eyes :( I am trying to post a score, the top score, on any social networking sites especially facebook. But, on the codes below, it ONLY opens facebook and let a player giv...
First of all, this is my first app and I am really having a hard time with it. So please bare with my codes for it might not be pleasing to your eyes :( I am trying to post a score, the top score, on any social networking sites especially facebook. But, on the codes below, it ONLY opens facebook and let a player give t...
android|facebook
0
2015-03-02T06:41:36.380Z
2,015
3
6
0
26
0
517
28
2
1
true
true
false
false
false
false
zero
28,804,009
Multiple Tabs with Different Fragments
<p>I am pretty new to Android. I am making a new App which makes use of Tabs. Now, I want to display different fragments in the tabs.</p> <p><strong>Please note that my MinSDK is Android KitKat 4.4 so I wont be using deprecated methods</strong></p> <p>My Code is:</p> <p>MainActivity.java</p> <pre><code>public class...
I am pretty new to Android. I am making a new App which makes use of Tabs. Now, I want to display different fragments in the tabs. Please note that my MinSDK is Android KitKat 4.4 so I wont be using deprecated methods My Code is: MainActivity.java [CODE] Fragment_Main.xml [CODE] Fragment_1.xml [CODE] I have changed the...
java|android|android-fragments|android-tabs
0
2015-03-02T06:42:14.297Z
2,015
3
6
0
2,085
1
567
38
4
3
true
false
false
false
false
false
zero
28,804,022
How to Auto Slide Image Gallery?
<p>I Followed the tutorial below to create a image gallery it works great but there is to things wrong with it</p> <pre><code>http://developer.xamarin.com/guides/android/user_interface/gallery/ </code></pre> <ol> <li>I Need the Width to fill parent and height to wrap content</li> </ol> <p>I Tried changing the 150,10...
I Followed the tutorial below to create a image gallery it works great but there is to things wrong with it [CODE] I Need the Width to fill parent and height to wrap content I Tried changing the 150,100 [CODE] but it still cant get it to work anyone have any ideas? How can i auto slide the images i Tried adding a timer...
android|xamarin|xamarin.android|xamarin-studio
0
2015-03-02T06:43:02.730Z
2,015
3
6
0
997
1
388
32
4
2
true
false
false
false
false
false
zero
28,804,048
Fragment: Callback inside onTextChanged null after orientation change despite using onAttach()
<p>My Fragment always throws</p> <pre><code>java.lang.NullPointerException: Attempt to invoke interface method 'void FragmentClass$InputCallbacks.OnTextChanged(java.lang.CharSequence)' on a null object reference </code></pre> <p>because of the line:</p> <pre><code>UserInput.addTextChangedListener(new TextWatcher() {...
My Fragment always throws [CODE] because of the line: [CODE] My other uses of mListener aren't throwing something. I guess it's because of the use of new Textwatcher(){....} but I'm not experienced enough to solve that by myself :-/ The whole class throwing the error: [CODE]
android|android-fragments|nullpointerexception|callback|orientation-changes
2
2015-03-02T06:45:12.867Z
2,015
3
6
0
786
1
275
94
5
3
true
false
false
false
false
false
low
28,804,093
I am trying to load image from server using asynctask in android but images don't get displayed.I don't know why?
<p>My code is :</p> <pre><code>public class MainActivity extends ActionBarActivity { String URL1 = "http://cs619925.vk.me/v619925510/1b82b/0nTm-Pj0ABM.jpg"; String URL2 = "http://8tracks.imgix.net/i/000/955/740/87318.original-8382.jpg?rect=128,0,768,768&amp;q=65&amp;sharp=15&amp;vib=10&amp;fm=jpg&amp;fit=max...
My code is : [CODE] On running it on the emulator, I don't get images displayed. Help me with this one.And I don't even know what the eroor is? if there is any.
android|android-asynctask
1
2015-03-02T06:48:27.053Z
2,015
3
6
0
206
2
160
113
2
1
true
false
false
false
false
false
low
28,804,098
drag image and put it at desired location in screen
<p>I have five linear layouts..I put one image in centerlayout,now if user click on pink layout image should transfer in that layout,i used animation for that,can any one help me with that?</p> <pre><code>public class MainActivity extends Activity implements OnTouchListener,OnDragListener{ private static final String ...
I have five linear layouts..I put one image in centerlayout,now if user click on pink layout image should transfer in that layout,i used animation for that,can any one help me with that? [CODE] } activity_main.xml [CODE] move_up.xml [CODE]
android|animation|uiimageview|android-linearlayout
-1
2015-03-02T06:48:50.007Z
2,015
3
6
0
172
1
239
51
4
3
true
false
false
false
false
true
negative
28,804,100
Improper configured Google play game services in android game
<p>I have used Google play game services in my android game. But when i download it from test account I get "The application is incorrectly configured. Check that the package name and signing certificate match the client ID created in Developer Console. Also, if the application is not yet published, check that the acc...
I have used Google play game services in my android game. But when i download it from test account I get "The application is incorrectly configured. Check that the package name and signing certificate match the client ID created in Developer Console. Also, if the application is not yet published, check that the account...
android|google-play-services|google-oauth
0
2015-03-02T06:49:02.737Z
2,015
3
6
0
77
1
1,054
61
3
0
false
false
false
false
false
false
zero
28,804,159
Force close null pointer error
<p>When I launch a new activity I get this force close error:</p> <pre><code>03-01 22:44:32.752 2992-2992/com.example.mike.beerportfoliomaterial E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.mike.beerportfoliomaterial, PID: 2992 java.lang.RuntimeException: Unable to start activity ComponentIn...
When I launch a new activity I get this force close error: [CODE] My Android manifest looks like this: [CODE] My MainDrawer2 looks like this: ///////////////////////////////////////////////// [CODE]
android|android-manifest|forceclose
0
2015-03-02T06:53:53.757Z
2,015
3
6
0
315
2
198
30
3
3
true
false
false
false
false
false
zero
28,804,245
admob on custome surfaceView not loading ad
<p>Hi guys I am having problems loading admob on a custom surfaceview. From what I can tell I have followed the instructions correctly. But still no luck. Everything seems to work just fine without the surface view. I have seen a lot of advice for this topic and tried them all, setting sview below adview, seting adview...
Hi guys I am having problems loading admob on a custom surfaceview. From what I can tell I have followed the instructions correctly. But still no luck. Everything seems to work just fine without the surface view. I have seen a lot of advice for this topic and tried them all, setting sview below adview, seting adview ba...
java|android|admob|surfaceview
0
2015-03-02T07:00:25.987Z
2,015
3
7
0
130
0
2,338
43
4
1
true
true
false
false
false
false
zero
28,804,274
Android : Run A task in a separate thread outside application scope
<p>I am trying to do specific task in a separate thread in android using Thread Pool executor with the Max thread size of 5 making sure there can be five parallel task would be run at a time. But problem with this approach is When I close my application the thread will also be killed. I want this to run out of applicat...
I am trying to do specific task in a separate thread in android using Thread Pool executor with the Max thread size of 5 making sure there can be five parallel task would be run at a time. But problem with this approach is When I close my application the thread will also be killed. I want this to run out of application...
android|threadpool|remote-process
-1
2015-03-02T07:02:29.060Z
2,015
3
7
0
444
2
764
67
3
0
false
false
false
false
false
true
negative
28,804,295
How to set the TimePickerDialog to current Time and show only the current and future times and not the previous times?
<p>I am a newbie to Android. I am trying to work on the <code>TimePickerDialog</code>. I have implemented it and it is working fine, but the only problem is that it is displaying the previous time. Is there any way to show only the current and future time in the TimepickerDialog? I have done the following coding, pleas...
I am a newbie to Android. I am trying to work on the TimePickerDialog . I have implemented it and it is working fine, but the only problem is that it is displaying the previous time. Is there any way to show only the current and future time in the TimepickerDialog? I have done the following coding, please guide me. [CO...
android|android-timepicker
1
2015-03-02T07:03:47.637Z
2,015
3
7
0
4,131
4
323
118
2
1
true
false
true
false
false
false
low
28,804,307
Android KeyStore Initialization
<p>First off I am new to android Programming, though I am not new to programming itself. What I am, essentially, trying to do is to save my encryption Keys into the Android Keystore. There seems to be a phenomenal lack of such information on GOOGLE, itself. Since there is not much how-to available on the topic I am ass...
First off I am new to android Programming, though I am not new to programming itself. What I am, essentially, trying to do is to save my encryption Keys into the Android Keystore. There seems to be a phenomenal lack of such information on GOOGLE, itself. Since there is not much how-to available on the topic I am assumi...
android|encryption|cryptography|aes|keystore
2
2015-03-02T07:04:37.017Z
2,015
3
7
0
6,129
2
775
31
5
0
false
false
true
false
false
false
low
28,804,353
trying to implement toolbar in android
<p>I am trying to get rid of my actiobars and use toolbar to update my app. I am not making my apps for 5.0 yet, so no other material goodness.</p> <p>From following another post I made my themes.xml look like this:</p> <pre><code>&lt;style name="AppTheme.Base" parent="Theme.AppCompat"&gt; &lt;item name="colorPri...
I am trying to get rid of my actiobars and use toolbar to update my app. I am not making my apps for 5.0 yet, so no other material goodness. From following another post I made my themes.xml look like this: [CODE] The first issue I am having is that "Style" is throwing this error: [CODE]
android|android-styles|android-toolbar
0
2015-03-02T07:08:15.863Z
2,015
3
7
0
71
1
287
38
3
2
true
false
false
false
false
false
zero
28,804,375
Why is getFragmentManager().findFragmentById returning null (causing NullPointerException)
<p>I have two fragments: input on top, and result on bottom. </p> <p>Initially, only the InputFragment shows. When the user clicks the "Calculate" button, the ResultFragment shows. That all works well. </p> <p>The ResultFragment has a "Clear all" button, which I want to clear the InputFragment's fields, and make Res...
I have two fragments: input on top, and result on bottom. Initially, only the InputFragment shows. When the user clicks the "Calculate" button, the ResultFragment shows. That all works well. The ResultFragment has a "Clear all" button, which I want to clear the InputFragment's fields, and make ResultFragment go away (h...
android|android-fragments|nullpointerexception|fragmenttransaction
1
2015-03-02T07:10:09.033Z
2,015
3
7
0
6,538
3
1,014
90
4
1
true
false
true
false
false
false
low
28,804,421
Editing TextViews in a Loop
<p>I am trying to edit TextViews inside a loop. The TextViews can be defined outside the loop, but they must be edited within the loop. I have tried putting my code in a while loop, but the app crashed when I ran it. Here is my code:</p> <pre><code>package com.example.ani.mapactivity; import android.graphics.Color; i...
I am trying to edit TextViews inside a loop. The TextViews can be defined outside the loop, but they must be edited within the loop. I have tried putting my code in a while loop, but the app crashed when I ran it. Here is my code: [CODE] } Here is my XML code: [CODE] Here is how I have been trying to put it in a while ...
java|android|while-loop|textview
-1
2015-03-02T07:13:11.537Z
2,015
3
7
0
69
1
626
27
4
3
true
false
false
false
false
true
negative
28,804,454
Android: Add TextViews in Horizontal ScrollView and Check which texview is in Center?
<p>I need to add TextViews in Horizontal ScrollView and on scroll I have to check which textview is in the middle of the center if three textView are showing on the screen? Note: I have added horizontal scrollView and TextViews.Here is my code.</p> <pre><code>&lt;HorizontalScrollView android:layout_width="fill_par...
I need to add TextViews in Horizontal ScrollView and on scroll I have to check which textview is in the middle of the center if three textView are showing on the screen? Note: I have added horizontal scrollView and TextViews.Here is my code. [CODE]
android|textview|android-scrollview
1
2015-03-02T07:15:40.687Z
2,015
3
7
0
498
2
248
85
3
1
true
false
false
false
false
false
low
28,804,502
Android: How to stop uploading a file to google drive
<p>I know how to upload a file to google drive, using an asynchronous task, able to cancel the async task. But, how to stop the uploading process.</p> <pre><code>insert = service.files().insert(image, image_content); insert.execute(); </code></pre>
I know how to upload a file to google drive, using an asynchronous task, able to cancel the async task. But, how to stop the uploading process. [CODE]
android-activity|google-drive-android-api
0
2015-03-02T07:19:56.230Z
2,015
3
7
0
4,128
1
150
53
2
1
true
false
true
false
false
false
zero
28,804,551
What is ScrimInsetsFrameLayout?
<p>What is <a href="https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/widget/ScrimInsetsFrameLayout.java"><strong>ScrimInsetsFrameLayout</strong></a>?</p> <p>I am working in Navigation Drawer with ToolBar,In most of the tutorial they using <strong>ScrimInsetsFrameLa...
What is ScrimInsetsFrameLayout ? I am working in Navigation Drawer with ToolBar,In most of the tutorial they using ScrimInsetsFrameLayout , For what purpose it use can any one explain breif?
android|navigation-drawer|android-5.0-lollipop|android-toolbar
14
2015-03-02T07:23:56.433Z
2,015
3
7
0
7,847
1
190
31
4
0
false
false
true
false
true
false
medium
28,804,592
Values inside items in string-array xml
<p>Is something like this possible??</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;string-array name="planets_array"&gt; &lt;item value=My &gt;Mercury&lt;/item&gt; &lt;item value=Vs &gt;Venus&lt;/item&gt; &lt;item value=EA &gt;Earth&lt;/item&gt; &lt;item value=Ms &...
Is something like this possible?? [CODE] the listView will show the planets but when the user selects Mars the value I get will be Ms .
android|xml|android-listview
-2
2015-03-02T07:27:22.503Z
2,015
3
7
0
529
1
135
39
3
1
true
false
false
false
false
true
negative
28,804,644
Youtube Data api V3, Getting video dimension
<p>I am working on <a href="https://developers.google.com/youtube/getting_started" rel="nofollow">Youtube Data API</a>. And I am looking for a way where I cn fetch all videos from particular channelId along with its video details like height,width and duration.</p> <p>Now after searching for api docs I found <a href="...
I am working on Youtube Data API . And I am looking for a way where I cn fetch all videos from particular channelId along with its video details like height,width and duration. Now after searching for api docs I found search api to which provides the data from channel id. But the problem is , it only gives the content ...
android|youtube|youtube-data-api|android-youtube-api
2
2015-03-02T07:31:59.677Z
2,015
3
7
0
440
0
704
44
4
1
true
true
false
false
false
false
low
28,804,700
Programmatically setting wallpaper on lock screen for Samsung TouchWiz devices?
<p>I have built an app that changes users wallpaper on a timer. I use the standard WallpaperManager.setWallpaper function, and things work great on AOSP-based devices.</p> <p>However, on some OEM platforms like TouchWiz, it doesn't work for the lock screen (it only sets the launcher wallpaper). Is it possible to fix t...
I have built an app that changes users wallpaper on a timer. I use the standard WallpaperManager.setWallpaper function, and things work great on AOSP-based devices. However, on some OEM platforms like TouchWiz, it doesn't work for the lock screen (it only sets the launcher wallpaper). Is it possible to fix this? I'm wi...
android|lockscreen|android-wallpaper|samsung-touchwiz
2
2015-03-02T07:36:21.767Z
2,015
3
7
0
920
0
400
79
4
0
false
true
false
false
false
false
low
28,804,740
Android updating MediaPlayer SeekBar position from Service class
<p>I made a streaming MediaPlayer which runs on a separate service instead of the MainActivity. For updating the SeekBar position when user seeks the progress I'm using a Broadcast Receiver which tells the service about the position user has seek. After that the service fetches seek position and updates the current p...
I made a streaming MediaPlayer which runs on a separate service instead of the MainActivity. For updating the SeekBar position when user seeks the progress I'm using a Broadcast Receiver which tells the service about the position user has seek. After that the service fetches seek position and updates the current positi...
android|android-service|android-mediaplayer|android-broadcast|android-service-binding
2
2015-03-02T07:39:16.393Z
2,015
3
7
0
1,851
1
645
64
5
2
true
false
false
false
false
false
low
28,804,786
Save chat between two user in openfire server in android xmpp
<p>![enter image description here][1]</p> <p>It is possible to save chat history in openfire server. I have configure an Openfire 3.9.3 and connect mysql database. In mysql database provide a lots of table but in these table we can not find out any chat message table to save my chat between a two users.If any develope...
![enter image description here][1] It is possible to save chat history in openfire server. I have configure an Openfire 3.9.3 and connect mysql database. In mysql database provide a lots of table but in these table we can not find out any chat message table to save my chat between a two users.If any developers know how...
android|xmpp|openfire
1
2015-03-02T07:43:38.017Z
2,015
3
7
0
842
1
522
61
3
1
true
false
false
false
false
false
low
28,804,804
Hint is not showing in Edit text in lower api
<p>EditText is not showing hint with the following XML code, it is working in some devices like mine is API 19, but not showing hint in android 2.3.3</p> <pre><code> &lt;EditText android:id="@+id/street1ET" android:layout_width="match_parent" android:layout_height="30dp" android:layout_...
EditText is not showing hint with the following XML code, it is working in some devices like mine is API 19, but not showing hint in android 2.3.3 [CODE]
android|android-edittext|device
1
2015-03-02T07:45:01.423Z
2,015
3
7
0
712
2
153
45
3
1
true
false
false
false
false
false
low
28,804,839
how to manage multiple notifications from same application
<p>I am new to android. I am working on application which fire notifications. When I have more than one notifications on status bar and I click on second, The first one will be opened. I am able to get Id of only first notification. How to select particular notification Id I click. Here is my code</p> <pre><code> save...
I am new to android. I am working on application which fire notifications. When I have more than one notifications on status bar and I click on second, The first one will be opened. I am able to get Id of only first notification. How to select particular notification Id I click. Here is my code [CODE] AlarmReciever.jav...
android|notifications|alarmmanager
1
2015-03-02T07:47:40.923Z
2,015
3
7
0
833
1
488
58
3
2
true
false
false
false
false
false
low
28,804,846
Viewing score in different activities
<p>I am trying to view high score in 3 different activities. I am using sharedpreference. 1. The game itself, together with the current score. 2. shareIntent - for social media 3. High score List.</p> <p>I am having a problem on viewing the topscore on the 3rd one. I wanted it this way: If the user clicks on a certain...
I am trying to view high score in 3 different activities. I am using sharedpreference. 1. The game itself, together with the current score. 2. shareIntent - for social media 3. High score List. I am having a problem on viewing the topscore on the 3rd one. I wanted it this way: If the user clicks on a certain category, ...
android
-1
2015-03-02T07:48:06.603Z
2,015
3
7
0
88
1
859
37
1
2
true
false
false
false
false
true
negative
28,804,849
I have hardware Virtualization Enabled, Hypervisor switched off, Still shows HAXM - Does not Support Virtualization Error
<p>I have enabled Virtualization from BIOS. I checked the Hyper-V and disabled it and have "hypervisor off" option from cmd prompt after using bcdedit function. ![enter image description here][1] Im still getting the HAXM Error when i run the haxm-android.exe.</p> <p>SecurAble says that my pc supports Hardware Virtua...
I have enabled Virtualization from BIOS. I checked the Hyper-V and disabled it and have "hypervisor off" option from cmd prompt after using bcdedit function. ![enter image description here][1] Im still getting the HAXM Error when i run the haxm-android.exe. SecurAble says that my pc supports Hardware Virtualization . !...
android|virtualization|intel|hyper-v|haxm
-1
2015-03-02T07:48:21.943Z
2,015
3
7
0
362
1
566
121
5
0
false
false
false
false
false
true
negative
28,804,863
Android Studio - how to install Android platform tools on Ubuntu 14.04 64 bit?
<p>I am trying to install Android Studio on a 64 bit version of Ubuntu 14.04. However my installation stops at this point: </p> <p><img src="https://i.stack.imgur.com/bL2q0.png" alt="enter image description here"></p> <p>How can this be resolved ? Any suggestions or a solution itself would be most appreciated. Thank ...
I am trying to install Android Studio on a 64 bit version of Ubuntu 14.04. However my installation stops at this point: How can this be resolved ? Any suggestions or a solution itself would be most appreciated. Thank you very much for your time. Edit: Am I on the right track when I assume that this has something to do ...
android-studio|64-bit|ubuntu-14.04
8
2015-03-02T07:49:27.380Z
2,015
3
7
0
12,559
4
611
78
3
1
true
false
true
true
false
false
medium
28,804,894
What Internet protocol is used by google play store in backgroud for searching and downloading?
<p>I know this is not programming question but i really want to know what internet protocol is used by google play store, as of know i am thinking they are using HTTPS but i am not sure about whether they used it for searching or downloading, i searched but not find satisfactory answer.</p> <p>I also how i will protoc...
I know this is not programming question but i really want to know what internet protocol is used by google play store, as of know i am thinking they are using HTTPS but i am not sure about whether they used it for searching or downloading, i searched but not find satisfactory answer. I also how i will protocol used by ...
android|networking|android-networking
-1
2015-03-02T07:52:13.373Z
2,015
3
7
0
2,229
1
592
95
3
0
false
false
false
false
false
true
negative
28,804,907
How to show the same layout in android wear and mobile at same time
<p>I have a layout of some textviews.The textviews are changing depend on a timer.</p> <p>I need to show this layout in mobile and android wear at same time.Please suggest me a solution</p>
I have a layout of some textviews.The textviews are changing depend on a timer. I need to show this layout in mobile and android wear at same time.Please suggest me a solution
android|wear-os|android-wear-data-api|android-wear-notification
0
2015-03-02T07:52:47.820Z
2,015
3
7
0
98
1
175
67
4
0
false
false
false
false
false
false
zero
28,804,909
Can't find view in android
<p>I am trying to develop a filter using following ways. I can not find red highlighted <strong>View in android</strong>. How can I achieve this.</p> <p><img src="https://i.stack.imgur.com/yIhqh.png" alt="enter image description here"> </p> <p>Any help would be appreciated.</p>
I am trying to develop a filter using following ways. I can not find red highlighted View in android . How can I achieve this. Any help would be appreciated.
android
-5
2015-03-02T07:52:54.913Z
2,015
3
7
0
178
3
157
26
1
0
false
false
false
false
false
true
negative
28,804,932
How to make HorizontalScrollView RIGHT to LEFT Scroll android
<p>By default <code>HorizontalScrollView</code> scrolls from Left to Right but I want to scroll from Right to Left.</p> <p>How to do this? Any help will be appreciated.</p>
By default HorizontalScrollView scrolls from Left to Right but I want to scroll from Right to Left. How to do this? Any help will be appreciated.
java|android|android-layout|android-activity
11
2015-03-02T07:55:14.093Z
2,015
3
7
0
12,358
3
145
61
4
0
false
false
true
true
true
false
medium
28,804,939
Custom list view is not replacing the view
<p>I am showing an image and a text in a <code>listView</code> using custom <code>Adapter</code>.On clicking a button i want to replace the image with next image.But it is just getting added at the end of the list instead of replacing.Below is my code snippet:</p> <p>Method to fetch image from sqlite</p> <pre><code> ...
I am showing an image and a text in a listView using custom Adapter .On clicking a button i want to replace the image with next image.But it is just getting added at the end of the list instead of replacing.Below is my code snippet: Method to fetch image from sqlite [CODE] setting in custom view [CODE] } What should I ...
android|android-listview|android-custom-view|baseadapter
1
2015-03-02T07:55:55.550Z
2,015
3
7
0
52
1
444
42
4
2
true
false
false
false
false
false
low
28,805,080
Eclipse does not seem to recognize Native Android code
<p>I am trying to learn about native Android, using NDK.</p> <p>I find some sample projects in NDK folder and on the Internet. After much configuration, they are runnable.</p> <p>But, my problem is: when I open a <code>.c</code> or <code>.h</code> file in JNI folder with Eclipse (just want to see what it is), Eclipse...
I am trying to learn about native Android, using NDK. I find some sample projects in NDK folder and on the Internet. After much configuration, they are runnable. But, my problem is: when I open a .c or .h file in JNI folder with Eclipse (just want to see what it is), Eclipse shows many error in this file. For example, ...
eclipse|android-ndk|native-code
0
2015-03-02T08:06:28.633Z
2,015
3
8
0
42
1
523
54
3
0
false
false
false
false
false
false
zero
28,805,162
Android build application: gradlew does not exist
<p>This is the first Android application I am running. I am reading up the tutorial and following it (as much as I can).</p> <p>I would like to get myself comfortable with the CLI instead. </p> <p>I created a project using "android" executable. Although to build the application it says to run the "gradlew" executable...
This is the first Android application I am running. I am reading up the tutorial and following it (as much as I can). I would like to get myself comfortable with the CLI instead. I created a project using "android" executable. Although to build the application it says to run the "gradlew" executable which is supposed t...
android|build
3
2015-03-02T08:12:23.447Z
2,015
3
8
0
635
2
427
49
2
1
true
false
false
false
false
false
low