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,573,805 | Android thread test does not work | <p>Hi I'm beginner with android development and I have a problem with my following test code: </p>
<p>Main Activity:</p>
<pre><code>package com.test.thread;
import java.util.concurrent.ExecutionException;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
... | Hi I'm beginner with android development and I have a problem with my following test code: Main Activity: [CODE] TestCLas.java: [CODE] I want to manage my activity 's viewer with threads. I launch a thread in order to modify TextView 's text (each sec) when the start button is clicked and stop it when stop button is cl... | java|android|multithreading | 0 | 2015-02-18T00:26:11.610Z | 2,015 | 2 | 0 | 2 | 70 | 1 | 410 | 33 | 3 | 2 | true | false | false | false | false | false | zero |
28,573,949 | Error inflating class fragment InflateException Binary XML file | <p>I am designing my first application using Material Design and the NavigationDrawer Layout etc, and I am running into an issue. The app is very simple (it just displays text) and is based off the template available in Android Studio. </p>
<p>When trying to launch my application I get the following Logcat error:</p>
... | I am designing my first application using Material Design and the NavigationDrawer Layout etc, and I am running into an issue. The app is very simple (it just displays text) and is based off the template available in Android Studio. When trying to launch my application I get the following Logcat error: [CODE] My Main A... | java|android|xml|material-design | 6 | 2015-02-18T00:40:40.830Z | 2,015 | 2 | 0 | 2 | 7,163 | 4 | 561 | 63 | 4 | 6 | true | false | true | false | false | false | medium |
28,573,953 | Singleton Activity Class getInstance() Returns Null | <p>I have an activity like:</p>
<pre><code>public class ListActivity extends ActionBarActivity {
private static ListActivity instance;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list);
Log.i("... | I have an activity like: [CODE] When the app starts, LogCat will report: Never mind: [CODE] But later on in my other activity, [CODE] will produce a null pointer exception for trying to access updateList() on a "null object reference". I also threw in a Log.i() right before the 2nd line to confirm that it's indeed a nu... | java|android | 1 | 2015-02-18T00:40:55.033Z | 2,015 | 2 | 0 | 2 | 1,718 | 2 | 435 | 51 | 2 | 4 | true | false | false | false | false | false | low |
28,574,000 | Fill a ListView with radio button groups with an onClick listener in the Adapter | <p>I fill my ListView with my Adapter but my last group of radio buttons are not working correctly.</p>
<p>When I select the options of the first three elements, it works well. The last radio button does not work when pressed.</p>
<p>This is my adapter</p>
<pre><code>public class ScoreAdapter extends BaseAdapter {
p... | I fill my ListView with my Adapter but my last group of radio buttons are not working correctly. When I select the options of the first three elements, it works well. The last radio button does not work when pressed. This is my adapter [CODE] } This is my template item [CODE] | android|android-listview|android-adapter | 1 | 2015-02-18T00:45:44.050Z | 2,015 | 2 | 0 | 2 | 1,328 | 2 | 276 | 80 | 3 | 2 | true | false | false | false | false | false | low |
28,574,020 | AndroidStudio cannot resolve symbol for anything | <p>I have an android project that I've been working on with no issues for a while. Now all of the sudden when I open it, every file is showing false errors. I get "cannot resolve symbol" for everything.</p>
<p>It still builds and runs correctly, but it's very annoying to have the red lines on every line of code. I've ... | I have an android project that I've been working on with no issues for a while. Now all of the sudden when I open it, every file is showing false errors. I get "cannot resolve symbol" for everything. It still builds and runs correctly, but it's very annoying to have the red lines on every line of code. I've tried delet... | android|android-studio | 3 | 2015-02-18T00:47:35.960Z | 2,015 | 2 | 0 | 2 | 1,365 | 1 | 481 | 48 | 2 | 0 | false | false | false | false | false | false | low |
28,574,059 | Finishing this JSON reading Android | <p>Hello guys i'm starting android development and currently i'm testing some basic search the UI is like this:</p>
<p>1 EditText: where the user writes something that wants to search example Android
2 Button: when click this button i want to do all the process of searching for that particular topic using the google s... | Hello guys i'm starting android development and currently i'm testing some basic search the UI is like this: 1 EditText: where the user writes something that wants to search example Android 2 Button: when click this button i want to do all the process of searching for that particular topic using the google search api h... | android|json | 1 | 2015-02-18T00:51:25.837Z | 2,015 | 2 | 0 | 2 | 42 | 0 | 649 | 35 | 2 | 0 | false | true | false | false | false | false | low |
28,574,085 | Parsing data from JSON | <p>Ok so I got here is my sample JSON:</p>
<pre><code>{
"messages":[
{
"receiver":"60:51:2c:93:6e:02",
"sender":"60:51:2c:93:6e:01",
"location":[
{
"longitude":"26.89478",
"latitude":"122.779953"
}
]
}
]
,"isSuccess":"true"
}
<... | Ok so I got here is my sample JSON: [CODE] How can I retrieve every data inside it? This is only what I got: [CODE] | java|android|arrays|json | -1 | 2015-02-18T00:53:56.330Z | 2,015 | 2 | 0 | 2 | 64 | 2 | 115 | 22 | 4 | 2 | true | false | false | false | false | true | negative |
28,574,095 | Get location name after user tap on that : Google Indoor Map API | <p>I m trying to get Google indoor maps to work inside my android application.</p>
<p>When I look at a building in Google maps with indoor information available it shows the name of the places in it. </p>
<p>When user click on that specific location then i want to open some dialog or different activity which contains... | I m trying to get Google indoor maps to work inside my android application. When I look at a building in Google maps with indoor information available it shows the name of the places in it. When user click on that specific location then i want to open some dialog or different activity which contains information about t... | android|google-maps|google-maps-markers|indoor-positioning-system|google-indoor-maps | 0 | 2015-02-18T00:54:51.873Z | 2,015 | 2 | 0 | 2 | 739 | 1 | 673 | 64 | 5 | 0 | false | false | false | false | false | false | zero |
28,574,200 | Android, AOA2, USB Isochronous Audio Streaming | <p>Using <code>AOA v2</code> protocol, a android device can output its audio stream to some accessory connected over an <code>USB</code>. But is it possible for the accessory to send over its <code>audio stream</code> to android device so that the android device will act as an <code>USB speaker</code>?</p>
<p>I'm actu... | Using AOA v2 protocol, a android device can output its audio stream to some accessory connected over an USB . But is it possible for the accessory to send over its audio stream to android device so that the android device will act as an USB speaker ? I'm actually planning to write a USB speaker driver using AOA protoco... | android|audio|usb|linux-device-driver|device-driver | 1 | 2015-02-18T01:06:45.080Z | 2,015 | 2 | 1 | 2 | 839 | 1 | 591 | 46 | 5 | 0 | false | false | false | false | false | false | low |
28,574,275 | JSON: Value of type java.lang.String cannot be converted to JSONObject | <p>I'm trying to program an app to send a String to a service. A friend of mine has a service to receive the data.</p>
<p>Logcat shows this error: "org.json.JSONException: Value FIRST of type java.lang.String cannot be converted to JSONObject"</p>
<p>Here is my code:</p>
<blockquote>
<p>Main Activity</p>
</blockqu... | I'm trying to program an app to send a String to a service. A friend of mine has a service to receive the data. Logcat shows this error: "org.json.JSONException: Value FIRST of type java.lang.String cannot be converted to JSONObject" Here is my code: Main Activity [CODE] Service Handler [CODE] I read questions to other... | java|android|json|post | -1 | 2015-02-18T01:16:05.147Z | 2,015 | 2 | 1 | 2 | 1,322 | 1 | 552 | 70 | 4 | 5 | true | false | false | false | false | true | negative |
28,574,354 | Refused to display a frame because it set X-Frame-Options to 'DENY in android webview | <p>When I try to show the google calendar in webview , it show some error:</p>
<pre><code>[INFO:CONSOLE(0)] "Refused to display 'https://accounts.google.com/ServiceLogin?service=cl&passive=1209600&continue=https://www.google.com/calendar/embed?src%3Detlwhk@gmail.com%26ctz%3DAsia/Hong_Kong&followup=https://... | When I try to show the google calendar in webview , it show some error: [CODE] And this is the html code [CODE] And for the android side it is some simple webview code [CODE] How to fix the error? Thanks for helping. | javascript|android|html|webview|android-webview | 8 | 2015-02-18T01:23:14.503Z | 2,015 | 2 | 1 | 2 | 13,672 | 2 | 216 | 85 | 5 | 3 | true | false | true | true | false | false | medium |
28,574,504 | HTC One Sets EditText padding to 0 | <p>As the question states, I'm running into some weird behavior where my left drawables are not given any left padding on an HTC One running Android 4.4.</p>
<p>The layout where I'm seeing this is </p>
<pre><code><LinearLayout>
<include layout="@layout/search_bar" />
<!-- Some Fragment layout i... | As the question states, I'm running into some weird behavior where my left drawables are not given any left padding on an HTC One running Android 4.4. The layout where I'm seeing this is [CODE] Inside search_bar I have a Layout which looks like. [CODE] The SearchBox.SingleSearchBar style looks like (after some massagin... | android|android-layout | 1 | 2015-02-18T01:38:58.600Z | 2,015 | 2 | 1 | 2 | 69 | 1 | 1,040 | 34 | 2 | 3 | true | false | false | false | false | false | low |
28,574,506 | Different width for Navigation Drawer in Tablet and Phone | <p>I was trying to implement material design for one of my project and <a href="http://www.google.com/design/spec/patterns/navigation-drawer.html" rel="nofollow noreferrer">here</a>, the following is mentioned,</p>
<blockquote>
<p>The maximum width of the nav drawer is 5 times the standard
increment (56dp on mobil... | I was trying to implement material design for one of my project and here , the following is mentioned, The maximum width of the nav drawer is 5 times the standard increment (56dp on mobile and 64dp on tablet). So I would like to know how to implement these width for navigation drawer for mobile and tablets. I want to m... | android|android-layout|material-design|tablet|android-screen-support | 3 | 2015-02-18T01:39:15.037Z | 2,015 | 2 | 1 | 2 | 2,368 | 3 | 464 | 57 | 5 | 0 | false | false | false | false | false | false | low |
28,574,525 | AlarmManager Elapsed Real time Not Working? | <p>So I am new to the elapsed realtime alarm, and I tried to make my service run after the phone was turned on, but the service doesn't seem to get run.</p>
<p>Setting Alarm.</p>
<pre><code>Intent sintent=new Intent(getApplicationContext(),alrmsetter.class);
PendingIntent setter= PendingIntent.getService(getA... | So I am new to the elapsed realtime alarm, and I tried to make my service run after the phone was turned on, but the service doesn't seem to get run. Setting Alarm. [CODE] Service [CODE] | android|service|alarmmanager|alarms | 0 | 2015-02-18T01:41:14.200Z | 2,015 | 2 | 1 | 2 | 419 | 1 | 186 | 43 | 4 | 2 | true | false | false | false | false | false | zero |
28,574,538 | Setting Firebase server time in Android App | <p>I have this code in my Android application, creating a new record in Firebase. </p>
<pre><code>Firebase searchRef = myFirebaseRef.child("searches");
Firebase newPostRef = searchRef.push();
Map<String, String> search = new HashMap<String, String>();
search.put("start", start_address);
newPostRef.setValu... | I have this code in my Android application, creating a new record in Firebase. [CODE] How would I go about inserting the ServerValue.TIMESTAMP into this record? | android|firebase | 1 | 2015-02-18T01:41:52.563Z | 2,015 | 2 | 1 | 2 | 782 | 1 | 160 | 43 | 2 | 1 | true | false | false | false | false | false | low |
28,574,569 | Toast message onClick NOT SHOWING (RecycleView) | <p>Im trying show a toast msg when clicked on a item from my RecycleView, Ive tried many examples,
but its not giving me anything. Can somebody give me a different example that i can follow, at the end i wanna set the onClick to show a new fragment. If I can get an example on that, it will be great.
Im using this code... | Im trying show a toast msg when clicked on a item from my RecycleView, Ive tried many examples, but its not giving me anything. Can somebody give me a different example that i can follow, at the end i wanna set the onClick to show a new fragment. If I can get an example on that, it will be great. Im using this code: [C... | android|android-fragments|android-recyclerview|android-toast|android-cardview | 0 | 2015-02-18T01:44:16.463Z | 2,015 | 2 | 1 | 2 | 1,966 | 2 | 494 | 47 | 5 | 1 | true | false | false | false | false | false | zero |
28,574,604 | Android startActivityForResult called twice | <p>So my app, since it has to access a users drive information, starts by prompting the user to choose an account <code>startActivityForResult(mGoogleAccountCredential.newChooseAccountIntent(), CHOOSE_ACCOUNT_REQUEST_CODE);</code> upon getting the result(account name) from the activity my app calls in a separate thread... | So my app, since it has to access a users drive information, starts by prompting the user to choose an account startActivityForResult(mGoogleAccountCredential.newChooseAccountIntent(), CHOOSE_ACCOUNT_REQUEST_CODE); upon getting the result(account name) from the activity my app calls in a separate thread code to check i... | java|android|google-drive-api|google-sheets|android-lifecycle | 0 | 2015-02-18T01:47:41.537Z | 2,015 | 2 | 1 | 2 | 1,250 | 2 | 1,875 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
28,574,640 | Java Regex Pattern for URL list on JSON format | <p>I'm having some trouble finding the correct regex for what I need to match.</p>
<p>The source code looks like this:</p>
<pre><code>\"url240\":\"https:\\\/\\\/domain.com\\\/id123456\\\/files\\\/video.240.mp4?extra=hash\"
,\"url360\":\"https:\\\/\\\/domain.com\\\/id123456\\\/files\\\/video.360.mp4?extra=hash\"
,\"ur... | I'm having some trouble finding the correct regex for what I need to match. The source code looks like this: [CODE] I need to match all urls (can be one, two, three or all four, it depends on the source code provided to the app) and store them on an ArrayList. This is the code I normally use: [CODE] But the pattern I n... | java|android|regex | 0 | 2015-02-18T01:51:47.537Z | 2,015 | 2 | 1 | 2 | 920 | 1 | 405 | 46 | 3 | 3 | true | false | false | false | false | false | zero |
28,574,761 | Show spinner options only after fecthing data from web | <p>How to show spinner options only after fetching it's to-be items from the web?</p>
<p>If the user touches the spinner, I want to first fetch the data from the web, parse it and set as the spinner items. The fetching / parsing works well, but the problem is that the spinner options show up too soon. I want it to onl... | How to show spinner options only after fetching it's to-be items from the web? If the user touches the spinner, I want to first fetch the data from the web, parse it and set as the spinner items. The fetching / parsing works well, but the problem is that the spinner options show up too soon. I want it to only appear af... | android|spinner | 0 | 2015-02-18T02:05:37.127Z | 2,015 | 2 | 2 | 2 | 342 | 2 | 457 | 54 | 2 | 0 | false | false | false | false | false | false | zero |
28,574,767 | JavaFX to Android (com.android.ide.common.internal.LoggedErrorException) | <p>Im on my way to deploy my Javafx application to Android, I followed the tutorial <a href="https://stackoverflow.com/questions/28491131/empty-bin-libs-src-folders-after-creating-android-project-using-javafx-android-t">Empty bin,libs,src folders after creating Android project using Javafx android-tools</a>, I used the... | Im on my way to deploy my Javafx application to Android, I followed the tutorial Empty bin,libs,src folders after creating Android project using Javafx android-tools , I used the Ensemble sample from dalvik-sdk, but after performing assembleDebug, an error was thrown: [CODE] Any idea? | java|android|javafx|javafx-8 | 1 | 2015-02-18T02:05:55.337Z | 2,015 | 2 | 2 | 2 | 164 | 1 | 285 | 72 | 4 | 1 | true | false | false | false | false | false | low |
28,574,845 | How to set masked image to size of bitmap to be masked? | <p>I am creating a jigsaw puzzle game, and I am using mask to create the jigsaw puzzles. Through experimentation I have learned that if the mask bitmap is not the same size as the bitmap to be masked, the result 'can' be something off from the expected shape. The conflict I am running into is that while trying to resiz... | I am creating a jigsaw puzzle game, and I am using mask to create the jigsaw puzzles. Through experimentation I have learned that if the mask bitmap is not the same size as the bitmap to be masked, the result 'can' be something off from the expected shape. The conflict I am running into is that while trying to resize t... | android|bitmap|resize-image | 0 | 2015-02-18T02:13:34.297Z | 2,015 | 2 | 2 | 2 | 555 | 1 | 981 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
28,575,038 | Socket emit fails | <pre><code> socket.on('sign_in', function(idA, idB) {
var idA = idA; //global vars
var idB = idB; //ignore this var
if (!clients[idA]) {
clients[idA] = socket.id;
}
console.log(idA + ' has connected');
io.to(clients[idA]).emit('sign_in', idA + ' has connected'); });
io.emit('sign_in', "user is signed in");
</code><... | [CODE] I am trying to emit the message,"'idA' has connected" to my android client. The problem is that the emitting to a specific client only works once. After it is called once the server stops sending the line "'idA' has connected". I have to reset my server in order to get it to work again, but the problem lingers. ... | java|android|sockets|client-server | 0 | 2015-02-18T02:37:56.090Z | 2,015 | 2 | 2 | 2 | 538 | 1 | 801 | 17 | 4 | 4 | true | false | false | false | false | false | zero |
28,575,041 | Instantiate Google Map Fragment in another activity | <p>I have main activity and one fragment. In that fragment, I have used Google Map. I want to know, how to pass instance of map fragment to main activity with java. Because I want to manipulate that map into main activity. </p>
<p>I have this class in main activity </p>
<pre><code>public static class HomeFragment e... | I have main activity and one fragment. In that fragment, I have used Google Map. I want to know, how to pass instance of map fragment to main activity with java. Because I want to manipulate that map into main activity. I have this class in main activity [CODE] fragment_home.xml [CODE] I want to instantiate map below t... | java|android|android-activity|android-fragments|google-maps-android-api-2 | 1 | 2015-02-18T02:39:04.840Z | 2,015 | 2 | 2 | 2 | 3,686 | 3 | 361 | 51 | 5 | 3 | true | false | true | false | false | false | low |
28,575,064 | How is the getBatteryLevel() function implemented on Android? | <p>I am looking for the implementation of how android is communicating with the battery and the logic it uses to determine the battery level.</p>
<p>I am not looking how to write an app that gives the battery level, I am looking to understand how the os calculate the battery level to begin with.</p>
<p>I looked in:</... | I am looking for the implementation of how android is communicating with the battery and the logic it uses to determine the battery level. I am not looking how to write an app that gives the battery level, I am looking to understand how the os calculate the battery level to begin with. I looked in: [CODE] and I see tha... | java|android|operating-system | -1 | 2015-02-18T02:42:02.433Z | 2,015 | 2 | 2 | 2 | 239 | 1 | 444 | 61 | 3 | 1 | true | false | false | false | false | true | negative |
28,575,114 | Input losing focus on sending AJAX request | <p>I am making a music application for Android using Intel XDK (HTML5, CSS, JavaScript and PHP), and I'm working on a fuzzy search filter, where the user types, then I filter through the music DB to display (depending on what they searched) the closest match. I've got that all working, but what isn't working (as intend... | I am making a music application for Android using Intel XDK (HTML5, CSS, JavaScript and PHP), and I'm working on a fuzzy search filter, where the user types, then I filter through the music DB to display (depending on what they searched) the closest match. I've got that all working, but what isn't working (as intended)... | javascript|android|html|css|ajax | 1 | 2015-02-18T02:48:14.447Z | 2,015 | 2 | 2 | 2 | 655 | 0 | 1,785 | 42 | 5 | 2 | true | true | false | false | false | false | low |
28,575,145 | How to update TextView dynamically (periodically)? | <p>I am developing a simple android activity with a scrollable <code>TextView</code>. I am displaying numbers from 1-100 in my <code>TextView</code> with a time delay. However my desired output is not what I'm getting.</p>
<p><strong>Current Output:</strong> 1 replaced by 2 replaced by 3....till 100.<br>
<strong>Desir... | I am developing a simple android activity with a scrollable TextView . I am displaying numbers from 1-100 in my TextView with a time delay. However my desired output is not what I'm getting. Current Output: 1 replaced by 2 replaced by 3....till 100. Desired Output: 1 2 3 4 . . 100 Here is my Activity code: [CODE] | android|android-layout|textview | 0 | 2015-02-18T02:52:27.590Z | 2,015 | 2 | 2 | 2 | 2,072 | 4 | 314 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
28,575,178 | Scale Texture based on the start and end position | <p>In my LibGdx based game, I need to scale the image from the start till the end position. The end position varies as the time goes. Hence the image has to be scaled based on the end position.</p>
<p>Could you please assist me in scaling the texture based on start and end position?</p> | In my LibGdx based game, I need to scale the image from the start till the end position. The end position varies as the time goes. Hence the image has to be scaled based on the end position. Could you please assist me in scaling the texture based on start and end position? | java|android|libgdx | 0 | 2015-02-18T02:57:05.220Z | 2,015 | 2 | 2 | 2 | 45 | 1 | 273 | 49 | 3 | 0 | false | false | false | false | false | false | zero |
28,575,270 | Adding Dependency to Multiple Modules in Android Studio | <p>If I need to use some library in multiple modules and add the line</p>
<pre><code>compile 'example.path_to_library'
</code></pre>
<p>to both modules build.gradle,
will it create only one instance of the library classes and point to that or each module will have 2 separate libraries of the same stuff?</p> | If I need to use some library in multiple modules and add the line [CODE] to both modules build.gradle, will it create only one instance of the library classes and point to that or each module will have 2 separate libraries of the same stuff? | android|android-studio | 3 | 2015-02-18T03:06:31.233Z | 2,015 | 2 | 3 | 2 | 395 | 1 | 242 | 55 | 2 | 1 | true | false | false | false | false | false | low |
28,575,279 | How do I upload large files (10MB) in Android? | <p>I am currently used to using Volley to make my requests and upload json. However, the developers of Volley state that it should not be used to upload large files. I was wondering if there is a standard that currently does this in Android?</p> | I am currently used to using Volley to make my requests and upload json. However, the developers of Volley state that it should not be used to upload large files. I was wondering if there is a standard that currently does this in Android? | android|android-volley | 1 | 2015-02-18T03:07:33.497Z | 2,015 | 2 | 3 | 2 | 2,267 | 0 | 238 | 46 | 2 | 0 | false | true | false | false | false | false | low |
28,575,419 | BuffedWriter save of large amounts of BLE data causes GKI error | <p>I have an Android app from which I receive BLE data (every 62ms via notifications). The app can save data via a BufferedWriter to a file. Upon ending the save of large amounts of data, I see an error such as this: GKI_exception out of buffers <a href="https://code.google.com/p/android/issues/detail?id=65455" rel="n... | I have an Android app from which I receive BLE data (every 62ms via notifications). The app can save data via a BufferedWriter to a file. Upon ending the save of large amounts of data, I see an error such as this: GKI_exception out of buffers https://code.google.com/p/android/issues/detail?id=65455 (except my code is n... | android|bluetooth-lowenergy|bufferedwriter | 0 | 2015-02-18T03:23:27.673Z | 2,015 | 2 | 3 | 2 | 184 | 1 | 626 | 63 | 3 | 0 | false | false | false | false | false | false | zero |
28,575,427 | Manifest fallbacks for screen orientation | <p>In the <a href="http://developer.android.com/guide/topics/manifest/activity-element.html">documentation for the Android manifest</a>, there are multiple different ways to specify <code>screenOrientation</code>:</p>
<ul>
<li><code>landscape</code></li>
<li><code>sensorLandscape</code> added in API 9</li>
<li><code>u... | In the documentation for the Android manifest , there are multiple different ways to specify screenOrientation : landscape sensorLandscape added in API 9 userLandscape added in API 18 How can I specify userLandscape , but on older versions of Android, have it fallback to sensorLandscape , and on even older versions fal... | android | 9 | 2015-02-18T03:25:08.457Z | 2,015 | 2 | 3 | 2 | 2,076 | 1 | 394 | 41 | 1 | 0 | false | false | false | false | false | false | medium |
28,575,498 | Android TimePicker not returning user set time but realtime, convert to long | <p>I have a custom dialog with a datepicker and a time picker in it. The user sets the Date which all works fine. The date picker is the hidden and the time picker is shown. I am currently setting the time on the timepicker manually to 8 am.</p>
<p>I now want to convert the user set time in the time picker to a long w... | I have a custom dialog with a datepicker and a time picker in it. The user sets the Date which all works fine. The date picker is the hidden and the time picker is shown. I am currently setting the time on the timepicker manually to 8 am. I now want to convert the user set time in the time picker to a long which I am a... | android|datepicker|android-alertdialog|timepicker | 0 | 2015-02-18T03:33:35.333Z | 2,015 | 2 | 3 | 2 | 296 | 2 | 442 | 76 | 4 | 1 | true | false | false | false | false | false | zero |
28,575,502 | How to retrieve the string id you defined (not integer id) in AndroidStudio, and Object Tags | <p>I'm new to Android development and I'm trying to make a calculator app in AndroidStudio. Originally, I used Buttons, and to retrieve the number of a button pressed, the function btn.getText() worked perfectly. I've since replaced the Buttons with ImageButtons, with the number now represented in the image.</p>
<p>My... | I'm new to Android development and I'm trying to make a calculator app in AndroidStudio. Originally, I used Buttons, and to retrieve the number of a button pressed, the function btn.getText() worked perfectly. I've since replaced the Buttons with ImageButtons, with the number now represented in the image. My plan was t... | java|android|android-studio | 0 | 2015-02-18T03:34:03.177Z | 2,015 | 2 | 3 | 2 | 126 | 1 | 1,394 | 92 | 3 | 0 | false | false | false | false | false | false | zero |
28,575,604 | Android Studio, how to get image in drawable through url | <p>I want to image in run time in android studio..</p>
<p>in that case eclipse has provide that code. I have pass image name in imagename and then get image in drawable. </p>
<pre><code> companyLogo.setImageResource(getResourse.getIdentifier
("com.example.moneymanagement:drawable/"+imagename,null,null));... | I want to image in run time in android studio.. in that case eclipse has provide that code. I have pass image name in imagename and then get image in drawable. [CODE] how to find that case in android studio.. this code has not accepted in android studio. | java|android|android-layout|android-intent|android-activity | 1 | 2015-02-18T03:44:46.263Z | 2,015 | 2 | 3 | 2 | 625 | 2 | 254 | 56 | 5 | 1 | true | false | false | false | false | false | low |
28,575,608 | Displaying information from MySQL EXACLY ONCE to an Android user | <p>suppose I have this MySQL table:</p>
<pre><code>+-----+-------------+------+
| id | info | seen |
+-----+-------------+------+
| 1 | bla bla | 0 |
+-----+-------------+------+
</code></pre>
<p>I want to build a RESTful API where an android client provides the rowID and gets to see the information.... | suppose I have this MySQL table: [CODE] I want to build a RESTful API where an android client provides the rowID and gets to see the information. After I echo the Information I set seen=1 such that the user cannot access the information a second time. Suppose I do all of this in one request like: [CODE] what happens if... | php|android|mysql | 0 | 2015-02-18T03:45:34.947Z | 2,015 | 2 | 3 | 2 | 47 | 1 | 723 | 64 | 3 | 2 | true | false | false | false | false | false | zero |
28,575,632 | Catch coin amount from coin machine on android or ios | <p>might not be a direct programming language question, but...</p>
<p>Remember those old days computers in which you could a quarter or whatever coin and your computer would be enabled for a certain time? such as in the image...</p>
<p>Does anyone know a way how this can be connected to a tablet (ios or android, does... | might not be a direct programming language question, but... Remember those old days computers in which you could a quarter or whatever coin and your computer would be enabled for a certain time? such as in the image... Does anyone know a way how this can be connected to a tablet (ios or android, doesnt matter which) an... | android|c++|ios | 0 | 2015-02-18T03:48:43.857Z | 2,015 | 2 | 3 | 2 | 36 | 2 | 352 | 53 | 3 | 0 | false | false | false | false | false | false | zero |
28,575,671 | Method with Button button Parameters | <p>As suggested by others don't try to do <code>toString()</code> on any Android widget as it won't give you the text of the view.</p>
<p>Android widgets normally have <code>getText</code> instead.</p>
<p>In the case of creating a custom view avoid using <code>toString</code> to get the text as it won't follow Androi... | As suggested by others don't try to do toString() on any Android widget as it won't give you the text of the view. Android widgets normally have getText instead. In the case of creating a custom view avoid using toString to get the text as it won't follow Android practices. | java|android|android-studio | 1 | 2015-02-18T03:53:07.417Z | 2,015 | 2 | 3 | 2 | 917 | 5 | 274 | 36 | 3 | 0 | false | false | false | false | false | false | low |
28,575,741 | Android Service: InvocationTargetException | <p>I have the following error but cannot determine a solution that works:</p>
<pre><code>02-17 22:58:21.636 27014-27014/com.example.feastapp E/ActivityThread﹕ Pause GC
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.M... | I have the following error but cannot determine a solution that works: [CODE] The action that leads to the error is the send message action, specifically on the line imService.sendGroupMessage : [CODE] I do have the activity bind to the service on creation with: [CODE] Why would this error occur, when I have other clas... | android|service|nullpointerexception|invocationtargetexception | 0 | 2015-02-18T04:00:34.973Z | 2,015 | 2 | 4 | 2 | 776 | 1 | 357 | 42 | 4 | 3 | true | false | false | false | false | false | zero |
28,575,769 | Facebook Login doesn't work with fragments | <p>My android app has a Navigation Drawer. So I need to implement the Facebook login feature with Fragments. I've followed <a href="http://examples.javacodegeeks.com/core-java/android-facebook-login-example/" rel="nofollow">this example</a> which has been developed using Fragment Activities. So I tried to convert that ... | My android app has a Navigation Drawer. So I need to implement the Facebook login feature with Fragments. I've followed this example which has been developed using Fragment Activities. So I tried to convert that solution into Fragments. here's what I've done so far [CODE] } and the manifest [CODE] so my problem is when... | android|android-fragments|android-facebook | 0 | 2015-02-18T04:04:04.893Z | 2,015 | 2 | 4 | 2 | 170 | 0 | 540 | 42 | 3 | 2 | true | true | false | false | false | false | zero |
28,575,793 | How can I get rid of transparent background space in (Android Asset Studio - Icon Generator)? | <p>When I upload my image (which has no background to begin with), it is automatically given transparent background no matter what settings I choose. I really like the "<strong>Square</strong>" shape (rounded corners) but there is way too much excess transparent background. When I see the icon on my phone it looks so s... | When I upload my image (which has no background to begin with), it is automatically given transparent background no matter what settings I choose. I really like the " Square " shape (rounded corners) but there is way too much excess transparent background. When I see the icon on my phone it looks so small compared to F... | android|icons | 6 | 2015-02-18T04:06:44.777Z | 2,015 | 2 | 4 | 2 | 5,746 | 2 | 449 | 93 | 2 | 0 | false | false | true | false | false | false | medium |
28,575,825 | How to allow VideoView to continue playing when using Share? Android | <p>I have a video playing full screen in the Android application. I've added a button to allow the user to bring up the "Share" dialog to share to social media, texting, or e-mail. However, when the user selects, for example Facebook, the video will stop playback. Is it possible to force the video to continue playing/r... | I have a video playing full screen in the Android application. I've added a button to allow the user to bring up the "Share" dialog to share to social media, texting, or e-mail. However, when the user selects, for example Facebook, the video will stop playback. Is it possible to force the video to continue playing/rend... | android|android-videoview|android-video-player|android-sharing | 0 | 2015-02-18T04:10:05.897Z | 2,015 | 2 | 4 | 2 | 730 | 1 | 432 | 68 | 4 | 1 | true | false | false | false | false | false | zero |
28,575,856 | My function seems to be editing multiple objects | <p>In my Sudoku Android application I have a solve function that solves a Sudoku puzzle (a CellField object). However for some reason when I clone a CellField object and I call the solve method on the cloned object, the solve method solves both of the CellField objects but I only want it to solve the cloned CellField o... | In my Sudoku Android application I have a solve function that solves a Sudoku puzzle (a CellField object). However for some reason when I clone a CellField object and I call the solve method on the cloned object, the solve method solves both of the CellField objects but I only want it to solve the cloned CellField obje... | java|android|object | 0 | 2015-02-18T04:13:15.467Z | 2,015 | 2 | 4 | 2 | 62 | 2 | 562 | 48 | 3 | 3 | true | false | false | false | false | false | zero |
28,575,863 | Generating Maven GAE Endpoints library and importing it into Android Studio | <p>I have a Maven Google App Engine Endpoints API in Java. I compiled the JAR by following these <a href="https://cloud.google.com/appengine/docs/java/endpoints/gen_clients#generating_a_client_library_for_android_using_maven" rel="nofollow">instructions</a>.</p>
<p>I recently transitioned to Android Studios from Ecli... | I have a Maven Google App Engine Endpoints API in Java. I compiled the JAR by following these instructions . I recently transitioned to Android Studios from Eclipse. I'm trying to import the JAR into Android Studio. I added this line to build.gradle: [CODE] What other dependencies do I have to add to build.gradle? I ca... | android|google-app-engine|maven|android-studio|google-cloud-endpoints | 2 | 2015-02-18T04:14:21.487Z | 2,015 | 2 | 4 | 2 | 196 | 2 | 353 | 75 | 5 | 1 | true | false | false | false | false | false | low |
28,575,999 | input field hidden when soft keyboard appears in phonegap | <p>Creating a mobile application using Phonegap 3.6.3 for Android and iOS. The problem is only for Android, as iOS acts as I would like it to.</p>
<p>When I click on an input text field, or a textarea, a soft keyboard appears. It covers these elements sometimes.</p>
<p>The pages are placed within a iScroll, right at ... | Creating a mobile application using Phonegap 3.6.3 for Android and iOS. The problem is only for Android, as iOS acts as I would like it to. When I click on an input text field, or a textarea, a soft keyboard appears. It covers these elements sometimes. The pages are placed within a iScroll, right at the bottom, and ano... | android|html|css|cordova|iscroll | 5 | 2015-02-18T04:27:38.440Z | 2,015 | 2 | 4 | 2 | 36,507 | 8 | 920 | 57 | 5 | 3 | true | false | true | true | false | false | low |
28,576,024 | Android Studio cannot find R.java after accidental Gradle sync | <p>While working in Android Studio, I accidentally clicked the button "Sync Project with Gradle Files" in the toolbar. Now all instances of R are highlighted in red as "Cannot resolve symbol R". Additionally, all folders but the app name in the directory structure toolbar are red-underlined, and I have a message saying... | While working in Android Studio, I accidentally clicked the button "Sync Project with Gradle Files" in the toolbar. Now all instances of R are highlighted in red as "Cannot resolve symbol R". Additionally, all folders but the app name in the directory structure toolbar are red-underlined, and I have a message saying th... | java|android|r.java-file | 1 | 2015-02-18T04:30:45.547Z | 2,015 | 2 | 4 | 2 | 738 | 2 | 786 | 62 | 3 | 1 | true | false | false | false | false | false | low |
28,576,101 | How to pass data from one app to another app without opening the latter? | <p>I want to trigger an application, B from application, A.</p>
<p>To achieve this i wrote the following in A</p>
<pre><code>PackageManager pm = getPackageManager();
Intent intent = pm.getLaunchIntentForPackage("com.somepackage.appb");
intent.putExtra("secret", "message");
startActivity(intent);
</code></pre>
<p>How... | I want to trigger an application, B from application, A. To achieve this i wrote the following in A [CODE] However this opens up the application B which is not desired. Please suggest a work around to avoid B from opening up and receive the data in background from application A. | android|android-activity|ipc | 0 | 2015-02-18T04:39:37.480Z | 2,015 | 2 | 4 | 2 | 466 | 3 | 279 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
28,576,139 | Android Studio; get image in drawable through url | <p>I want to image in run time through url in android studio..</p>
<p>For example in eclipse find the image through url in that way.. </p>
<p>in that case eclipse has provide that code. I have pass image name in imagename and then get image in drawable.</p>
<pre><code> companyLogo.setImageResource(getResourse.getI... | I want to image in run time through url in android studio.. For example in eclipse find the image through url in that way.. in that case eclipse has provide that code. I have pass image name in imagename and then get image in drawable. [CODE] how to find that case in android studio.. this code has not accepted in andro... | android|android-intent|android-activity|canvas|android-studio | 0 | 2015-02-18T04:43:38.693Z | 2,015 | 2 | 4 | 2 | 1,889 | 3 | 360 | 49 | 5 | 1 | true | false | false | false | false | false | zero |
28,576,198 | Android tab fragment not calling OnCreateView switching from tab2 to tab1 | <p>This is the autogenerated code from android studio when selecting a 3 tabbed layout. The problem is when it starts at the first tab, it will call <code>onCreateView</code> in <code>class PlaceholderFragment</code>. When i switch to the 2nd tab, it calls it again for that tab. Now the problem starts with going back t... | This is the autogenerated code from android studio when selecting a 3 tabbed layout. The problem is when it starts at the first tab, it will call onCreateView in class PlaceholderFragment . When i switch to the 2nd tab, it calls it again for that tab. Now the problem starts with going back to tab1, it doesn't call onCr... | android|android-fragments|tabs|fragment|oncreate | 4 | 2015-02-18T04:49:59.033Z | 2,015 | 2 | 4 | 2 | 3,449 | 1 | 710 | 73 | 5 | 1 | true | false | true | false | false | false | low |
28,576,247 | how to set border arround textview in android | <pre><code>if (chat.getSenderID().equals(prefs.getString("Member_id", ""))) {
root.setBackgroundColor(Color.parseColor("#07000000"));
tv.setTextColor(Color.parseColor("#636363"));
root.setPadding(60, 0, 0, 0);
tv.setBackgroundColor(Color.parseColor("#00ad9a"));
... | [CODE] mercy1: [CODE] mercy2: [CODE] I am calling set background resource using given code i want actually border only top ,bottom ,right left using that code am able to set border but i want hide left border when layout will odd when layout will even then i want hide border only right means in odd i want to set left=0... | android | 0 | 2015-02-18T04:55:55.253Z | 2,015 | 2 | 4 | 2 | 735 | 3 | 447 | 45 | 1 | 3 | true | false | false | false | false | false | zero |
28,576,330 | Android eclipse OnClickListener working with OnItemSelectedListener | <p>i want to validate if the spinner equal "something" then it will toast a text "please pick a value" .The validation triggers whenever we click the button.</p>
<p>the problem is i don't know how to implement it properly.However i made a code to do that and the toast text will appear when we do nothing,when the app l... | i want to validate if the spinner equal "something" then it will toast a text "please pick a value" .The validation triggers whenever we click the button. the problem is i don't know how to implement it properly.However i made a code to do that and the toast text will appear when we do nothing,when the app launched the... | android|eclipse | -1 | 2015-02-18T05:03:01.333Z | 2,015 | 2 | 5 | 2 | 232 | 1 | 1,675 | 67 | 2 | 4 | true | false | false | false | false | true | negative |
28,576,355 | Want to integrate zxing library in to my application | <p>I integrated zxing libary using this tutorial <a href="http://www.androidaz.com/development/zxing-qr-reader-direct-integration" rel="nofollow">http://www.androidaz.com/development/zxing-qr-reader-direct-integration</a>, but i can not able to read QR Code continuously it is in progress of reading .</p> | I integrated zxing libary using this tutorial http://www.androidaz.com/development/zxing-qr-reader-direct-integration , but i can not able to read QR Code continuously it is in progress of reading . | android | 0 | 2015-02-18T05:05:44.707Z | 2,015 | 2 | 5 | 2 | 77 | 2 | 198 | 52 | 1 | 0 | false | false | false | false | false | false | zero |
28,576,379 | download image and save in gallery? | <p>I am getting response from server and in my response i am getting image,the view of that response is in listview,now what i want is below image i have one button for download image,and I want to download that image and store it in gallery..below is my code and response..</p>
<p>JSON Response..</p>
<pre><code> [
... | I am getting response from server and in my response i am getting image,the view of that response is in listview,now what i want is below image i have one button for download image,and I want to download that image and store it in gallery..below is my code and response.. JSON Response.. [CODE] MyBaseAdapter [CODE] } My... | android|json|baseadapter|listactivity | 1 | 2015-02-18T05:08:06.743Z | 2,015 | 2 | 5 | 2 | 3,058 | 3 | 367 | 35 | 4 | 5 | true | false | true | false | false | false | low |
28,576,428 | it is impossible to convert JSON into an java object using GSON and RETROFIT | <p>I use Retrofit in my project. And i have problem. My JSON not convert to object.</p>
<p>Here it is my JSON:</p>
<pre><code>{"id":1,"facebookId":"123","uuid":"xU71niPhrqzFqmBFhk5fl4LlvWg6zk42ENG4iMjgl3eJEb9LAcqVcc9NmLHzFIgg","userInfo":{"id":1,"user":null,"email":"IP696@mail.ru","firstName":"Pavel","lastName":"Petr... | I use Retrofit in my project. And i have problem. My JSON not convert to object. Here it is my JSON: [CODE] Here it is my Retrofit method: [CODE] and i get this error: [CODE] My classes look like this: [CODE] edited, this whole class. [CODE] ... | android|gson|retrofit | 1 | 2015-02-18T05:12:46.973Z | 2,015 | 2 | 5 | 2 | 673 | 5 | 245 | 76 | 3 | 5 | true | false | false | false | false | false | low |
28,576,486 | How to find location of android mobile from another android mobile..?\ | <p>i want to develop android apps that are namely A and B. In App A , i will enter phone number and the corresponding phone number must have the app B and receive request from app A to enables the GPS. I have no idea about this because am new to android. can you guys give me some ideas..? thanks in advance</p> | i want to develop android apps that are namely A and B. In App A , i will enter phone number and the corresponding phone number must have the app B and receive request from app A to enables the GPS. I have no idea about this because am new to android. can you guys give me some ideas..? thanks in advance | android | -3 | 2015-02-18T05:19:01.323Z | 2,015 | 2 | 5 | 2 | 33 | 1 | 304 | 70 | 1 | 0 | false | false | false | false | false | true | negative |
28,576,497 | SoftKeyboard not Appearing automatically in Landscape Mode | <p>I have <code>EditText</code> with with <code><requestFocus /></code> in the XML . when I open the Activity in <strong>Portrait</strong> Mode the soft keyboard Appearing automatically,But when I start the activity in <strong>Landscape</strong> Mode the soft-keyboard not appeared automatically .I required ... | I have EditText with with <requestFocus /> in the XML . when I open the Activity in Portrait Mode the soft keyboard Appearing automatically,But when I start the activity in Landscape Mode the soft-keyboard not appeared automatically .I required touching the EditText for soft-keyboard . Want a soft keyboard to appeared ... | java|android|android-softkeyboard | 2 | 2015-02-18T05:20:19.670Z | 2,015 | 2 | 5 | 2 | 478 | 4 | 408 | 58 | 3 | 1 | true | false | false | false | false | false | low |
28,576,557 | Can we get paid through Paypal with paid android app as an app merchant? | <p>I'm from Sri Lanka and I need to know whether I can use a PayPal account to get paid for my android apps distributions through Google play Store?</p>
<p>I tried Google merchant account but that is not possible to add my bank account details to it.
So i tried to go through Google wallet merchant account. But the Goo... | I'm from Sri Lanka and I need to know whether I can use a PayPal account to get paid for my android apps distributions through Google play Store? I tried Google merchant account but that is not possible to add my bank account details to it. So i tried to go through Google wallet merchant account. But the Google wallet ... | android|google-play | 0 | 2015-02-18T05:25:51.397Z | 2,015 | 2 | 5 | 2 | 989 | 1 | 382 | 72 | 2 | 0 | false | false | false | false | false | false | zero |
28,576,797 | Text being cut off from front for a particular font | <p>The first letter of each word on new line is cut off for <strong>us denealian cursive font</strong>.<img src="https://i.stack.imgur.com/ceoJ8.png" alt="enter image description here"></p>
<p>see the picture this one is with padding.If I am not using any padding ,it will be like in pic 2 <img src="https://i.stack.img... | The first letter of each word on new line is cut off for us denealian cursive font . see the picture this one is with padding.If I am not using any padding ,it will be like in pic 2 This is my code [CODE] Here writing helper is a class extending textview just to underline the text [CODE] Can anyone help.? Edit Requeste... | android|fonts|textview | 7 | 2015-02-18T05:44:24.953Z | 2,015 | 2 | 5 | 2 | 3,277 | 2 | 407 | 51 | 3 | 2 | true | false | true | false | false | false | medium |
28,576,824 | My first Android app crashes when rotated | <p>My app crashes whenever I rotate the Nexus from portrait to landscape or landscape to portrait. It produces the exception report below, which I do not understand.</p>
<p>I basically did what it said, and found my main activity onDestroy function and added super.onDestroy, which made the problem go away.</p>
<p>Ho... | My app crashes whenever I rotate the Nexus from portrait to landscape or landscape to portrait. It produces the exception report below, which I do not understand. I basically did what it said, and found my main activity onDestroy function and added super.onDestroy, which made the problem go away. However, why did this ... | android | 3 | 2015-02-18T05:47:37.090Z | 2,015 | 2 | 5 | 2 | 15,893 | 4 | 402 | 41 | 1 | 1 | true | false | true | true | false | false | low |
28,576,886 | Using navigation bar and opening a fragment :error logcat | <p>I am using retrofit... Data is coming from my server ... My app is getting crashed
could u please suggest me the reason</p>
<p>**
Logcat **</p>
<pre><code>02-18 11:21:56.467: D/VelocityTracker(8151): tpd read x fail: Bad file number
02-18 11:21:56.467: D/VelocityTracker(8151): tpd read y fail: Bad file number
02-1... | I am using retrofit... Data is coming from my server ... My app is getting crashed could u please suggest me the reason ** Logcat ** [CODE] | android|android-fragments|fragment|navigationbar | -2 | 2015-02-18T05:52:49.580Z | 2,015 | 2 | 5 | 2 | 315 | 1 | 139 | 57 | 4 | 1 | true | false | false | false | false | true | negative |
28,576,888 | Remove special characters from string for Http request data in java | <p>I am sending a json formatted data to the server. My data looks like this : </p>
<pre><code>...
{"AvatarTimeStamp":"0","ContactPhoneNumber":"123456789124"},
{"AvatarTimeStamp":"0","ContactPhoneNumber":"123456789124"},
...
</code></pre>
<p>when i send this data to the server, i am getting <strong><code>400</code><... | I am sending a json formatted data to the server. My data looks like this : [CODE] when i send this data to the server, i am getting 400 response code. I thought that there might be an issue with my data having some special character which is causing the bad request. Normally we in our phone book we have phone numbers ... | java|android | -1 | 2015-02-18T05:52:54.093Z | 2,015 | 2 | 5 | 2 | 1,209 | 2 | 751 | 67 | 2 | 1 | true | false | false | false | false | true | negative |
28,576,925 | How setcontentview in a new activity depending on the button clicked | <p>I've been searching the forum but can't seem to find what I'm looking for...
I've got a xml with some 40 buttons.
Whenever a specific button is clicked I want to open a new activity and set the contentview depending on the button clicked.
Opening the new activity is no problem but I can't figure out how to set the c... | I've been searching the forum but can't seem to find what I'm looking for... I've got a xml with some 40 buttons. Whenever a specific button is clicked I want to open a new activity and set the contentview depending on the button clicked. Opening the new activity is no problem but I can't figure out how to set the cont... | java|android|android-activity|setcontentview|android-bundle | -2 | 2015-02-18T05:55:09.153Z | 2,015 | 2 | 5 | 2 | 1,749 | 5 | 390 | 68 | 5 | 2 | true | false | false | false | false | true | negative |
28,576,993 | How to update / change Android System overlay canvas or text | <p>I'm trying to put a digital clock in Android's System Overlay (on top of all things).
Getting the System Overlay to work without changing it is easy, but getting it to update
(I need it to show milliseconds) seems impossible (but I know it's possible!). I
don't even know how to update it every minute, let alone e... | I'm trying to put a digital clock in Android's System Overlay (on top of all things). Getting the System Overlay to work without changing it is easy, but getting it to update (I need it to show milliseconds) seems impossible (but I know it's possible!). I don't even know how to update it every minute, let alone every m... | android | 0 | 2015-02-18T06:01:06.620Z | 2,015 | 2 | 6 | 2 | 117 | 0 | 686 | 60 | 1 | 1 | true | true | false | false | false | false | zero |
28,577,023 | How to sync contacts from my android Phone Contact to my android application like Whatsapp n Skype | <p>I am making an android application similar to whatsapp what i want to know is how to synchronize android contacts with my application so that the numbers which are registered with my application and are also in my android contacts got a symbol. For example in your contact list you see a skype icon or whatsapp icon w... | I am making an android application similar to whatsapp what i want to know is how to synchronize android contacts with my application so that the numbers which are registered with my application and are also in my android contacts got a symbol. For example in your contact list you see a skype icon or whatsapp icon with... | android|ios | -2 | 2015-02-18T06:03:27.357Z | 2,015 | 2 | 6 | 2 | 1,165 | 2 | 499 | 98 | 2 | 0 | false | false | false | false | false | true | negative |
28,577,054 | Proper way to manage offline database with many large images and with update feature | <p>In my current project I need to handle a <strong>large database</strong> of many <strong>large size images</strong> and the application should run in <strong>offline</strong> mode. The application need to <strong>sync</strong> the latest data with the server.</p>
<p>Some of images are having size of around <strong>... | In my current project I need to handle a large database of many large size images and the application should run in offline mode. The application need to sync the latest data with the server. Some of images are having size of around 5 Mb One approach is to download a zip containing the data when application start first... | android|database|sqlite | 1 | 2015-02-18T06:05:09.980Z | 2,015 | 2 | 6 | 2 | 175 | 0 | 646 | 84 | 3 | 0 | false | true | false | false | false | false | low |
28,577,061 | pass URL in SMS body in android | <p>I am putting some predefined text in sms body and proceeding for SMS with below code</p>
<pre><code>Intent smsIntent = new Intent(Intent.ACTION_SENDTO, Uri
.parse("smsto:" + unsuccessContacts));
smsIntent.putExtra("sms_body","Pssst, we are organizing an event in XYZ city. you can join us... | I am putting some predefined text in sms body and proceeding for SMS with below code [CODE] so when it opens my SMS window it shows predefined text as "Pssst, we are organizing an event in XYZ city. you can join us on http://example.com/invite.html. you gonna love this!" but what i want is "Pssst, we are organizing an ... | android|sms | 0 | 2015-02-18T06:05:48.973Z | 2,015 | 2 | 6 | 2 | 2,438 | 1 | 517 | 31 | 2 | 1 | true | false | false | false | false | false | zero |
28,577,086 | Change the ListView header text when ListView sub heading scrolls above | <p>I am working in an android application and I have a ListView with sub heading and items inside that sub heading. I am using a customs listview to implement this. Now I want to replace the top sub heading text when the below sub header scroll above the ListView. The same has been implemented in Android LinkedIn.<img ... | I am working in an android application and I have a ListView with sub heading and items inside that sub heading. I am using a customs listview to implement this. Now I want to replace the top sub heading text when the below sub header scroll above the ListView. The same has been implemented in Android LinkedIn. Below i... | android|android-listview|android-custom-view | 1 | 2015-02-18T06:07:44.037Z | 2,015 | 2 | 6 | 2 | 431 | 0 | 346 | 71 | 3 | 1 | true | true | false | false | false | false | low |
28,577,152 | Disable the power button in activity | <p>I'm developing an app in which there is a requirement to not let the user to lock the screen or turn off the android device using power button,so I have to disable the power button and over ride the power button functionality, I have searched alot on internet as well but can't find anything.I have used these two pie... | I'm developing an app in which there is a requirement to not let the user to lock the screen or turn off the android device using power button,so I have to disable the power button and over ride the power button functionality, I have searched alot on internet as well but can't find anything.I have used these two pieces... | android|performance|android-button|android-hardware | 5 | 2015-02-18T06:12:43.033Z | 2,015 | 2 | 6 | 2 | 11,642 | 3 | 403 | 36 | 4 | 1 | true | false | true | true | false | false | low |
28,577,183 | Getting null when using interface | <p>In my project I am using a interface to get value of <code>Arraylist</code>. I have written the code for that but whenever my app runs I get <code>NullPointerException</code>. Also I have initialized it</p>
<p>Code </p>
<pre><code>public class MyResourceCustomAdaper extends BaseAdapter {
private Context conte... | In my project I am using a interface to get value of Arraylist . I have written the code for that but whenever my app runs I get NullPointerException . Also I have initialized it Code [CODE] Class which used the interface [CODE] LogCat [CODE] | java|android|interface | 0 | 2015-02-18T06:15:27.930Z | 2,015 | 2 | 6 | 2 | 2,384 | 2 | 242 | 33 | 3 | 3 | true | false | false | false | false | false | zero |
28,577,184 | setMargin method in Android | <p>Take a look at the code:</p>
<pre><code>public class MainActivity extends ListActivity {
public static ArrayList<Color> colorList;
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
init();
ArrayList<String> data = new ArrayList<S... | Take a look at the code: [CODE] I want to set the margin of the ListView in the ListActivity but there is no setMargin method in the ListActivity.getListView. Any suggestion? | android | 1 | 2015-02-18T06:15:38.987Z | 2,015 | 2 | 6 | 2 | 173 | 2 | 174 | 27 | 1 | 1 | true | false | false | false | false | false | low |
28,577,199 | Autocomplete using sqlite using jQuery and Cordova | <p>How I will call and create autocomplete search in jQuery which get the data from SQlite database using Cordova 3.2?</p>
<p>After 3 char it should start searching the data from database (SQLite).</p>
<p>HTML5</p>
<pre><code><div>
<input id="valueEnter" onInput="clickfunc();"/>
</div>
</code></p... | How I will call and create autocomplete search in jQuery which get the data from SQlite database using Cordova 3.2? After 3 char it should start searching the data from database (SQLite). HTML5 [CODE] Jquery:- [CODE] | javascript|android|jquery|sqlite|cordova | 1 | 2015-02-18T06:16:31.263Z | 2,015 | 2 | 6 | 2 | 1,255 | 1 | 216 | 50 | 5 | 2 | true | false | false | false | false | false | low |
28,577,212 | How to upload Databases? | <p>What is the best way to store/upload databases from Android and iOS applications?</p>
<p>I have a application that store data in database, i want to upload it to some cloud/server via Wi-fi or cellular internet.</p>
<p>I need an ability to download them after they upload</p>
<p>What are you suggest ? </p>
<p>Tha... | What is the best way to store/upload databases from Android and iOS applications? I have a application that store data in database, i want to upload it to some cloud/server via Wi-fi or cellular internet. I need an ability to download them after they upload What are you suggest ? Thanks | android|ios|cloud|server | 1 | 2015-02-18T06:17:35.767Z | 2,015 | 2 | 6 | 2 | 35 | 0 | 287 | 24 | 4 | 0 | false | true | false | false | false | false | low |
28,577,224 | How to set the background for popup menu? | <p>I want to set the background of my popup menu like in the given image:</p>
<p><img src="https://i.stack.imgur.com/r2kpWm.png" alt="enter image description here"></p>
<p>Is there any way to set this background for the given popup menu in android? If anyone have any idea please help me in accomplishing this.</p> | I want to set the background of my popup menu like in the given image: Is there any way to set this background for the given popup menu in android? If anyone have any idea please help me in accomplishing this. | android | -2 | 2015-02-18T06:18:19.340Z | 2,015 | 2 | 6 | 2 | 711 | 1 | 209 | 41 | 1 | 0 | false | false | false | false | false | true | negative |
28,577,230 | How to give custom layout to overflow menu items | <p>I am using Toolbar as a action bar in my application. I don't know how to give custom layout to overflow items. I know how to give custom layout to action bar menu items but don't know how to give custom layout to overflow menu items.</p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android... | I am using Toolbar as a action bar in my application. I don't know how to give custom layout to overflow items. I know how to give custom layout to action bar menu items but don't know how to give custom layout to overflow menu items. [CODE] I want to give custom textview to this Settings item. | android|android-actionbar|android-toolbar | 1 | 2015-02-18T06:18:51.080Z | 2,015 | 2 | 6 | 2 | 112 | 0 | 295 | 48 | 3 | 1 | true | true | false | false | false | false | low |
28,577,253 | Best practices to use Magento rest & soap web API together for android | <p>I am working on Magento based m-commerce android app. In which I have to use both REST & SOAP web api. Because REST api didn't provide all functionality as SOAP. And to use only SOAP api for whole app will reduce app performance and also UX due to overheads and xml. </p>
<p>What is the best practices for doing ... | I am working on Magento based m-commerce android app. In which I have to use both REST & SOAP web api. Because REST api didn't provide all functionality as SOAP. And to use only SOAP api for whole app will reduce app performance and also UX due to overheads and xml. What is the best practices for doing this thing? Is t... | android|rest|magento|soap|asp.net-web-api | 0 | 2015-02-18T06:21:17.747Z | 2,015 | 2 | 6 | 2 | 883 | 1 | 353 | 70 | 5 | 0 | false | false | false | false | false | false | zero |
28,577,256 | I want to get inuput from edittext in an array which will be seperated by comma(,) | <p>I want to get input from edittext in an array which will be seperated by comma(,) and compare its values to multiple textviews and change their backgrounds.I used split command but its not working.I'm a newbie,thanks in advance.
My code is:</p>
<pre><code>enter code here
@Override
protected void onCreate(Bundle... | I want to get input from edittext in an array which will be seperated by comma(,) and compare its values to multiple textviews and change their backgrounds.I used split command but its not working.I'm a newbie,thanks in advance. My code is: [CODE] } | android | -1 | 2015-02-18T06:21:43.110Z | 2,015 | 2 | 6 | 2 | 481 | 1 | 249 | 82 | 1 | 1 | true | false | false | false | false | true | negative |
28,577,272 | How select and highlight one or more paragraph when touch at text in textview | <p>How select and highlight one or more paragraph when touch at text in textview android code
Thanks!</p> | How select and highlight one or more paragraph when touch at text in textview android code Thanks! | android|textview | -1 | 2015-02-18T06:22:53.803Z | 2,015 | 2 | 6 | 2 | 651 | 1 | 98 | 77 | 2 | 0 | false | false | false | false | false | true | negative |
28,577,279 | RuntimeException: An error occured while executing doInBackground() | <p>I am accepting address by user and then trying to get latitude and longitude for that i am using AsyncTask.</p>
<p>Every time i am getting : <code>RuntimeException: An error occured while executing doInBackground()</code></p>
<p>And facing exception at this line: <code>Address fetchedAddress = addresses.get(0);</c... | I am accepting address by user and then trying to get latitude and longitude for that i am using AsyncTask. Every time i am getting : RuntimeException: An error occured while executing doInBackground() And facing exception at this line: Address fetchedAddress = addresses.get(0); Log: [CODE] Code: [CODE] Updated code: [... | android|android-asynctask | 0 | 2015-02-18T06:23:54.193Z | 2,015 | 2 | 6 | 2 | 8,631 | 2 | 337 | 67 | 2 | 4 | true | false | true | false | false | false | zero |
28,577,293 | Decrypting APDU response from iPhone6 | <p>I transmitted the following APDU command, from an android app, in my android phone,</p>
<blockquote>
<p>send: <code>00 A4 04 00 07 A0 00 00 00 03 10 10 00</code></p>
</blockquote>
<p>to an iPhone 6 through NFC and got the following response,</p>
<blockquote>
<p>resp: <code>6F 39 84 07 A0 00 00 00 03 10 10 A5 ... | I transmitted the following APDU command, from an android app, in my android phone, send: 00 A4 04 00 07 A0 00 00 00 03 10 10 00 to an iPhone 6 through NFC and got the following response, resp: 6F 39 84 07 A0 00 00 00 03 10 10 A5 2E 9F 38 1B 9F 66 04 9F 02 06 9F 03 06 9F 1A 02 95 05 5F 2A 02 9A 03 9C 01 9F 37 04 9F 4E ... | android|nfc|apdu|emv|applepay | 0 | 2015-02-18T06:24:58.167Z | 2,015 | 2 | 6 | 2 | 1,625 | 3 | 1,244 | 37 | 5 | 0 | false | false | false | false | false | false | zero |
28,577,350 | FFMPEG issues for android lollipop. error: only position independent executables (PIE) are supported | <p>I was using the FFmpeg library in my application from the last 2 years and it still working fine on old version. It wont even work on android lollipop.</p>
<p>I was using these library before.</p>
<pre><code>String[] libraryAssets = { "ffmpeg", "libavcodec-55.so", "libavcodec.so",
"libavfilter-4.so", "... | I was using the FFmpeg library in my application from the last 2 years and it still working fine on old version. It wont even work on android lollipop. I was using these library before. [CODE] And I have got the answer from other link that if we use these 3 libraries it will work on lollipop aswell [CODE] But still It ... | android|ffmpeg|android-support-library|video-processing | 3 | 2015-02-18T06:28:43.020Z | 2,015 | 2 | 6 | 2 | 2,110 | 2 | 406 | 100 | 4 | 3 | true | false | false | false | false | false | low |
28,577,357 | how can turn on camera to video in android | <p>how can i do it this is my code</p>
<pre><code>static final int REQUEST_IMAGE_CAPTURE = 1;
static final int REQUEST_VIDEO_CAPTURE = 1;
ImageView mImageView;
Button btn;
public void imageCapture(){
Intent picture = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if(picture.res... | how can i do it this is my code [CODE] first display video mode than i touch back button than display camera image so i required to swam in video to image mode directly how can possible ? | java|android | 1 | 2015-02-18T06:29:05.347Z | 2,015 | 2 | 6 | 2 | 80 | 0 | 187 | 42 | 2 | 1 | true | true | false | false | false | false | low |
28,577,373 | How is Fragment's Activity reference set? | <p>In the Fragment <a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/app/Fragment.java#Fragment.onAttach%28android.app.Activity%29" rel="nofollow">source code</a>, it says:</p>
<pre><code>// Activity this fragment is attached to.
Activity mActivity;
</code><... | In the Fragment source code , it says: [CODE] I expected this to be set in onAttach(), but according to source it is not: [CODE] I can't find a reference in the source to where the Activity reference is set. Where is it set? | android|android-fragments | 1 | 2015-02-18T06:30:25.620Z | 2,015 | 2 | 6 | 2 | 34 | 3 | 224 | 41 | 2 | 2 | true | false | false | false | false | false | low |
28,577,374 | Vuforia Unity Export to Android Doesn't Quit Application On Clicking Back Button | <p>I've recently exported an Android Vuforia app using Unity's Vuforia extension. The app works perfectly, and I have not done any modifications to it.</p>
<p>So, now when try to quit the app after testing it, it does not leave. I just hear the back button's noise and the application stays on. </p>
<p>Eventually when... | I've recently exported an Android Vuforia app using Unity's Vuforia extension. The app works perfectly, and I have not done any modifications to it. So, now when try to quit the app after testing it, it does not leave. I just hear the back button's noise and the application stays on. Eventually when I click the home bu... | android|android-layout|unity3d|vuforia | 0 | 2015-02-18T06:30:27.173Z | 2,015 | 2 | 6 | 2 | 561 | 1 | 575 | 80 | 4 | 0 | false | false | false | false | false | false | zero |
28,577,468 | How to fix no such column in sqlite in android | <p>I am creating an android application that consists of a registration and forgot password field form using sqlite when i click on Reset password button inside the forgot password field I am getting an error called <strong>android.database.sqlite.SQLiteException: no such column: SECHINT (code 1):</strong>
even i creat... | I am creating an android application that consists of a registration and forgot password field form using sqlite when i click on Reset password button inside the forgot password field I am getting an error called android.database.sqlite.SQLiteException: no such column: SECHINT (code 1): even i created a column in a tab... | android|sqlite | -1 | 2015-02-18T06:37:29.013Z | 2,015 | 2 | 6 | 2 | 799 | 1 | 433 | 46 | 2 | 3 | true | false | false | false | false | true | negative |
28,577,474 | How to check whether a file is present in external storage? | <p>How to check whether a file is present in external storage? </p>
<p>I want to play a video from external storage if that file is present in it otherwise download it from server.
I tried</p>
<pre><code>if ((Environment.getExternalStorageDirectory().getPath().contains(mVideo.getCaption() + ".mp4"))) {
videoPath ... | How to check whether a file is present in external storage? I want to play a video from external storage if that file is present in it otherwise download it from server. I tried [CODE] The problem with above code is that it is always playing video from server. I also tried- [CODE] Problem with this is that it is always... | android|android-external-storage | 1 | 2015-02-18T06:37:47.797Z | 2,015 | 2 | 6 | 2 | 1,818 | 4 | 357 | 59 | 2 | 2 | true | false | false | false | false | false | low |
28,577,491 | Sqlite Database not inserted Using Script in Proguard Build | <p>I have to display some data from database even after un-install the app.
For that I am writing script for that insert operations.
And at Re-installation I am executing that script saved on sdcard with db.execSQL(toExec); statement.
Using following code snipt</p>
<pre><code>//write code to execute script from file ... | I have to display some data from database even after un-install the app. For that I am writing script for that insert operations. And at Re-installation I am executing that script saved on sdcard with db.execSQL(toExec); statement. Using following code snipt [CODE] This works fine in normal build. But insertion is not ... | android|mysql|sqlite|proguard|dexguard | 0 | 2015-02-18T06:39:16.090Z | 2,015 | 2 | 6 | 2 | 1,244 | 2 | 586 | 59 | 5 | 2 | true | false | false | false | false | false | zero |
28,577,530 | how to send the Notifications to multiple checked values in android | <p>Hi in the below I am creating group for that I am passing the groupname with no.of the friends in that group.
Now My question is <code>friendAdapter.getCheckedItems()</code> using this method I am getting the only checked values.Now,I want to send the Notification to only checked friends in the group message should ... | Hi in the below I am creating group for that I am passing the groupname with no.of the friends in that group. Now My question is friendAdapter.getCheckedItems() using this method I am getting the only checked values.Now,I want to send the Notification to only checked friends in the group message should be groupname wit... | java|android|android-notifications | -1 | 2015-02-18T06:41:46.263Z | 2,015 | 2 | 6 | 2 | 58 | 1 | 400 | 67 | 3 | 3 | true | false | false | false | false | true | negative |
28,577,538 | Android parse array attr in custom widget for custom NumberPicker | <p>I'm create new Custom widget for NumberPicker and i want to fill items by array in array.xml for this action i'm create new define in array.xml:</p>
<pre><code><integer-array name="Items">
<item>1393</item>
<item>1394</item>
<item>1395</item>
<item>139... | I'm create new Custom widget for NumberPicker and i want to fill items by array in array.xml for this action i'm create new define in array.xml: [CODE] application attr is : [CODE] define xustom widget in layout xml: [CODE] now in custom widget class i must be parse an array with setMaxValue for NumberPicker as an: [CO... | android|android-widget | 0 | 2015-02-18T06:42:42.840Z | 2,015 | 2 | 6 | 2 | 446 | 1 | 410 | 65 | 2 | 4 | true | false | false | false | false | false | zero |
28,577,585 | Change platform in OpenCL sample | <p>I am trying to run an OpenCL sample on a platform that is different than the one in sample program. The sample is for PowerVR and I want to run on Adreno gpu.So I have added the appropriate libOpencl.so file.But i m getting error while running::
What other changes i should make?</p>
<pre><code> 02-18 08:59:04.20... | I am trying to run an OpenCL sample on a platform that is different than the one in sample program. The sample is for PowerVR and I want to run on Adreno gpu.So I have added the appropriate libOpencl.so file.But i m getting error while running:: What other changes i should make? [CODE] My cpp file is given below: [CODE... | android|opencl | 0 | 2015-02-18T06:45:45.713Z | 2,015 | 2 | 6 | 2 | 512 | 0 | 338 | 32 | 2 | 2 | true | true | false | false | false | false | zero |
28,577,604 | No action on clicking icon in ActionBar | <p>I am using code from from Android Developer to display the ActionBar but I cannot get it to work. If I click
on the <em>icon</em> on the ActionBar there is no response, but clicking the text BACK (in this case) works; however on
removing the icon line from the xml file (below) everything works fine!
So how can I c... | I am using code from from Android Developer to display the ActionBar but I cannot get it to work. If I click on the icon on the ActionBar there is no response, but clicking the text BACK (in this case) works; however on removing the icon line from the xml file (below) everything works fine! So how can I correct this? T... | android|android-menu | 0 | 2015-02-18T06:46:47.467Z | 2,015 | 2 | 6 | 2 | 476 | 2 | 553 | 39 | 2 | 2 | true | false | false | false | false | false | zero |
28,577,671 | Will assigning an event handler to Activity from a fragment create a cyclic reference? | <p>In my Xamarin.Android(Monodroid) application, I have one activity that displays multiple fragments from a menu in the activity. I would like to assign certain methods in my activity as event handlers to certain actions in the fragments in the following pattern.</p>
<pre><code> public class MainActivity : FragmentAc... | In my Xamarin.Android(Monodroid) application, I have one activity that displays multiple fragments from a menu in the activity. I would like to assign certain methods in my activity as event handlers to certain actions in the fragments in the following pattern. [CODE] Will this pattern create a cyclic reference to my a... | android|memory|android-fragments|xamarin|xamarin.android | 0 | 2015-02-18T06:51:46.040Z | 2,015 | 2 | 6 | 2 | 625 | 1 | 388 | 86 | 5 | 1 | true | false | false | false | false | false | zero |
28,577,680 | Android ProGuard +MultiDex causes ClassNotFoundException | <p>I have <code>MultiDex</code> enabled in my android project. It was working fine until I tried enabling proguard. I can successfully build the project but I get runtime exception on startup. It's unable to find the Application class and the <code>MainActivity</code>. I had the same problem before enabling <code>Multi... | I have MultiDex enabled in my android project. It was working fine until I tried enabling proguard. I can successfully build the project but I get runtime exception on startup. It's unable to find the Application class and the MainActivity . I had the same problem before enabling MultiDex . Now I guess for some reason ... | android|proguard|classnotfoundexception|android-multidex | 7 | 2015-02-18T06:52:44.827Z | 2,015 | 2 | 6 | 2 | 7,729 | 1 | 563 | 56 | 4 | 3 | true | false | true | false | false | false | medium |
28,577,697 | Tracking in Geofence radious | <p>I have Created application for geo fence.</p>
<p>I implement location listener which sends me current Lat and Long.</p>
<p>I have array of Lat Long and i created Geofence from this array.</p>
<p>I want to check that Current lat long are within my Geofence Region or not?</p>
<p>Code For Geofence:- </p>
<pre><cod... | I have Created application for geo fence. I implement location listener which sends me current Lat and Long. I have array of Lat Long and i created Geofence from this array. I want to check that Current lat long are within my Geofence Region or not? Code For Geofence:- [CODE] Lat Long from Listener:- [CODE] Please help... | android|locationlistener|android-geofence | 0 | 2015-02-18T06:53:51.990Z | 2,015 | 2 | 6 | 2 | 380 | 1 | 330 | 28 | 3 | 2 | true | false | false | false | false | false | zero |
28,577,703 | IOUtils.copy(inputStream, outputStream) corrupts file | <p>I'm saving file from API call to local device storage using the following code</p>
<pre><code>InputStream inputStream = httpResponse.getEntity()
.getContent();
if (null != inputStream) {
File file = new File(path + filename);
FileOutputStream fos = new FileOutputStream(file);
// Save the file ... | I'm saving file from API call to local device storage using the following code [CODE] it saving the file to my device storage in given path but the file is corrupt. | java|android | 0 | 2015-02-18T06:54:02.897Z | 2,015 | 2 | 6 | 2 | 638 | 0 | 164 | 53 | 2 | 1 | true | true | false | false | false | false | zero |
28,577,704 | android-black screen on displaying video by using VideoView | <p>this is my layout :</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<FrameLayout
andr... | this is my layout : [CODE] this is my activity code: [CODE] It works fine on android 4.2 but it doesn't work properly on android 2.3 . on android 2.3 , the first time it opens it works find but when close the app and open it again ,a black screen comes , something like this : and after one minute or so , it goes from a... | android|android-videoview | 4 | 2015-02-18T06:54:16.710Z | 2,015 | 2 | 6 | 2 | 17,274 | 9 | 419 | 59 | 2 | 2 | true | false | true | true | false | false | low |
28,577,755 | Android InAppBrowser virtual keyboard closes on executeScript(). [phonegap] | <p>I copied my code from the following link. It's a workaround for Passing Data From an InAppBrowser back to the app.</p>
<p>blogs.telerik.com/appbuilder/posts/13-12-23/cross-window-communication-with-cordova's-inappbrowser</p>
<p>The problem is that after each executescript() the Keyboard disappears.</p>
<p>This is... | I copied my code from the following link. It's a workaround for Passing Data From an InAppBrowser back to the app. blogs.telerik.com/appbuilder/posts/13-12-23/cross-window-communication-with-cordova's-inappbrowser The problem is that after each executescript() the Keyboard disappears. This issue status here is "won't f... | android|cordova | 2 | 2015-02-18T06:56:43.847Z | 2,015 | 2 | 6 | 2 | 492 | 1 | 532 | 75 | 2 | 1 | true | false | false | false | false | false | low |
28,577,782 | Copy files from android to USB drive? | <p>Can not find good solution of how to copy files from android device to USB drive. I know that android has API's for that since 3.1 version. However docs are not very clear, where I can use that APIs. Is there someone who has experience on this area? I registered broadcast receiver and after allowing usb connection t... | Can not find good solution of how to copy files from android device to USB drive. I know that android has API's for that since 3.1 version. However docs are not very clear, where I can use that APIs. Is there someone who has experience on this area? I registered broadcast receiver and after allowing usb connection to a... | android|io|usb | 2 | 2015-02-18T06:58:27.507Z | 2,015 | 2 | 6 | 2 | 2,124 | 1 | 476 | 37 | 3 | 1 | true | false | false | false | false | false | low |
28,577,802 | Can't change background of actionbar in Android Studio | <p>I want to change the background of actionbar but it doesn't work. The code is rather simple:</p>
<pre><code><style name="AppTheme" parent="@style/Theme.AppCompat.Light">
<!-- Customize your theme here. -->
<item name="android:actionBarStyle">@style/ActionBarTheme</item>
</style>... | I want to change the background of actionbar but it doesn't work. The code is rather simple: [CODE] green1 is a picture in drawable. I run the program, the actionbar shows as the default theme instead of the picture I want. What is the problem? Really confused. | android-actionbar | 0 | 2015-02-18T06:59:12.353Z | 2,015 | 2 | 6 | 2 | 345 | 1 | 261 | 54 | 1 | 1 | true | false | false | false | false | false | zero |
28,577,923 | Detecting State changes made by Bluetooth adapter through a background service | <p>I have been trying to develop a service that detects BLE devices in the background. The background service runs seemlesly when bluetooth is enabled. However when bluetooth is not running i turn on bluetooth via</p>
<pre><code>bluetoothAdapter.enable();
</code></pre>
<p>In order to listen to changes made by the blu... | I have been trying to develop a service that detects BLE devices in the background. The background service runs seemlesly when bluetooth is enabled. However when bluetooth is not running i turn on bluetooth via [CODE] In order to listen to changes made by the bluetooth adapter i declare a broadcastreceiver in my servic... | android|bluetooth | 1 | 2015-02-18T07:07:06.373Z | 2,015 | 2 | 7 | 2 | 582 | 0 | 995 | 78 | 2 | 3 | true | true | false | false | false | false | low |
28,577,953 | Handling Multiple ClickableSpan in a TextView | <p>I've been stuck at this problem for long. What I'm having is a simple string <code>"This is a link and this is another link"</code>. I want to have both "link" words click-able, having different URLs to open in browser. </p>
<ul>
<li>The simplest way I can do is to set Click-able Span on both "link"
words with diff... | I've been stuck at this problem for long. What I'm having is a simple string "This is a link and this is another link" . I want to have both "link" words click-able, having different URLs to open in browser. The simplest way I can do is to set Click-able Span on both "link" words with different URLs, but the problem I'... | android|textview | 5 | 2015-02-18T07:09:40.347Z | 2,015 | 2 | 7 | 2 | 4,781 | 4 | 859 | 45 | 2 | 0 | false | false | true | false | false | false | low |
28,577,955 | How to ignore Html elements with XMLPullParser? | <p>I have an xml file that is streamed to an xml parser.</p>
<p>The content of the xml file contains html tags, which I would like to ignore:</p>
<pre><code> <overview>
<p>Situated on a peninsula halfway up the west coast of India, Mumbai (formerly Bombay) is India's economic powerhouse and home ... | I have an xml file that is streamed to an xml parser. The content of the xml file contains html tags, which I would like to ignore: [CODE] The method to parse the overview is: [CODE] The error is: expected: END_TAG {null}overview (position:START_TAG <p>@6:10 in java.io.InputStreamReader@537c80f4) . | java|android|xml | 0 | 2015-02-18T07:09:50.620Z | 2,015 | 2 | 7 | 2 | 941 | 3 | 299 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.