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,735,507
How parse date in Java ? some confusion on date formats
<p>I have working with twitter and getting tweets using API and I am using twitter4j library for that. In that I got tweeted date as "<code>Thu Feb 26 00:16:19 EST 2015</code>" and this is a date string. How can I parse this date string to a Date object. </p>
I have working with twitter and getting tweets using API and I am using twitter4j library for that. In that I got tweeted date as " Thu Feb 26 00:16:19 EST 2015 " and this is a date string. How can I parse this date string to a Date object.
java|android|date|date-format
3
2015-02-26T06:00:29.303Z
2,015
2
6
3
789
1
240
55
4
0
false
false
false
false
false
false
low
28,735,518
Android Studio: emulator: warning: opening audio input failed creating window 61 83 462 820
<p>I am getting this error everytime I try to launch my AVD: <code>emulator: warning: opening audio input failed</code> <code>creating window 61 83 462 820</code></p> <p>Have tried, editing, deleting, and modifying my devices and also re-installed Android Studio. Also, started from scratch on the project I am working ...
I am getting this error everytime I try to launch my AVD: emulator: warning: opening audio input failed creating window 61 83 462 820 Have tried, editing, deleting, and modifying my devices and also re-installed Android Studio. Also, started from scratch on the project I am working and so far no success. This error sho...
android|android-emulator|android-sdk-tools|avd
1
2015-02-26T06:01:29.733Z
2,015
2
6
3
2,567
0
722
91
4
0
false
true
false
false
false
false
low
28,735,520
insert & fetching RSA encrypted data in SQLite
<p>We are <code>encrypting data ( string )</code> with <code>RSA algorithm</code>. Then we are trying to insert this <code>encrypted data</code> to <code>SQLite Android database</code> using <code>varchar type</code>. But whenever the <code>encrypted data</code> contains single quote ('), the data is not inserted as w...
We are encrypting data ( string ) with RSA algorithm . Then we are trying to insert this encrypted data to SQLite Android database using varchar type . But whenever the encrypted data contains single quote ('), the data is not inserted as we are using varchar . Please suggest which data type we have to use to hold the ...
android|sqlite|encryption|cryptography|rsa
1
2015-02-26T06:01:39.377Z
2,015
2
6
3
545
0
517
46
5
1
true
true
false
false
false
false
low
28,735,532
Android Camera Application: Outputting bitmap to second activity
<p>I want to save the image internally, then display it in the next Activity. Here is the camera activity (the preview and everything works perfectly, but when I press the Capture button I get sent to the second activity but it's just a white screen...no bitmap image is displayed).</p> <p>Main Camera Activity:</p> <p...
I want to save the image internally, then display it in the next Activity. Here is the camera activity (the preview and everything works perfectly, but when I press the Capture button I get sent to the second activity but it's just a white screen...no bitmap image is displayed). Main Camera Activity: [CODE] Here is the...
java|android|image|bitmap|camera
0
2015-02-26T06:02:22.453Z
2,015
2
6
3
76
1
386
64
5
3
true
false
false
false
false
false
zero
28,735,539
Manipulating the Toolbar's title and other elements
<p>I'm using the AppCompat toolbar, and for the most part its great. However, dealing with the title has been a nightmare. It's set to the app name by default, and I cannot find a way to hide it. </p> <p>I was trying to hide it so that I can add my own textview so that I could properly align the title text to the top ...
I'm using the AppCompat toolbar, and for the most part its great. However, dealing with the title has been a nightmare. It's set to the app name by default, and I cannot find a way to hide it. I was trying to hide it so that I can add my own textview so that I could properly align the title text to the top currently it...
android|android-toolbar
1
2015-02-26T06:02:57.750Z
2,015
2
6
3
2,430
3
823
51
2
0
false
false
false
false
false
false
low
28,735,577
Assign the Intended bitmap value to an imageView
<p>I'm using an adapter to load the items to a grid. then when the user select an item from the grid then it opens up the customizing screen. In that process I'm sending some data in the intent and later I can load the these in the customizing screen. Successfully I have loaded the other items other than the <code>isVe...
I'm using an adapter to load the items to a grid. then when the user select an item from the grid then it opens up the customizing screen. In that process I'm sending some data in the intent and later I can load the these in the customizing screen. Successfully I have loaded the other items other than the isVeg item. R...
android|android-intent|bitmap
0
2015-02-26T06:06:10.160Z
2,015
2
6
3
112
3
711
48
3
3
true
false
false
false
false
false
zero
28,735,597
BroadcastReceiver not receiving boolean value after AlarmManager finishes set time
<p>I am using a BroadcastReceiver to enable a button when it is triggered. I have an AlarmManager that runs for a certain amount of time. When the time has elapsed, it sends a broadcast like this:</p> <pre><code>Intent i = new Intent("polarCap1Status"); i.putExtra("polarCap1Stat", true); LocalBroadcastManager.getInsta...
I am using a BroadcastReceiver to enable a button when it is triggered. I have an AlarmManager that runs for a certain amount of time. When the time has elapsed, it sends a broadcast like this: [CODE] I use this code to receive the broadcast: [CODE] I have the receiver setup in my manifest like so: [CODE] SetupTimerPC1...
java|android|button|android-intent|broadcastreceiver
1
2015-02-26T06:07:34.790Z
2,015
2
6
3
329
0
579
82
5
3
true
true
false
false
false
false
low
28,735,600
Android set icon to customTabHost
<p>i'm wrote simple code to have custom TabHost in application. this class extended from ABS and fregment, this code work correctly and i want to set icon for tabs, but i can not do it.</p> <pre><code>public class ActivitySmsSendSelectorMain extends SherlockFragmentActivity { TabHost mTabHost; ViewPager ...
i'm wrote simple code to have custom TabHost in application. this class extended from ABS and fregment, this code work correctly and i want to set icon for tabs, but i can not do it. [CODE] i'm try to change mTabHost to : [CODE] but it doesnt show icon into tab
android|android-tabhost
2
2015-02-26T06:07:56.810Z
2,015
2
6
3
106
0
261
33
2
2
true
true
false
false
false
false
low
28,735,651
ANR after unlock the device
<p>I am developing a fingerprint sensor application that use good amount of RAM,problem may be related to memory, i tried a lot still unsolved.</p> <p><strong>Q:-</strong> When i press home button application paused and from the recent button it resumed successfully, but when i press power button then unlock my device...
I am developing a fingerprint sensor application that use good amount of RAM,problem may be related to memory, i tried a lot still unsolved. Q:- When i press home button application paused and from the recent button it resumed successfully, but when i press power button then unlock my device,it show ANR instead of my a...
android|onresume|onpause|unlock|wakeup
0
2015-02-26T06:12:20.363Z
2,015
2
6
3
176
1
548
27
5
0
false
false
false
false
false
false
zero
28,735,656
App crashes on kitkat but not on lollipop
<p>I am using a simple listview in my app . In my adpater I am resizing the elements. It works fine when I run it on Nexus5(Lollipop) but crashes on Moto E(Kitkat).</p> <p>My adpater is</p> <pre><code> package com.hj.app.adapters; import java.io.IOException; import java.util.ArrayList; import android.content...
I am using a simple listview in my app . In my adpater I am resizing the elements. It works fine when I run it on Nexus5(Lollipop) but crashes on Moto E(Kitkat). My adpater is [CODE] } I am getting the following error [CODE] Please help
android|android-listview
-1
2015-02-26T06:12:32.160Z
2,015
2
6
3
583
2
236
41
2
2
true
false
false
false
false
true
negative
28,735,664
Android - How to set initial position of progressview of SwipeRefreshLayout?
<p>I have an Activity holding a SwipeRefreshLayout with a ListView inside.</p> <pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout android:id="@+id/swipe_refresh_layout" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;ListView android:id="@+id/list_view" ...
I have an Activity holding a SwipeRefreshLayout with a ListView inside. [CODE] I know I can use swipeView.setProgressViewOffset(false, start, end) to set position of progressview, but it only works when I drag on swipeView(it shows from start to end). If I use swipeView.setRefreshing(true), progressview keeps showing a...
android|progress|swiperefreshlayout
0
2015-02-26T06:12:45.870Z
2,015
2
6
3
516
0
440
76
3
1
true
true
false
false
false
false
zero
28,735,759
Encrypt a folder in android from SDcard
<p>How to encrypt a folder from android sdcard and the encrypted folder should be in filename.des. Is it possible?. I am using below code to encrypt a folder</p> <pre><code>try { File root_sd = Environment.getExternalStorageDirectory(); //original is a folder to encrypt file = new File(root_sd + "/...
How to encrypt a folder from android sdcard and the encrypted folder should be in filename.des. Is it possible?. I am using below code to encrypt a folder [CODE] but it is giving me FileNotFoundException . open failed : EISDIR (Is a directory). Cany anyone tell me how to ecrypt a folder. I am able to encrypt a file but...
java|android|encryption|filenotfoundexception
0
2015-02-26T06:19:52.247Z
2,015
2
6
3
408
0
339
39
4
1
true
true
false
false
false
false
zero
28,735,762
Getting url from Smart App Banner in android
<p>When try to click the smart app banner in browser page while the application is launched and then how can i get the url from meta tag.please any reference or guide me in correct way.</p>
When try to click the smart app banner in browser page while the application is launched and then how can i get the url from meta tag.please any reference or guide me in correct way.
android|android-banner
1
2015-02-26T06:20:06.770Z
2,015
2
6
3
502
0
182
44
2
0
false
true
false
false
false
false
low
28,735,772
Register a receiver through xml or call static method when work need to be done off service
<p>I have a service that gets start when push notifications are received. Based on a certain push notification, I would like to do bluetooth work (discovery and other things). So once the Service receive push notification, I have 2 possible solution ( given the app is not opened):</p> <p>1- Call static method that w...
I have a service that gets start when push notifications are received. Based on a certain push notification, I would like to do bluetooth work (discovery and other things). So once the Service receive push notification, I have 2 possible solution ( given the app is not opened): 1- Call static method that will start doi...
android
0
2015-02-26T06:20:47.983Z
2,015
2
6
3
48
1
502
91
1
0
false
false
false
false
false
false
zero
28,735,833
Files under the build folder are generated and should not be edited android?
<p>In my application i have to do some changes in the manifest file. but i failed to do changes the manifest file. Please help me how do i change the manifest file in android?</p> <p>manifest:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/an...
In my application i have to do some changes in the manifest file. but i failed to do changes the manifest file. Please help me how do i change the manifest file in android? manifest: [CODE] i want to remove the android:icon in every activity and save. please help me.
android-layout|android-manifest
0
2015-02-26T06:25:15.073Z
2,015
2
6
3
3,648
1
267
76
2
1
true
false
true
false
false
false
zero
28,735,865
Manually kill the javascript thread
<p>Is it possible to kill threads in android I see there is a </p> <pre><code>Thread.currentThread().destroy(); </code></pre> <p>which however is deprecated and still doesn't work for me. Im in china at the moment without working VPN so cannot read android dev, but I know it says there that javascript inserted in a w...
Is it possible to kill threads in android I see there is a [CODE] which however is deprecated and still doesn't work for me. Im in china at the moment without working VPN so cannot read android dev, but I know it says there that javascript inserted in a webview will run in a separate thread. The problem is that this th...
android|multithreading|webview
0
2015-02-26T06:27:43.830Z
2,015
2
6
3
2,023
2
481
35
3
1
true
false
false
false
false
false
zero
28,735,879
How to post a node data to drupal server from android application?
<p><img src="https://i.stack.imgur.com/qwvLn.jpg" alt="The attached screen shot shows the node JSON data format on drupal server"></p> <p>Now I want to create this node from android application. For this I am sending data in the form of key value pairs by putting them into a json object. When I post this json object I...
Now I want to create this node from android application. For this I am sending data in the form of key value pairs by putting them into a json object. When I post this json object I am getting these errors: HTTP/1.1 401 Unauthorized : CSRF validation failed & ["CSRF validation failed"] I am using this code: [CODE]
android|web-services|drupal-7
2
2015-02-26T06:29:04.897Z
2,015
2
6
3
182
2
315
66
3
1
true
false
false
false
false
false
low
28,735,895
Multiple VideoViews in Single Activity
<p>What i'm actually trying to make is a simple video player that plays a video "Side by Side"(for Virtual Reality Cardboards). I've used two VideoViews to accomplish this. But the problem is, there is a slight noticeable difference in the playback i.e; one of them plays first and then the other and same thing happens ...
What i'm actually trying to make is a simple video player that plays a video "Side by Side"(for Virtual Reality Cardboards). I've used two VideoViews to accomplish this. But the problem is, there is a slight noticeable difference in the playback i.e; one of them plays first and then the other and same thing happens wit...
android|android-videoview
1
2015-02-26T06:30:14.813Z
2,015
2
6
3
2,024
2
429
38
2
2
true
false
false
false
false
false
low
28,735,938
How to avoid notification Multiple times entering the same geofence?
<p>In my coding I am creating the Geofence for some dynamic location from my server and the geofence is working fine, But I must not alert for the same fence more than once within 4 hours. How can i achieve this scenario is there any parameter for this? </p> <p>this is coding i'm using for adding geofence</p> <pre><...
In my coding I am creating the Geofence for some dynamic location from my server and the geofence is working fine, But I must not alert for the same fence more than once within 4 hours. How can i achieve this scenario is there any parameter for this? this is coding i'm using for adding geofence [CODE]
android|geolocation|location|geofencing|android-geofence
0
2015-02-26T06:33:10.443Z
2,015
2
6
3
675
1
302
68
5
1
true
false
false
false
false
false
zero
28,735,952
Q: How to use OnClickListener with HorizontalScrollView
<p>OnClickListener not working with ScrollView because "extends Fragment". How can I use it with this? An example enough. Thanks..</p> <p><strong>UPDATE</strong> Fragment1.java</p> <pre><code>package intizamyazilim.example; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutI...
OnClickListener not working with ScrollView because "extends Fragment". How can I use it with this? An example enough. Thanks.. UPDATE Fragment1.java [CODE]
java|android|scrollview|onclicklistener|horizontalscrollview
0
2015-02-26T06:34:14.823Z
2,015
2
6
3
195
1
156
55
5
1
true
false
false
false
false
false
zero
28,735,963
Why Worldwind globe is not showing in simulator?
<p>Recently I have been struggling with showing worldwind globe on simulator. I have found that on running the app in device it shows exact round globe as expected but on simulator it shows following output.</p> <p><img src="https://i.stack.imgur.com/sEse5.png" alt="globeerror"></p> <p>I am not able to understand why...
Recently I have been struggling with showing worldwind globe on simulator. I have found that on running the app in device it shows exact round globe as expected but on simulator it shows following output. I am not able to understand why this is happening. Any workaround on this? I have already put internet and external...
java|android|android-permissions|worldwind
0
2015-02-26T06:35:02.847Z
2,015
2
6
3
160
0
401
48
4
1
true
true
false
false
false
false
zero
28,736,047
Fullscreen background image not scrolling with content html5 phonegap
<p>I have a fullpage background image with following code:</p> <pre><code>&lt;html class="full" lang="en"&gt; &lt;body class="full" &gt; header, footer and content.... Extending beyond the initial view. &lt;/body&gt; &lt;/html&gt; &lt;style&gt; .full { background: transparent url(../...
I have a fullpage background image with following code: [CODE] My problem description is, Initially the full screen background image is rendered in the android phone. [NO PROBLEM] But when I scroll, the background image is not appearing. Instead white background appears. [ISSUE] The original background re-appears only ...
android|css|html|cordova|jquery-mobile
0
2015-02-26T06:40:30.763Z
2,015
2
6
3
1,463
2
619
69
5
1
true
false
false
false
false
false
zero
28,736,064
Fetching registration IDs for GCM meteor app
<p>I am trying to implement push notification in my Meteor application for android devices.I am using this npm package called node-gcm. I have created an API project, got my project id, API key and everything. But the only thing that is remaining is the registration ids of the devices. I know that registration ids are...
I am trying to implement push notification in my Meteor application for android devices.I am using this npm package called node-gcm. I have created an API project, got my project id, API key and everything. But the only thing that is remaining is the registration ids of the devices. I know that registration ids are the...
javascript|android|node.js|meteor|google-cloud-messaging
0
2015-02-26T06:42:09.170Z
2,015
2
6
3
583
1
830
44
5
1
true
false
false
false
false
false
zero
28,736,097
unknownhostexception of a socket connection
<p>sort of a simple issue but I'm terrible in networking so here goes:</p> <p>im trying to connect to an ip and port with this simple line :</p> <pre><code>socket=new Socket(String ip,int port); </code></pre> <p>however i'm getting unknown host execption , even though that ip do exists (I can ping it successfully)</...
sort of a simple issue but I'm terrible in networking so here goes: im trying to connect to an ip and port with this simple line : [CODE] however i'm getting unknown host execption , even though that ip do exists (I can ping it successfully) I do have the uses INTERNET permission.
java|android|sockets
1
2015-02-26T06:44:44.073Z
2,015
2
6
3
135
0
281
43
3
1
true
true
false
false
false
false
low
28,736,108
having trouble accessing my json file from my assets folder
<p>In my android app I can't access my json file in my assets folder. It keeps giving me a FileNotFoundException. </p> <p>Without reading it directly into a InputStream I want to get the location of the json file instead. I have tried using /main/assets/data.json or ///android_assets/data.json or /assets/data.json. </...
In my android app I can't access my json file in my assets folder. It keeps giving me a FileNotFoundException. Without reading it directly into a InputStream I want to get the location of the json file instead. I have tried using /main/assets/data.json or ///android_assets/data.json or /assets/data.json. The main purpo...
android|json|assets|filenotfoundexception|android-assets
2
2015-02-26T06:45:07.167Z
2,015
2
6
3
3,638
1
806
59
5
3
true
false
true
false
false
false
low
28,736,114
va_start / va_end + vsnprintf issue on Android Lollipop
<p>I use next function:</p> <pre><code>void CharTest(const char * format,...) { char buffer[1024]; va_list args; va_start(args, format); vsnprintf(buffer, sizeof(buffer), format, args); va_end(args); fnt-&gt;Render(0, 30, 0, buffer); for(int i=0; i&lt;strlen(buffer); i++) { fnt-&gt;printf(0, 6...
I use next function: [CODE] Test example: [CODE] On Android 4.x it's works correctly, but on Android 5 I have problem with non-english characters. Screenshots from devices: Please, help me localize problem. p.s. NDK, API level 10 EDIT: Dan Albert: You right! Thank you!:)
android|c++|android-ndk
1
2015-02-26T06:45:59.500Z
2,015
2
6
3
604
1
271
55
3
2
true
false
false
false
false
false
low
28,736,117
How do i set the text of a TextView in a FrameLayout?
<p>I have a game that adds a point every time a player passes a ball through a goal. I added a TextView that I want updated every time a goal and initialized it with the text "1" and gave it the id "scoreTextView". I tried to declare a TextView variable in my main activity and using addView but my game crashes everytim...
I have a game that adds a point every time a player passes a ball through a goal. I added a TextView that I want updated every time a goal and initialized it with the text "1" and gave it the id "scoreTextView". I tried to declare a TextView variable in my main activity and using addView but my game crashes everytime.I...
java|android
0
2015-02-26T06:46:05.837Z
2,015
2
6
3
1,465
3
1,025
53
2
0
false
false
false
false
false
false
zero
28,736,132
Android: how to design my app to deal with large data?
<p>I'm developing an accounting system and I need your advice in two things:</p> <ol> <li>In the Invoice activity the end user chooses the item/items that should appear in the invoice. The items are predefined by the end user and the number of items could be 10,50 and even 1000, Every item has several fields: Descript...
I'm developing an accounting system and I need your advice in two things: In the Invoice activity the end user chooses the item/items that should appear in the invoice. The items are predefined by the end user and the number of items could be 10,50 and even 1000, Every item has several fields: Description, Price/unit, ...
android|database|performance
1
2015-02-26T06:47:27.050Z
2,015
2
6
3
895
3
1,084
54
3
0
false
false
false
false
false
false
low
28,736,153
how to get info from a service for another service
<p>A design question. Lets say I have a service A that receives location updates. And lets say that I have another IntentService B that receives push notifications. Now in this service B, if I get a certain push notification, I want to retrieve the last received location in order to do some calculations on it. </p> <p...
A design question. Lets say I have a service A that receives location updates. And lets say that I have another IntentService B that receives push notifications. Now in this service B, if I get a certain push notification, I want to retrieve the last received location in order to do some calculations on it. How would I...
android|android-service
0
2015-02-26T06:49:14.150Z
2,015
2
6
3
56
0
598
50
2
0
false
true
false
false
false
false
zero
28,736,168
In `ListView`, Why does disabling `animationCache` and `scrollingCache` reduces scroll lag?
<p>I have tried to get more information about the methods in the documentation, but I couldn't find any useful information related to my question.</p> <p>It seems counter-intuitive that the enabling caching would introduce lag - the purpose of caching is to reduce retrieval latency after all. So what exactly is happen...
I have tried to get more information about the methods in the documentation, but I couldn't find any useful information related to my question. It seems counter-intuitive that the enabling caching would introduce lag - the purpose of caching is to reduce retrieval latency after all. So what exactly is happening underne...
android|performance
2
2015-02-26T06:50:10.780Z
2,015
2
6
3
1,146
1
338
91
2
0
false
false
false
false
false
false
low
28,736,169
I want to implement AsyncTask parallel Executor in android application
<p>I have implemented serial <code>AsnycTask</code> but I want to convert this in parallel please help me. My code shown below.</p> <pre><code> public class ExpressNews extends Activity { // All static variables String URL = "http://www.express.pk/feed/"; // XML node keys static final String KEY_ITEM ...
I have implemented serial AsnycTask but I want to convert this in parallel please help me. My code shown below. [CODE] Here I use two Async classes name as private class MyAsync private class MyAsync1 Second Async class execute after first Async class result shown. How to I run both Async classes parallel in one activi...
java|android|multithreading|android-asynctask|concurrent-programming
1
2015-02-26T06:50:13.730Z
2,015
2
6
3
191
2
323
70
5
1
true
false
false
false
false
false
low
28,736,187
Android V7 Support FrameLayout does not scale properly
<p>Android layouts seem to have a tendency to refuse me, I can only hope I am not the only one who finds them ridiculous.</p> <p>I have basically designed my interfaces using RelativeLayouts (which seem to do exactly what they are told) but I find, that they do not scale at all. The only way I can see that design scal...
Android layouts seem to have a tendency to refuse me, I can only hope I am not the only one who finds them ridiculous. I have basically designed my interfaces using RelativeLayouts (which seem to do exactly what they are told) but I find, that they do not scale at all. The only way I can see that design scale is using ...
android|android-layout
2
2015-02-26T06:52:18.230Z
2,015
2
6
3
113
0
1,385
54
2
1
true
true
false
false
false
false
low
28,736,215
Android: Not able to change image in Window Title
<p>I have a parent activity (from which all other activities extend) - with a 'Navigation Drawer Toggle' icon in window title.</p> <p>I want to change the 'Navigation Drawer Toggle' image everytime drawer icon is clicked ( to open/close drawer)</p> <pre><code>public class ParentActivity extends Activity { private Im...
I have a parent activity (from which all other activities extend) - with a 'Navigation Drawer Toggle' icon in window title. I want to change the 'Navigation Drawer Toggle' image everytime drawer icon is clicked ( to open/close drawer) [CODE] Problem is that the 'imgDrawer' is not changing, when openDrawer and closeDraw...
android|android-imageview
1
2015-02-26T06:54:32.117Z
2,015
2
6
3
27
1
406
49
2
1
true
false
false
false
false
false
low
28,736,241
image upload using MultipartEntity class in android
<p>i have to upload image file and send it to server ,so i m using MultipartEntity class it giving me following error message..</p> <pre><code>Multiple markers at this line - MultipartEntity cannot be resolved to a type - The type new RecoverySystem.ProgressListener(){} must implement the inherited abstract method ...
i have to upload image file and send it to server ,so i m using MultipartEntity class it giving me following error message.. [CODE] here is the code [CODE]
android
1
2015-02-26T06:56:50.150Z
2,015
2
6
3
305
1
155
51
1
2
true
false
false
false
false
false
low
28,736,254
Adding additional option to default Android's application
<p>Is it possible adding additional option to system's default alarm that may trigger my App's function whenever the alarm rings? This is MIUI 6's Alarm and possibly applying it to all Android's?</p> <p><img src="https://i.stack.imgur.com/g1ANk.png" alt="MIUI 6&#39;s default Alarm system"></p>
Is it possible adding additional option to system's default alarm that may trigger my App's function whenever the alarm rings? This is MIUI 6's Alarm and possibly applying it to all Android's?
android
0
2015-02-26T06:57:49.577Z
2,015
2
6
3
31
1
192
57
1
0
false
false
false
false
false
false
zero
28,736,357
Imageview inside my Asynctask class is called twice
<p>I have written a program for viewpager to display images using pageradapter but I am experiencing a problem, as there are only two images that I am adding it to the list and returning the list. </p> <p>I added a println to see whether the images are called properly or not and they are getting called but it is getti...
I have written a program for viewpager to display images using pageradapter but I am experiencing a problem, as there are only two images that I am adding it to the list and returning the list. I added a println to see whether the images are called properly or not and they are getting called but it is getting called tw...
java|android|constructor|android-asynctask
0
2015-02-26T07:04:29.337Z
2,015
2
7
3
139
1
356
51
4
2
true
false
false
false
false
false
zero
28,736,407
How to play embedded youtube video in webview android with a button
<p>In android code with layout file I have a button, by clicking on that button I want to play YouTube video in the web-view. Any Idea</p>
In android code with layout file I have a button, by clicking on that button I want to play YouTube video in the web-view. Any Idea
android|webview|youtube
0
2015-02-26T07:07:56.973Z
2,015
2
7
3
436
1
131
67
3
0
false
false
false
false
false
false
zero
28,736,419
Parsing JSON array and object in Android
<p>This is what the JSON looks like:</p> <pre><code>[{ "pmid": "2", "name": " MANAGEMENT", "result": "1", "properties": [ { "prop_id": "32", "prop_name": "Bonneville", "address": "122 Lakeshore", "city": "Ripley", "state": "OH", ...
This is what the JSON looks like: [CODE] I am trying to parse it with the following Java code in Android: JSONObject jObj = null; try { jObj = new JSONObject(jsonStr); [CODE] I am not getting any results though. How can I successfully parse this JSON? I'm using Android Studio. Also, if there were multiple pieces to the...
java|android|arrays|json
1
2015-02-26T07:08:26.613Z
2,015
2
7
3
37,712
6
383
40
4
2
true
false
true
true
false
false
low
28,736,447
How to solve fragment Instantiate exception in android while pressing back button
<p>In My application have activity with fragment and another activity with fragment if user press back button from second activity fragment .It should go to first activity fragment I have tried using in fragment</p> <pre><code>getActivity.finish() </code></pre> <p>In activity finish()</p> <p>I am getting fragment I...
In My application have activity with fragment and another activity with fragment if user press back button from second activity fragment .It should go to first activity fragment I have tried using in fragment [CODE] In activity finish() I am getting fragment Instantiate exception Thanks
android
0
2015-02-26T07:11:48.550Z
2,015
2
7
3
84
0
287
81
1
1
true
true
false
false
false
false
zero
28,736,539
Android Build Tools keep ProGuard from removing unused appcompat library classes
<p>Here's a part of my <code>build.gradle</code>:</p> <pre><code>android { buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile file...
Here's a part of my build.gradle : [CODE] There's nothing in proguard-rules.pro but I noticed a file named aapt_rules.txt was generated which has something like this: [CODE] Which obviously keeps everything used by XMLs in the support library even if those XMLs are not used at all. And the codes that are kept again kee...
android|gradle|proguard
6
2015-02-26T07:17:19.293Z
2,015
2
7
3
2,145
3
675
80
3
2
true
false
false
false
false
false
medium
28,736,581
How to make an android TextView not to separate by symbol when the length is larger then the view width?
<p>I'm trying to show the user email address on a dialog. In most cases, the dialog width is enough to show it. (In my case, the textview width can put 20 chars per line.) like: aabbccdd@gmail.com</p> <p>But there are some problems with this kind of email address: aabbccdd.eeffgghh+0123456789@gmail.com</p> <p>It may ...
I'm trying to show the user email address on a dialog. In most cases, the dialog width is enough to show it. (In my case, the textview width can put 20 chars per line.) like: aabbccdd@gmail.com But there are some problems with this kind of email address: aabbccdd.eeffgghh+0123456789@gmail.com It may looks like this on ...
android|textview
0
2015-02-26T07:20:47.813Z
2,015
2
7
3
47
1
400
104
2
2
true
false
false
false
false
false
zero
28,736,641
Android splash screen for both landscape and portrait orientation
<p>How can I modify my this code to set splash screens for both landscape and portrait orientation. I managed to work on portrait mode and it is working fine. i like ti make it for both the orientation. please modify this code. This is my SplashActivity.java.</p> <pre><code>public class SplashActivity extends Activity...
How can I modify my this code to set splash screens for both landscape and portrait orientation. I managed to work on portrait mode and it is working fine. i like ti make it for both the orientation. please modify this code. This is my SplashActivity.java. [CODE] This is my splash_screen.xml. [CODE]
android|xml|splash-screen|screen-orientation
3
2015-02-26T07:24:28.907Z
2,015
2
7
3
6,997
2
300
65
4
2
true
false
true
false
false
false
low
28,736,644
Android listview row detail page sliding
<p>I have <code>ListView</code> which has many items(rows), <code>onClick</code> of any item goes to the <code>DetailActivity</code> which explains more about that particular item. If I want to see the detail of the next item, I have to come back to the <code>ListView</code> and click next item. How to design to see th...
I have ListView which has many items(rows), onClick of any item goes to the DetailActivity which explains more about that particular item. If I want to see the detail of the next item, I have to come back to the ListView and click next item. How to design to see the next or previous item's detail from DetailActivity by...
android|android-listview|swipe|swipe-gesture
2
2015-02-26T07:24:42.557Z
2,015
2
7
3
811
2
346
40
4
0
false
false
false
false
false
false
low
28,736,670
How to execute two observables sequentially?
<p>How to execute two observables sequentially and overwrite one result by another in rxjava chain?</p> <p>For example i have got data1 = observableFromDb and data2 = observableFromServer;</p> <p>I would like to combine them in chain and overwrite data1 by data2 result.</p>
How to execute two observables sequentially and overwrite one result by another in rxjava chain? For example i have got data1 = observableFromDb and data2 = observableFromServer; I would like to combine them in chain and overwrite data1 by data2 result.
android|rx-java
4
2015-02-26T07:26:40.920Z
2,015
2
7
3
2,427
1
253
44
2
0
false
false
false
false
false
false
low
28,736,697
Android open the Gmail attachement using my app
<p>How to open the Gmail attachement using my app which is developed to print. I am not getting the path of Gmail attachement downloaded path.I am getting empty path. Please share the code snipets. thanks in advance</p> <p>here is my intenet filter code</p> <pre><code> &lt;intent-filter android:label="@st...
How to open the Gmail attachement using my app which is developed to print. I am not getting the path of Gmail attachement downloaded path.I am getting empty path. Please share the code snipets. thanks in advance here is my intenet filter code [CODE]
android|gmail
0
2015-02-26T07:28:39.757Z
2,015
2
7
3
94
0
250
47
2
1
true
true
false
false
false
false
zero
28,736,746
Is there a way to change the default directory to copy build apk from android studio to my device?
<p>By default Studio copy and installs from the directory <code>/data/local/tmp</code> on my device. And for some reason my custom ROM doesn't give enough permission to Studio to install from that location. So is it possible to copy and install the build apk from other location like sdcard? Or to give enough permission...
By default Studio copy and installs from the directory /data/local/tmp on my device. And for some reason my custom ROM doesn't give enough permission to Studio to install from that location. So is it possible to copy and install the build apk from other location like sdcard? Or to give enough permission to Android Stud...
android|android-studio|apk|file-permissions
0
2015-02-26T07:32:07.140Z
2,015
2
7
3
81
0
354
98
4
0
false
true
false
false
false
false
zero
28,736,769
Load folder thumbnail like in Gallery
<p>Currently I'm making Custom Gallery.</p> <p>I don't know how to load <code>Folder Thumbnail</code> like in Gallery.</p> <p>Like below image.</p> <p>People who know,</p> <p>Please tell me know,</p> <p>Thank you</p> <p><img src="https://i.stack.imgur.com/WsLwK.jpg" alt="enter image description here"></p>
Currently I'm making Custom Gallery. I don't know how to load Folder Thumbnail like in Gallery. Like below image. People who know, Please tell me know, Thank you
android|directory|gallery|thumbnails|android-custom-view
0
2015-02-26T07:33:37.307Z
2,015
2
7
3
388
0
161
37
5
0
false
true
false
false
false
false
zero
28,736,836
FATAL EXCEPTION: main Process: java.lang.IllegalStateException: Could not execute method of the activity
<p>Been trying to get my <code>IntroActivity.java</code> to enter my <code>FmMenu.java</code> (which is a fragment) and I am getting the following error:</p> <pre><code>02-26 02:10:58.197 25189-25189/com.wlodsgn.bunbunup E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.wlodsgn.bunbunup, PID: 25189 java.la...
Been trying to get my IntroActivity.java to enter my FmMenu.java (which is a fragment) and I am getting the following error: [CODE] Here is my IntroActivity.java (Where my app start and should enter FmMenu with a button click) [CODE] FmMenu.java [CODE] MenuActivity.java (which contains navigation drawer and search box)...
android|android-fragments|android-fragmentactivity|illegalstateexception|android-runtime
0
2015-02-26T07:37:55.680Z
2,015
2
7
3
3,825
1
363
104
5
4
true
false
true
false
false
false
zero
28,736,849
protecting downloaded videos from unauthorise access in android
<p>i need to restrict the bulk of videos downloaded (around 20MB) from my app playable from outside my App. When User tries to play the videos outside my App it should not play. i searched for this and came across about encryption and Decryption using Cipherinputstream and CipherOutputstream.i read that decryption wil...
i need to restrict the bulk of videos downloaded (around 20MB) from my app playable from outside my App. When User tries to play the videos outside my App it should not play. i searched for this and came across about encryption and Decryption using Cipherinputstream and CipherOutputstream.i read that decryption will ta...
android|video|encryption|zip|password-protection
1
2015-02-26T07:38:51.150Z
2,015
2
7
3
47
0
536
63
5
0
false
true
false
false
false
false
low
28,736,880
How to alert the user using Toast that the OkHttp request returned something other than 200?
<p>I'm using OkHttp and everything is working fine, however, I wanted to take into consideration the case where the DNS resolution is off, the server is down, slow, or simply returns something other than HTTP Status Code 200. I've tried to use Toast, but I can't since this is done on another thread (?). How do I overco...
I'm using OkHttp and everything is working fine, however, I wanted to take into consideration the case where the DNS resolution is off, the server is down, slow, or simply returns something other than HTTP Status Code 200. I've tried to use Toast, but I can't since this is done on another thread (?). How do I overcome ...
android|okhttp|android-toast
10
2015-02-26T07:40:27.160Z
2,015
2
7
3
5,149
1
420
92
3
2
true
false
true
false
true
false
medium
28,736,897
Google Maps Cannot Remove Marker Using Timer
<p>I have a problem with update current markers on <code>Google Maps</code>. These markers are created when the activity starts. I save all merkers into a <code>arraylist</code>. Then I set a timer to redraw those markers every 10 seconds. </p> <p>However System gives me this error:</p> <blockquote> <p>02-26 15:33:...
I have a problem with update current markers on Google Maps . These markers are created when the activity starts. I save all merkers into a arraylist . Then I set a timer to redraw those markers every 10 seconds. However System gives me this error: 02-26 15:33:53.295: E/AndroidRuntime(21337): java.lang.IllegalStateExce...
java|android|google-maps
0
2015-02-26T07:41:21.390Z
2,015
2
7
3
209
2
488
44
3
1
true
false
false
false
false
false
zero
28,736,899
Crash with 'Comparison method violates its general contract'
<p>I get users crashing on a Collections.sort, whereas with my onw tests, the following code never crashes:</p> <pre><code>Collections.sort(spinnerAreaArray, new Comparator&lt;tarifdata&gt;() { @Override public int compare(tarifdata s1, tarifdata s2) { if (s1.rating ...
I get users crashing on a Collections.sort, whereas with my onw tests, the following code never crashes: [CODE] If both objects s1 and s2 have no rating value set, I need to sort alphabetically. I have read about this error in SO, but still cant figure out why this can crash.
android|sorting
1
2015-02-26T07:41:45.160Z
2,015
2
7
3
57
1
276
60
2
1
true
false
false
false
false
false
low
28,736,927
Passing cv:Mat from android to jni
<p>I'm trying to send a Mat object from android side to jni side, i do not want to send mat object address. But my jni code returns 0 for no of rows in Mat, which i'm not getting.</p> <p>Android-Java code is :</p> <pre><code>buttton.setOnClickListener(new OnClickListener() { @Override public void onClick(View...
I'm trying to send a Mat object from android side to jni side, i do not want to send mat object address. But my jni code returns 0 for no of rows in Mat, which i'm not getting. Android-Java code is : [CODE] JNI code is : [CODE]
android|c++|opencv|android-ndk|java-native-interface
5
2015-02-26T07:43:16.430Z
2,015
2
7
3
6,068
1
227
34
5
2
true
false
true
false
false
false
low
28,736,933
Printing invoice fromAndroid Tablet
<p>How to connect the thermal printer to Android tablet for getting print my invoice.</p> <p>if any one know please give me a procedure and code samples for taking print from Tablet..</p> <p>Thanks a lot.</p>
How to connect the thermal printer to Android tablet for getting print my invoice. if any one know please give me a procedure and code samples for taking print from Tablet.. Thanks a lot.
android|printing|tablet|android-4.4-kitkat|invoice
0
2015-02-26T07:43:38.837Z
2,015
2
7
3
439
1
187
35
5
0
false
false
false
false
false
false
zero
28,736,940
Image is not getting displayed from a URL- picasso+okhttp+retrofit Android
<p>I am trying to use Picasso library to load and cache images from the server.The image does not load and the view is blank.I doubt it has got to do with some conflicts in my existing libraries.Here is my libs folder.<img src="https://i.stack.imgur.com/jquad.png" alt="enter image description here"></p> <p>Could some ...
I am trying to use Picasso library to load and cache images from the server.The image does not load and the view is blank.I doubt it has got to do with some conflicts in my existing libraries.Here is my libs folder. Could some one help? Previously I was getting an error that picasso needs a specific version of okhttp a...
android|picasso
0
2015-02-26T07:44:03.040Z
2,015
2
7
3
540
1
479
74
2
1
true
false
false
false
false
false
zero
28,736,976
Unable to insert row from Android to MySQL using PHP
<p>I am trying to insert data from android to MySQL but it does not show any error in logcat but displays the json message in the app.</p> <p>Here is my PHP script.</p> <pre><code>&lt;?php /* * Following code will create a new product row * All product details are read from HTTP Post Request */ require("config.i...
I am trying to insert data from android to MySQL but it does not show any error in logcat but displays the json message in the app. Here is my PHP script. [CODE] Here is my JSONParser.java [CODE] } Here is my MainActivity.java [CODE] And the error I am getting inside the emulator is this json message in my php script [...
java|php|android|mysql|json
1
2015-02-26T07:47:14.153Z
2,015
2
7
3
392
1
395
52
5
4
true
false
false
false
false
false
low
28,736,981
First time open my app, request data and save them
<p>I am making an application. I want the first time the user opens my application, display an initial screen for entering the Name, Email and Phone Number, Then, store the input data in the memory of the mobile phone.</p> <p>I want this screen appears only the first time the user opens the application, because in my ...
I am making an application. I want the first time the user opens my application, display an initial screen for entering the Name, Email and Phone Number, Then, store the input data in the memory of the mobile phone. I want this screen appears only the first time the user opens the application, because in my application...
android
0
2015-02-26T07:47:40.090Z
2,015
2
7
3
105
1
389
50
1
0
false
false
false
false
false
false
zero
28,736,987
Get view from Fragment using AsyncTask
<p>I used <a href="https://github.com/astuetz/PagerSlidingTabStrip" rel="nofollow">PagerSlidingTabStrip</a> and have to fragments.</p> <p>In each fragments, I used <code>AsyncTask</code> to get data from server. </p> <p>Below is my fragment class that gets html from server and displays listview.</p> <pre><code>publi...
I used PagerSlidingTabStrip and have to fragments. In each fragments, I used AsyncTask to get data from server. Below is my fragment class that gets html from server and displays listview. [CODE] Since AsyncTask does things in background, return view; didn't work as I expected. Here is my main activity that has fragmen...
android|android-fragments|android-asynctask
0
2015-02-26T07:48:04.977Z
2,015
2
7
3
301
1
383
38
3
2
true
false
false
false
false
false
zero
28,736,996
stop page to redirect when user press back key in webview android
<pre><code> public void onBackPressed (){ WebView webview = (WebView) findViewById(R.id.mainWebView); if (webview.isFocused() &amp;&amp; webview.canGoBack()) { webview.goBack(); } else { super.onBackPressed(); finish(); } } private class MyCustomWebViewClie...
[CODE] This is my code, i am loading a url in webview and showing a processing dialog when user redirect to another page, Now i want to stop my page to redirect and also hide processing dialog when user press the back key. I tried but not successful, Please help. Thanks in advance
android|webview
0
2015-02-26T07:48:42.430Z
2,015
2
7
3
816
1
281
65
2
1
true
false
false
false
false
false
zero
28,737,021
how can i import java class to gradle script?
<p>i want import java class to gradle script.</p> <p>let's see script below.</p> <p>----------build.gradle------------------</p> <pre><code>import com.my.project.MyProperty; apply plugin: 'maven' /**--- Version ---*/ project.group = 'com.my.project' project.version = MyProperty.VERSION </code></pre> <hr> <p>---...
i want import java class to gradle script. let's see script below. ----------build.gradle------------------ [CODE] ----------MyProperty.java--------------- [CODE] please give me a hand!
android|properties|build|gradle
1
2015-02-26T07:50:38.887Z
2,015
2
7
3
859
1
185
45
4
2
true
false
false
false
false
false
low
28,737,076
Android using JSON Objects
<p>I'm trying to populate a ListView with various objects obtained from a RESTApi.</p> <p>To test if the connection, and the objects are actually recieved, I invoke this method:</p> <pre><code>protected void onPostExecute(String result) { try { JSONArray users = new JSONArray(result); ...
I'm trying to populate a ListView with various objects obtained from a RESTApi. To test if the connection, and the objects are actually recieved, I invoke this method: [CODE] The Toast does show me the name of the current object, but whenever I try to populate my ListView, I get a NullPointerException. I made a TextVie...
android|arrays|listview|textview
1
2015-02-26T07:54:58.367Z
2,015
2
7
3
57
2
504
26
4
2
true
false
false
false
false
false
low
28,737,102
How to merge two manifest files in an android project
<p>I have a thirdparty library added in my android project. There are two activities defined in the manifest file of that library project. When I am running the app on the phone, it is crashing saying that activity not defined in the manifest file of my main project. Should I include the activities defined in the manif...
I have a thirdparty library added in my android project. There are two activities defined in the manifest file of that library project. When I am running the app on the phone, it is crashing saying that activity not defined in the manifest file of my main project. Should I include the activities defined in the manifest...
android
0
2015-02-26T07:56:10.147Z
2,015
2
7
3
342
1
378
53
1
0
false
false
false
false
false
false
zero
28,737,164
9Patch on Lollipop shows gray oval in background
<p>I have the following button:</p> <pre><code>&lt;Button android:layout_height="32dp" android:layout_marginTop="4dp" android:layout_marginLeft="@dimen/aecs_item_inner_padding_positive" android:id="@+id/aecsTelephone" android:layout_width="wrap_content" android:layout_gravity="center_horizontal...
I have the following button: [CODE] and it has the following background selector: [CODE] on Lollipop only the background shows an oval gray layer and I don't have any clue from where this layer is shown? Note that using the none 9-patch version of the image fixes the problem, but I don't know why! mobile_btn.9.png Loll...
android|android-5.0-lollipop|nine-patch
3
2015-02-26T08:00:59.360Z
2,015
2
8
3
386
1
683
48
3
2
true
false
false
false
false
false
low
28,737,183
How to flat json in android
<p>I have json </p> <pre><code>{ "a": 11, "b": 22, "object": { "c": 33, "d": 44, "e": 55 } } </code></pre> <p>and i would like to made a json with just one level, that contains all the keys like this:</p> <pre><code>{ "a": 11, "b": 22, "c": 33, "d": 44, "e": 55 } </code></pre> <p>Can b...
I have json [CODE] and i would like to made a json with just one level, that contains all the keys like this: [CODE] Can be assumed That the keys are not duplicated in my json! what is the fast way to do that in android?
java|android|json
-4
2015-02-26T08:02:31.813Z
2,015
2
8
3
442
2
220
27
3
2
true
false
false
false
false
true
negative
28,737,275
Android Device Owner via NFC WiFi-type parameter
<p>What are the possible values for the field 'WiFi Security Type' ? The documentation does not list possible values. <a href="https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#EXTRA_PROVISIONING_WIFI_SECURITY_TYPE" rel="nofollow">https://developer.android.com/reference/android/app/admi...
What are the possible values for the field 'WiFi Security Type' ? The documentation does not list possible values. https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#EXTRA_PROVISIONING_WIFI_SECURITY_TYPE I would like to have a list like: [CODE] etc. I'm not willing to try things out, lik...
android|wifi|nfc|enterprise
1
2015-02-26T08:08:53.717Z
2,015
2
8
3
796
1
460
48
4
1
true
false
false
false
false
false
low
28,737,280
Android - Using coordinates in an image
<p>How to allocate coordinates on an image?</p> <p>I know that we can use geolocation to get user's current location, but how to allocate specific coordinates on a specific spot on an image? (There are several spots to be allocated with coordinates, but one spot at a time, right? :D)</p>
How to allocate coordinates on an image? I know that we can use geolocation to get user's current location, but how to allocate specific coordinates on a specific spot on an image? (There are several spots to be allocated with coordinates, but one spot at a time, right? :D)
android
0
2015-02-26T08:09:03.320Z
2,015
2
8
3
43
1
274
39
1
0
false
false
false
false
false
false
zero
28,737,307
Robotium : How can i test/check the values which i got on update screen are same as, the values which we have on one of the list view items
<p>I am learning "Robotium". I have one android application for testing. In this application i want to test an "Update" record functionality using "Robotium + jUnit". I am having perfectly working environment.</p> <p><strong>Working</strong>:</p> <p>On List view screen, some database records are shown(id, name, conta...
I am learning "Robotium". I have one android application for testing. In this application i want to test an "Update" record functionality using "Robotium + jUnit". I am having perfectly working environment. Working : On List view screen, some database records are shown(id, name, contact no) in list view (screen shot 1)...
android|junit|robotium
0
2015-02-26T08:11:04.940Z
2,015
2
8
3
432
1
1,211
139
3
1
true
false
false
false
false
false
zero
28,737,320
How to recognize when WiFi is not connected due to wrong password?
<p>I've already made app that scans WiFi aps in a list and connects to a selected ap. But I still don't get what is returned if I put wrong password.</p> <p>Does <code>WifiManager</code> (or <code>WifiConfiguration</code>) returns something if I put wrong password? </p>
I've already made app that scans WiFi aps in a list and connects to a selected ap. But I still don't get what is returned if I put wrong password. Does WifiManager (or WifiConfiguration ) returns something if I put wrong password?
android|android-wifi|wifimanager|wifi
2
2015-02-26T08:12:04.290Z
2,015
2
8
3
1,663
1
230
66
4
0
false
false
false
false
false
false
low
28,737,469
Media player getting IllegalStateException at setDataSource
<p>I debug and see that <code>path = /storage/emulated/0/Music/test_cbr.mp3</code></p> <p>and tested </p> <pre><code>mp.setDataSource(path); </code></pre> <p>and </p> <pre><code>mp.setDataSource(getApplicationContext(),Uri.parse(path)); </code></pre> <p>but both ways give illegalStateException at setDataSource Wh...
I debug and see that path = /storage/emulated/0/Music/test_cbr.mp3 and tested [CODE] and [CODE] but both ways give illegalStateException at setDataSource Why? [CODE] Edit and Answer Everything is working fine now. I have misspelled mp to mediaplayer. Now i correct it. Thanks for your help friends.
android|android-mediaplayer|illegalstateexception
0
2015-02-26T08:21:11.433Z
2,015
2
8
3
361
2
298
59
3
3
true
false
false
false
false
false
zero
28,737,483
Android Java- array list add the same object on each iteration
<p>I'm facing a really strange problem. i have a 4 records stored in parse server, i retrieve the list from parse, my code looks like that:</p> <pre><code> query.findInBackground(new FindCallback&lt;ParseObject&gt;() { @Override public void done(List&lt;ParseObject&gt; objects, ParseException e) {...
I'm facing a really strange problem. i have a 4 records stored in parse server, i retrieve the list from parse, my code looks like that: [CODE] now the problem is that my log inside the for loop works well, which mean that it prints different Spot every iteration. but the logs that occurs after the loop, prints the sam...
java|android|for-loop
-1
2015-02-26T08:22:13.050Z
2,015
2
8
3
728
2
446
62
3
1
true
false
false
false
false
true
negative
28,737,503
Android Studio failed to sync Gradle
<p>Till yesterday everything was working properly in my application and I could program using <code>android studio</code> without any problems.But today when I ran the same application I encountered with this error:</p> <pre><code>&gt; Failed to sync project&lt;br/&gt; Error:Unknown host services.gradle.org.&lt;br/&g...
Till yesterday everything was working properly in my application and I could program using android studio without any problems.But today when I ran the same application I encountered with this error: [CODE] I've tried some solutions but didn't work .really don't know what happened. Here is my system software specificat...
java|android|android-studio|android-gradle-plugin
2
2015-02-26T08:23:24.927Z
2,015
2
8
3
7,358
4
372
36
4
1
true
false
true
false
false
false
low
28,737,520
Different sqlite databases for testing and actual use in android app
<p>Disclaimer - I have used GreenDAO ORM for creating and managing the sqlite db from within my android app.</p> <p>For my android app, while writing unit tests, I wish to tell the app to switch to using a certain db which is different from the normal one in order to make sure that the tests do not contaminate the rea...
Disclaimer - I have used GreenDAO ORM for creating and managing the sqlite db from within my android app. For my android app, while writing unit tests, I wish to tell the app to switch to using a certain db which is different from the normal one in order to make sure that the tests do not contaminate the real db. Corre...
android|sqlite|testing|greendao|greenrobot-eventbus
3
2015-02-26T08:24:03.890Z
2,015
2
8
3
616
1
1,703
68
5
4
true
false
false
false
false
false
low
28,737,550
Android simple ArrayAdapter from String[]
<p>i can write simple array adapter from class structure, but now i want to write simple array adapter from String, in my application i have simple array as :</p> <pre><code>private String[] panelNumbers; panelNumbers = G.getActiveUserInfo().phoneNumbers.split(","); </code></pre> <p>for show this array into Listview...
i can write simple array adapter from class structure, but now i want to write simple array adapter from String, in my application i have simple array as : [CODE] for show this array into Listview, array items merged with RadioButton, my xml layout: [CODE] now i want to fill this array items by custom array adapter my ...
android|android-arrayadapter
2
2015-02-26T08:25:56.420Z
2,015
2
8
3
1,476
2
567
41
2
3
true
false
false
false
false
false
low
28,737,553
Set cookie android webview
<p>I want to set cookie in a webview in android and i have no logged user instead. The user is correctly logged in the android application. This is my code:</p> <pre><code> WebView webview = new WebView(this); setContentView(webview); final WebSettings settings = webview.getSettings...
I want to set cookie in a webview in android and i have no logged user instead. The user is correctly logged in the android application. This is my code: [CODE]
android|cookies|android-webview
0
2015-02-26T08:26:05.493Z
2,015
2
8
3
809
0
160
26
3
1
true
true
false
false
false
false
zero
28,737,654
Android ActionBar or Toolbar
<p>I've been reading/youtubing a lot about how I should start my next app and found out that the activities suggested as start activities in Android Studio may contain deprecated elements such as the ActionBar, and that I should rather start from scratch without an activity, and use the newly lollipop-introduced "Toolb...
I've been reading/youtubing a lot about how I should start my next app and found out that the activities suggested as start activities in Android Studio may contain deprecated elements such as the ActionBar, and that I should rather start from scratch without an activity, and use the newly lollipop-introduced "Toolbar"...
android|android-studio|android-actionbar|navigation-drawer|android-toolbar
1
2015-02-26T08:32:11.477Z
2,015
2
8
3
167
1
678
28
5
0
false
false
false
false
false
false
low
28,737,710
How to create new file in secondary SD card of Android Lollipop device?
<p>In my app I use MediaMuxer to create a video file. Constructor of MediaMuxer requires absolute path of output file. Everything is ok with primary storage, but for secondary storage app doesn't work. As I check, in Lollipop user has to pick output directory in external storage, using new Intent ACTION_OPEN_DOCUMENT_T...
In my app I use MediaMuxer to create a video file. Constructor of MediaMuxer requires absolute path of output file. Everything is ok with primary storage, but for secondary storage app doesn't work. As I check, in Lollipop user has to pick output directory in external storage, using new Intent ACTION_OPEN_DOCUMENT_TREE...
android|android-5.0-lollipop|android-external-storage|mediamuxer
2
2015-02-26T08:36:00.457Z
2,015
2
8
3
1,294
1
552
71
4
0
false
false
false
false
false
false
low
28,737,730
TextView won't change when it is supposed to change?
<p>I have this code that should add 1 point to the scoreTextView everytime a ball passes through a gap in a rectangle. My method .getTheRight gets the right of the rectangle. Here is my code:</p> <pre><code>public void onResume() //app moved to foreground (also occurs at app startup) { final TextView scoreTextView...
I have this code that should add 1 point to the scoreTextView everytime a ball passes through a gap in a rectangle. My method .getTheRight gets the right of the rectangle. Here is my code: [CODE] Instead, no TextView update happens and the score stays the same. I don't understand why it won't update everytime the ball'...
java|android
1
2015-02-26T08:37:37.083Z
2,015
2
8
3
66
0
404
52
2
1
true
true
false
false
false
false
low
28,737,762
Get view in a new instance fragment returns null
<p>I have <code>ListView.OnItemClickListener</code> when item click it call function <code>selectItem()</code> where i create a new instance of fragment</p> <pre><code>private void selectItem(int position, String groupId) { some code ....... // Create a new fragment Fragment _fragment = MainGroupFr...
I have ListView.OnItemClickListener when item click it call function selectItem() where i create a new instance of fragment [CODE] Code MainGroupFragment [CODE] when i get the view from the newly created fragment it return null. am i doing it wrong? im new and still exploring. any help would be appreciated. thanks.
java|android|android-fragments
0
2015-02-26T08:39:30.940Z
2,015
2
8
3
835
1
316
48
3
2
true
false
false
false
false
false
zero
28,737,835
(Unusual way of) Controlling nested fragments by Activity's fragment manager
<p>Having a look at <a href="https://stackoverflow.com/questions/15608935/best-practice-for-nested-fragments-in-android-4-0-4-1-4-2-without-using-the">this thread</a>, I have a fundamental question.</p> <p>1) Imagine I have a multi-pane layout like this one: <img src="https://i.stack.imgur.com/Ml3hl.png" alt=""></p> ...
Having a look at this thread , I have a fundamental question. 1) Imagine I have a multi-pane layout like this one: 2) Now lets imagine that the underlying xml is like this one (for simplicity's sake most attributes are missed): somefragment_land.xml: [CODE] 3) Ok, so we have this SomeFragment class: [CODE] So the logic...
android|android-fragments
0
2015-02-26T08:43:55.340Z
2,015
2
8
3
105
0
1,195
76
2
2
true
true
false
false
false
false
zero
28,737,954
Calling method of parent activity from fragment ,throws a null pointer exception
<p>My 2nd fragment (<code>Test2</code>) just displays hello world.</p> <p>My problem is whenever i call <code>((Test)getActivity()).display(a);</code> function in my first fragment(<code>Test1</code>), it throws a <code>NullPointerException</code>.</p> <p>I'm not able to detect why is throwing a <code>NullPointerExce...
My 2nd fragment ( Test2 ) just displays hello world. My problem is whenever i call ((Test)getActivity()).display(a); function in my first fragment( Test1 ), it throws a NullPointerException . I'm not able to detect why is throwing a NullPointerException , I have tried implementing the interface method it still didn't w...
android|android-fragments
-1
2015-02-26T08:51:11.140Z
2,015
2
8
3
918
2
423
80
2
3
true
false
false
false
false
true
negative
28,737,957
HorizontalNumberPicker onclick
<p>My question is : how can i handle the onclick method for ´+´and ´-´buttons? Could I do it in this class? <img src="https://i.stack.imgur.com/e28Fq.png" alt="enter image description here"></p> <pre><code>public class HorizontalNumberPicker extends LinearLayout { EditText et_result; Button bt_plus; publi...
My question is : how can i handle the onclick method for ´+´and ´-´buttons? Could I do it in this class? [CODE] The desired behaviour will be few interaction with the Activities or fragments, only a getter for the EditText. [CODE]
android
0
2015-02-26T08:51:24.847Z
2,015
2
8
3
94
1
230
30
1
2
true
false
false
false
false
false
zero
28,738,020
Android mipmap, image density?
<p>As you may now know android studio 1.1 creates new image assets in the mipmap-xxx folders instead of drawable-xxx when you create assets with the IDE. The issue I'm facing here is that android takes these images as "icons" when I use them in my xml files, therefore I loose density when I try to display them at the p...
As you may now know android studio 1.1 creates new image assets in the mipmap-xxx folders instead of drawable-xxx when you create assets with the IDE. The issue I'm facing here is that android takes these images as "icons" when I use them in my xml files, therefore I loose density when I try to display them at the prop...
android|android-studio|android-ui|android-resources
4
2015-02-26T08:55:17.333Z
2,015
2
8
3
6,727
1
676
30
4
2
true
false
true
false
false
false
low
28,738,022
how to make a expandable block on android
<p>I have ListFragment with product list. first item short description product with button "full description", when user click on this button revealed a complete description. and when user finished read description, he scroll down to the product. how make this ? maybe use ExpandableList ?</p>
I have ListFragment with product list. first item short description product with button "full description", when user click on this button revealed a complete description. and when user finished read description, he scroll down to the product. how make this ? maybe use ExpandableList ?
java|android|android-listfragment
-1
2015-02-26T08:55:23.483Z
2,015
2
8
3
84
2
286
41
3
0
false
false
false
false
false
true
negative
28,738,058
android layout justification
<p>I have a image view and text views in my layout and it looks like this</p> <p><img src="https://i.stack.imgur.com/PeQER.png" alt="enter image description here"></p> <p>How can i fill the empty space with the text? i have used <code>android:layout_toRightOf="@+id/movie_image"</code> to get the text next to the imag...
I have a image view and text views in my layout and it looks like this How can i fill the empty space with the text? i have used android:layout_toRightOf="@+id/movie_image" to get the text next to the image but it does not fill the empty space when the image is over. My code [CODE]
android|xml|android-layout
0
2015-02-26T08:57:17.800Z
2,015
2
8
3
91
5
282
28
3
1
true
false
false
false
false
false
zero
28,738,089
How to change DatePicker dialog color for Android 5.0
<p>Is it possible to change the datepicker (and also the timepicker) color scheme for Android 5.0?</p> <p>I've tried setting the accent colors, but this doesn't work (both with and without <code>android</code>):</p> <pre><code>&lt;!-- colorPrimary is used for the default action bar background --&gt; &lt;item name=&quot...
Is it possible to change the datepicker (and also the timepicker) color scheme for Android 5.0? I've tried setting the accent colors, but this doesn't work (both with and without android ): [CODE] From original: To something like this:
android|dialog|styles|background-color
122
2015-02-26T08:59:08.420Z
2,015
2
8
3
120,131
10
235
53
4
1
true
false
true
true
true
false
high
28,738,101
Android, NDK, Audio routing, forcing audio through the headset
<h2>Use-case</h2> <ul> <li>Record Android Headset audio</li> </ul> <h2>Environment</h2> <ul> <li>Samsung Galaxy 5</li> <li>Android 5.0</li> <li>Windows Desktop OS w/ a USB audio capture device</li> </ul> <h2>Implementation</h2> <ul> <li>Hook the Android device headset output to the Windows OS Line-In input</li> <l...
Use-case Record Android Headset audio Environment Samsung Galaxy 5 Android 5.0 Windows Desktop OS w/ a USB audio capture device Implementation Hook the Android device headset output to the Windows OS Line-In input Record whatever is sent out from the Android Device Problem statement If plugging in the Audio jack while ...
android|c++|android-ndk|android-source|android-audiorecord
1
2015-02-26T08:59:36.970Z
2,015
2
8
3
2,410
0
1,573
62
5
2
true
true
false
false
false
false
low
28,738,148
is this possible to print the web page in android without popup?
<blockquote> <p>I am using default android printer option (android version 4.4)</p> <p>I want to byPass printManager adapter popup. how to hide the popup and give a direct print to the printer in android</p> </blockquote>
I am using default android printer option (android version 4.4) I want to byPass printManager adapter popup. how to hide the popup and give a direct print to the printer in android
printing|android-print-framework
3
2015-02-26T09:02:09.563Z
2,015
2
9
3
3,089
2
180
64
2
0
false
false
true
false
false
false
low
28,738,246
Kalman-filtered GPS data is still fluctuating a lot
<p>He everyone!</p> <p>I'm writing an Android app that uses the devices GPS to calculate a vehicles driving speed. This is supposed to be accurate to about 1-2 km/h, and I'm doing it by looking at the distance between two GPS locations and dividing it by the time these locations are apart, pretty straightforward, and ...
He everyone! I'm writing an Android app that uses the devices GPS to calculate a vehicles driving speed. This is supposed to be accurate to about 1-2 km/h, and I'm doing it by looking at the distance between two GPS locations and dividing it by the time these locations are apart, pretty straightforward, and then doing ...
java|android|gps|kalman-filter
3
2015-02-26T09:07:16.400Z
2,015
2
9
3
2,515
3
2,077
51
4
2
true
false
false
false
false
false
low
28,738,288
How to add subitems in a Navigation Drawer
<p>I want to add subitems in my navigation drawer but i am not able to execute it because i have no idea about the logic , i have tried some examples but i am able to display only the items.</p> <p>i have tried the following code : </p> <pre><code>package com.example.demo_data1; import android.app.Activity; import a...
I want to add subitems in my navigation drawer but i am not able to execute it because i have no idea about the logic , i have tried some examples but i am able to display only the items. i have tried the following code : [CODE] Below is the xml layout: [CODE] I just want to add subitems to its respective item and the ...
android|expandablelistview|navigation-drawer
0
2015-02-26T09:09:27.197Z
2,015
2
9
3
3,454
2
459
42
3
2
true
false
true
false
false
false
zero
28,738,308
XE7 Recognize Bluetooth Disconnection
<p>using Delphi XE7 on Android, I am connecting to via Bluetooth Classic SPP device.</p> <p>I have an <code>JBluetoothSocket</code></p> <pre><code>var Sock: JBluetoothSocket; uid: JUUID; // UUID for SPP traffic targetMAC: string; // remote MAC address of the selected remoteDevice: JBluetoothDevice; Adapter:...
using Delphi XE7 on Android, I am connecting to via Bluetooth Classic SPP device. I have an JBluetoothSocket [CODE] As soon as the BlueTooth device is restarted, the JBluetoothSocket stream cannot be read anymore, because the socket failed. So I want to reconnect as soon as the connection failed. I tried following, but...
android|delphi|bluetooth|delphi-xe7
1
2015-02-26T09:10:31.993Z
2,015
2
9
3
943
1
652
37
4
2
true
false
false
false
false
false
low
28,738,407
Access the data inside 2 arrays
<p>I'm using trying load data which is inside 2 arrays. At the moment I have successfully loaded items array within array. When I try to access the data inside last array it doesn't load. </p> <p>I have this array from json response</p> <pre><code>{ "Category":"1PI", "Description":"Chicken Bacon", ...
I'm using trying load data which is inside 2 arrays. At the moment I have successfully loaded items array within array. When I try to access the data inside last array it doesn't load. I have this array from json response [CODE] 2nd array starts with SubMenuEntity, I have loaded that. I want to load the data Descriptio...
android|arrays|json
0
2015-02-26T09:16:11.790Z
2,015
2
9
3
86
4
475
31
3
3
true
false
false
false
false
false
zero
28,738,445
How to add details with a file in android
<p>I want to add some additional information with a file in android.For example name, type,size are already associated with a file but i want to add another attribute like Company with its value.Is it possible??</p> <p>For more clarification: I want to develop an app that will take a file as input and add some additio...
I want to add some additional information with a file in android.For example name, type,size are already associated with a file but i want to add another attribute like Company with its value.Is it possible?? For more clarification: I want to develop an app that will take a file as input and add some additional propert...
android|file|metadata
-1
2015-02-26T09:17:40.380Z
2,015
2
9
3
106
2
484
41
3
0
false
false
false
false
false
true
negative
28,738,519
Android Google map shows black screen before loading
<p>I have an application with an initial window with three buttons. When I click on one of them, I start a progress dialog while I am loading a Google Map V2 and drawing some markers on it.</p> <p>In the onMapReady callback I dismiss the progress dialog:</p> <pre><code>@Override public void onMapReady(final GoogleMap...
I have an application with an initial window with three buttons. When I click on one of them, I start a progress dialog while I am loading a Google Map V2 and drawing some markers on it. In the onMapReady callback I dismiss the progress dialog: [CODE] But what I got for some tens of seconds is a completely black screen...
android|google-maps|google-maps-android-api-2
0
2015-02-26T09:21:24.797Z
2,015
2
9
3
1,293
2
354
52
3
1
true
false
false
false
false
false
zero
28,738,562
Facebook Audience SDK
<p>I am trying to display Banner Ads in any of my android Apps the last couple of weeks.</p> <p>I do get the Test-Banner if I add my device as testdevice. I do get Interstitial Ads</p> <p>But I do not get any Banner. Logcat gives me <strong>"I/Facebook Error﹕ frequent load"</strong> on any of my devices (5 tested), ...
I am trying to display Banner Ads in any of my android Apps the last couple of weeks. I do get the Test-Banner if I add my device as testdevice. I do get Interstitial Ads But I do not get any Banner. Logcat gives me "I/Facebook Error﹕ frequent load" on any of my devices (5 tested), also tested deifferent advertiser ids...
android|facebook
3
2015-02-26T09:23:39.267Z
2,015
2
9
3
919
1
541
21
2
0
false
false
false
false
false
false
low
28,738,580
Issue on get Facebook Friendlist in android
<p>I am trying to get the friends list from Facebook using the Graph API.i get the friends list for the first time when i run the app in device after that i get the result as null i don't know why.i use the following code to get the friends list from facebook</p> <pre><code> new Request(FBsession, "/me/friends", nu...
I am trying to get the friends list from Facebook using the Graph API.i get the friends list for the first time when i run the app in device after that i get the result as null i don't know why.i use the following code to get the friends list from facebook [CODE] can any one please help me to sort out his issue
android|facebook|facebook-graph-api
-1
2015-02-26T09:25:04.883Z
2,015
2
9
3
65
1
312
43
3
1
true
false
false
false
false
true
negative
28,738,625
Error Android AVD Opening?
<h2>When i was open my AVD this issue came, If anyone have solution for this please help me.</h2> <p>[2015-02-26 01:24:44 - ddmlib] An established connection was aborted by the software in your host machine java.io.IOException: An established connection was aborted by the software in your host machine at ...
When i was open my AVD this issue came, If anyone have solution for this please help me. [2015-02-26 01:24:44 - ddmlib] An established connection was aborted by the software in your host machine java.io.IOException: An established connection was aborted by the software in your host machine at sun.nio.ch.SocketDispatche...
android
0
2015-02-26T09:27:04.243Z
2,015
2
9
3
357
0
1,264
26
1
0
false
true
false
false
false
false
zero
28,738,712
AsyncTask call in sleepmode
<p><strong>PROBLEM</strong></p> <p>I have problem with <code>MigrateAsyncTask</code> not calling my adapter about finished job while being in sleep mode. How to fix such problem?</p> <p>Everything is working fine while device is awake.</p> <p><strong>CONSTRUCTION</strong></p> <ul> <li><code>DashboardFragment</code>...
PROBLEM I have problem with MigrateAsyncTask not calling my adapter about finished job while being in sleep mode. How to fix such problem? Everything is working fine while device is awake. CONSTRUCTION DashboardFragment that is holding my grid of items and adapter that is suppose to get called. DialogFragment is respon...
android|android-asynctask
0
2015-02-26T09:31:04.983Z
2,015
2
9
3
45
1
504
27
2
0
false
false
false
false
false
false
zero
28,738,762
NullPointerException while displaying OptionsMenu
<p>I need to programmatically create menu (exactly the same as tabs list) to power a navigation in my app. So i did code like that</p> <pre><code>public override bool OnCreateOptionsMenu (IMenu menu) { base.OnCreateOptionsMenu (menu); for (int i = 0; i &lt; fragmentsTabs.Count; i++) { menu.Add(0,100 + ...
I need to programmatically create menu (exactly the same as tabs list) to power a navigation in my app. So i did code like that [CODE] But when i click on menu button i get an exception like that: [CODE] I'm using Toolbar from Support library: [CODE] On another phone i get more information about NullPointerException: [...
android|xamarin
3
2015-02-26T09:33:16.107Z
2,015
2
9
3
757
2
697
49
2
5
true
false
false
false
false
false
low
28,738,828
is it possible to load image from asset by indicating DPI?
<p>I can load image from asset folder but it loads image based on current device DPI. is it possible to open an image with certain density? for example, my device is xxhdpi but wants to open an image from asset based on xhdpi.</p> <p>Thanks.</p>
I can load image from asset folder but it loads image based on current device DPI. is it possible to open an image with certain density? for example, my device is xxhdpi but wants to open an image from asset based on xhdpi. Thanks.
android|assets|dpi
1
2015-02-26T09:36:29.460Z
2,015
2
9
3
92
0
231
58
3
0
false
true
false
false
false
false
low
28,738,846
How do I create list view of edit texts?
<p>I want to create a layout where there need to be multiple key-value pairs in a list view that the user can edit. I want to programmatically create a layout that looks something like this.</p> <p>[Title] [Button that adds a row to the list]<br> [ [EditText for key] [EditText for value] ]<br> [ [EditText for key] [Ed...
I want to create a layout where there need to be multiple key-value pairs in a list view that the user can edit. I want to programmatically create a layout that looks something like this. [Title] [Button that adds a row to the list] [ [EditText for key] [EditText for value] ] [ [EditText for key] [EditText for value] ]...
android|rubymotion
0
2015-02-26T09:37:22.863Z
2,015
2
9
3
303
1
555
40
2
0
false
false
false
false
false
false
zero