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,794,206 | How to fit layout in 2 devices with same DPI (320dpi) and different resolutions | <p>I made a simple layout after reading Android documentation. My problem is the following : I have 2 devices with same DPI ( 320dpi ) and different resolutions, 1200x1920 and 800x1280. I would fit my layout so that it will be good in both devices. </p>
<p>Screenshots :</p>
<p>1200x1920 : <a href="http://i.imgur.com/... | I made a simple layout after reading Android documentation. My problem is the following : I have 2 devices with same DPI ( 320dpi ) and different resolutions, 1200x1920 and 800x1280. I would fit my layout so that it will be good in both devices. Screenshots : 1200x1920 : http://i.imgur.com/mDZ1aZF.png 800x1200 : http:/... | android-layout|layout|resolution | 0 | 2015-03-01T13:43:26.227Z | 2,015 | 3 | 13 | 6 | 174 | 1 | 401 | 79 | 3 | 0 | false | false | false | false | false | false | zero |
28,794,304 | Issues with Graph ploting in android achrtengine | <p>I am using achartengine for graph ploting . I have issues with matching points with a straight line . Like If I have to make a line for a week and let say I don't have points for any two days (Tuesday and wed.) Now how I am gonna match point of Monday directly to Thursday and so on .</p>
<p>This is the code I am us... | I am using achartengine for graph ploting . I have issues with matching points with a straight line . Like If I have to make a line for a week and let say I don't have points for any two days (Tuesday and wed.) Now how I am gonna match point of Monday directly to Thursday and so on . This is the code I am using for mak... | android|android-layout|achartengine | -1 | 2015-03-01T13:54:15.590Z | 2,015 | 3 | 13 | 6 | 33 | 1 | 338 | 48 | 3 | 1 | true | false | false | false | false | true | negative |
28,794,394 | Multi Options Actionbar | <p>I have an action bar in my application with one button that should be options button.
When you click it, it should open few options.
I made a String-Array in the Strings.xml file but I can't get it to work.
Any code samples?
I searched the internet but couldn't find anything.
Thanks!</p> | I have an action bar in my application with one button that should be options button. When you click it, it should open few options. I made a String-Array in the Strings.xml file but I can't get it to work. Any code samples? I searched the internet but couldn't find anything. Thanks! | android|android-actionbar | 0 | 2015-03-01T14:03:24.607Z | 2,015 | 3 | 14 | 6 | 65 | 1 | 284 | 23 | 2 | 0 | false | false | false | false | false | false | zero |
28,794,442 | Need help using ((ImageView) findViewById.getView().(R.id.imageView1)).setImageBitmap(bmp); in a fragment | <p>I'm having trouble using the following code in a fragment activity:</p>
<pre><code>((ImageView) findViewById.getView().(R.id.imageView1)).setImageBitmap(bmp);
</code></pre>
<p>I've tried using: </p>
<pre><code>((ImageView) this.getView().findViewById(R.id.imageView1)).setImageBitmap(bmp);
</code></pre>
<p>but th... | I'm having trouble using the following code in a fragment activity: [CODE] I've tried using: [CODE] but this doesn't work. App crashes | android|android-fragments|findviewbyid | 0 | 2015-03-01T14:07:42.147Z | 2,015 | 3 | 14 | 6 | 8,463 | 2 | 134 | 105 | 3 | 2 | true | false | true | false | false | false | zero |
28,794,464 | Create a GPS Tracker Without Google Service | <p>I am a new Android programmer. I started a project on Android Studio and I trying to make an application that shows the current position of the user on a map like Google Maps, but I am trying to make it without using the Google service, like the application on Google Play Store: "Real Time GPS Tracker".</p>
<p>If y... | I am a new Android programmer. I started a project on Android Studio and I trying to make an application that shows the current position of the user on a map like Google Maps, but I am trying to make it without using the Google service, like the application on Google Play Store: "Real Time GPS Tracker". If you have any... | android|google-maps-android-api-2 | 1 | 2015-03-01T14:10:18.427Z | 2,015 | 3 | 14 | 6 | 254 | 0 | 368 | 43 | 2 | 0 | false | true | false | false | false | false | low |
28,794,493 | Editing a style programmaticaly (when the user changes settings) | <p>Note: I'm not looking to SET a style, I want to dynamically change a style which is declared in styles.xml.</p>
<p>For example, my app has a widget with layout like this:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget"
android:orientation="vertica... | Note: I'm not looking to SET a style, I want to dynamically change a style which is declared in styles.xml. For example, my app has a widget with layout like this: [CODE] In styles.xml I have this: [CODE] Now, I want to allow user to change some visual settings, like text size or background color. The easiest way seems... | android|android-layout|android-styles | 1 | 2015-03-01T14:13:00.537Z | 2,015 | 3 | 14 | 6 | 62 | 1 | 555 | 64 | 3 | 2 | true | false | false | false | false | false | low |
28,794,510 | CalendarView Error to Display Multiple Highlights | <p><strong>How To Highlight Multiple Days according to Calculation</strong></p>
<p>Hi. please help me how to do this.</p>
<pre><code>package com.tgkjer.fertilitystress;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.Lis... | How To Highlight Multiple Days according to Calculation Hi. please help me how to do this. [CODE] "Thats the error in my logcat can u help me to specify where's the error in my code?" Expected Output: i want to highlights Multiple Days According to Calculation of Period | android|android-calendar | 2 | 2015-03-01T14:14:32.797Z | 2,015 | 3 | 14 | 6 | 570 | 1 | 270 | 49 | 2 | 1 | true | false | false | false | false | false | low |
28,794,512 | Change shape in layer-list programatically | <p>i have this drawable file :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:left="6dp"
android:right="6dp"
android:top="6dp"
android:bottom="6dp"
>
<... | i have this drawable file : [CODE] and i want to change the shape of only one oval programatically but i found nothing do to this.I want to change only one shape not all at the same time. I made lot of research but nothing explain how to do this. So please help me | android|xml | 0 | 2015-03-01T14:14:45.810Z | 2,015 | 3 | 14 | 6 | 460 | 1 | 264 | 42 | 2 | 1 | true | false | false | false | false | false | zero |
28,794,529 | Basic4android - Jsonparser | <p>I have json format like below :</p>
<pre><code>{"response":[{Pasien={id=24, name=Erren}, Detailtransaksi=[], Upk={name=Poli Umum}, Pendaftaran={antrian=1, id=1, user_id=9, modified=2015-03-01 14:08:46, keterangan=demam tinggi, pasien_id=24}},
{Pasien={id=21, name=Lulu Batam}, Detailtransaksi=[], Upk={name=Poli Umu... | I have json format like below : [CODE] but I don't know,how to take the array data into the list. | basic4android | 0 | 2015-03-01T14:16:39.163Z | 2,015 | 3 | 14 | 6 | 1,140 | 2 | 97 | 26 | 1 | 1 | true | false | false | false | false | false | zero |
28,794,549 | Creating a running stopwatch in Android for timing intervals | <p>I want to create a stopwatch in my Android application that starts running when the user presses start and continues to run and enables the user to time specific intervals.</p>
<p>Use case: The user presses "start timing" and the stopwatch starts. The user presses "stop timing", the stopwatch continues to run but c... | I want to create a stopwatch in my Android application that starts running when the user presses start and continues to run and enables the user to time specific intervals. Use case: The user presses "start timing" and the stopwatch starts. The user presses "stop timing", the stopwatch continues to run but counts the l... | android|chronometer | 1 | 2015-03-01T14:18:22.680Z | 2,015 | 3 | 14 | 6 | 490 | 1 | 900 | 60 | 2 | 0 | false | false | false | false | false | false | low |
28,794,650 | Add Google Maps suggested route for driving in my own app | <p>I have the address of two locations. </p>
<p>How can I add Google Maps suggested route function for driving in my own android app?</p>
<p>Many thanks!</p> | I have the address of two locations. How can I add Google Maps suggested route function for driving in my own android app? Many thanks! | android | 0 | 2015-03-01T14:26:12.910Z | 2,015 | 3 | 14 | 6 | 59 | 1 | 135 | 57 | 1 | 0 | false | false | false | false | false | false | zero |
28,794,656 | Where to put the API key? Resources, Meta-data in Manifest or static variable? | <p>I'm trying to figure out what is the best practice for adding the API's key into my Android application.</p>
<p>-Some people recommend to use <code>meta-data</code> in the <code>Manifest.xml</code> file - <a href="https://stackoverflow.com/a/7929059/1364896">link</a>. Which made me feel like, it is better that addi... | I'm trying to figure out what is the best practice for adding the API's key into my Android application. -Some people recommend to use meta-data in the Manifest.xml file - link . Which made me feel like, it is better that adding the key in the resources files. [CODE] -Some people says, add it into the resources - link ... | android|android-studio|android-manifest | 13 | 2015-03-01T14:27:08.100Z | 2,015 | 3 | 14 | 6 | 8,675 | 1 | 729 | 78 | 3 | 4 | true | false | true | false | true | false | medium |
28,794,712 | Why I convert ArrayList to Interger[] is wrong? | <pre><code>private ArrayList<Integer> list;
...
...
...
for (int i=0; i < list.size(); i++) {
Log.e("downloadTask","resource ID is " + list.get(i));
}
Integer[] resourceId = resourceId= (Integer[])list.toArray();
</code></pre>
<p>before for() statement, list had already been initi... | [CODE] before for() statement, list had already been initialized. It has three elements; The Log message is right, but when run [CODE] it will throw Exceptions. I don't know how to solve this problem. | java|android|arraylist|integer | 0 | 2015-03-01T14:32:47.283Z | 2,015 | 3 | 14 | 6 | 58 | 1 | 200 | 47 | 4 | 2 | true | false | false | false | false | false | zero |
28,794,719 | How to check whether a menu item is marked with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW | <p>I was wondering, how can we check whether a <code>MenuItem</code> is marked with <code>SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW</code>?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_add"
... | I was wondering, how can we check whether a MenuItem is marked with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW ? [CODE] For instance, given the above XML, how can I know MenuItem with id menu_search is having SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW MenuItem has setShowAsAction . However, it doesn't have something like getShowAsAc... | android | 1 | 2015-03-01T14:33:44.013Z | 2,015 | 3 | 14 | 6 | 122 | 0 | 324 | 83 | 1 | 1 | true | true | false | false | false | false | low |
28,794,725 | Advantage and disadvantage of CardView | <p>What are the advantages and drawbacks of <code>CardView</code>, other than the shadow or elevation, what is the benefit in performance and looks? What is done using <code>CardView</code> can also be done using a combination of other layouts.</p> | What are the advantages and drawbacks of CardView , other than the shadow or elevation, what is the benefit in performance and looks? What is done using CardView can also be done using a combination of other layouts. | android|performance|android-layout|android-widget|android-cardview | 22 | 2015-03-01T14:34:28.537Z | 2,015 | 3 | 14 | 6 | 6,544 | 1 | 216 | 38 | 5 | 0 | false | false | true | false | true | false | high |
28,794,831 | Align text in TextView with drawableTop | <p>I have this <code>TextView</code>:</p>
<pre><code><TextView
android:id="@+id/silverCount"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:contentDescription="silver"
android:drawableTop="@drawable/silver... | I have this TextView : [CODE] Which looks like this: How can I center the 3 inside the View to be situated directly below the drawable I set with android:drawableTop ? | android|textview|drawable | 0 | 2015-03-01T14:44:56.133Z | 2,015 | 3 | 14 | 6 | 963 | 1 | 167 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
28,794,885 | Android onRestoreInstanceState not updating fully on orientation change | <p>I have a problem in a counting program that shows how many times a method such as onCreate, onStart etc. was called and it seems to be working fine when I go from Activity1 to Activity2 and then back to Activity1 but when I switch orientation, only mResume gets increased.
So for example when I start the app and swit... | I have a problem in a counting program that shows how many times a method such as onCreate, onStart etc. was called and it seems to be working fine when I go from Activity1 to Activity2 and then back to Activity1 but when I switch orientation, only mResume gets increased. So for example when I start the app and switch ... | java|android|android-orientation|onrestoreinstancestate | 1 | 2015-03-01T14:50:18.783Z | 2,015 | 3 | 14 | 6 | 875 | 1 | 597 | 71 | 4 | 4 | true | false | false | false | false | false | low |
28,794,888 | cwac-camera crash on zoom to | <p>I'm using the CameraDemo app included with cwac-camera. I'm trying to make the zoom bar change from the main activity using a method updateZoom() but I'm getting a nullpointerexception sometimes from the zoomTo return. Most of the time the zoom will work but then occasionally the program will crash.</p>
<p>Updated ... | I'm using the CameraDemo app included with cwac-camera. I'm trying to make the zoom bar change from the main activity using a method updateZoom() but I'm getting a nullpointerexception sometimes from the zoomTo return. Most of the time the zoom will work but then occasionally the program will crash. Updated zoom: [CODE... | android|commonsware-cwac|cwac-camera | 0 | 2015-03-01T14:50:22.673Z | 2,015 | 3 | 14 | 6 | 112 | 1 | 369 | 28 | 3 | 3 | true | false | false | false | false | false | zero |
28,794,892 | Android from Pixels mockup to dp measure | <p>Hi I am working on an Android project and I have the following information from the graphical designer:
<img src="https://i.stack.imgur.com/4eM35.png" alt="enter image description here"></p>
<p>The design is done for an Android hdpi screen which should be 960 x 540 px (640 x 360 dp) / hdpi / Normal screen based on ... | Hi I am working on an Android project and I have the following information from the graphical designer: The design is done for an Android hdpi screen which should be 960 x 540 px (640 x 360 dp) / hdpi / Normal screen based on Android SDK documentation. Inside Android studio I am trying to replicate the layout but I ser... | android | 5 | 2015-03-01T14:50:38.423Z | 2,015 | 3 | 14 | 6 | 196 | 0 | 565 | 40 | 1 | 0 | false | true | false | false | false | false | low |
28,794,894 | Prevent app from Uninstall in Android | <p><strong>What I Want</strong></p>
<p>I want to have a simple checkbox in my settings menu, which if checked will ENABLE Device Administration for my app and will prevent my app from getting uninstalled.</p>
<p>The checkbox when unchecked will DISABLE Device Administration. </p>
<p>My app is about security and need... | What I Want I want to have a simple checkbox in my settings menu, which if checked will ENABLE Device Administration for my app and will prevent my app from getting uninstalled. The checkbox when unchecked will DISABLE Device Administration. My app is about security and needs to be protected from getting uninstalled. C... | android|device-admin | 7 | 2015-03-01T14:50:44.987Z | 2,015 | 3 | 14 | 6 | 14,556 | 2 | 437 | 37 | 2 | 0 | false | false | true | true | false | false | medium |
28,794,898 | Read file with name, readed from variable, from the res folder | <p>I want to create a method which receives two variables as arguments, both of them look like string contains numbers (1..20 or more). First - is the name of the folder, second - name of a file without extension. And i want when this method are called to load file "/res/raw/var1/var2", where var1 and var2 - arguments.... | I want to create a method which receives two variables as arguments, both of them look like string contains numbers (1..20 or more). First - is the name of the folder, second - name of a file without extension. And i want when this method are called to load file "/res/raw/var1/var2", where var1 and var2 - arguments. Is... | java|android|android-studio | 0 | 2015-03-01T14:51:12.500Z | 2,015 | 3 | 14 | 6 | 51 | 1 | 368 | 62 | 3 | 0 | false | false | false | false | false | false | zero |
28,794,899 | IR emitter and Android 5.0 | <p>I am facing a problem with the IR emitter on my Galaxy S5 running under Android 5.0.</p>
<p>Before I updated it to 5.0, my app was perfectly working on my phone but now, the device I am suppose to manage has no reaction. When I click on my app to send an IR code, the led blinks to indicate that the IR manager is ac... | I am facing a problem with the IR emitter on my Galaxy S5 running under Android 5.0. Before I updated it to 5.0, my app was perfectly working on my phone but now, the device I am suppose to manage has no reaction. When I click on my app to send an IR code, the led blinks to indicate that the IR manager is activated and... | java|android|infrared | 8 | 2015-03-01T14:51:17.317Z | 2,015 | 3 | 14 | 6 | 5,545 | 1 | 781 | 26 | 3 | 1 | true | false | true | false | false | false | medium |
28,794,909 | Scroll view with fixed background - Android | <p>I'm trying to make a scroll view of 15 buttons in it, with a background but the problem is that the background image will also scroll with the buttons. need fixed background with only contents scrollable is it possible? or atleast can i make a loop of background (symmetric image) so no one can notice</p> | I'm trying to make a scroll view of 15 buttons in it, with a background but the problem is that the background image will also scroll with the buttons. need fixed background with only contents scrollable is it possible? or atleast can i make a loop of background (symmetric image) so no one can notice | scrollview|android-linearlayout | 0 | 2015-03-01T14:52:18.940Z | 2,015 | 3 | 14 | 6 | 1,739 | 2 | 301 | 43 | 2 | 0 | false | false | false | false | false | false | zero |
28,794,910 | Android SQLite Passing Item selected in gridview into another Activity for editing | <p>Basically I have a Database with Accounts in them. I use <code>GridView</code> for viewing them, and from there you can select an <code>Account</code> and it will direct you to my Activity <code>AccountManagement</code> wherein you can modify, delete or just view all of the details of the selected <code>Account</cod... | Basically I have a Database with Accounts in them. I use GridView for viewing them, and from there you can select an Account and it will direct you to my Activity AccountManagement wherein you can modify, delete or just view all of the details of the selected Account from the GridView . My problem is passing the data f... | android|sqlite|android-intent|gridview|android-gridview | 1 | 2015-03-01T14:52:23.720Z | 2,015 | 3 | 14 | 6 | 303 | 1 | 1,145 | 82 | 5 | 4 | true | false | false | false | false | false | low |
28,794,915 | How to change logback config on android after the apk is deployed? without recompiling | <p>In regular Java, it's possible to put an alternate <code>logback.xml</code> file in the folder of the <code>jar</code> to change the <code>logback</code> config (e.g., to change the log level).</p>
<p>Is this possible on Android with <code>logback-android</code>?</p> | In regular Java, it's possible to put an alternate logback.xml file in the folder of the jar to change the logback config (e.g., to change the log level). Is this possible on Android with logback-android ? | android|logback | 1 | 2015-03-01T14:53:02.183Z | 2,015 | 3 | 14 | 6 | 1,014 | 1 | 205 | 86 | 2 | 0 | false | false | false | false | false | false | low |
28,794,929 | Custom View not visible | <p>I am trying to add the imageViews to a Custom RelativeLayout programmtically. The problem is for some reason the childViews of the custom RelativeLayout aren't visible. What am I doing wrong?</p>
<pre><code>public class MyViewGroup extends RelativeLayout{
Context mContext;
public MyViewGroup(Context conte... | I am trying to add the imageViews to a Custom RelativeLayout programmtically. The problem is for some reason the childViews of the custom RelativeLayout aren't visible. What am I doing wrong? [CODE] inside layout file.xml [CODE] What am I missing? Best Regards EDIT: [CODE] | android|android-custom-view | 1 | 2015-03-01T14:54:13.723Z | 2,015 | 3 | 14 | 6 | 1,075 | 1 | 273 | 23 | 2 | 3 | true | false | false | false | false | false | low |
28,794,938 | View for having a group of three or more Views, show only one view each time | <p>Are there any View or way in android for being able to group three or more views but only showing one of them each time?</p>
<p>I´ve seen that android has <strong>ViewSwitcher</strong> but it <em>only allows to swap between two views</em>. If you add more than two then an exception is thrown. </p>
<p>Also there is... | Are there any View or way in android for being able to group three or more views but only showing one of them each time? I´ve seen that android has ViewSwitcher but it only allows to swap between two views . If you add more than two then an exception is thrown. Also there is a view called ViewStub but it doesn´t swap v... | android|view | 1 | 2015-03-01T14:54:56.367Z | 2,015 | 3 | 14 | 6 | 30 | 2 | 407 | 76 | 2 | 0 | false | false | false | false | false | false | low |
28,794,958 | Android Notification Bar Doesn't Change Progress | <p>I am trying to update the notification bar as the upload is in progress. The notification displays but its progress doesn't change and in the end when the upload is complete, notification destroys. Possible reasons of notification progress not changing ?</p>
<p>My code : </p>
<p>`</p>
<pre><code> class UploadFile... | I am trying to update the notification bar as the upload is in progress. The notification displays but its progress doesn't change and in the end when the upload is complete, notification destroys. Possible reasons of notification progress not changing ? My code : ` [CODE] ` Control goes to onProgressUpdate but the not... | java|android|android-asynctask|android-notifications | 0 | 2015-03-01T14:56:49.223Z | 2,015 | 3 | 14 | 6 | 273 | 2 | 344 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
28,795,082 | 'OutOfMemoryError' while adding multiple images to ImageViews inside ViewFlipper? | <p>I have a fragment contains 6 ViewFlippers, each flipper contains at least 10 ImageViews. I tried to load all the images and put them in the ImageViews but the restricted memory didn't let me to do that. Every time I run the application this exception occurs.</p>
<p>when I reduce number of images my app runs, but th... | I have a fragment contains 6 ViewFlippers, each flipper contains at least 10 ImageViews. I tried to load all the images and put them in the ImageViews but the restricted memory didn't let me to do that. Every time I run the application this exception occurs. when I reduce number of images my app runs, but that's not a ... | android|out-of-memory|viewflipper | 1 | 2015-03-01T15:06:49.397Z | 2,015 | 3 | 15 | 6 | 352 | 1 | 519 | 81 | 3 | 1 | true | false | false | false | false | false | low |
28,795,114 | onPause() and onResume() issues with Androids V2 maps | <p>I have been making a running android application that uses a GoogleMap. The application uses a chronometer:</p>
<pre><code> <Chronometer
android:id="@+id/Duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTo... | I have been making a running android application that uses a GoogleMap. The application uses a chronometer: [CODE] This starts as soon as the Application starts. I am also maintaining an array of LatLngs that represent the users movement [CODE] When the application goes into the background for a short amount of time an... | android|google-maps|android-maps-v2|onresume|onpause | 0 | 2015-03-01T15:09:01.310Z | 2,015 | 3 | 15 | 6 | 378 | 0 | 785 | 53 | 5 | 3 | true | true | false | false | false | false | zero |
28,795,189 | Database file is not found on android | <p>I just created a new project with AndroidStudio. I created a db file in <code>app/src/main/assets/databases</code>. My <code>app/app.iml</code> has this value : </p>
<pre><code><option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</code></pre>
<p>And I added this in my source code :</p>
<p... | I just created a new project with AndroidStudio. I created a db file in app/src/main/assets/databases . My app/app.iml has this value : [CODE] And I added this in my source code : [CODE] I have the message "not exists". I have this structure : [CODE] In the File Explorer, of Android Device Monitor, I don't have the fil... | android | 0 | 2015-03-01T15:16:09.017Z | 2,015 | 3 | 15 | 6 | 512 | 1 | 343 | 37 | 1 | 3 | true | false | false | false | false | false | zero |
28,795,234 | Try to use reflection to open url in a webview, | <p>I'm trying to use reflection for loadUrl in a webview, but it doesn't works.</p>
<p>I use this code :</p>
<pre><code>Class primary
{..............
public void start(InputStream is)
{
prova = new _JsonRead();
try {
Class<?> test=Class.forName("xxx.test.learning.Webview1");
Field f=te... | I'm trying to use reflection for loadUrl in a webview, but it doesn't works. I use this code : [CODE] But there is this error : "03-01 15:58:07.200: I/ecc(19919): error java.lang.IllegalArgumentException: expected receiver of type android.webkit.WebView, but got java.lang.reflect.Field " I'm new in reflection, and this... | java|android|reflection|android-webview | 0 | 2015-03-01T15:20:33.790Z | 2,015 | 3 | 15 | 6 | 544 | 1 | 429 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
28,795,235 | SQLite Table has no column named error | <p>When i tried to use SQLite,there were some problems...</p>
<p>Here is the code</p>
<pre><code>package com.example.demo_ex;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import static android.provider.BaseColumns._ID;
public class S... | When i tried to use SQLite,there were some problems... Here is the code [CODE] I've tried to insert some values into the table. But the error remains the same.Please help!! [CODE] This is my way to insert. db is SQLiteDatabase, position_use and positionSpinner_use are private data members. [CODE] | android | 0 | 2015-03-01T15:20:36.107Z | 2,015 | 3 | 15 | 6 | 65 | 0 | 297 | 38 | 1 | 3 | true | true | false | false | false | false | zero |
28,795,283 | Proper usage of OnClickListener Android | <p>I am new to Android Development and I am trying a simple program with Tabs..</p>
<p>MainActivity.java</p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button b1 = (Button)findViewById(R.id.b1);
b1.se... | I am new to Android Development and I am trying a simple program with Tabs.. MainActivity.java [CODE] } fragment_main.xml [CODE] When is run this app, the app instantly crashes before loading. This started when I added the 'OnClickListener' code in the 'onCreate' method. Please help me. What am I missing? | java|android|onclicklistener|android-tabs | 0 | 2015-03-01T15:24:39.473Z | 2,015 | 3 | 15 | 6 | 172 | 2 | 306 | 39 | 4 | 2 | true | false | false | false | false | false | zero |
28,795,407 | How to disable HOME button click in android | <p>I am new in android. I am creating a Lock screen application. In my application, I want to disable all the outside keys like Home key, Back key.. I already disabled the Back key using:</p>
<pre><code>@Override
public void onBackPressed() {
return;
// Do nothing!
}
</code></pre>
<p>But i referred a lot of s... | I am new in android. I am creating a Lock screen application. In my application, I want to disable all the outside keys like Home key, Back key.. I already disabled the Back key using: [CODE] But i referred a lot of sites and questions in Stack Overflow to disable the Home key in my app. But nothing worked. My App work... | android|android-keypad|android-securityexception | 0 | 2015-03-01T15:36:39.233Z | 2,015 | 3 | 15 | 6 | 963 | 1 | 407 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
28,795,431 | ActionBar not displaying when extended to listactivity | <p>as said in the title, I am having problem displaying the actionbar when extended to listactivity. </p>
<p>As you can see below, I have tried requestwindowfeature but it is still not showing.</p>
<pre><code>public class AlarmListActivity extends ListActivity {
private AlarmListAdapter mAdapter;
private AlarmDBHelp... | as said in the title, I am having problem displaying the actionbar when extended to listactivity. As you can see below, I have tried requestwindowfeature but it is still not showing. [CODE] styles.xml [CODE] Manifest [CODE] Activity_alarm_list.xml [CODE] Is there a way to show the ActionBar when extending to ListActivi... | java|android|android-actionbar|listactivity | 0 | 2015-03-01T15:39:16.980Z | 2,015 | 3 | 15 | 6 | 776 | 1 | 390 | 54 | 4 | 4 | true | false | false | false | false | false | zero |
28,795,458 | How do dictionary developers store their data? | <p>I have created a dictionary, currently store data in sqlite, asset folder. But that way, hacker can access to my database easily. I wonder if there any best way to store data in android, especially for dictionary which contains text and image. </p> | I have created a dictionary, currently store data in sqlite, asset folder. But that way, hacker can access to my database easily. I wonder if there any best way to store data in android, especially for dictionary which contains text and image. | android|sqlite|security|dictionary|storage | 0 | 2015-03-01T15:42:05.387Z | 2,015 | 3 | 15 | 6 | 144 | 1 | 243 | 46 | 5 | 0 | false | false | false | false | false | false | zero |
28,795,543 | How to refresh the content of an ImageView | <p>I have a screen with an <code>ImageView</code> containing the actual profile picture. I can edit that profile picture either by taking a picture with the camera or by picking a picture from the sd card. I store the new chosen profile picture under the same path as the old (i overwrite it) which is logical i guess.</... | I have a screen with an ImageView containing the actual profile picture. I can edit that profile picture either by taking a picture with the camera or by picking a picture from the sd card. I store the new chosen profile picture under the same path as the old (i overwrite it) which is logical i guess. However when i se... | android | 3 | 2015-03-01T15:51:02.627Z | 2,015 | 3 | 15 | 6 | 7,136 | 2 | 657 | 42 | 1 | 2 | true | false | true | false | false | false | low |
28,795,544 | Adding actionbar to FragmentActivity | <p>I am making an app that is using google maps for some specific reason. So I created an Google Maps app in Android Studio and I got an activity that extends FragmentActivity. Everything works perfectly but now I want to add the action bar at top of the screen. The problem is that the map takes the whole screen and I ... | I am making an app that is using google maps for some specific reason. So I created an Google Maps app in Android Studio and I got an activity that extends FragmentActivity. Everything works perfectly but now I want to add the action bar at top of the screen. The problem is that the map takes the whole screen and I don... | android|android-fragments|android-actionbar|android-fragmentactivity | 11 | 2015-03-01T15:51:03.463Z | 2,015 | 3 | 15 | 6 | 16,020 | 3 | 452 | 36 | 4 | 2 | true | false | true | true | true | false | medium |
28,795,546 | Android Tracking App - check if someone is getting closer or distancing from specific point | <p>I created an android app, which stores user's home location and count distance between home and his/her actual location, in a Service class.</p>
<p>Now I would like to programme feature that would decide based on counted distance, if a user is:</p>
<ul>
<li>at home</li>
<li>away</li>
<li>getting closer</li>
<li>di... | I created an android app, which stores user's home location and count distance between home and his/her actual location, in a Service class. Now I would like to programme feature that would decide based on counted distance, if a user is: at home away getting closer distancing from home This should be similar to Google ... | android|location|tracking | 1 | 2015-03-01T15:51:11.040Z | 2,015 | 3 | 15 | 6 | 127 | 1 | 433 | 91 | 3 | 0 | false | false | false | false | false | false | low |
28,795,585 | Change Theme Colors Programatically to any Color in Android | <p><strong>What I Want</strong></p>
<p>I have has got a pre-defined color as the primary and accent color. But not all my users like the color I like. So, I want to create a color chooser with 10-15 predefined colors, which the user can choose to make as his/her primary and accent color.</p>
<p>I have read that the s... | What I Want I have has got a pre-defined color as the primary and accent color. But not all my users like the color I like. So, I want to create a color chooser with 10-15 predefined colors, which the user can choose to make as his/her primary and accent color. I have read that the styles.xml file is immutable, so what... | android|android-layout|android-5.0-lollipop|android-theme | 5 | 2015-03-01T15:53:33.033Z | 2,015 | 3 | 15 | 6 | 2,386 | 1 | 755 | 59 | 4 | 0 | false | false | false | false | false | false | low |
28,795,664 | NavigationDrawer's menu is not working | <p>When I click at the menu items, then layouts not coming to view.</p>
<p>And MainActicity wanna "menu1_Fragment.java" encode with "android.support.v4.app.Fragment"</p>
<p>İf I encode only "Fragment", MainActivity is getting error.</p>
<blockquote>
<p>In compatible types.</p>
<p>Required ... | When I click at the menu items, then layouts not coming to view. And MainActicity wanna "menu1_Fragment.java" encode with "android.support.v4.app.Fragment" İf I encode only "Fragment", MainActivity is getting error. In compatible types. Required :android.support.v4.app.Fragment Found :inti... | java|android|android-fragments|navigation-drawer | 0 | 2015-03-01T16:00:38.240Z | 2,015 | 3 | 16 | 6 | 44 | 2 | 400 | 38 | 4 | 1 | true | false | false | false | false | false | zero |
28,795,665 | The best way of redirecting to Chrome from in-app browser on Android? | <p>I'm making a website which only works on the latest Chrome (above 40) and not on in-app browser such as Facebook's.</p>
<p>I'd like to redirect or show a kind of deeplink to Chrome if people access to the website from Facebook app or other possible apps.</p>
<p>What the best way to redirect people from in-app brow... | I'm making a website which only works on the latest Chrome (above 40) and not on in-app browser such as Facebook's. I'd like to redirect or show a kind of deeplink to Chrome if people access to the website from Facebook app or other possible apps. What the best way to redirect people from in-app browser to Chrome? I ch... | javascript|android|facebook|google-chrome|user-agent | 1 | 2015-03-01T16:00:38.820Z | 2,015 | 3 | 16 | 6 | 2,823 | 1 | 509 | 69 | 5 | 2 | true | false | true | false | false | false | low |
28,795,688 | Android: org.JSONException "String cannot be converted to JSONObject" | <p>Hello I'm new to Android especially JSon. I'm trying to connect my android application with my php file connected to WAMP.
But I'm getting "String cannot be converted to JSONObject.
Here's my php code:</p>
<pre><code>if(isset($_POST['check'])){
$name = $_POST['txtuser'];
$pass = $_POST['txtpass'];
$sql = "Select ... | Hello I'm new to Android especially JSon. I'm trying to connect my android application with my php file connected to WAMP. But I'm getting "String cannot be converted to JSONObject. Here's my php code: [CODE] and here's my Android code: [CODE] | php|android|json | 1 | 2015-03-01T16:03:09.823Z | 2,015 | 3 | 16 | 6 | 90 | 2 | 243 | 69 | 3 | 2 | true | false | false | false | false | false | low |
28,795,707 | Android - Null pointer execute() & DialogProgress AsyncTask | <p>I have this code below that basically is the Login process of my app, Why do i have null pointers? Have I implemented it correctly, I have tried to use static for AsyncTask to avoid any memoryleak.</p>
<p>Login.java</p>
<pre><code> if (handler.executeLog(username.trim(), password.trim())) {
session.save... | I have this code below that basically is the Login process of my app, Why do i have null pointers? Have I implemented it correctly, I have tried to use static for AsyncTask to avoid any memoryleak. Login.java [CODE] | android-looper | 0 | 2015-03-01T16:05:27.037Z | 2,015 | 3 | 16 | 6 | 39 | 1 | 215 | 59 | 1 | 1 | true | false | false | false | false | false | zero |
28,795,742 | Android SMS app support | <p>I'm writing SMS app for android devices. I want to support <strong>15-21 API's</strong>.
Is there any way to do this? </p>
<p>Of course on some devices my app will crash , because SMS provider was hidden till android 4.4 because some phone manufacturers had their own implementation of that API.
But in most case... | I'm writing SMS app for android devices. I want to support 15-21 API's . Is there any way to do this? Of course on some devices my app will crash , because SMS provider was hidden till android 4.4 because some phone manufacturers had their own implementation of that API. But in most cases(I think 95%) my app will work.... | android | -1 | 2015-03-01T16:07:45.727Z | 2,015 | 3 | 16 | 6 | 75 | 1 | 550 | 23 | 1 | 0 | false | false | false | false | false | true | negative |
28,795,749 | ListView not clickable even with descendantFocusability | <p>I'm trying to implement a ContextMenu, but by doing so I checked that my listview was not clickable.</p>
<p>I went over different threads based on this subject and tried everything proposed <code>android:focusable="false" android:focusableInTouchMode="false"</code>
even
<code>descendantFocusability="blocksDescend... | I'm trying to implement a ContextMenu, but by doing so I checked that my listview was not clickable. I went over different threads based on this subject and tried everything proposed android:focusable="false" android:focusableInTouchMode="false" even descendantFocusability="blocksDescendants" but still not working Here... | android|android-listview|focus|clickable | 1 | 2015-03-01T16:08:12.647Z | 2,015 | 3 | 16 | 6 | 4,446 | 1 | 476 | 55 | 4 | 3 | true | false | true | false | false | false | low |
28,795,804 | how to pass a String to another String variable in another class? | <p>i have this : </p>
<pre><code> @Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
String urlCorrecta="";
//Si se escoge la posicion de el arreglo 0 abre la clase LasVegas
if (position == 0)
{
Intent intent = new Inten... | i have this : [CODE] i want to pass the value of the String urlCorrecta to the String VIDEO_IN_PIPELINE located in the class MainActivity. [CODE] } How can i take that String from the other class to this one? thanks very much for reading. | java|android|string|class | 0 | 2015-03-01T16:13:32.373Z | 2,015 | 3 | 16 | 6 | 49 | 3 | 238 | 65 | 4 | 2 | true | false | false | false | false | false | zero |
28,795,833 | text validation on wizard droid | <p>I am using Wizardroid to add items to my main list view, the wizard contains 3 "pages" where in each one i have multiple edittext fields.</p>
<p>i need to have text validation to the input since the fields cant be empty, therefore I used "addTextChangedListener". when the user enters text to the field it is being v... | I am using Wizardroid to add items to my main list view, the wizard contains 3 "pages" where in each one i have multiple edittext fields. i need to have text validation to the input since the fields cant be empty, therefore I used "addTextChangedListener". when the user enters text to the field it is being verified and... | android|keyboard|android-edittext|wizard | 1 | 2015-03-01T16:15:23.563Z | 2,015 | 3 | 16 | 6 | 186 | 1 | 816 | 31 | 4 | 1 | true | false | false | false | false | false | low |
28,795,841 | Cordova Android build error: Could not create plugin of type 'AppPlugin' | <p>When I first was building my Android Cordova app in Android Studio with Gradle 2.2.1, everything was fine.</p>
<p>Then I wanted to be able to also build the app with Cordova CLI, so based on the following document, I enabled Gradle for Cordova CLI:
<a href="https://github.com/apache/cordova-docs/blob/master/docs/en... | When I first was building my Android Cordova app in Android Studio with Gradle 2.2.1, everything was fine. Then I wanted to be able to also build the app with Cordova CLI, so based on the following document, I enabled Gradle for Cordova CLI: https://github.com/apache/cordova-docs/blob/master/docs/en/edge/guide/platform... | cordova|android-gradle-plugin|cordova-cli | 0 | 2015-03-01T16:15:59.870Z | 2,015 | 3 | 16 | 6 | 303 | 1 | 850 | 72 | 3 | 0 | false | false | false | false | false | false | zero |
28,795,903 | Trying to exceed Push Notification Maximum Payload, writing own CCS XMPP connection? | <p>I just have a quick question on the payload for Push notification. </p>
<p>I see that Whatsapp probably exceed the normal GCM or APNs server payload of 4kb and 2kb. As it can send Images over Push notification. I am just wondering if i want to have push notification that has a payload that exceed the max payload, d... | I just have a quick question on the payload for Push notification. I see that Whatsapp probably exceed the normal GCM or APNs server payload of 4kb and 2kb. As it can send Images over Push notification. I am just wondering if i want to have push notification that has a payload that exceed the max payload, does it mean ... | android|push-notification|google-cloud-messaging | 0 | 2015-03-01T16:21:18.723Z | 2,015 | 3 | 16 | 6 | 135 | 1 | 703 | 84 | 3 | 0 | false | false | false | false | false | false | zero |
28,795,922 | how can I parse json in android? | <p>I am going to do when user enters 'silent' in edittextbox in android the another textbox will show this two passwords 'umbrella' and 'umbrella12'.
I am trying to pass this type of Json</p>
<pre><code>{
getValueResult: [
{
password: "umberlla"
uname: "silent"
... | I am going to do when user enters 'silent' in edittextbox in android the another textbox will show this two passwords 'umbrella' and 'umbrella12'. I am trying to pass this type of Json [CODE] Code for parsing the json is as follows. But I can't get the object getValueResult in StringBuilder after append in while loop, ... | android|json|http|android-webservice | 0 | 2015-03-01T16:22:59.620Z | 2,015 | 3 | 16 | 6 | 44 | 1 | 419 | 32 | 4 | 2 | true | false | false | false | false | false | zero |
28,796,002 | Asynctask onPreExecute and doInBackground not called | <p>I tested the code below on Samsung Galaxy Tab 3 Lite (Android 4.2.2) and it worked fine. However when I tested it on a Samsung Galaxy S4 (Android 4.4.2) <code>doInBackground()</code> is not called for some reason. </p>
<pre><code>public class MainActivity extends ActionBarActivity implements OnClickListener {
... | I tested the code below on Samsung Galaxy Tab 3 Lite (Android 4.2.2) and it worked fine. However when I tested it on a Samsung Galaxy S4 (Android 4.4.2) doInBackground() is not called for some reason. [CODE] I tried using executeOnExecutor() instead of execute() but that didn't work either. Then I switched back to my o... | android|android-asynctask | 0 | 2015-03-01T16:30:46.633Z | 2,015 | 3 | 16 | 6 | 221 | 0 | 447 | 52 | 2 | 1 | true | true | false | false | false | false | zero |
28,796,022 | AlarmManager With BroadcastReceiver Not Firing | <p>I have an <code>AlarmManager</code> that is set in a <code>BroadcastReceiver</code> subclass using a <code>Service</code> subclass as the context. The <code>AlarmManager</code> is not firing. I know that the <code>AlarmManager</code> is being set with the correct milliseconds.</p>
<p>Any ideas for why the AlarmMana... | I have an AlarmManager that is set in a BroadcastReceiver subclass using a Service subclass as the context. The AlarmManager is not firing. I know that the AlarmManager is being set with the correct milliseconds. Any ideas for why the AlarmManager is not firing? [CODE] Here is my Manifest code under the application tag... | broadcastreceiver|android-service|alarmmanager | 0 | 2015-03-01T16:32:14.857Z | 2,015 | 3 | 16 | 6 | 160 | 2 | 327 | 46 | 3 | 2 | true | false | false | false | false | false | zero |
28,796,037 | FFMPEG 2.5.4 build for Android with NDK r10d | <p>I'm trying to build FFmpeg for android following this tuto: <a href="http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/" rel="nofollow">http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/</a> </p>
<p>I'm using:</p>
<ul>
<li>NDK r10d</li>
<li>FFMPEG 2.5.4</li>
</ul>
<p>I have tried to build on MacOs and U... | I'm trying to build FFmpeg for android following this tuto: http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ I'm using: NDK r10d FFMPEG 2.5.4 I have tried to build on MacOs and Ubuntu and I get the same error when I execute ./build_android.sh: [CODE] It's like the script doesn't find the ndk folder, but I checke... | android|macos|ubuntu|android-ndk|ffmpeg | 2 | 2015-03-01T16:33:21.227Z | 2,015 | 3 | 16 | 6 | 3,569 | 2 | 488 | 44 | 5 | 2 | true | false | true | false | false | false | low |
28,796,042 | Box2D Java Shape Access Conditional | <pre><code>if(tmpBodies.get(i).getFixtureList().get(0).getType().equals(Type.Chain))
</code></pre>
<p>OR</p>
<pre><code>if(tmpBodies.get(i).getFixtureList().get(0).getShape().getType(Type.Chain))
</code></pre>
<p>As I iterate over a list of all the bodies in the world, i want to pick out those that have fixtures of ... | [CODE] OR [CODE] As I iterate over a list of all the bodies in the world, i want to pick out those that have fixtures of shapeType ChainShape. The code above doesn't work for me. Please tell me where i went wrong. | java|android|libgdx|box2d | 0 | 2015-03-01T16:33:40.333Z | 2,015 | 3 | 16 | 6 | 35 | 1 | 213 | 35 | 4 | 2 | true | false | false | false | false | false | zero |
28,796,050 | Android GridView hours and events | <p>In my <code>GridView</code> I want to have two columns. In the first I want to display an array of times, in the second column I want to display some strings that correspond to the times in the first column. How can I implement this?</p>
<p>This is what I have so far:</p>
<pre><code>//hours array
static final Stri... | In my GridView I want to have two columns. In the first I want to display an array of times, in the second column I want to display some strings that correspond to the times in the first column. How can I implement this? This is what I have so far: [CODE] | android|gridview | 0 | 2015-03-01T16:34:19.297Z | 2,015 | 3 | 16 | 6 | 296 | 2 | 255 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
28,796,098 | How to set a running device with android studio? | <p>I want to connect an android device to test my application directly from my environment android studio</p>
<p>android studio - <a href="http://developer.android.com/sdk/index.html" rel="nofollow">http://developer.android.com/sdk/index.html</a></p>
<p>I have a samsung galaxy s5 device, I've connected it to usb, I'v... | I want to connect an android device to test my application directly from my environment android studio android studio - http://developer.android.com/sdk/index.html I have a samsung galaxy s5 device, I've connected it to usb, I've installed this drivers: http://developer.samsung.com/technical-doc/view.do?v=T000000117 an... | java|android|samsung-mobile | 0 | 2015-03-01T16:39:00.267Z | 2,015 | 3 | 16 | 6 | 12,128 | 2 | 793 | 48 | 3 | 1 | true | false | true | true | false | false | zero |
28,796,114 | Why do packages from library module does not exist upon compilation, even when Android Studio shows no errors in code? | <p>I have a library module (AndEngine) inside my libs/AndEngine folder. The code from that compiles fine.</p>
<p>In my root settings.gradle file I have this :</p>
<pre><code>include ':app:libs:AndEngine'
include ':app'
</code></pre>
<p>And then in my app's build.gradle file I have this in dependencies:</p>
<pre><... | I have a library module (AndEngine) inside my libs/AndEngine folder. The code from that compiles fine. In my root settings.gradle file I have this : [CODE] And then in my app's build.gradle file I have this in dependencies: [CODE] INside my app's code, all of the imports and even autocompletion works without any errors... | java|android|android-studio|android-gradle-plugin|build.gradle | 3 | 2015-03-01T16:40:12.587Z | 2,015 | 3 | 16 | 6 | 2,423 | 1 | 596 | 118 | 5 | 3 | true | false | false | false | false | false | low |
28,796,154 | Error while excuting Android Project "Activity class does not exist." | <p>I have created sample android project in Eclipse, but while excuting i am getting an <strong>Error: Activity class {com.example.best/com.example.best.MainActivity} does not exist.</strong></p>
<p>but MainActivity class exist in project</p>
<pre><code>package com.example.best;
import android.os.Bundle;
import andr... | I have created sample android project in Eclipse, but while excuting i am getting an Error: Activity class {com.example.best/com.example.best.MainActivity} does not exist. but MainActivity class exist in project [CODE] Following is the error message printed on the console [CODE] Here is the content of my manifest file ... | android|eclipse | 3 | 2015-03-01T16:42:50.050Z | 2,015 | 3 | 16 | 6 | 2,954 | 3 | 368 | 69 | 2 | 3 | true | false | true | false | false | false | low |
28,796,215 | App Inventor Bluetooth incamming data error in splite component | <p>hi for everyone and thanks for help ...
I have a android application with arduino project ... to receive serial data from ARDUINO MCU and show it on the mobile screen, but when the data received in the form of sensordata01,sensordata02 with comma delimiter ... I get an error ... "Select list item: List index too la... | hi for everyone and thanks for help ... I have a android application with arduino project ... to receive serial data from ARDUINO MCU and show it on the mobile screen, but when the data received in the form of sensordata01,sensordata02 with comma delimiter ... I get an error ... "Select list item: List index too large ... | android|bluetooth|arduino | 0 | 2015-03-01T16:47:49.620Z | 2,015 | 3 | 16 | 6 | 1,108 | 1 | 644 | 63 | 3 | 0 | false | false | false | false | false | false | zero |
28,796,240 | MenuItem on ActionBar can't be clicked | <p>I'm trying to implement a share intent to share images. I have a full screen activity which extends ActionBarActivity and a fragment that implements the immersivemode as the android developer's guide explains, so the user can see the image in fullscreen. The problem is that even if I can see the share icon on Action... | I'm trying to implement a share intent to share images. I have a full screen activity which extends ActionBarActivity and a fragment that implements the immersivemode as the android developer's guide explains, so the user can see the image in fullscreen. The problem is that even if I can see the share icon on ActionBar... | android|android-actionbar|share|menuitem|shareactionprovider | 0 | 2015-03-01T16:49:08.060Z | 2,015 | 3 | 16 | 6 | 1,224 | 2 | 915 | 38 | 5 | 4 | true | false | false | false | false | false | zero |
28,796,273 | Calling web-app methods using hessdroid = new AsyncTask for each method? | <p>In my Android application I want to call some web-app methods.
I use hessian for this (hessdroid library for Android).</p>
<p>That's how it works:
In my Android app I have interfaces for all of the the server methods e.g. getUserById(), getMessageById(), getSomethingElse() etc.</p>
<p>With Hessian I can call these... | In my Android application I want to call some web-app methods. I use hessian for this (hessdroid library for Android). That's how it works: In my Android app I have interfaces for all of the the server methods e.g. getUserById(), getMessageById(), getSomethingElse() etc. With Hessian I can call these methods through ht... | java|android|android-asynctask|hessian | 1 | 2015-03-01T16:52:05.123Z | 2,015 | 3 | 16 | 6 | 89 | 0 | 907 | 72 | 4 | 2 | true | true | false | false | false | false | low |
28,796,276 | How add a listview inside a viewpager in android | <p>I've been trying to get a list view that can be swipe to change the its items to show the following or preceding week details. Here is what my layout file looks like
'</p>
<pre><code><android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id... | I've been trying to get a list view that can be swipe to change the its items to show the following or preceding week details. Here is what my layout file looks like ' [CODE] But I didn't get what i want. Could you please help me? Thanks in advance. | android-layout | 0 | 2015-03-01T16:52:23.673Z | 2,015 | 3 | 16 | 6 | 4,682 | 1 | 249 | 48 | 1 | 1 | true | false | true | false | false | false | zero |
28,796,307 | SeekBar: getting empty bitmap from Drawable until set it to ImageView OR how to get resulting Bitmap from 9patch | <p>So I want to set a Bitmap created from drawable into a SeekBar's progress. And I make it so:</p>
<pre><code> Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Drawable drawable = getResources().getDrawable(R.drawable.seekbar_bg_full);
Canvas canvas = new Canvas(bmp);
drawable.... | So I want to set a Bitmap created from drawable into a SeekBar's progress. And I make it so: [CODE] width and height are valid values here (like 460 and 30). As you can see there are 2 code lines about ImageView are commented. This ImageView persists on a layout and its visibility is INVISIBLE. If I comment those 2 lin... | android|bitmap|drawable|nine-patch|android-seekbar | 1 | 2015-03-01T16:56:05.130Z | 2,015 | 3 | 16 | 6 | 435 | 1 | 1,585 | 112 | 5 | 2 | true | false | false | false | false | false | low |
28,796,328 | save state of an item in recyclerview when scrolled out of the view | <p>In my project i have a recyclerView which contains at most 20 items. In the row template i have a text view and a button which is hidden initially and on the recyclerview item click the visibility of the button is toogled. The problem is when the button in the first row is shown and if it is scrolled out of the view... | In my project i have a recyclerView which contains at most 20 items. In the row template i have a text view and a button which is hidden initially and on the recyclerview item click the visibility of the button is toogled. The problem is when the button in the first row is shown and if it is scrolled out of the view an... | android|android-recyclerview | 3 | 2015-03-01T16:57:46.117Z | 2,015 | 3 | 16 | 6 | 3,121 | 3 | 492 | 67 | 2 | 0 | false | false | true | false | false | false | low |
28,796,422 | After import from Eclipse to Android Studio cannot run Execution failed for task ':app:dexDebug" | <p>Have an Android project working in Eclipse (4.4.2) ADT, running on Linux (Ubuntu 14.10).</p>
<p>I have imported to Android Studio (1.1.0) and managed to get rid of my initial compilation errors.</p>
<p>The next thing I want to d is to run on my phone - I push the green "Run" button and after a little while I get a... | Have an Android project working in Eclipse (4.4.2) ADT, running on Linux (Ubuntu 14.10). I have imported to Android Studio (1.1.0) and managed to get rid of my initial compilation errors. The next thing I want to d is to run on my phone - I push the green "Run" button and after a little while I get an error (this doesn... | android|android-studio|migration|eclipse-adt | 8 | 2015-03-01T17:06:02.793Z | 2,015 | 3 | 17 | 6 | 8,072 | 2 | 1,498 | 96 | 4 | 1 | true | false | true | false | false | false | medium |
28,796,450 | Expandable Height RecyclerView | <p>I'm recently tried RecyclerView component from Google, it's an amazing and powerful than ListView.
The problem is when use it in ScrollView, I was using <a href="http://www.londatiga.net/it/programming/android/make-android-listview-gridview-expandable-inside-scrollview/">ExpandableHeightListView</a>, it was working ... | I'm recently tried RecyclerView component from Google, it's an amazing and powerful than ListView. The problem is when use it in ScrollView, I was using ExpandableHeightListView , it was working properly, but I want to turn to completely using RecyclerView. Can anyone help me to find component like ExpandableHeightList... | android | 6 | 2015-03-01T17:08:30.487Z | 2,015 | 3 | 17 | 6 | 1,028 | 0 | 367 | 30 | 1 | 0 | false | true | false | false | false | false | medium |
28,796,499 | Opening XML file in Android with inputstream | <p>I have a file called <code>products.xml</code> in res/xml/products.xml with this XML data:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<products>
<product>
<productname>Jeans</productname>
<productcolor>red</productcolor>
<produ... | I have a file called products.xml in res/xml/products.xml with this XML data: [CODE] and my main goal is to parse it using XMLPullParser. But I'm getting a weird output when I try to open the file. Here is the code I am using: [CODE] and I'm getting a strange output with a bunch of these characters: [CODE] What am I do... | java|android|xml | 0 | 2015-03-01T17:13:03.220Z | 2,015 | 3 | 17 | 6 | 1,642 | 1 | 337 | 44 | 3 | 3 | true | false | false | false | false | false | zero |
28,796,508 | Getting DatePicker value to store into php mysql from Android | <p>Good Day Everyone!</p>
<p>I am currently working on how to put a date value into my php mysql using android's date picker. My plan is to get data from a datepicker and what ever its value is it will be put into mysql. For some reason, there are no errors but it just input the value '0000-00-00' into mysql everytime... | Good Day Everyone! I am currently working on how to put a date value into my php mysql using android's date picker. My plan is to get data from a datepicker and what ever its value is it will be put into mysql. For some reason, there are no errors but it just input the value '0000-00-00' into mysql everytime I put it i... | php|android|mysql|date|datepicker | 0 | 2015-03-01T17:13:53.843Z | 2,015 | 3 | 17 | 6 | 1,866 | 2 | 500 | 61 | 5 | 2 | true | false | false | false | false | false | zero |
28,796,532 | android studio manifest error in category | <p>Hi i have moved from Eclipse to android studio and I found a bit of a bug where in when i change the original Manifest and add other activities like so</p>
<p><img src="https://i.stack.imgur.com/ADV1P.png" alt="enter image description here"></p>
<p>and when i change it into this the program error and i cant launch... | Hi i have moved from Eclipse to android studio and I found a bit of a bug where in when i change the original Manifest and add other activities like so and when i change it into this the program error and i cant launch or debugged he program the first box contains the error when i change the value into .LAUNCHER and . ... | android|android-studio|android-manifest | 0 | 2015-03-01T17:16:22.160Z | 2,015 | 3 | 17 | 6 | 108 | 0 | 836 | 41 | 3 | 0 | false | true | false | false | false | false | zero |
28,796,573 | Set bottom gravity to a single view Android | <p>I have a horizontal linear layout, with 3 buttons, on the display. I want this layout to be displayed in the bottom of the display. </p>
<p>Here is the code I wrote: </p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" andr... | I have a horizontal linear layout, with 3 buttons, on the display. I want this layout to be displayed in the bottom of the display. Here is the code I wrote: [CODE] I haven't put the buttons code, they are simple ones. With this code, it is still displayed on the top. Can you suggest me other posibilities? Thank you! | android|xml | 1 | 2015-03-01T17:20:05.860Z | 2,015 | 3 | 17 | 6 | 81 | 3 | 318 | 43 | 2 | 1 | true | false | false | false | false | false | low |
28,796,619 | My styled seekBar in android studio is not working as it should | <p>I have a seek bar with the following xml file </p>
<pre><code> <SeekBar
android:id="@+id/seekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="100"
android:progress="50"
android:layout_margin="10dp"
android:progressD... | I have a seek bar with the following xml file [CODE] and in styled_progress I have [CODE] but I can see only the red part everywhere, the cyan part is not appearing. | android | 0 | 2015-03-01T17:22:54.137Z | 2,015 | 3 | 17 | 6 | 294 | 1 | 165 | 63 | 1 | 2 | true | false | false | false | false | false | zero |
28,796,639 | Cordova + jquery mobile + jquery white screen of death on gingerbread | <p>I've written an app in cordova 4.0 with jquery mobile & jquery, and when I try to run the app on Galaxy 2 with android 2.3.5 (gingerbread) all I get is white screen without any error or anything going on.</p>
<p>note: I capture any exceptions from javascript and alert them, so if there was an exception I should... | I've written an app in cordova 4.0 with jquery mobile & jquery, and when I try to run the app on Galaxy 2 with android 2.3.5 (gingerbread) all I get is white screen without any error or anything going on. note: I capture any exceptions from javascript and alert them, so if there was an exception I should have seen a me... | android|jquery|cordova|jquery-mobile|android-2.3-gingerbread | 0 | 2015-03-01T17:24:21.800Z | 2,015 | 3 | 17 | 6 | 454 | 1 | 915 | 69 | 5 | 2 | true | false | false | false | false | false | zero |
28,796,653 | Unable to download internet hosted text file from within Android app | <p>I am developing an Android application in which I need to download a text file hosted at :-
<a href="https://www.dropbox.com/s/2smsdqknrjg5zda/try1.txt/?dl=0" rel="nofollow">https://www.dropbox.com/s/2smsdqknrjg5zda/try1.txt/?dl=0</a></p>
<p>from within my app and get/load its content in a text-view.
I am doing the... | I am developing an Android application in which I need to download a text file hosted at :- https://www.dropbox.com/s/2smsdqknrjg5zda/try1.txt/?dl=0 from within my app and get/load its content in a text-view. I am doing the download using AsyncTask's doInBackground() method. Here is the code in the MainActivity.java th... | android|url|android-asynctask|network-protocols|filenotfoundexception | 0 | 2015-03-01T17:25:23.067Z | 2,015 | 3 | 17 | 6 | 178 | 1 | 658 | 68 | 5 | 1 | true | false | false | false | false | false | zero |
28,796,676 | Can't get .getwidth() and .getheight() to work | <p>I know there have been a lot of other questions on this topic, but I've looked through all of them, and still not gotten it to work.</p>
<p>I've made this code for testing:</p>
<pre><code>public class MainActivity extends Activity {
RelativeLayout layout;
TextView widthtext;
TextView heighttext;
int width;
int he... | I know there have been a lot of other questions on this topic, but I've looked through all of them, and still not gotten it to work. I've made this code for testing: [CODE] and [CODE] After a lot of hassle I've now notised that the width and height int's have the right values, though I can't make them display in my Tex... | java|android|height|width | 1 | 2015-03-01T17:26:56.807Z | 2,015 | 3 | 17 | 6 | 873 | 2 | 407 | 46 | 4 | 3 | true | false | false | false | false | false | low |
28,796,717 | Android: Saving a bitmap Image | <p>I have a button that allows the user to save a bitmap image to his/her gallery in a seperate folder after applying modifications on some of pixel bits as shown below</p>
<pre><code>Random rand= new Random(TimeZone.LONG);
File root=null;
File file = null;
try{
root= Environment.getExternalStorageDirectory();
... | I have a button that allows the user to save a bitmap image to his/her gallery in a seperate folder after applying modifications on some of pixel bits as shown below [CODE] The problem is that when I press 'save' button. The image that appears in the user's gallery is not the modified version it is a duplication of the... | android|bitmap|save | 0 | 2015-03-01T17:30:08.610Z | 2,015 | 3 | 17 | 6 | 55 | 0 | 514 | 30 | 3 | 1 | true | true | false | false | false | false | zero |
28,796,729 | unable to use getCreatedAt() with Parse | <p>So I have been developing an android application that has actually gone quite well up until now. I am simply trying to get the creation date of an object stored in Parse. Parse recommends that you use the ParseObject.getCreatedAt() - makes sense. For some reason every time I try to get the creation date my values ar... | So I have been developing an android application that has actually gone quite well up until now. I am simply trying to get the creation date of an object stored in Parse. Parse recommends that you use the ParseObject.getCreatedAt() - makes sense. For some reason every time I try to get the creation date my values are r... | android|parse-platform | 1 | 2015-03-01T17:31:06.257Z | 2,015 | 3 | 17 | 6 | 331 | 0 | 1,127 | 39 | 2 | 2 | true | true | false | false | false | false | low |
28,796,766 | Start gmail with specific sender mail | <p>I'm building an app to handle anything that concerns the academic life of an university student, that is including his <strong>university mail account</strong>.</p>
<p>Let's say the phone where my app is installed has <strong>two or more</strong> different gmail account set:<br>
- "account 1" - "abcdef@gmail.com"<b... | I'm building an app to handle anything that concerns the academic life of an university student, that is including his university mail account . Let's say the phone where my app is installed has two or more different gmail account set: - "account 1" - "abcdef@gmail.com" - "account 2" - "123456@mydomain.com" I know that... | android|email|gmail|inbox | 0 | 2015-03-01T17:34:40.653Z | 2,015 | 3 | 17 | 6 | 356 | 1 | 465 | 37 | 4 | 1 | true | false | false | false | false | false | zero |
28,796,787 | How to use GUI in visual studio 2010 for android application | <p>Hy I am new to visual studio .I search a lot and successfully create first application of android in visual studio 2010 using c++ but I don't find anything related to GUI.Please help me I want to create button,imageview,textbox etc in my android application using visual studio 2010 with c++</p>
<p>regards</p> | Hy I am new to visual studio .I search a lot and successfully create first application of android in visual studio 2010 using c++ but I don't find anything related to GUI.Please help me I want to create button,imageview,textbox etc in my android application using visual studio 2010 with c++ regards | android|c++|visual-studio-2010 | -2 | 2015-03-01T17:37:13.400Z | 2,015 | 3 | 17 | 6 | 165 | 2 | 299 | 60 | 3 | 0 | false | false | false | false | false | true | negative |
28,796,820 | How to give android MediaPlayer a String Path? | <p>I wrote a Media Player in my app and wrote this code below:</p>
<pre><code>mediaPlayer = MediaPlayer.create(this, R.raw.file);
</code></pre>
<p>I want to give my mediaplayer this String path instead of a uri:</p>
<pre><code>String path = "http://example.org/file.mp3";
</code></pre>
<p>How can I do that?
Guys Ple... | I wrote a Media Player in my app and wrote this code below: [CODE] I want to give my mediaplayer this String path instead of a uri: [CODE] How can I do that? Guys Please answer my question with some code!!! Thank you so much! | android|media-player|android-mediaplayer|media | 0 | 2015-03-01T17:40:04.740Z | 2,015 | 3 | 17 | 6 | 609 | 1 | 225 | 46 | 4 | 2 | true | false | false | false | false | false | zero |
28,796,821 | How to Fetch Data from SqliteDatabase to Calendar Adapter? | <p><strong>WHy when i use this in CalendarAdapter it marked as error?</strong> </p>
<p>Can you help me with this error?</p>
<pre><code> public class CalendarAdapter extends BaseAdapter{
DbFertility db = new DbFertility(this); <=== (why when i use (this) in Calednar Adapater it marked as an error?
... | WHy when i use this in CalendarAdapter it marked as error? Can you help me with this error? [CODE] The Error is : The Constructor DbFertility(CalendarAdapter) is undefined. Expected Output: i want to fetch data from DbHelper. | android | 0 | 2015-03-01T17:40:08.610Z | 2,015 | 3 | 17 | 6 | 55 | 1 | 225 | 58 | 1 | 1 | true | false | false | false | false | false | zero |
28,796,879 | Unable to add resize functionality in android widget | <p>I have made an analog clock widget. The widget is working perfectly fine except that I am unable to add the resize functionality. Based on tutorials and other references <code>android:resizeMode="horizontal|vertical"</code> code does the job, but its not working.</p>
<p>I have also added <code><supports-screens ... | I have made an analog clock widget. The widget is working perfectly fine except that I am unable to add the resize functionality. Based on tutorials and other references android:resizeMode="horizontal|vertical" code does the job, but its not working. I have also added <supports-screens android:resizeable="true" I have ... | android|resize|widget | 0 | 2015-03-01T17:45:43.443Z | 2,015 | 3 | 17 | 6 | 430 | 1 | 522 | 52 | 3 | 0 | false | false | false | false | false | false | zero |
28,796,890 | External library usage in eclipse | <p>I want to use this library in my project:<a href="https://github.com/hdodenhof/CircleImageView" rel="nofollow">https://github.com/hdodenhof/CircleImageView</a> I am using eclipse.I downloaded jar file and put the libs folder.</p>
<p>My xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLa... | I want to use this library in my project: https://github.com/hdodenhof/CircleImageView I am using eclipse.I downloaded jar file and put the libs folder. My xml: [CODE] I am getting following errors: [CODE] How can I resolve this ? | android | 1 | 2015-03-01T17:46:29.753Z | 2,015 | 3 | 17 | 6 | 1,191 | 1 | 230 | 33 | 1 | 2 | true | false | false | false | false | false | low |
28,796,928 | Android adding event to a CustomPreference element (TextView) | <p>I'm doing an with a PreferenceActivity with two Fragments, each one containing a PreferenceScreen.</p>
<p>The thing I want to do is to create an event listener on a Custom preference that I have (a row of this custom Preference is a TextView with a SwitchView). I handle well the Switch preference, it keeps it saved... | I'm doing an with a PreferenceActivity with two Fragments, each one containing a PreferenceScreen. The thing I want to do is to create an event listener on a Custom preference that I have (a row of this custom Preference is a TextView with a SwitchView). I handle well the Switch preference, it keeps it saved as I want,... | android|android-fragments|listener|preferences | 1 | 2015-03-01T17:50:17.957Z | 2,015 | 3 | 17 | 6 | 135 | 2 | 840 | 61 | 4 | 2 | true | false | false | false | false | false | low |
28,796,950 | Android drawable-nodpi not working? | <p>My 64x64 png image is getting scaled down in a xxhdpi screen when it is placed in drawable-nodpi folder.</p>
<p>The code for decoding is:</p>
<pre><code>BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inScaled = false;
Bitmap icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.ico... | My 64x64 png image is getting scaled down in a xxhdpi screen when it is placed in drawable-nodpi folder. The code for decoding is: [CODE] I'm drawing it in a view with canvas. Ah, i also read other post that manifest needs to have specified minSDK and screen supports but i still seem to be unable to achieve it. Thanks ... | android | 1 | 2015-03-01T17:51:59.953Z | 2,015 | 3 | 17 | 6 | 313 | 0 | 331 | 35 | 1 | 1 | true | true | false | false | false | false | low |
28,797,059 | How to ensure that the requests made to my server is by the app itself and not by somebody trying fake requests? | <p>I have developed a game which when gets a highscore connects to the server to update the score in the leaderboard.What i want is to prevent somebody or even the user from sending fake highscores without playing.The method i tried was to send all data from my app encrypted using a hardcoded key in the app and using t... | I have developed a game which when gets a highscore connects to the server to update the score in the leaderboard.What i want is to prevent somebody or even the user from sending fake highscores without playing.The method i tried was to send all data from my app encrypted using a hardcoded key in the app and using the ... | java|android|security | -1 | 2015-03-01T18:02:59.457Z | 2,015 | 3 | 18 | 6 | 331 | 1 | 481 | 112 | 3 | 0 | false | false | false | false | false | true | negative |
28,797,065 | Android app-compat Toolbar Styling | <p>Bigger question I have now, is how do I color the toolbar icons on kitkat / jellybean. On lollipop I can use the </p>
<pre><code> <item name="android:textColorSecondary">@color/ttdPrimaryColor</item>
</code></pre>
<p>and that seems to do the trip but no such luck on kitkat.</p>
<p>I am trying ... | Bigger question I have now, is how do I color the toolbar icons on kitkat / jellybean. On lollipop I can use the [CODE] and that seems to do the trip but no such luck on kitkat. I am trying to figure out how to theme the menu icon on the Toolbar. I need to keep the title white, but I want the menu icon to be a differen... | android|android-actionbar|android-theme|android-styles|android-toolbar | 2 | 2015-03-01T18:03:32.900Z | 2,015 | 3 | 18 | 6 | 534 | 1 | 590 | 34 | 5 | 3 | true | false | false | false | false | false | low |
28,797,080 | How to send array of registeration ids to gcm from android using php | <p>I'm trying to send array of registeration ids to the gcm using php but it doesn't work, I'm using sinch and this is my code :</p>
<pre><code>class sendPushNotifications extends AutoAsyncTask {
List<PushPair> pushPairs;
String message;
String senderId;
public sendPushNotifications(Context c... | I'm trying to send array of registeration ids to the gcm using php but it doesn't work, I'm using sinch and this is my code : [CODE] I know that the above code is wrong that's why I'm asking. (p) is list of pushpairs which contain GCM registeration ids which I can get using the function p.getPushData() , what I want to... | php|android|arrays|google-cloud-messaging|sinch | 1 | 2015-03-01T18:04:32.097Z | 2,015 | 3 | 18 | 6 | 775 | 0 | 761 | 68 | 5 | 4 | true | true | false | false | false | false | low |
28,797,084 | Check if it is first Login with G+ in Android | <p>I'm building an android app, and i'm stuck with a feature that i want to implement at the login with google plus page. I implemented the activity and it works fine. But my problem is the following. I have a start activity and I want to check in this activity whether its the user first sign in or not? if it is i will... | I'm building an android app, and i'm stuck with a feature that i want to implement at the login with google plus page. I implemented the activity and it works fine. But my problem is the following. I have a start activity and I want to check in this activity whether its the user first sign in or not? if it is i will di... | android|google-plus-signin | 0 | 2015-03-01T18:04:46.893Z | 2,015 | 3 | 18 | 6 | 153 | 0 | 485 | 45 | 2 | 0 | false | true | false | false | false | false | zero |
28,797,091 | I can't access with the package name when I run my application | <p>I recently download a sample and I want to add this to my project.
when I make a new project everything looks like the sample and there is no diffrences between them.
but when I run the application I got this error.</p>
<p>Error: Could not access the Package Manager. Is the system running?</p>
<p>please help me t... | I recently download a sample and I want to add this to my project. when I make a new project everything looks like the sample and there is no diffrences between them. but when I run the application I got this error. Error: Could not access the Package Manager. Is the system running? please help me to solve this problem... | java|android | 0 | 2015-03-01T18:05:42.483Z | 2,015 | 3 | 18 | 6 | 35 | 0 | 346 | 62 | 2 | 0 | false | true | false | false | false | false | zero |
28,797,128 | Add and remove multiple views | <p>Currently I am trying to add multiple instances of the same view to a viewgroup, I want to give my users the ability to remove these added views if necessary, but I am not sure how to reference each view individually.</p>
<p><strong>How can I keep track of each view seperately, and if necessary reference each one t... | Currently I am trying to add multiple instances of the same view to a viewgroup, I want to give my users the ability to remove these added views if necessary, but I am not sure how to reference each view individually. How can I keep track of each view seperately, and if necessary reference each one to retrieve individu... | android|views | 0 | 2015-03-01T18:09:14.853Z | 2,015 | 3 | 18 | 6 | 144 | 1 | 634 | 29 | 2 | 4 | true | false | false | false | false | false | zero |
28,797,183 | Simple Audio Record and Play Application Crashing | <p>I have the following code for a part of my application:</p>
<pre><code>package com.example.ankur.easyvoicemail;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.widget.Button;
import android.os.Environment;
import android.view.View;
import android.view.View.OnClickListener;... | I have the following code for a part of my application: [CODE] The application was working fine, but after a couple of changes, it started crashing. Now I don't remember exactly after which change the application started crashing. Can't figure out what I am doing wrong. Any help? My stack trace says: [CODE] I don't get... | java|android|exception|stack-trace | 0 | 2015-03-01T18:14:11.893Z | 2,015 | 3 | 18 | 6 | 43 | 1 | 378 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
28,797,196 | Create JSON array in php and decode it in android. org.json.JSONException: No value for id | <p>I use below code to create json array in php</p>
<pre><code>$jsonData = array();
$jsonTempData = array();
$count=0;
$result = $link->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
$jsonTempData['id']=$row['_id'];
... | I use below code to create json array in php [CODE] and decode in android by below code [CODE] But I get This Exception in android [CODE] What is the problem ? How can solve this problem ? My goal is create 2d array in php and convert it to Array of JSON Object to extract in android. | php|android|json | 1 | 2015-03-01T18:15:12.643Z | 2,015 | 3 | 18 | 6 | 738 | 2 | 284 | 90 | 3 | 3 | true | false | false | false | false | false | low |
28,797,198 | File download not work in mobile | <p>I use this code for download from link to sdcard</p>
<p>This code worked full in emulator but not work in mobile</p>
<p>In mobile file created but capacity of file is zero and not downloading full</p>
<p>How can fixed it ?!</p>
<p><strong>NOTE : i understand my code not work for 4 version, what is problem ?!</st... | I use this code for download from link to sdcard This code worked full in emulator but not work in mobile In mobile file created but capacity of file is zero and not downloading full How can fixed it ?! NOTE : i understand my code not work for 4 version, what is problem ?! Thx [CODE] | android|fileoutputstream | 0 | 2015-03-01T18:15:24.007Z | 2,015 | 3 | 18 | 6 | 52 | 1 | 284 | 32 | 2 | 1 | true | false | false | false | false | false | zero |
28,797,267 | Strange Behavior when populating Spinner from Database | <p>I am trying to populate a spinner from Mysql Databse through JSON. The thing is that the data are exported fine. But when I click the Spinner to show the dropdown menu the app crashes.</p>
<p>The JSON output from database: <a href="http://reservations.cretantaxiservices.gr/files/getgins.php" rel="nofollow noreferre... | I am trying to populate a spinner from Mysql Databse through JSON. The thing is that the data are exported fine. But when I click the Spinner to show the dropdown menu the app crashes. The JSON output from database: Output The Error: [CODE] My Adapter: [CODE] My AsyncTask: [CODE] My Layout looks like: Any ideas why is ... | php|android|json|android-spinner | 0 | 2015-03-01T18:22:35.187Z | 2,015 | 3 | 18 | 6 | 56 | 2 | 417 | 54 | 4 | 3 | true | false | false | false | false | false | zero |
28,797,273 | Android emulator has old versions of application | <p>I am testing my Android application on an emulator through Android Studio. A month back I setup my emulator, did some tests, etc. I have changes to the codebase during the last month, have tested on a device, and want to test against the emulator because it has an earlier API than my device.</p>
<p>When I run the e... | I am testing my Android application on an emulator through Android Studio. A month back I setup my emulator, did some tests, etc. I have changes to the codebase during the last month, have tested on a device, and want to test against the emulator because it has an earlier API than my device. When I run the emulator it ... | android|android-emulator | 5 | 2015-03-01T18:23:10.193Z | 2,015 | 3 | 18 | 6 | 5,524 | 1 | 544 | 48 | 2 | 0 | false | false | true | false | false | false | low |
28,797,297 | FacebookDialog.canPresentShareDialog is always null | <p>I`m trying to take a picture and share to on facebook.</p>
<pre><code>private void facebookPublishFeedDialog(Bitmap bitmap2) {
images.add(bitmap2);
if (FacebookDialog.canPresentShareDialog(getActivity(),FacebookDialog.ShareDialogFeature.PHOTOS)) {
// Publish the post using the ... | I`m trying to take a picture and share to on facebook. [CODE] Crashes when trying to get canPresentShareDialog. My SDK version is 3.23 I already added that to my manifest: [CODE] Log: [CODE] Thanks | android|facebook | 0 | 2015-03-01T18:25:29.370Z | 2,015 | 3 | 18 | 6 | 326 | 1 | 197 | 51 | 2 | 3 | true | false | false | false | false | false | zero |
28,797,324 | External library installation in eclipse without maven | <p>I want to use this library in my project:<a href="https://github.com/Pkmmte/CircularImageView" rel="nofollow">https://github.com/Pkmmte/CircularImageView</a></p>
<p>But I am not using gradle or maven,I am using eclipse.</p>
<p>What should i do for install this library to my project ?</p> | I want to use this library in my project: https://github.com/Pkmmte/CircularImageView But I am not using gradle or maven,I am using eclipse. What should i do for install this library to my project ? | android | 0 | 2015-03-01T18:27:47.010Z | 2,015 | 3 | 18 | 6 | 32 | 1 | 198 | 54 | 1 | 0 | false | false | false | false | false | false | zero |
28,797,325 | Select music through Spinner and Play | <p>What i want to do is to add a spinner and a button, in spinner 2 songs are placed when i selected a song it plays and same as for other one but when i run this code it will do nothing just display a spinner and button and i only select a song and when i clicked a play button it do no respond.</p>
<pre><code>import ... | What i want to do is to add a spinner and a button, in spinner 2 songs are placed when i selected a song it plays and same as for other one but when i run this code it will do nothing just display a spinner and button and i only select a song and when i clicked a play button it do no respond. [CODE] } This is the Xml c... | java|android|xml | -1 | 2015-03-01T18:27:51.983Z | 2,015 | 3 | 18 | 6 | 1,308 | 1 | 359 | 37 | 3 | 3 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.