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,644,616 | Android - EditText gives IndexOutOfBounds Exception while using textAllCaps | <p>I'm trying to create a very simple registration page using a relative layout. This registration page is linked to a fragment called RegistrationFragment.</p>
<p>I have five EditText fields for this layout: name, phone number, email, password, and confirm password. For some reason, I can enter text into password and... | I'm trying to create a very simple registration page using a relative layout. This registration page is linked to a fragment called RegistrationFragment. I have five EditText fields for this layout: name, phone number, email, password, and confirm password. For some reason, I can enter text into password and confirm pa... | android|android-fragments|android-edittext | 47 | 2015-02-21T10:17:24.083Z | 2,015 | 2 | 10 | 5 | 12,224 | 4 | 762 | 75 | 3 | 3 | true | false | true | true | true | false | high |
28,644,632 | How can I use asynctask from android to connect to neo4j server(localhost) | <p>I have neo4j installed on mac with localhost:7474 .How can I add new person name and id via asynctask from android ? Please help me.I am trying from 2 weeks and still no-result.</p>
<p>I had added some code which I tried but I guess embedded db does not work in android:
<a href="https://stackoverflow.com/questions/... | I have neo4j installed on mac with localhost:7474 .How can I add new person name and id via asynctask from android ? Please help me.I am trying from 2 weeks and still no-result. I had added some code which I tried but I guess embedded db does not work in android: How can I access neo4j running on ( any http or localhos... | android|android-asynctask|neo4j|neo4jphp | 0 | 2015-02-21T10:19:01.350Z | 2,015 | 2 | 10 | 5 | 188 | 1 | 811 | 74 | 4 | 3 | true | false | false | false | false | false | zero |
28,644,649 | RealmProxy error on Realm Object | <p>Im currently creating a realm object that takes another realm object however when i run the project i get a null pointer with the realm proxy error on the parent object. Ive checked all of the getters and setters for both objects and they are using the android studio generated ones. Can anyone suggest why this error... | Im currently creating a realm object that takes another realm object however when i run the project i get a null pointer with the realm proxy error on the parent object. Ive checked all of the getters and setters for both objects and they are using the android studio generated ones. Can anyone suggest why this error ma... | java|android|realm | 1 | 2015-02-21T10:20:56.033Z | 2,015 | 2 | 10 | 5 | 3,592 | 1 | 556 | 32 | 3 | 4 | true | false | true | false | false | false | low |
28,644,789 | setting windowSoftInputMode:adjustResize does not resize the umano Slideup Panel properly | <p>I am using using slide up panel provided by <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow">https://github.com/umano/AndroidSlidingUpPanel</a></p>
<p>I have set the <code>windowSoftInputMode</code> as <code>resize</code> in activity manifest file as follows (I have only one activity)</p>
<p... | I am using using slide up panel provided by https://github.com/umano/AndroidSlidingUpPanel I have set the windowSoftInputMode as resize in activity manifest file as follows (I have only one activity) [CODE] The structure for layout for slideupPanel: [CODE] When i have inflate an EditText into the container( @+id/contai... | android | 2 | 2015-02-21T10:38:18.547Z | 2,015 | 2 | 10 | 5 | 334 | 1 | 1,015 | 89 | 1 | 3 | true | false | false | false | false | false | low |
28,644,809 | Android Live Wallpaper not working same on different mobile phones | <p>I am trying to make my first live wallpaper. Everything was good while i was testing my app on my own mobile phone (Xperia Arc). But after running the app on G2 mini, Galaxy note 10 n8000 and Galaxy note 3, I found that nothing works.</p>
<p>On G2 mini the background doesn't even load, but in both notes the <code>O... | I am trying to make my first live wallpaper. Everything was good while i was testing my app on my own mobile phone (Xperia Arc). But after running the app on G2 mini, Galaxy note 10 n8000 and Galaxy note 3, I found that nothing works. On G2 mini the background doesn't even load, but in both notes the OnOffsetChanged li... | android|live-wallpaper | 0 | 2015-02-21T10:40:15.547Z | 2,015 | 2 | 10 | 5 | 272 | 0 | 495 | 66 | 2 | 2 | true | true | false | false | false | false | zero |
28,644,818 | Test order of AsyncTask completion with Robolectric | <p>I have a set of AsyncTasks for which I want to test behavior when completed in different orders. Can I do this with generic Robolectric functionality or do I need to mock a complex asynchronous handling my background jobs?</p>
<p>Simplified I mean something like:</p>
<pre><code>trigger functionality which start ta... | I have a set of AsyncTasks for which I want to test behavior when completed in different orders. Can I do this with generic Robolectric functionality or do I need to mock a complex asynchronous handling my background jobs? Simplified I mean something like: [CODE] Thx | android|android-asynctask|robolectric | 0 | 2015-02-21T10:41:16.800Z | 2,015 | 2 | 10 | 5 | 370 | 2 | 267 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
28,644,884 | Cannot seem to remove Action bar programmatically or in XML | <p>I've followed the plethora of helpful and thorough instructions around SO and the internet in general regarding removing <code>ActionBar</code>s in an <code>Activity</code>. I've tried to do so via the <code>onCreate()</code> method and XML but my <code>ActionBar</code> has irritatingly remarkable resilience.</p>
<... | I've followed the plethora of helpful and thorough instructions around SO and the internet in general regarding removing ActionBar s in an Activity . I've tried to do so via the onCreate() method and XML but my ActionBar has irritatingly remarkable resilience. I tried this code in my onCreate() method and the notificat... | java|android|android-activity|android-actionbar|android-xml | 0 | 2015-02-21T10:51:40.290Z | 2,015 | 2 | 10 | 5 | 112 | 2 | 691 | 59 | 5 | 0 | false | false | false | false | false | false | zero |
28,644,985 | Thread, Asynctask or intentService for my app? | <p>I need your opinion for my app. I'm developing an app which communicates with a radio via bluetooth. App is divided into 3 (swipe) <strong>tabs</strong> : </p>
<ol>
<li><p>In the first I put a connection option and a "<strong>connect</strong>" button to connect my device to a radio.</p></li>
<li><p>In the second th... | I need your opinion for my app. I'm developing an app which communicates with a radio via bluetooth. App is divided into 3 (swipe) tabs : In the first I put a connection option and a " connect " button to connect my device to a radio. In the second there is a map which shows my position (radio can send a GPS string, I ... | android|multithreading|service|android-asynctask|bluetooth | 4 | 2015-02-21T11:00:11.427Z | 2,015 | 2 | 11 | 5 | 890 | 1 | 980 | 46 | 5 | 0 | false | false | false | false | false | false | low |
28,644,995 | AndEngine Text component customization | <p>I want to create <code>Text</code> AndEngine component with some custom settings:
1. Center Horizontal Align
2. Dark background
3. Custom round border</p>
<p>I've tried:</p>
<pre><code>Text text = new Text(0, 120, mFont, "", 100, new TextOptions(AutoWrap.NONE, 0, HorizontalAlign.CENTER, Text.LEADING_DEFAULT), getV... | I want to create Text AndEngine component with some custom settings: 1. Center Horizontal Align 2. Dark background 3. Custom round border I've tried: [CODE] but nothing works, the text is aligned to left, and background wasn't changed. And I've didn't found any info about border setting. Please help me, I'm new in Andr... | android|text|andengine | 1 | 2015-02-21T11:01:08.973Z | 2,015 | 2 | 11 | 5 | 369 | 1 | 324 | 38 | 3 | 1 | true | false | false | false | false | false | low |
28,645,000 | I can't understand what cause Unable to start activity java.lang.NullPointerException | <p>I made some changes to my app and now I'm getting this error that seems to be related to a class (<strong>ViewUser</strong>) that i do not changed.</p>
<p>I tried to undo some changes that i made in other classes but i cannot figure out what could cause this error.
I double checked somethings according to this answ... | I made some changes to my app and now I'm getting this error that seems to be related to a class ( ViewUser ) that i do not changed. I tried to undo some changes that i made in other classes but i cannot figure out what could cause this error. I double checked somethings according to this answer but i do not solved. He... | android|exception|android-activity|null|crash | -1 | 2015-02-21T11:01:51.157Z | 2,015 | 2 | 11 | 5 | 59 | 1 | 415 | 85 | 5 | 1 | true | false | false | false | false | true | negative |
28,645,011 | Passing absolute URL to Retrofit | <p>Is it possible to pass an absolute url dynamically at runtime to retrofit?</p>
<p>For instance, I access a Rest API that returns a list of users and for pagination an absolute url that should be used to retrieve more items:</p>
<pre><code>{
"result": [
{
"id": 1,
"name": "Daniel... | Is it possible to pass an absolute url dynamically at runtime to retrofit? For instance, I access a Rest API that returns a list of users and for pagination an absolute url that should be used to retrieve more items: [CODE] It seems that it's not supported in Retrofit https://github.com/square/retrofit/issues/333 Is th... | android|retrofit | 1 | 2015-02-21T11:03:12.327Z | 2,015 | 2 | 11 | 5 | 1,460 | 1 | 382 | 32 | 2 | 1 | true | false | false | false | false | false | low |
28,645,057 | multiple order entries in android application | <p>I'm working on an order management system for android.
On the order page where the user submits an order, i want it to be able to allow the user to submit multiple orders, then take the user to a page where it displays all the orders made.
What method can i use to accomplish that?
This is the order activity page wh... | I'm working on an order management system for android. On the order page where the user submits an order, i want it to be able to allow the user to submit multiple orders, then take the user to a page where it displays all the orders made. What method can i use to accomplish that? This is the order activity page which ... | android|arrays | 0 | 2015-02-21T11:10:08.333Z | 2,015 | 2 | 11 | 5 | 49 | 1 | 605 | 45 | 2 | 1 | true | false | false | false | false | false | zero |
28,645,130 | AndEngine: How to know whether a Class(extends Sprite) collides with another class(extends Sprite) | <p>I have two classes, Enemy.java extending "Sprite" as well as another class Bullet.java extending "Sprite".
Now if i want to check whether an object of Enemy collides with Bullet's object,</p>
<pre><code>EnemyObj.collidesWith(BulletObj)
</code></pre>
<p>But, in my case I have too many bullets and too many Enemies.
... | I have two classes, Enemy.java extending "Sprite" as well as another class Bullet.java extending "Sprite". Now if i want to check whether an object of Enemy collides with Bullet's object, [CODE] But, in my case I have too many bullets and too many Enemies. I can make a loop for it for every EnemyObj & BulletObjs. [CODE... | android|andengine | 0 | 2015-02-21T11:17:16.830Z | 2,015 | 2 | 11 | 5 | 91 | 1 | 391 | 98 | 2 | 3 | true | false | false | false | false | false | zero |
28,645,162 | Parse cloud beforeSave update class | <p>I have class named <code>Profiles</code> on Parse, which contains a Boolean column <code>isDefault</code>.</p>
<p>Basically what I am trying to achieve is, if a save is called on <code>Profiles</code>, I want to check the object added/updated before it's saved, if it's <code>isDefault</code> is true, then change al... | I have class named Profiles on Parse, which contains a Boolean column isDefault . Basically what I am trying to achieve is, if a save is called on Profiles , I want to check the object added/updated before it's saved, if it's isDefault is true, then change all other rows in Profiles to false, then save the new or updat... | javascript|android|parse-platform | 0 | 2015-02-21T11:21:37.717Z | 2,015 | 2 | 11 | 5 | 997 | 1 | 499 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
28,645,201 | Google Distance Api Android | <p>Helo! I have a question! </p>
<p>I have permission to use the following code? I want to calculate the distance between two GPS coordinates. </p>
<p>What do you say? </p>
<pre><code>public class ApiDirectionsAsyncTask extends AsyncTask<Double,Double,Double>
{
double lat1, lng1, lat2, lng2;
ApiDi... | Helo! I have a question! I have permission to use the following code? I want to calculate the distance between two GPS coordinates. What do you say? [CODE] | android|api|google-maps | 0 | 2015-02-21T11:25:23.667Z | 2,015 | 2 | 11 | 5 | 126 | 1 | 155 | 27 | 3 | 1 | true | false | false | false | false | false | zero |
28,645,300 | First database creation in android | <p>I have an app and I didn't use database up the present.Now I will update my app and this app contains a database.I am curious about this.Which method will call on updated phones in database <code>onCreate</code> or <code>onUpgrade</code> ?</p> | I have an app and I didn't use database up the present.Now I will update my app and this app contains a database.I am curious about this.Which method will call on updated phones in database onCreate or onUpgrade ? | android | 1 | 2015-02-21T11:36:20.083Z | 2,015 | 2 | 11 | 5 | 43 | 2 | 213 | 34 | 1 | 0 | false | false | false | false | false | false | low |
28,645,303 | Android, get data from web and update UI (Multi-threading and MVC design pattern) | <p>Currently developing a weather application . I wanna strictly observe 2 rules:<br></p>
<ol>
<li>MVC Design pattern <br> </li>
<li>Multithreading when I deals with network.</li>
</ol>
<p>The problem is combining these things into a whole, here are parts of my code:<br></p>
<p><strong>Weather Class (represent a Wea... | Currently developing a weather application . I wanna strictly observe 2 rules: MVC Design pattern Multithreading when I deals with network. The problem is combining these things into a whole, here are parts of my code: Weather Class (represent a Weather object) : [CODE] Worker Class (do all "dirty" work): [CODE] Based ... | java|android|multithreading|okhttp | 2 | 2015-02-21T11:36:45.677Z | 2,015 | 2 | 11 | 5 | 844 | 1 | 876 | 81 | 4 | 3 | true | false | false | false | false | false | low |
28,645,345 | Trying to take input from android microphone and send it to pc | <p>Everything works fine until I try to put what I receive on pc into a <code>wav</code> file.</p>
<p>I think its a problem in the saving to wav file part. Tried almost everything, <code>AudioSystem.write</code> etc,nothing seems to work.</p>
<p>If anyone can help I would really appreciate it.This is the code:</p>
<... | Everything works fine until I try to put what I receive on pc into a wav file. I think its a problem in the saving to wav file part. Tried almost everything, AudioSystem.write etc,nothing seems to work. If anyone can help I would really appreciate it.This is the code: [CODE] | java|android | 2 | 2015-02-21T11:41:31.770Z | 2,015 | 2 | 11 | 5 | 65 | 0 | 275 | 62 | 2 | 1 | true | true | false | false | false | false | low |
28,645,381 | How to maintain multiple fragments on the resume of parent activity | <p>I am using <strong>navigation drawer</strong> which calls multiple <strong>fragments</strong> on the click of a list item of navigation drawer. </p>
<p>In my scenario, parent activity handles 2 fragments. There is an expected behavior that I am facing in handling these fragments. </p>
<p>Here is what I am doing: ... | I am using navigation drawer which calls multiple fragments on the click of a list item of navigation drawer. In my scenario, parent activity handles 2 fragments. There is an expected behavior that I am facing in handling these fragments. Here is what I am doing: Go to offline mode -> Go to fragment 2 -> Minimize the a... | android|android-fragments|callback | 0 | 2015-02-21T11:45:55.080Z | 2,015 | 2 | 11 | 5 | 258 | 0 | 598 | 67 | 3 | 1 | true | true | false | false | false | false | zero |
28,645,397 | Select list view item and get item information by id | <p>I would like to </p>
<ul>
<li>get item details in another page, when user clicked one
of the items of the list view</li>
<li>get the details by ID.</li>
</ul>
<p>How do I post param of item's id and get json details?</p>
<p>Here are my codes:</p>
<p>Part of the (1st activity) listview activity:</p>
<pre><code> ... | I would like to get item details in another page, when user clicked one of the items of the list view get the details by ID. How do I post param of item's id and get json details? Here are my codes: Part of the (1st activity) listview activity: [CODE] (2nd activity)Record.class: [CODE] { [CODE] } Read_specific_record_u... | android-intent|android-activity|getjson|listviewitem|post-parameter | 0 | 2015-02-21T11:47:34.387Z | 2,015 | 2 | 11 | 5 | 576 | 0 | 334 | 52 | 5 | 4 | true | true | false | false | false | false | zero |
28,645,489 | how to display a button only for 5 seconds | <p>I would like to know how to display a button only for five seconds and if clicked then timer should increase for another five seconds with button in different position. I used scheduleatfixedrate method but it stops my application once i click it. My platform is android. Please help me someone!!</p> | I would like to know how to display a button only for five seconds and if clicked then timer should increase for another five seconds with button in different position. I used scheduleatfixedrate method but it stops my application once i click it. My platform is android. Please help me someone!! | android|timer | -2 | 2015-02-21T11:56:46.547Z | 2,015 | 2 | 11 | 5 | 57 | 1 | 296 | 42 | 2 | 0 | false | false | false | false | false | true | negative |
28,645,491 | How can I display detail view by fetching details entered to the database before on clicking an item of list view | <p>I have a List View displaying list of Tasks created. Now, when I click on Task1 it should display the detail view of Task1, by fetching the details entered while creating task1. I am trying to do this with "id" and "position" both obtained when i override the OnItemClick method. Are these two enough and please let m... | I have a List View displaying list of Tasks created. Now, when I click on Task1 it should display the detail view of Task1, by fetching the details entered while creating task1. I am trying to do this with "id" and "position" both obtained when i override the OnItemClick method. Are these two enough and please let me k... | android | 0 | 2015-02-21T11:57:02.293Z | 2,015 | 2 | 11 | 5 | 399 | 2 | 714 | 113 | 1 | 2 | true | false | false | false | false | false | zero |
28,645,493 | all latitude and longitude to spacific regoin and compare it with the latitude and the longitude of the users | <p>In my project android application the user can pin the location from the Google map then the the application give the latitude and the longitude to the location that is pined but the problem I want to know all the users inside this regoin (for example King Abdul Aziz university),the user and their latitude and the l... | In my project android application the user can pin the location from the Google map then the the application give the latitude and the longitude to the location that is pined but the problem I want to know all the users inside this regoin (for example King Abdul Aziz university),the user and their latitude and the long... | android|performance|google-maps|math | 0 | 2015-02-21T11:57:08.697Z | 2,015 | 2 | 11 | 5 | 87 | 1 | 587 | 109 | 4 | 0 | false | false | false | false | false | false | zero |
28,645,502 | GCM Notification and getStringExtra(); | <p>For a few days I am facing a problem I can not solve , I have an application that receives notification via the GCM until all is well and I well my message notification. But the problem is when I click on my notification and its acitivity in question opens the getStringExtra () function often sends me the same thing... | For a few days I am facing a problem I can not solve , I have an application that receives notification via the GCM until all is well and I well my message notification. But the problem is when I click on my notification and its acitivity in question opens the getStringExtra () function often sends me the same thing as... | android|notifications|google-cloud-messaging | 0 | 2015-02-21T11:58:16.473Z | 2,015 | 2 | 11 | 5 | 326 | 1 | 811 | 38 | 3 | 2 | true | false | false | false | false | false | zero |
28,645,533 | Android Emulator : cannot run commands from PuTTY | <p>I'm new in Android development. I'm trying to connect via PuTTY to Android Emulator with telnet ( in order to emulate events - sms send , location change etc) After I created session on PuTTY and connected , any command I entered - seems no effect : </p>
<pre><code>Android Console: type 'help' for a list of command... | I'm new in Android development. I'm trying to connect via PuTTY to Android Emulator with telnet ( in order to emulate events - sms send , location change etc) After I created session on PuTTY and connected , any command I entered - seems no effect : [CODE] I'm running emulator from IntelliJ IDEA 14.0.2. What are the se... | android|intellij-idea|android-emulator|putty | 1 | 2015-02-21T12:01:46.213Z | 2,015 | 2 | 12 | 5 | 164 | 1 | 418 | 49 | 4 | 1 | true | false | false | false | false | false | low |
28,645,602 | Send private message to a specific user with message dialog using the android sdk | <p>I want to be able to open the private message dialog using the facebook android sdk ( <a href="https://developers.facebook.com/docs/android/share#message-dialog" rel="nofollow">https://developers.facebook.com/docs/android/share#message-dialog</a>)</p>
<p>But I want to be able to set the target user for the message ... | I want to be able to open the private message dialog using the facebook android sdk ( https://developers.facebook.com/docs/android/share#message-dialog ) But I want to be able to set the target user for the message so the user won't have to do it by himself. There is an option to do it in the javascript api like this: ... | facebook|facebook-graph-api|android-facebook | 0 | 2015-02-21T12:08:25.250Z | 2,015 | 2 | 12 | 5 | 263 | 0 | 424 | 81 | 3 | 1 | true | true | false | false | false | false | zero |
28,645,617 | how to play VIMEO video url in android videoview | <p>I have the VIMEO video url like "<a href="https://vimeo.com/channels/staffpicks/119777338" rel="noreferrer">https://vimeo.com/channels/staffpicks/119777338</a>".
If am play this url in android videoview using following code</p>
<pre><code> MediaController mediaController = new MediaController(this);
mediaCon... | I have the VIMEO video url like " https://vimeo.com/channels/staffpicks/119777338 ". If am play this url in android videoview using following code [CODE] I had error as "Can't play this video". So how can i play this vimeo video url in android videoview. Please kindly help me in this issue. Thanks in advance. | android|android-videoview|vimeo-api | 6 | 2015-02-21T12:09:16.103Z | 2,015 | 2 | 12 | 5 | 5,278 | 2 | 310 | 48 | 3 | 1 | true | false | true | false | false | false | medium |
28,645,632 | Detect Device Wakeness In Android | <p>I'm trying to create a service that run in background in android.. That service should work only when the device is on sleep <em>(Means that screen is off)</em>.. </p>
<p>I think that can be done using a service but I don't know how to detect if the phone is awake or not.. Any Idea ? Thanks..</p> | I'm trying to create a service that run in background in android.. That service should work only when the device is on sleep (Means that screen is off) .. I think that can be done using a service but I don't know how to detect if the phone is awake or not.. Any Idea ? Thanks.. | android|service|wakelock | 0 | 2015-02-21T12:10:00.700Z | 2,015 | 2 | 12 | 5 | 65 | 1 | 277 | 33 | 3 | 0 | false | false | false | false | false | false | zero |
28,645,699 | Navigation Drawer not visible | <p>I am working on an app right now, the main component is to display <strong>pdf</strong>'s. I have used the <strong>plugpdf library</strong> for this, with this code in the mainactivity:</p>
<pre><code>try{
// Initialize PlugPDF with a license key.
PlugPDF.init(getApplicationContext(),
"my licens... | I am working on an app right now, the main component is to display pdf 's. I have used the plugpdf library for this, with this code in the mainactivity: [CODE] So basically, I am opening an activity in the mainactivity. Here's how it looks like. The problem with this is, that the simpledocumentreader (the activity for ... | java|android|pdf|android-studio|navigation-drawer | 0 | 2015-02-21T12:17:16.137Z | 2,015 | 2 | 12 | 5 | 227 | 0 | 821 | 29 | 5 | 1 | true | true | false | false | false | false | zero |
28,645,707 | IndexOutOfBounds : Invalid Index 0, Size is 0 | <p>I have this code, which giving <code>Exception</code>: </p>
<pre><code>IndexOutOfBound :Invalid Index 0, Size is 0
</code></pre>
<p>Here's my code:</p>
<pre><code> ArrayList<HashMap<String, String>> vehlist;
HashMap<String, String> vehmap;
for(int i = 0;i<BackgroundService.taxis.size();i+... | I have this code, which giving Exception : [CODE] Here's my code: [CODE] Here I adding data [CODE] I have a backgroundService in which all these are initialized [CODE] | android | 0 | 2015-02-21T12:18:11.870Z | 2,015 | 2 | 12 | 5 | 295 | 1 | 167 | 45 | 1 | 4 | true | false | false | false | false | false | zero |
28,645,740 | How to detect click on ImageView in ViewPager's PagerAdapter (android)? | <p><strong>What is happening:</strong> </p>
<ol>
<li>i am trying to detect a onclick event for a view(image) in pager
adapter.</li>
<li>View i am triggering is <code>imgGodInfoId</code></li>
<li>This is never triggered</li>
<li>This seems to work in regular adapter ... so why is it not triggered
here</li>
</ol>
<p><s... | What is happening: i am trying to detect a onclick event for a view(image) in pager adapter. View i am triggering is imgGodInfoId This is never triggered This seems to work in regular adapter ... so why is it not triggered here AdptAtomicGodGallery.java [CODE] Xml for pager adapter [CODE] | android|android-fragments|android-viewpager|android-imageview|android-pageradapter | 1 | 2015-02-21T12:21:43.570Z | 2,015 | 2 | 12 | 5 | 2,437 | 1 | 289 | 71 | 5 | 2 | true | false | false | false | false | false | low |
28,645,751 | Android Java: Using setOnClickListener in for loop | <p>I'm in the early stages of android development and I had a problem with a <code>for</code> loop.</p>
<p>Here is my code:</p>
<pre><code>for (int i=0; i<=30; i++){
tableRows[i] = new TableRow(this);
tableRows[i].setId(i);
tableRows[i].setLayoutParams(tableRowParams);
tableRows[i]... | I'm in the early stages of android development and I had a problem with a for loop. Here is my code: [CODE] I have TableRows and two textViews in each TableRows . When I click the first textView1[i] , the second one, textView2[i] will be invisible or visible. But in setOnClickListener code block I had "variable 'i' is ... | java|android|for-loop|final | 3 | 2015-02-21T12:23:11.577Z | 2,015 | 2 | 12 | 5 | 1,604 | 5 | 530 | 50 | 4 | 1 | true | false | false | false | false | false | low |
28,645,822 | Retrofit. Android. Can I download json object to String without parsing? | <p>Can I download json object as a String without parsing with Retrofit on Android device?</p>
<p>When I tried direct approach</p>
<pre><code>@GET("/api.php?action=bundle")
public void getWholeScheduleString(Callback<String> response);
</code></pre>
<p>I got error:</p>
<pre><code>"com.google.gson.JsonSyntaxEx... | Can I download json object as a String without parsing with Retrofit on Android device? When I tried direct approach [CODE] I got error: [CODE] | android|json|retrofit | 3 | 2015-02-21T12:31:04.850Z | 2,015 | 2 | 12 | 5 | 7,277 | 3 | 143 | 72 | 3 | 2 | true | false | true | false | false | false | low |
28,645,883 | MPAndroidChart BarChart xValues Issue | <p>I noticed an issue with the <code>BarChart</code> of <code>MPAndroidChart</code> and need a fix. First my code:</p>
<pre><code>this.barChart = (BarChart) view.findViewById(R.id.bar_fragment_bar_chart);
this.barChart.setDrawYValues(true);
this.barChart.setDrawXLabels(false);
this.barChart.setDrawValueAboveBar(true);... | I noticed an issue with the BarChart of MPAndroidChart and need a fix. First my code: [CODE] My xValues are simple dates: [CODE] Now i have multiple datasets: [CODE] My Problem now is that the xLabels and the xValues arent matching at all: The bars are placed far far behind the xLabels and there is extremely much space... | android|mpandroidchart | 4 | 2015-02-21T12:37:59.507Z | 2,015 | 2 | 12 | 5 | 5,200 | 1 | 704 | 37 | 2 | 4 | true | false | true | false | false | false | low |
28,645,919 | how to pick a encrypted image - android | <p>I'm trying to make an image encrypter and it goes like this :
I'm choosing the image from the gallery with </p>
<pre><code>Intent i = new Intent (Intent.ACTION_GET_CONTENT);
i.setType("image/*");
startActivityForResult(i,0);
</code></pre>
<p>and I go to the gallery and i get the images and i can choose an image a... | I'm trying to make an image encrypter and it goes like this : I'm choosing the image from the gallery with [CODE] and I go to the gallery and i get the images and i can choose an image and view it in imageView it's okay .. the problem is when i do the same thing and i want to pick the encrypted image because it's encry... | android|cryptography | 0 | 2015-02-21T12:40:47.040Z | 2,015 | 2 | 12 | 5 | 99 | 0 | 662 | 39 | 2 | 1 | true | true | false | false | false | false | zero |
28,645,942 | How to link android executable with .o file? | <p>I want to link my executable with .o file, can I do this?</p>
<p>Android.mk</p>
<pre><code>LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := testo
LOCAL_SRC_FILES := main.c
include $(BUILD_EXECUTABLE)
</code></pre>
<p>I created data.o file using ld -r -b binary data -o data.o</p>
<p>And I ... | I want to link my executable with .o file, can I do this? Android.mk [CODE] I created data.o file using ld -r -b binary data -o data.o And I have this code: [CODE] And i have error while compiling: error: undefined reference to 'binary_data_size' | android-ndk | 1 | 2015-02-21T12:44:44.760Z | 2,015 | 2 | 12 | 5 | 587 | 1 | 246 | 44 | 1 | 2 | true | false | false | false | false | false | low |
28,645,954 | Facebook's explicitly_shared actions don't work on Cordova app | <p>i'm developing a Cordova mobile app that use the WizCorp's plugin to integrate Facebook for login and sharing. Everything works fine with the Login and the API Graph calls but I can't find a way to make the user share an action with the eplicitly_shared field set on TRUE.</p>
<p>Here's my code:</p>
<pre><code> ... | i'm developing a Cordova mobile app that use the WizCorp's plugin to integrate Facebook for login and sharing. Everything works fine with the Login and the API Graph calls but I can't find a way to make the user share an action with the eplicitly_shared field set on TRUE. Here's my code: [CODE] It works perfectly but t... | android|ios|facebook|cordova|facebook-graph-api | 0 | 2015-02-21T12:46:05.033Z | 2,015 | 2 | 12 | 5 | 120 | 1 | 455 | 62 | 5 | 1 | true | false | false | false | false | false | zero |
28,645,992 | YouTube Client on Android having a java.lang.NullPointerException | <p>Now I know the problem but still no idea how to resolve it, the resquest is rejected by google instead of the fact that I renewed the key, and it was working before, now it gives me this error: <strong>ipRefererBlocked</strong> : "message": "There is a per-IP or per-Referer restriction configured on your API key and... | Now I know the problem but still no idea how to resolve it, the resquest is rejected by google instead of the fact that I renewed the key, and it was working before, now it gives me this error: ipRefererBlocked : "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does no... | java|android|android-youtube-api | 1 | 2015-02-21T12:50:48.697Z | 2,015 | 2 | 12 | 5 | 814 | 1 | 1,192 | 65 | 3 | 3 | true | false | false | false | false | false | low |
28,646,029 | Could not normalize path for file 'E:\WorkSpace\mapdemo\app\build\intermediates\mockable-Google Inc.:Google APIs:21.jar' | <p>I'm trying to run this app but it gives me error and I don't understand meaning of this error?</p>
<p>I have added google play service library also in build.gradle file:</p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion "21.1.2"
defa... | I'm trying to run this app but it gives me error and I don't understand meaning of this error? I have added google play service library also in build.gradle file: [CODE] my xml file: [CODE] When I'm running it gives me error: [CODE] | java|android|android-studio | 9 | 2015-02-21T12:54:22.177Z | 2,015 | 2 | 12 | 5 | 6,526 | 4 | 232 | 120 | 3 | 3 | true | false | true | false | false | false | medium |
28,646,051 | Q: ViewPager and OnClickListener | <p>OnClickListener not working use with ViewPager. Without ViewPager working. I'm opening program. And program is running. but when I touch button, button is not working.</p>
<p>Where can write OnClickListener?
İf I write OnClickListener in PageOne.java I'm getting errors. Because PageOne Class is extends Fragment. F... | OnClickListener not working use with ViewPager. Without ViewPager working. I'm opening program. And program is running. but when I touch button, button is not working. Where can write OnClickListener? İf I write OnClickListener in PageOne.java I'm getting errors. Because PageOne Class is extends Fragment. Fragment not ... | java|android|android-activity|android-fragments|android-viewpager | 0 | 2015-02-21T12:56:36.677Z | 2,015 | 2 | 12 | 5 | 372 | 1 | 521 | 32 | 5 | 3 | true | false | false | false | false | false | zero |
28,646,052 | Saving Populated Listview Items on disk and reloading them when App is launched | <p>In my android application, I have a list view. Each list view item has some text and text and a bitmap. This list is population with content from my back-end each time I start the app.</p>
<p>What I want to do is to save the these populated items onto disk when app is closed, and reload them when app is started nex... | In my android application, I have a list view. Each list view item has some text and text and a bitmap. This list is population with content from my back-end each time I start the app. What I want to do is to save the these populated items onto disk when app is closed, and reload them when app is started next time from... | android|listview|serialization|android-contentprovider | 0 | 2015-02-21T12:56:43.187Z | 2,015 | 2 | 12 | 5 | 77 | 2 | 685 | 79 | 4 | 0 | false | false | false | false | false | false | zero |
28,646,146 | When is the ga_autoActivityTracking fired? | <p>It is possible to track all Activities with Google Analytics automatically,
when you enable the <code>ga_autoActivityTracking</code> attrubute in the tracker config.</p>
<p>So I'm asking myself when this action gets fired, because I want to exclude it on a special time.</p>
<p>Is it fired when some of the <code>o... | It is possible to track all Activities with Google Analytics automatically, when you enable the ga_autoActivityTracking attrubute in the tracker config. So I'm asking myself when this action gets fired, because I want to exclude it on a special time. Is it fired when some of the onCreate , onResume or other methods of ... | android|google-analytics|google-analytics-api|google-analytics-firebase | 1 | 2015-02-21T13:10:00.353Z | 2,015 | 2 | 13 | 5 | 1,388 | 1 | 477 | 42 | 4 | 2 | true | false | false | false | false | false | low |
28,646,178 | Load images from sdcard in grid with Picasso | <p>I have a grid that has string arraylist of items: </p>
<pre><code> final GridView grid = (GridView) view.findViewById(R.id.gridview);
final ArrayList<String> items = new ArrayList<String>();
items.add("1a");
items.add("1b");
items.add("1c");
items.add("1d");
items.add("1e");
... | I have a grid that has string arraylist of items: [CODE] Later, I tried to do something with onClick, selecting a certain position: [CODE] What I would like is: I have like 20 pictures in my res/drawable folder. I'd like to have a fragment that contains an imageView, that runs on onClick, and loads picture named 1a.png... | android|image|android-sdcard|picasso | -1 | 2015-02-21T13:12:29.920Z | 2,015 | 2 | 13 | 5 | 292 | 1 | 510 | 44 | 4 | 2 | true | false | false | false | false | true | negative |
28,646,192 | Get friend list from facebook using newMyFriendsRequest method - Android | <p>In my Android application I want to display Facebook friend list with their information.
For retrieving friend'd data I used following code :-</p>
<pre><code>private void onSessionStateChange(Session session, SessionState state, Exception exception) {
if (state.isOpened()) {
Log.i(TAG, "Logged in...");
... | In my Android application I want to display Facebook friend list with their information. For retrieving friend'd data I used following code :- [CODE] But when I run the code and print log message as per this line from code :- [CODE] I got following log message :- [CODE] which states correct facebook friend "1029" but a... | android|facebook|facebook-graph-api | 0 | 2015-02-21T13:13:56.887Z | 2,015 | 2 | 13 | 5 | 2,012 | 2 | 769 | 72 | 3 | 5 | true | false | false | false | false | false | zero |
28,646,193 | How to sign up for android developer on play store with debit cards in India? | <p>Location . India.
I want to sign up for android developer on play store but I don't have any credit cards but I have debit cards . How to do it with debit cards any way of doing it. ?</p> | Location . India. I want to sign up for android developer on play store but I don't have any credit cards but I have debit cards . How to do it with debit cards any way of doing it. ? | android|paypal|google-play|android-pay | -1 | 2015-02-21T13:14:16.713Z | 2,015 | 2 | 13 | 5 | 74 | 1 | 183 | 77 | 4 | 0 | false | false | false | false | false | true | negative |
28,646,222 | Update marker position on database update Android | <p>I have a set of latitudes and longitudes saved in MySQL database. I plot them on my map using:</p>
<pre><code> for (int i = 0; i < jArray.length(); i++) {
JSONObject json_data = jArray.getJSONObject(i);
double lat = json_data.getDouble("lat");
double lng= json_... | I have a set of latitudes and longitudes saved in MySQL database. I plot them on my map using: [CODE] (I use Async Task to fetch the location and have kept a Timer to keep calling that Task) These locations correspond to particular vehicles, hence I plan to add that using this link Showing custom InfoWindow for Android... | android|google-maps | 0 | 2015-02-21T13:17:18.293Z | 2,015 | 2 | 13 | 5 | 696 | 1 | 541 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
28,646,231 | The MediaPlayer plays all songs at once | <p>I have a simple app which has a button and a textview and upon the click, it buffers from a audio stream adn plays it using a mediaPlayer object.</p>
<p>I have created a simple loop fro different songs to get played at different execution of the app. ( everytime the user opens the app and presses play, a new song m... | I have a simple app which has a button and a textview and upon the click, it buffers from a audio stream adn plays it using a mediaPlayer object. I have created a simple loop fro different songs to get played at different execution of the app. ( everytime the user opens the app and presses play, a new song must play) B... | java|android|android-mediaplayer | 0 | 2015-02-21T13:18:17.803Z | 2,015 | 2 | 13 | 5 | 166 | 1 | 483 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
28,646,276 | Is there an SDK to develop for Samsung Gear Fit | <p>Has Samsung released an SDK to develop for the Gear Fit. I want to develop and app for the Gear fit approximately 80% of the websites i have visited say that the SDK is not open. </p> | Has Samsung released an SDK to develop for the Gear Fit. I want to develop and app for the Gear fit approximately 80% of the websites i have visited say that the SDK is not open. | android | 2 | 2015-02-21T13:22:24.170Z | 2,015 | 2 | 13 | 5 | 2,789 | 1 | 178 | 47 | 1 | 0 | false | false | true | false | false | false | low |
28,646,394 | Android toggle button change state on scroll listview | <p>Hello I am working with android.I had created a custom list view with toggle button in each row.But the problem is when I scroll the list view the toggle button state changes. How can I solve this problem. Please help me . Thanks in advance :) here is my code</p>
<pre><code> class dataListAdapter extends BaseAdapte... | Hello I am working with android.I had created a custom list view with toggle button in each row.But the problem is when I scroll the list view the toggle button state changes. How can I solve this problem. Please help me . Thanks in advance :) here is my code [CODE] | android|toggle | 1 | 2015-02-21T13:33:44.770Z | 2,015 | 2 | 13 | 5 | 332 | 1 | 266 | 53 | 2 | 1 | true | false | false | false | false | false | low |
28,646,443 | Create Bitmap from longBlob data in android | <p>I am trying to retrieve images that stored as Blobs in Mysql on my server and create Bitmap in Android.
php code:</p>
<pre><code><?php
require 'db_connect.php';
$db = new DB_CONNECT();
if (isset($_POST["id"])) {
$id = $_POST['id'];
$result = mysql_query("SELECT * FROM max_form WHERE id = $id");
$r... | I am trying to retrieve images that stored as Blobs in Mysql on my server and create Bitmap in Android. php code: [CODE] returning data: /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERET... etc but BitmapFactory.decodeStream(inputStream) returning null. JAVA code: [CODE] | java|php|android|mysql|bitmap | 1 | 2015-02-21T13:38:22.250Z | 2,015 | 2 | 13 | 5 | 440 | 1 | 302 | 43 | 5 | 2 | true | false | false | false | false | false | low |
28,646,486 | The type ActionBar.Tab is deprecated | <p>I'm trying to create a swipe tabs in eclipse. But when i import
<strong>android.app.ActionBar.Tab;</strong> it warns me as import <strong>"The type ActionBar.Tab is deprecated".</strong> </p>
<p>And it makes most of my code as warnings and it strike-through it.</p>
<pre><code>import android.support.v4.app.Fragme... | I'm trying to create a swipe tabs in eclipse. But when i import android.app.ActionBar.Tab; it warns me as import "The type ActionBar.Tab is deprecated". And it makes most of my code as warnings and it strike-through it. [CODE] What can i do it now?? Is there is any possible solution to overcome those warnings??? | android|tabs | 7 | 2015-02-21T13:43:32.650Z | 2,015 | 2 | 13 | 5 | 15,955 | 3 | 313 | 36 | 2 | 1 | true | false | true | true | false | false | medium |
28,646,551 | HttpURLConnection: getting 307 response code in some android devices and emulators | <p>I'm using <code>HttpURLConnection</code> to perform a GET request to a specific URL. In some emulators and devices, it works perfectly and i'm getting 200 code, in others i'm getting 307 code. Can some one tell me what is the problem? </p>
<p>Here is my code:</p>
<pre><code>URL cnx = new URL(url);
HttpURLConnecti... | I'm using HttpURLConnection to perform a GET request to a specific URL. In some emulators and devices, it works perfectly and i'm getting 200 code, in others i'm getting 307 code. Can some one tell me what is the problem? Here is my code: [CODE] | android|httpurlconnection|http-status-codes | 1 | 2015-02-21T13:49:51.380Z | 2,015 | 2 | 13 | 5 | 1,338 | 1 | 245 | 82 | 3 | 1 | true | false | false | false | false | false | low |
28,646,554 | Android video saving with 1000x the required space | <p>I made this code for saving making videos in my app but for some reason that I don't understand it is saving them with 1000x more space usage than necessary.</p>
<p>I know of this because the same video is being saved in the camera folder with 1000x less space usage.</p>
<p>any ideas? code is below.</p>
<pre><cod... | I made this code for saving making videos in my app but for some reason that I don't understand it is saving them with 1000x more space usage than necessary. I know of this because the same video is being saved in the camera folder with 1000x less space usage. any ideas? code is below. [CODE] | android|video | 0 | 2015-02-21T13:50:31.117Z | 2,015 | 2 | 13 | 5 | 23 | 1 | 293 | 50 | 2 | 1 | true | false | false | false | false | false | zero |
28,646,581 | Android Button Click Method In Fragment (Crash) | <p>My app crashes on start up, the reason for the crash is the button method in the following code. I am wondering where I need to place the method in order for it to execute successfully.</p>
<p>Fragment1.java</p>
<pre><code>package ie.itsligo.medication;
import android.os.Bundle;
import android.support.v4.app.Frag... | My app crashes on start up, the reason for the crash is the button method in the following code. I am wondering where I need to place the method in order for it to execute successfully. Fragment1.java [CODE] fragment1_layout.xml [CODE] LogCat [CODE] | android|eclipse|button|methods|crash | 2 | 2015-02-21T13:54:34.983Z | 2,015 | 2 | 13 | 5 | 238 | 1 | 249 | 47 | 5 | 3 | true | false | false | false | false | false | low |
28,646,604 | Error running exec(). Command: Working Directory: null Environment: null - how to execute a binary in Android correctly on a non-rooted device? | <p>I want to run an executable on a non-rooted android device.</p>
<p>Using the following commands in java</p>
<pre><code>Runtime.getRuntime().exec("/bin/chmod 744 /data/data/com.example.myapp/myBin");
Runtime.getRuntime().exec("/data/data/com.example.myapp/myBin");
</code></pre>
<p>results in </p>
<pre><code>Error... | I want to run an executable on a non-rooted android device. Using the following commands in java [CODE] results in [CODE] I found alot of questions on this but no answer that worked in my case. How can I execute the binary file correctly? | java|android|binary|shellexecute | 4 | 2015-02-21T13:56:26.397Z | 2,015 | 2 | 13 | 5 | 9,857 | 2 | 238 | 143 | 4 | 2 | true | false | true | false | false | false | low |
28,646,633 | Check if android drawable exists in ASyncTask | <p>I've tried to implement this using an example found on a stackoverflow answer:</p>
<pre><code>int resID = getResources().getIdentifier("icon", "drawable","your.package.namespace");
if (resId == 0){
Log.v("DRAWABLE", "not found");
} else {
//getDrawable like this
Log.v("DRAWABLE", "found");
}
</code></pre>
<p>Howev... | I've tried to implement this using an example found on a stackoverflow answer: [CODE] However this does not address the case where this is executed in an ASyncTask. I've even passed an instance of the activity calling the task: [CODE] EDIT: Sorry I've added the full code snippet. In each case I attempt to log the outco... | android|android-asynctask|drawable | 0 | 2015-02-21T13:59:14.253Z | 2,015 | 2 | 13 | 5 | 411 | 2 | 387 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
28,646,644 | Can't install Titanium's app on my android 2.3.6 phone | <p>I have been developing an app on Titanium, it runs well in the emulator (a Nexus 5) but I can't install it in my samsung GT-S5360L with Android 2.3.6 (I suspect it because android versions). Titanium recognize my phone.</p>
<p>Here the log:</p>
<pre><code>(Other stuff)
[INFO] : Making sure the adb server is runn... | I have been developing an app on Titanium, it runs well in the emulator (a Nexus 5) but I can't install it in my samsung GT-S5360L with Android 2.3.6 (I suspect it because android versions). Titanium recognize my phone. Here the log: [CODE] Please let me know if it is necessary some clarification. Thanks for your help ... | android|titanium | 0 | 2015-02-21T14:00:22.067Z | 2,015 | 2 | 14 | 5 | 584 | 1 | 322 | 54 | 2 | 1 | true | false | false | false | false | false | zero |
28,646,757 | Write and Read a json data to internal storage android | <p>I have a json array received from php</p>
<pre><code>[
{
"name":"Daniel Bryan",
"img":"pictures\/smallest\/dierdrepic.jpg",
"username":"@dbryan",
"user_id":"4"
},
{
"name":"Devil Hacker",
"img":"pictures\/smallest\/belitapic.jpg",
"username":"@dvHack",
... | I have a json array received from php [CODE] What i want is to write this data in a file_name.anyextension in my apps data folder or anywhere safe. Also read this data from file_name.anyextension and convert it to a valid json array that can be further edited. Can anyone show me a way how can i possibly to this thing ? | java|android|arrays|json|file | 15 | 2015-02-21T14:13:08.623Z | 2,015 | 2 | 14 | 5 | 28,043 | 2 | 320 | 54 | 5 | 1 | true | false | true | true | true | false | medium |
28,646,810 | Update TextView with runOnUiThread | <p>I'm trying to have a timer on my Game Activity. The Timer-Thread needs to be in an other class not in my Activity. I've tryed this but it only shows me the first miliseconds and doesn't update than.</p>
<pre><code>public class GameTimer implements Runnable {
private double count = 0.00;
@Override
public void run(... | I'm trying to have a timer on my Game Activity. The Timer-Thread needs to be in an other class not in my Activity. I've tryed this but it only shows me the first miliseconds and doesn't update than. [CODE] in Activity [CODE] | java|android|multithreading | 0 | 2015-02-21T14:19:16.940Z | 2,015 | 2 | 14 | 5 | 586 | 1 | 224 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
28,646,835 | Creating layout for ListView with a side index list | <p>I created this layout for my <code>ListView</code>:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ListView
android:id="@... | I created this layout for my ListView : [CODE] But the vertical LinearLayout appears overlapped on ListView instead of being at right of ListView . How to fix this above code to have ListView on left (that covers about the 90% of the screen) and vertical LinearLayout on the right (covering the remaining 10% of the scre... | android|xml|list|listview|layout | 0 | 2015-02-21T14:21:22.353Z | 2,015 | 2 | 14 | 5 | 171 | 2 | 359 | 51 | 5 | 1 | true | false | false | false | false | false | zero |
28,646,843 | How Can I Add A Spinner Dynamically(By Press Of A Button)? | <p>I am new to Android Programming, I have been trying to add a spinner with a button click, my wonder is i always keep getting an error, I can not find a solid answer anywhere, Can somebody please help me?
below is my code
it tells me inSpinner cannot be created and that CreateFromResource() is array adapter cannot be... | I am new to Android Programming, I have been trying to add a spinner with a button click, my wonder is i always keep getting an error, I can not find a solid answer anywhere, Can somebody please help me? below is my code it tells me inSpinner cannot be created and that CreateFromResource() is array adapter cannot be ap... | java|android|spinner | 1 | 2015-02-21T14:22:10.870Z | 2,015 | 2 | 14 | 5 | 2,038 | 2 | 344 | 58 | 3 | 1 | true | false | false | false | false | false | low |
28,646,866 | Android Studio GoogleAPIs ClassNotFoundException | <p>I have a project that I'm trying to run but I want to run it against Google API's 21 so that I can use MapActivity and basically implement <a href="https://stackoverflow.com/questions/11745314/why-retrieving-google-directions-for-android-using-kml-data-is-not-working-anymo/11745316#11745316">this maps solution</a></... | I have a project that I'm trying to run but I want to run it against Google API's 21 so that I can use MapActivity and basically implement this maps solution I added the code and to get it working without errors I had to add compileSdkVersion to "Google Inc.:Google APIs:21". Every time I launch, the app crashes on laun... | android|google-maps|maps | 0 | 2015-02-21T14:25:07.800Z | 2,015 | 2 | 14 | 5 | 160 | 1 | 951 | 48 | 3 | 3 | true | false | false | false | false | false | zero |
28,646,873 | Cherry-picking from github: pick only the commit's new code | <p>When I do cherry-pick from github, it usually adds code that is not from the commit, but that I don't have in my files.</p>
<p>Is there any way to tell cherry-pick to only add the code that is new from the commit I want to cherry-pick? </p> | When I do cherry-pick from github, it usually adds code that is not from the commit, but that I don't have in my files. Is there any way to tell cherry-pick to only add the code that is new from the commit I want to cherry-pick? | android|git|cherry-pick | 0 | 2015-02-21T14:26:19.153Z | 2,015 | 2 | 14 | 5 | 131 | 0 | 228 | 59 | 3 | 0 | false | true | false | false | false | false | zero |
28,646,892 | How to Display a preference category as a cardview? | <p>I want to display a <code>PreferenceCategory</code> as a <code>CardView</code>.</p>
<p>In the official Lollipop preference screen they use not directly a <code>CardView</code> but there is also a gap between different preferencecategories. How can I do this?</p>
<p>this is my code for the Preferences:</p>
<p><str... | I want to display a PreferenceCategory as a CardView . In the official Lollipop preference screen they use not directly a CardView but there is also a gap between different preferencecategories. How can I do this? this is my code for the Preferences: PrefsFragment (PreferenceFragment) [CODE] Preferences (PreferenceActi... | android|android-5.0-lollipop|android-preferences|android-cardview | 3 | 2015-02-21T14:29:12.987Z | 2,015 | 2 | 14 | 5 | 1,541 | 1 | 332 | 51 | 4 | 2 | true | false | false | false | false | false | low |
28,646,903 | Unable to setup Google Play Services | <p>I have been stuck over a day to use the Google Play Service. This is a very bad procedure created by Google. Why it is that difficult??
I want to use Google Play Service in order to develop some apps which depends on the Map. I have been tried everything step by step, discussed on many sites but still unable to get ... | I have been stuck over a day to use the Google Play Service. This is a very bad procedure created by Google. Why it is that difficult?? I want to use Google Play Service in order to develop some apps which depends on the Map. I have been tried everything step by step, discussed on many sites but still unable to get it.... | android|eclipse|google-play-services|android-mapview|android-maps-v2 | 1 | 2015-02-21T14:30:10.013Z | 2,015 | 2 | 14 | 5 | 2,356 | 2 | 1,731 | 36 | 5 | 3 | true | false | false | false | false | false | low |
28,646,971 | Certifcate Warning For SSL Site In Facebook In App Browser | <p>OK, I have a bit of a strange issue. I have an ssl-only website secured with a Comodo PositiveSSL certificate and the certificate is installed properly on an NGINX server and has been working with no issue.</p>
<p>Every major browser renders the site and links to it on Desktop / Mobile with no certificate errors, h... | OK, I have a bit of a strange issue. I have an ssl-only website secured with a Comodo PositiveSSL certificate and the certificate is installed properly on an NGINX server and has been working with no issue. Every major browser renders the site and links to it on Desktop / Mobile with no certificate errors, however on t... | android|facebook|ssl|nginx | 1 | 2015-02-21T14:38:16.073Z | 2,015 | 2 | 14 | 5 | 965 | 0 | 892 | 58 | 4 | 0 | false | true | false | false | false | false | low |
28,646,999 | No such instance field | <p>I'm trying to get my application to save some data when the orientation of the screen is changed using the <code>onSaveInstanceState</code> to save a boolean value <code>mCheated</code>. </p>
<p>I've set numerous break points and am getting an error for the <code>mCheated</code> boolean value in the variables view<... | I'm trying to get my application to save some data when the orientation of the screen is changed using the onSaveInstanceState to save a boolean value mCheated . I've set numerous break points and am getting an error for the mCheated boolean value in the variables view [CODE] I have no idea why as I declare it with a v... | java|android|variables|instance | 18 | 2015-02-21T14:40:34.007Z | 2,015 | 2 | 14 | 5 | 48,384 | 5 | 436 | 22 | 4 | 2 | true | false | true | true | true | false | medium |
28,647,021 | Refresh Icon in Android View on Variable | <p>I got a Button in my Main Activity which can get two background images.
I got a variable in a class, which is boolean and got the state the button should have. </p>
<p>In the onCreate() I got following:</p>
<pre><code> if(HelperFunctions.itsRinging == true){
stopButton.setBackgroundResource(R.drawable.klin... | I got a Button in my Main Activity which can get two background images. I got a variable in a class, which is boolean and got the state the button should have. In the onCreate() I got following: [CODE] If the App is closed, a push message comes in, I open the app, the icon got the "klingelt" background. Like it should!... | android|button|view | 0 | 2015-02-21T14:42:40.640Z | 2,015 | 2 | 14 | 5 | 279 | 0 | 707 | 40 | 3 | 2 | true | true | false | false | false | false | zero |
28,647,035 | GoogleDrive Android API not running | <p>I have installed all the sdks(s) necessary and the GoogleAPI, Google Play Services etc. but I am still getting an error! Please note I am still in the initial steps of making the application, hence the lack of code, This is my code:</p>
<pre><code>package com.example.googleapi;
import android.support.v7.app.Action... | I have installed all the sdks(s) necessary and the GoogleAPI, Google Play Services etc. but I am still getting an error! Please note I am still in the initial steps of making the application, hence the lack of code, This is my code: [CODE] This is the compile error I am getting: [CODE] | java|android|android-studio|google-api|google-drive-android-api | 0 | 2015-02-21T14:43:59.830Z | 2,015 | 2 | 14 | 5 | 1,279 | 1 | 286 | 35 | 5 | 2 | true | false | false | false | false | false | zero |
28,647,046 | Create different service with the same class (android) | <p>I have to create an app for sending programmed messages, if I create a single service for a single message is all ok, but if I create messages how do I handle the deletion of a specific service? also after the stop of the first service if i try to create other service crash all... i use a timer for my service</p>
<... | I have to create an app for sending programmed messages, if I create a single service for a single message is all ok, but if I create messages how do I handle the deletion of a specific service? also after the stop of the first service if i try to create other service crash all... i use a timer for my service [CODE] se... | android|android-intent|timer|android-service | 0 | 2015-02-21T14:44:41.110Z | 2,015 | 2 | 14 | 5 | 92 | 0 | 338 | 54 | 4 | 2 | true | true | false | false | false | false | zero |
28,647,064 | viewPager.setAdapter(new MyAdapter(getSupportFragmentManager())) Error | <p>I am trying to create a tabview by viewpager. Before typing "viewPager.setAdapter(new MyAdapter(getSupportFragmentManager()));" everything seems fine. <strong>But when I type it, I face with</strong> "Unfortunately, .... has stopped" error. Although I added v4 library, I face with error.</p>
<p>You can find the cod... | I am trying to create a tabview by viewpager. Before typing "viewPager.setAdapter(new MyAdapter(getSupportFragmentManager()));" everything seems fine. But when I type it, I face with "Unfortunately, .... has stopped" error. Although I added v4 library, I face with error. You can find the code below: [CODE] MainActivity... | android|android-fragments|android-viewpager|android-fragmentactivity | 2 | 2015-02-21T14:46:13.257Z | 2,015 | 2 | 14 | 5 | 1,824 | 0 | 406 | 70 | 4 | 5 | true | true | false | false | false | false | low |
28,647,107 | Allure to generate reports for Android tests. How? | <p>Looking for good tool to generate reports for test results in Android.</p>
<p>I'm trying to connect <a href="http://allure.qatools.ru/" rel="nofollow">Allure</a> to generate reports for my integrated tests for Android. As test framework I'm using <a href="https://code.google.com/p/robotium/" rel="nofollow">Robotium... | Looking for good tool to generate reports for test results in Android. I'm trying to connect Allure to generate reports for my integrated tests for Android. As test framework I'm using Robotium . Can't find any tutorials how to integrate this tools. Is it possible? Or any suggestions about tools to generate reports? He... | android|robotium|allure | 0 | 2015-02-21T14:51:02.973Z | 2,015 | 2 | 14 | 5 | 1,340 | 1 | 367 | 50 | 3 | 2 | true | false | false | false | false | false | zero |
28,647,152 | Failed to start an Appium session, err was: Error: Bad app: | <p>I want to automated Facebook app on my android device.</p>
<p>I have tried to init a driver like this:</p>
<pre><code> private AppiumDriver driver;
@Before
public void setUp() throws Exception {
File classpathRoot = new File(System.getProperty("user.dir"));
File appDir = new File(classp... | I want to automated Facebook app on my android device. I have tried to init a driver like this: [CODE] and I got: [CODE] I have tried: [CODE] and I got: [CODE] how can I make it work? Update I have tried: [CODE] and got: [CODE] | java|android|automation|ui-automation|appium | 3 | 2015-02-21T14:56:21.260Z | 2,015 | 2 | 14 | 5 | 8,810 | 2 | 227 | 59 | 5 | 6 | true | false | true | false | false | false | low |
28,647,156 | Issue with black box appearing on Android app screen | <p>Attached is a screen of my android app. It usually works perfect, but sometimes when I press an item on the menu, I get a small black box appearing (toast?).</p>
<p>Does anyone know why this occurs and how can I make it not appear again?</p>
<p>Here is the screenshot of the issue.
<a href="http://postimg.org/imag... | Attached is a screen of my android app. It usually works perfect, but sometimes when I press an item on the menu, I get a small black box appearing (toast?). Does anyone know why this occurs and how can I make it not appear again? Here is the screenshot of the issue. http://postimg.org/image/eoe9vdqmd/ | android | 0 | 2015-02-21T14:56:39.540Z | 2,015 | 2 | 14 | 5 | 1,309 | 0 | 303 | 52 | 1 | 0 | false | true | false | false | false | false | zero |
28,647,162 | How to differentiate between screen lock and home button press on in Android? | <p>I would like to keep the current activity state when the screen goes off and becomes locked (However, in this first case, home button should not be pressed by the user). When the screen is on, I would like to present the same activity to the user. If the user presses the home button, I would like to start another ac... | I would like to keep the current activity state when the screen goes off and becomes locked (However, in this first case, home button should not be pressed by the user). When the screen is on, I would like to present the same activity to the user. If the user presses the home button, I would like to start another activ... | android | 1 | 2015-02-21T14:57:01.733Z | 2,015 | 2 | 14 | 5 | 791 | 3 | 465 | 77 | 1 | 0 | false | false | false | false | false | false | low |
28,647,181 | Phonegap Android permissions | <p>I have a Phonegap app that I'm currently developing and testing for Android. Problem is, when I publish to device, the Android Manifest is full of permission requests that I did not ask for.</p>
<p>I tried adding:</p>
<pre><code><preference name="permissions" value="none" />
</code></pre>
<p>to config.xml b... | I have a Phonegap app that I'm currently developing and testing for Android. Problem is, when I publish to device, the Android Manifest is full of permission requests that I did not ask for. I tried adding: [CODE] to config.xml but it still doesn't work. How can I only let "Network permission" only? | android|cordova|phonegap-build|android-permissions | 1 | 2015-02-21T14:58:29.123Z | 2,015 | 2 | 14 | 5 | 3,452 | 2 | 300 | 28 | 4 | 1 | true | false | true | false | false | false | low |
28,647,185 | Android Alarm not triggered after finishing | <p>My alarm doesn't trigger when I finish the activity before.
When I just stay in the activity, the alarm works fine.
Here's the code:</p>
<pre><code> AlarmManager alarms = (AlarmManager)getApplicationContext().getSystemService(Context.ALARM_SERVICE);
final BroadcastReceiver receiver_daily = new BroadcastReceiver... | My alarm doesn't trigger when I finish the activity before. When I just stay in the activity, the alarm works fine. Here's the code: [CODE] I also noticed that I get this leak warning: android.app.IntentReceiverLeaked: Activity com.doopy.numbers.GameOverActivity has leaked IntentReceiver com.doopy.numbers.GameOverActiv... | android|alarm|ondestroy | 0 | 2015-02-21T14:58:52.200Z | 2,015 | 2 | 14 | 5 | 232 | 1 | 635 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
28,647,289 | How to convert JSONArray to arraylist | <p>i have JSONArray(not JSONObject) , content of this array looks like :</p>
<pre><code>[{"ID":"24","CardName":"Gool","CardCode":"9785898080617","CardCodeType":"EAN-13","CardHolderName":"\u041f\u0443\u043f\u043a\u0438\u043d","CardCountryCode":"UA","CardHolderID":"3","CardSumRait":"55","VotesCount":"11","Rating":"5"},{... | i have JSONArray(not JSONObject) , content of this array looks like : [CODE] Now i need to convert it to ArrayList ,i was looking for different manuals , but and try some code: My JSONParcer : [CODE] My MainActivity : [CODE] } When i start my program and click on button to show array in logs i have this [CODE] I unders... | android|arraylist|android-json | 2 | 2015-02-21T15:08:52.880Z | 2,015 | 2 | 15 | 5 | 3,120 | 3 | 495 | 37 | 3 | 4 | true | false | true | false | false | false | low |
28,647,370 | Android viewpager automatic sliding | <p>How to handle automatic swiping of viewpager pages together with manual swipe
i.e a set of 10 pages are there in viewpager each slides after 3 seconds but problem is when user swipes the page it moves back to sequence page what i need is following.
1>if user swipes two consecutive pages than it should not go back.... | How to handle automatic swiping of viewpager pages together with manual swipe i.e a set of 10 pages are there in viewpager each slides after 3 seconds but problem is when user swipes the page it moves back to sequence page what i need is following. 1>if user swipes two consecutive pages than it should not go back. 2>ti... | android|android-viewpager | 0 | 2015-02-21T15:17:15.513Z | 2,015 | 2 | 15 | 5 | 2,781 | 2 | 445 | 35 | 2 | 1 | true | false | true | false | false | false | zero |
28,647,416 | Creating a custom android view within another custom android view | <p>So, I have the basic structure of creating a custom android view component locked down (i.e. create the view's layout xml, create a class for that view that references the layout xml, and then use the class name in an layout xml that uses the custom view) and that's all fine. </p>
<p>However, if I have a set of cus... | So, I have the basic structure of creating a custom android view component locked down (i.e. create the view's layout xml, create a class for that view that references the layout xml, and then use the class name in an layout xml that uses the custom view) and that's all fine. However, if I have a set of custom android ... | android|user-interface | 1 | 2015-02-21T15:21:46.493Z | 2,015 | 2 | 15 | 5 | 235 | 0 | 1,231 | 65 | 2 | 0 | false | true | false | false | false | false | low |
28,647,499 | Android onClick from another class | <p>I have an class with a view and an avatar there which has a onClick property.</p>
<pre><code>mSampleLayout = (BlurLayout)findViewById(R.id.blur_layout);
View hover1 = LayoutInflater.from(mContext).inflate(R.layout.activity_hover_sample, null);
hover1.findViewById(R.id.avatar1).setOnClickListener(new... | I have an class with a view and an avatar there which has a onClick property. [CODE] I would like to check if this avatar is clicked in another activity and do other stuff if it is clicked. [CODE] Thanks for help. | android|android-activity|onclick | 0 | 2015-02-21T15:31:07.023Z | 2,015 | 2 | 15 | 5 | 74 | 2 | 213 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
28,647,504 | How to perform this action in Android Activity? | <p>I have a <code>ListView</code>, where the <code>ListItem</code> contains student's registration number and their name. So, the following is the action I would like to perform.</p>
<p>When I click the <code>ListItem</code>, the <code>ListItem</code> expands (or a layout appears between the two <code>ListItem</code> ... | I have a ListView , where the ListItem contains student's registration number and their name. So, the following is the action I would like to perform. When I click the ListItem , the ListItem expands (or a layout appears between the two ListItem or something like that happens) and the expanded section displays further ... | android|android-layout|android-activity | 0 | 2015-02-21T15:31:34.170Z | 2,015 | 2 | 15 | 5 | 39 | 1 | 947 | 47 | 3 | 0 | false | false | false | false | false | false | zero |
28,647,604 | Force hide address bar in Chrome on Android | <p>I recently developed a website that fetches mixed http/https content. Due to this, I always get the address bar displayed on top (It doesn't auto-hide like in other websites). Here's what I'm talking about:</p>
<p><img src="https://i.stack.imgur.com/wRxSZm.png" alt="The Website" /></p>
<p><a href="https://planetkde.... | I recently developed a website that fetches mixed http/https content. Due to this, I always get the address bar displayed on top (It doesn't auto-hide like in other websites). Here's what I'm talking about: This is the link to the website. The content is fetched from various sources, hence filtering non-https content i... | javascript|android|jquery|twitter-bootstrap|google-chrome | 50 | 2015-02-21T15:40:49.437Z | 2,015 | 2 | 15 | 5 | 141,006 | 2 | 612 | 43 | 5 | 0 | false | false | true | true | true | false | high |
28,647,608 | Switching fragments in navigation drawer | <p>I want to be able to use a navigation drawer and change between different fragments depending on selection in the navigation.</p>
<p>I'm using Android Studio and basically what I've done is this:</p>
<ul>
<li>Created a new project using the built in template "Navigation Drawer Activity".</li>
<li>Created a blank f... | I want to be able to use a navigation drawer and change between different fragments depending on selection in the navigation. I'm using Android Studio and basically what I've done is this: Created a new project using the built in template "Navigation Drawer Activity". Created a blank fragment. Then I change some code i... | java|android|android-fragments|navigation-drawer | 1 | 2015-02-21T15:40:54.163Z | 2,015 | 2 | 15 | 5 | 710 | 1 | 474 | 40 | 4 | 2 | true | false | false | false | false | false | low |
28,647,624 | How to manage session for a user logged in from mobile app in PHP? | <p>I'm a <strong>PHP programmer</strong> by profession. So, I don't have any idea about iOS and Android coding.</p>
<p>The scenario is there is one website developed using a Social Networking PHP software titled <strong>"PHPFox"</strong>.</p>
<p>Now there are two similar mobile apps which exactly replicates the funct... | I'm a PHP programmer by profession. So, I don't have any idea about iOS and Android coding. The scenario is there is one website developed using a Social Networking PHP software titled "PHPFox" . Now there are two similar mobile apps which exactly replicates the functionality of this website. One mobile app is in iOS a... | php|android|ios|session|phpfox | 44 | 2015-02-21T15:42:19.967Z | 2,015 | 2 | 15 | 5 | 53,688 | 7 | 1,923 | 66 | 5 | 0 | false | false | true | true | true | false | high |
28,647,640 | Http connection getInputStream null pointer exception android | <p>I'm getting null pointer exception on method getInputStream() and I know that urlConnection isn't null</p>
<pre><code>URL url = new URL(strUrl);
/** Creating an http connection to communcate with url */
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
/** Connect... | I'm getting null pointer exception on method getInputStream() and I know that urlConnection isn't null [CODE] Url string is fine I'm checking it in my browser. Thank you. | android|http|url|exception|https | 0 | 2015-02-21T15:44:10.867Z | 2,015 | 2 | 15 | 5 | 891 | 0 | 170 | 61 | 5 | 1 | true | true | false | false | false | false | zero |
28,647,660 | ssl handshake exception in android gcm server | <p>Hi friends I am new to android. I am trying to create gcm server. my code is</p>
<pre><code>System.setProperty("javax.net.ssl.trustStore","/usr/bin/keystore.jks");
String id = "cliend id";
String msg = "Test";
Sender sender = new Sender(Api key);
Message message = new Message.Builder()
.addData("message", "... | Hi friends I am new to android. I am trying to create gcm server. my code is [CODE] I create keystore but still i have error like: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid c... | java|android|ssl|google-cloud-messaging | 1 | 2015-02-21T15:45:43.970Z | 2,015 | 2 | 15 | 5 | 1,376 | 2 | 387 | 45 | 4 | 1 | true | false | false | false | false | false | low |
28,647,661 | Lazy load of Youtube Thumbnail in Grid view in android using youtube api | <p>I am developing an android app, which shows a grid view of Youtube Thumbnail and when click on a Thumbnail , play the video. I have successfully done this part.<br>But my video list is huge , I do not want to load all the Thumbnail at a time, I want to load more Thumbnail when user reach at the end of primary Thumbn... | I am developing an android app, which shows a grid view of Youtube Thumbnail and when click on a Thumbnail , play the video. I have successfully done this part. But my video list is huge , I do not want to load all the Thumbnail at a time, I want to load more Thumbnail when user reach at the end of primary Thumbnail li... | android|gridview|video|youtube-api|lazy-loading | 0 | 2015-02-21T15:45:49.500Z | 2,015 | 2 | 15 | 5 | 531 | 0 | 364 | 72 | 5 | 0 | false | true | false | false | false | false | zero |
28,647,676 | Android :: setBuiltinzoomcontrol doesnt work in webview | <p>I have implemented custom webview and using swipe through gesture detector.swipe works perfectly...
I have already set the buil in zoom control and set support zoom to true.</p>
<p>Still zoom control doent work.</p>
<p>below is the code in oncreate methid ..</p>
<pre><code>wvBrowser = ( CustomWebView ) findViewBy... | I have implemented custom webview and using swipe through gesture detector.swipe works perfectly... I have already set the buil in zoom control and set support zoom to true. Still zoom control doent work. below is the code in oncreate methid .. [CODE] below is the custom gesture detector listener [CODE] Custom webview ... | android|android-webview | 0 | 2015-02-21T15:47:33.420Z | 2,015 | 2 | 15 | 5 | 369 | 0 | 381 | 55 | 2 | 3 | true | true | false | false | false | false | zero |
28,647,677 | not able to return data after doInBackground Method | <p>Here is my code. In it onPostExecute() method is getting result as null but I am returning the value from doInBackground() method.
doInBackground() is calling the method getWeatherDataFromJson(). I am getting return arrary resultStrs in LOG(see code) but in onPostExecute() result is null.</p>
<pre><code>public clas... | Here is my code. In it onPostExecute() method is getting result as null but I am returning the value from doInBackground() method. doInBackground() is calling the method getWeatherDataFromJson(). I am getting return arrary resultStrs in LOG(see code) but in onPostExecute() result is null. [CODE] | android|android-asynctask | 0 | 2015-02-21T15:47:34.073Z | 2,015 | 2 | 15 | 5 | 221 | 1 | 296 | 51 | 2 | 1 | true | false | false | false | false | false | zero |
28,647,680 | Reading/Writing text from edittext in another application | <p><br>Greetings guys.<br><br>Recently, I was wondering if there are any methods to get instance of the focused Edittext on the screen even if it's from another application.<br>In C# we were able to do it by digging into the Windows API and putting FindWindow or FindWindowEx functions into practice.<br>Is there any alt... | Greetings guys. Recently, I was wondering if there are any methods to get instance of the focused Edittext on the screen even if it's from another application. In C# we were able to do it by digging into the Windows API and putting FindWindow or FindWindowEx functions into practice. Is there any alternatives in Java fo... | java|android|android-edittext | 1 | 2015-02-21T15:48:20.837Z | 2,015 | 2 | 15 | 5 | 625 | 1 | 343 | 57 | 3 | 0 | false | false | false | false | false | false | low |
28,647,696 | How to tell OpenGL ES 2.0 which vertices to use? | <p>I want to draw a simple texture in 2d.
Previously i used OpenGL ES 1.0 and i told OpenGL which vertices to use like this:</p>
<pre><code>glEnableClientState(GL10.GL_VERTEX_ARRAY);
glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
</code></pre>
<p>Now I want to do it in OpenGL ES 2.0, but Eclipse gives me errors ... | I want to draw a simple texture in 2d. Previously i used OpenGL ES 1.0 and i told OpenGL which vertices to use like this: [CODE] Now I want to do it in OpenGL ES 2.0, but Eclipse gives me errors when i try it like this, so i googled alot and found code like this: [CODE] The tutorial first creates a shader program and c... | java|android|opengl-es-2.0 | 0 | 2015-02-21T15:50:11.117Z | 2,015 | 2 | 15 | 5 | 45 | 1 | 492 | 48 | 3 | 2 | true | false | false | false | false | false | zero |
28,647,794 | How to differ between onClick and onLongClick on Smartwatch2 | <p>I'm trying to make this work:</p>
<pre><code> ControlView btnClearCounter = mLayout.findViewById(R.id.btn_clear);
btnClearCounter.setOnClickListener(new OnClickListener() {
@Override
public void onClick() {
mCounter=mCounter-1;
updatePressedText... | I'm trying to make this work: [CODE] Can't get the onLongClick to fire. How to do that? | android|sony-smartwatch | 0 | 2015-02-21T16:01:54.777Z | 2,015 | 2 | 16 | 5 | 288 | 1 | 87 | 60 | 2 | 1 | true | false | false | false | false | false | zero |
28,647,804 | Android - ScrollView Issue | <p>I'm having some trouble with how scrollviews handle content being added to them. Here are two screenshots of my app, once where I add an expandlistview to a scrollview which is nested inside a LinearLayout, and then another where I remove the scrollview. YOu'll notice that when there is no scrollview the content hei... | I'm having some trouble with how scrollviews handle content being added to them. Here are two screenshots of my app, once where I add an expandlistview to a scrollview which is nested inside a LinearLayout, and then another where I remove the scrollview. YOu'll notice that when there is no scrollview the content height... | android|scrollview|expandablelistview | 0 | 2015-02-21T16:02:54.740Z | 2,015 | 2 | 16 | 5 | 433 | 3 | 673 | 26 | 3 | 2 | true | false | false | false | false | false | zero |
28,647,830 | Android - could not execute method of the activity | <p>I have a service library with a broadcast receiver in it.</p>
<p>All I am doing in my main application is calling certain methods within the service, nothing new there.</p>
<p>I am receiving the following everytime I want to run my code (please look below)</p>
<p><strong>Error</strong></p>
<pre><code>02-21 15:51... | I have a service library with a broadcast receiver in it. All I am doing in my main application is calling certain methods within the service, nothing new there. I am receiving the following everytime I want to run my code (please look below) Error [CODE] The service - please note below this is more code which is not w... | android | 0 | 2015-02-21T16:04:54.337Z | 2,015 | 2 | 16 | 5 | 2,018 | 2 | 1,002 | 50 | 1 | 6 | true | false | false | false | false | false | zero |
28,647,832 | java.lang.RuntimeException: Unable to start activity java.lang.NullPointerException 02-21 22:55:01.480: E/And | <p>I want to make maps and show all markers or locations in google maps. I have created a class database for latitude and longitude. I call latitude and longitude for view location in google maps. I've this code</p>
<pre><code>public void onLocationChanged(Location location) {
Intent intent = new Intent(getApp... | I want to make maps and show all markers or locations in google maps. I have created a class database for latitude and longitude. I call latitude and longitude for view location in google maps. I've this code [CODE] But when I run the program, I get the following error: [CODE] | java|android|eclipse|google-maps | 0 | 2015-02-21T16:05:08.250Z | 2,015 | 2 | 16 | 5 | 255 | 1 | 277 | 109 | 4 | 2 | true | false | false | false | false | false | zero |
28,647,856 | Android Parse.com not showing data on first opening | <p>I have an application which uses Parse.com. Whenever I open my application and I go to the activity where it shows the user's favorite exercises, it doesn't show anything. If I press the back button and re-open the same activity (Favorites) it shows my favorite exercises. I have no clue why this happens and I hope s... | I have an application which uses Parse.com. Whenever I open my application and I go to the activity where it shows the user's favorite exercises, it doesn't show anything. If I press the back button and re-open the same activity (Favorites) it shows my favorite exercises. I have no clue why this happens and I hope some... | java|android|parse-platform | 0 | 2015-02-21T16:07:10.887Z | 2,015 | 2 | 16 | 5 | 41 | 0 | 696 | 51 | 3 | 3 | true | true | false | false | false | false | zero |
28,648,085 | Android sqlite - How to manage a Integer value in where clause | <p>I've a problem with the query to mananage the sqlite database in android.</p>
<p>this is a sample method : </p>
<pre><code>public Cursor selectID( Integer id){
// query code for select
}
</code></pre>
<p>But all the query method that i see , not allow me to manage an integer parameter, or anything else except a S... | I've a problem with the query to mananage the sqlite database in android. this is a sample method : [CODE] But all the query method that i see , not allow me to manage an integer parameter, or anything else except a String parameter. Usually i use the rawQuery method: for example : [CODE] But that, as i said , is not p... | android|sqlite|where-clause | 4 | 2015-02-21T16:26:37.433Z | 2,015 | 2 | 16 | 5 | 6,929 | 1 | 414 | 62 | 3 | 3 | true | false | true | false | false | false | low |
28,648,159 | Loss files when publish new version apk in google play developer console | <p>In my app I am store files in subdirectory of getExternalStorageDirectory (memory card).
But when I am publish new version of apk in Google Play Developer Console some users write to me that they are losing files. why users lose their files? Maybe they remove sdcard? But if they have no sdcard?</p> | In my app I am store files in subdirectory of getExternalStorageDirectory (memory card). But when I am publish new version of apk in Google Play Developer Console some users write to me that they are losing files. why users lose their files? Maybe they remove sdcard? But if they have no sdcard? | android | 1 | 2015-02-21T16:34:50.873Z | 2,015 | 2 | 16 | 5 | 26 | 0 | 295 | 72 | 1 | 0 | false | true | false | false | false | false | low |
28,648,184 | What is wrong with the add method? | <p>I'm currently working on a simple program regarding content provider in Android. I created my own content provider using SQLite database, in which i store and handle my friends'birthdays. The app run fine but when i add a birthday the app crashes. But when i start the app again i can show the birthday that was added... | I'm currently working on a simple program regarding content provider in Android. I created my own content provider using SQLite database, in which i store and handle my friends'birthdays. The app run fine but when i add a birthday the app crashes. But when i start the app again i can show the birthday that was added fr... | android|android-contentprovider | 0 | 2015-02-21T16:37:00.950Z | 2,015 | 2 | 16 | 5 | 52 | 0 | 608 | 34 | 2 | 3 | true | true | 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.