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,668,222
swiperefreshlayout recycler view does not pull down
<p>I am trying to implement SwipeRefreshLayout to a RecyclerView. My problem is the that the RecyclerView itself is not pulling down during the refresh gesture. As in, the RecyclerView remains still while i get the refresh icon. Can someone please help me to get the recyclerview to slide down a little for refresh.</p> ...
I am trying to implement SwipeRefreshLayout to a RecyclerView. My problem is the that the RecyclerView itself is not pulling down during the refresh gesture. As in, the RecyclerView remains still while i get the refresh icon. Can someone please help me to get the recyclerview to slide down a little for refresh. Here is...
android|android-recyclerview|swiperefreshlayout
1
2015-02-23T06:44:46.470Z
2,015
2
6
0
807
0
338
51
3
1
true
true
false
false
false
false
low
28,668,245
How to pass touch event from parent view to child view
<p>I am writing an code to handle touch event based on what suggested <a href="http://neevek.net/posts/2013/10/13/implementing-onInterceptTouchEvent-and-onTouchEvent-for-ViewGroup.html" rel="nofollow">here</a>. Basically I wanted to pass touch event back to child view from parent view. Following what I did and remainin...
I am writing an code to handle touch event based on what suggested here . Basically I wanted to pass touch event back to child view from parent view. Following what I did and remaining. What I need Detect multitouch event on child view: DONE then pass touch control to parent: DONE Now Detect if multitouch removed from ...
android|multi-touch|android-viewgroup|childviews
4
2015-02-23T06:46:41.763Z
2,015
2
6
0
671
0
400
54
4
0
false
true
false
false
false
false
low
28,668,248
Different types of APK
<p>Can someone please explain the difference between: </p> <ul> <li>signed apk</li> <li>unsigned apk</li> <li>apk in debug mode</li> <li>apk in release mode</li> </ul> <p>Although its clear that signed apk is the one you generate apk with your own certificate and the unsigned one without without certificate.</p> <p>...
Can someone please explain the difference between: signed apk unsigned apk apk in debug mode apk in release mode Although its clear that signed apk is the one you generate apk with your own certificate and the unsigned one without without certificate. Especially what are the apk in debug mode and apk in release mode re...
android|apk
5
2015-02-23T06:46:59.960Z
2,015
2
6
0
3,527
4
711
22
2
0
false
false
true
false
false
false
low
28,668,252
Android studio Error "Unsupported Modules Detected: Compilation is not supported for following modules"
<p>I am using Android studio 1.0.1. I have a java module referred by other modules in my project. I have checked it out from SVN But now every </p> <p><strong>Unsupported Modules Detected: Compilation is not supported for following modules: . Unfortunately you can't have non-Gradle Java modules and Android-Gradle modu...
I am using Android studio 1.0.1. I have a java module referred by other modules in my project. I have checked it out from SVN But now every Unsupported Modules Detected: Compilation is not supported for following modules: . Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project. ...
android|intellij-idea|android-studio|ide|android-ide
372
2015-02-23T06:47:30.190Z
2,015
2
6
0
226,527
34
437
103
5
0
false
false
true
true
true
false
high
28,668,254
Google Map API for android gives Unknown source error while adding ground overlay with BitmapDescriptor loaded from asset
<p>I use below code to add ground ovelay to google map using api 2 from android.</p> <pre><code>LatLng ne = currentHole.getNe(); LatLng sw = currentHole.getSw(); LatLngBounds mOverlayBound = new LatLngBounds(ne,sw); BitmapDescriptor mDesc= BitmapDescriptorFactory. fromAsset(currentHole.getGroundOverLay...
I use below code to add ground ovelay to google map using api 2 from android. [CODE] All input parmeters are valid and it works fine when I load BitMapDescriptor from resource instead of asset and this code was working fine before recently I touched the code for some changes then it started showing error as below. [COD...
android|google-maps|google-maps-android-api-2|gmsgroundoverlay
0
2015-02-23T06:47:57.453Z
2,015
2
6
0
571
1
322
121
4
2
true
false
false
false
false
false
zero
28,668,272
If theres multiple fragments after fragment remove from backstack, which method runs
<p>If there's multiple fragments one on another, after one fragment remove from the stack, which method runs in the below fragment. </p> <p>This is whats happens in the program, Fragment A calls -> Fragment B</p> <p>Then I remove Fragment B. So now its in the fragment A. I in that moment I want to run a method in Fra...
If there's multiple fragments one on another, after one fragment remove from the stack, which method runs in the below fragment. This is whats happens in the program, Fragment A calls -> Fragment B Then I remove Fragment B. So now its in the fragment A. I in that moment I want to run a method in Fragment A. I tried onR...
android|android-fragments
0
2015-02-23T06:49:15.687Z
2,015
2
6
0
69
1
422
84
2
0
false
false
false
false
false
false
zero
28,668,368
geetting error while running ionic crosswalk integration
<p>i am new to ionic framework, i was unable to get the inspect elements when i debug my application on my android mobile, so i tried installing crosswalk with the following steps</p> <pre><code>npm install -g ionic ionic platform add android ionic browser add crosswalk </code></pre> <p>i had followed the steps and ...
i am new to ionic framework, i was unable to get the inspect elements when i debug my application on my android mobile, so i tried installing crosswalk with the following steps [CODE] i had followed the steps and even tried uninstalling the application and reverting the crosswalk, but the error remains same. this is th...
android|crosswalk-runtime
1
2015-02-23T06:56:53.133Z
2,015
2
6
0
570
0
408
56
2
2
true
true
false
false
false
false
low
28,668,426
Customising Layout for Google's SlidingTabStrip library
<p>So Google includes the SlidingTabStrip as an open source library in the Android Studio sample collection:</p> <pre><code>class SlidingTabStrip extends LinearLayout { private static final int DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS = 0; private static final byte DEFAULT_BOTTOM_BORDER_COLOR_ALPHA = 0x26; private static...
So Google includes the SlidingTabStrip as an open source library in the Android Studio sample collection: [CODE] With its layout file: [CODE] I'm just unable to find out how I can completely customise the layout of this library such as border thickness, color or other properties which corresponds to these constants in ...
java|android|android-layout
0
2015-02-23T07:01:28.857Z
2,015
2
7
0
1,970
1
832
55
3
2
true
false
false
false
false
false
zero
28,668,435
Android - How to implement 9 patch?
<p>I've created some 9-patch image files using Photoshop and the Draw9Patch tool, but as I tried to implement the images, it seems like a bust. I was following this tutorial (<a href="http://www.devahead.com/blog/2011/08/creating-a-custom-android-button-with-a-resizable-skin/" rel="nofollow">http://www.devahead.com/bl...
I've created some 9-patch image files using Photoshop and the Draw9Patch tool, but as I tried to implement the images, it seems like a bust. I was following this tutorial ( http://www.devahead.com/blog/2011/08/creating-a-custom-android-button-with-a-resizable-skin/ ). Any reason this may not work? I pasted the 4 images...
android|image|button|nine-patch
0
2015-02-23T07:02:15.007Z
2,015
2
7
0
361
1
623
35
4
1
true
false
false
false
false
false
zero
28,668,466
RecyclerView OnClick Implementation
<p>I'm using RecyclerView to create a list, and i was suffering a lot, because i saw different ways to implement an OnClickListener, and comments says like very coupled, very tricky, etc.</p> <p>And about several days thinking how to implement it, i did this.</p> <p>On my Fragment, implement the View.OnClickListener ...
I'm using RecyclerView to create a list, and i was suffering a lot, because i saw different ways to implement an OnClickListener, and comments says like very coupled, very tricky, etc. And about several days thinking how to implement it, i did this. On my Fragment, implement the View.OnClickListener and the onClickEven...
android|material-design|android-recyclerview
2
2015-02-23T07:04:14.223Z
2,015
2
7
0
263
0
714
35
3
2
true
true
false
false
false
false
low
28,668,517
Returning value from thread Java/ Android
<p>I have the following thread in my android class. How can I get the value of err from the thread???</p> <pre><code>public int method(){ new Thread(new Runnable() { int err; @Override public void run() { err = device.verify(30, 5, coderChoice, detectModeChoice, ...
I have the following thread in my android class. How can I get the value of err from the thread??? [CODE] I want the value to be the return value of the method but for the life of me I can't get the value...
java|android|java-threads
1
2015-02-23T07:08:42.203Z
2,015
2
7
0
3,830
3
207
41
3
1
true
false
true
false
false
false
low
28,668,546
Search.execute() Youtube API won't work
<p>I'm writing a simple Youtube application for personal proposes.. The code won't work, after Search.execute() the app 'working' but not doing anything. This is my code:</p> <pre><code>import android.os.Bundle; import android.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.v...
I'm writing a simple Youtube application for personal proposes.. The code won't work, after Search.execute() the app 'working' but not doing anything. This is my code: [CODE] I have no idea what to do.. No logcat added because the app does not crash.
android|youtube-api
0
2015-02-23T07:11:14.323Z
2,015
2
7
0
312
1
250
39
2
1
true
false
false
false
false
false
zero
28,668,610
google map polyline is not working on android version 5.0(lollipop)
<p>i am trying to draw polyline for googlemap, it is working fine upto android version 4.4(kitkat) but it is not working in android 5.0(lollipop). what to do for working in lollipop also. could you please help me hoe to resolve this issues this is my google map code </p> <pre><code>public class MapLocation extends Fr...
i am trying to draw polyline for googlemap, it is working fine upto android version 4.4(kitkat) but it is not working in android 5.0(lollipop). what to do for working in lollipop also. could you please help me hoe to resolve this issues this is my google map code [CODE]
android|google-maps|android-5.0-lollipop|polyline
0
2015-02-23T07:16:30.690Z
2,015
2
7
0
2,373
2
270
67
4
1
true
false
false
false
false
false
zero
28,668,675
trying to use a recycled bitmap
<p>i dont know how to solve this type of exception.. please help me...</p> <pre><code>02-23 12:36:00.705: E/AndroidRuntime(2033): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@41214638 02-23 12:36:00.705: E/AndroidRuntime(2033): at android.graphics.Canvas.throwIfRecycl...
i dont know how to solve this type of exception.. please help me... [CODE]
android
0
2015-02-23T07:21:06.373Z
2,015
2
7
0
695
2
74
31
1
1
true
false
false
false
false
false
zero
28,668,705
How to navigate to next item in sqlite database table - android
<p>I am developing a song book app and I have the following files:</p> <ol> <li>SbDatabase.java for creating a database</li> <li>SbProvider.java for creating a provider service to access the song</li> <li>Searchable.java for searching the for songs</li> <li>Song.java for showing one song that is picked from a listview...
I am developing a song book app and I have the following files: SbDatabase.java for creating a database SbProvider.java for creating a provider service to access the song Searchable.java for searching the for songs Song.java for showing one song that is picked from a listview of results I need help to create an action ...
java|android|sqlite
1
2015-02-23T07:23:24.623Z
2,015
2
7
0
1,635
3
803
63
3
4
true
false
false
false
false
false
low
28,668,733
create a task for download from git in gradle?
<p>I have two projects. "App" and "Models". the project App I connect project Models</p> <pre><code>project(':models').projectDir = new File(settingsDir, '../models/app') </code></pre> <p>now everything is working 1. I downloaded the changes to git in Models 2. Build App project</p> <p>how do I make the assembly App...
I have two projects. "App" and "Models". the project App I connect project Models [CODE] now everything is working 1. I downloaded the changes to git in Models 2. Build App project how do I make the assembly App my project "Model" itself updated with git?
android|android-studio|gradle|android-gradle-plugin
0
2015-02-23T07:25:28.157Z
2,015
2
7
0
74
1
255
46
4
1
true
false
false
false
false
false
zero
28,668,790
xml saves without errors, but then has an error a few minutes later
<p>This xml file I wrote saves without errors and displays exactly how I expect it to in the preview in eclipse. But given enough time (about 5-10 minutes), after continuing to work on other parts of the project like the actual Java files, this file throws an error.</p> <p>It's complaining because I'm anchoring onto ...
This xml file I wrote saves without errors and displays exactly how I expect it to in the preview in eclipse. But given enough time (about 5-10 minutes), after continuing to work on other parts of the project like the actual Java files, this file throws an error. It's complaining because I'm anchoring onto a view that ...
android|xml|eclipse
0
2015-02-23T07:29:32.783Z
2,015
2
7
0
22
1
526
67
3
1
true
false
false
false
false
false
zero
28,668,805
android: design code to dynamicaly select layouts
<p>I want the same application to be delivered 2 different set of layouts. Ie the functionality is same but the graphics will be different for two different versions of the app. So i want to keep the same code and based of some variables want to decide which layout to be set for each activity. SO for each activity i wi...
I want the same application to be delivered 2 different set of layouts. Ie the functionality is same but the graphics will be different for two different versions of the app. So i want to keep the same code and based of some variables want to decide which layout to be set for each activity. SO for each activity i will ...
android|android-layout|dynamic|view
0
2015-02-23T07:30:29.637Z
2,015
2
7
0
58
2
551
49
4
0
false
false
false
false
false
false
zero
28,668,818
TCP Socket connection gets closed even though it is running in Android Service
<p>As I am creating a Remote PC application where android is the client and Java is the server. In the below code I am getting screenshots from the Java and displaying it in <code>ImageView</code> of android program. Here <code>Socket</code> connection is running in the background that is <code>Service</code> and I am ...
As I am creating a Remote PC application where android is the client and Java is the server. In the below code I am getting screenshots from the Java and displaying it in ImageView of android program. Here Socket connection is running in the background that is Service and I am getting the Socket object to the below Act...
android|android-asynctask|asyncsocket|objectinputstream
2
2015-02-23T07:31:33.457Z
2,015
2
7
0
2,047
2
694
78
4
3
true
false
false
false
false
false
low
28,668,821
Unable to start activity: NullPointerException
<p>Hi I am encountering a null pointer error when I click on the activity Links. The purpose of my feature is to call a list of links in the form of list view. Below is the logcat and as far as I understand it is coming from my onItemClickListener, but I can't seem to point out the null error.:</p> <pre><code>sitesLis...
Hi I am encountering a null pointer error when I click on the activity Links. The purpose of my feature is to call a list of links in the form of list view. Below is the logcat and as far as I understand it is coming from my onItemClickListener, but I can't seem to point out the null error.: [CODE] Links.java [CODE] ac...
java|android
-2
2015-02-23T07:32:15.987Z
2,015
2
7
0
453
2
451
46
2
5
true
false
false
false
false
true
negative
28,668,848
Tab inside android Activity
<p><img src="https://i.stack.imgur.com/41AyE.jpg" alt="enter image description here" /></p> <p>I need tab like above picture.if i choose Address it should show existing address tab.if i choose New Address it should show address form .but tabs should be in particular area of the activity.Is this possible in android?</p>
I need tab like above picture.if i choose Address it should show existing address tab.if i choose New Address it should show address form .but tabs should be in particular area of the activity.Is this possible in android?
android|tabs|android-tabhost
3
2015-02-23T07:33:52.343Z
2,015
2
7
0
1,034
3
221
27
3
0
false
false
false
false
false
false
low
28,668,855
hide and unhide system bar on touch in android
<p>Does anybody have any idea about how to hide and unhidden bottom system bar in <code>android</code> ? </p> <p>I got this code for hiding system bar: </p> <pre><code>getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); </code></pre> <p>But when I touch anywhere on screen it...
Does anybody have any idea about how to hide and unhidden bottom system bar in android ? I got this code for hiding system bar: [CODE] But when I touch anywhere on screen it appears and will not hide it there after. what I want is that when I touch or swipe up system bar shows and else it always shown. Thanks in advanc...
android
1
2015-02-23T07:34:50.670Z
2,015
2
7
0
2,291
2
321
46
1
1
true
false
false
false
false
false
low
28,668,917
Dynamically Loaded Images Won’t Render in Ionic App
<p>After upgrading to Ionic version 1.0.0-beta.14, my dynamically generated images no longer render. The image links are pulled in from a <code>$http.get</code> call. I've output the results to the console and the link is present. This only occurs in the build, when viewing the files on the web or in Ionic Lab, they ap...
After upgrading to Ionic version 1.0.0-beta.14, my dynamically generated images no longer render. The image links are pulled in from a $http.get call. I've output the results to the console and the link is present. This only occurs in the build, when viewing the files on the web or in Ionic Lab, they appear just fine. ...
android|angularjs|ionic-framework|mobile
0
2015-02-23T07:39:05.860Z
2,015
2
7
0
801
2
713
51
4
1
true
false
false
false
false
false
zero
28,669,028
Web services cannot interprete properties
<p>I am trying this for add data into Soap manager to accessing web-services into my project.</p> <pre><code> PropertyInfo unameProp =new PropertyInfo(); unameProp.name="userid"; unameProp.type=PropertyInfo.STRING_CLASS; unameProp.setNamespace(NAME_SPACE); unameProp.setValue(UserId); /*...
I am trying this for add data into Soap manager to accessing web-services into my project. [CODE] Here is my WSDL file format [CODE] After accessing this code ,i got this value into my log cat [CODE] This is the result,I am getting from web service .User Id & Password fields are exactly return by the web service just f...
android|web-services|soap|android-ksoap2
0
2015-02-23T07:48:41.300Z
2,015
2
7
0
59
0
429
41
4
3
true
true
false
false
false
false
zero
28,669,036
Error:Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
<p>After updating android studio to 1.1.0 in Ubuntu always showing this error.My logcat is:</p> <pre><code>org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)** android studio 1.0,0.8 is working fine . **org.gradle....
After updating android studio to 1.1.0 in Ubuntu always showing this error.My logcat is: [CODE]
android|android-studio|android-gradle-plugin|ubuntu-14.04|build.gradle
14
2015-02-23T07:49:39.920Z
2,015
2
7
0
32,862
4
95
96
5
1
true
false
true
true
true
false
medium
28,669,055
Mylocation button dont show up
<p>I'm using <code>Android Studio</code> and using a map activity my map shows up fine, but the <code>Mylocation</code> button in the activity doesn't show. My google play services are installed. What am I doing wrong?</p> <pre><code>public class MapsActivity extends FragmentActivity { private GoogleMap mMap; @Overr...
I'm using Android Studio and using a map activity my map shows up fine, but the Mylocation button in the activity doesn't show. My google play services are installed. What am I doing wrong? [CODE]
android|google-maps|dictionary|location
0
2015-02-23T07:51:06.700Z
2,015
2
7
0
1,460
3
196
30
4
1
true
false
false
false
false
false
zero
28,669,066
Add Crosswalk to Android App Project and generate apks with arm or x86 architectures
<p>I have an Android project that uses WebView. I want to add Crosswalk to use it instead WebView. I have followed the instructions to embed it and I've seen that there is two, one for ARM and other for x86, so I've created two projects of my Android Project and added ARm to one and x86 to the other. The problem that I...
I have an Android project that uses WebView. I want to add Crosswalk to use it instead WebView. I have followed the instructions to embed it and I've seen that there is two, one for ARM and other for x86, so I've created two projects of my Android Project and added ARm to one and x86 to the other. The problem that I ha...
android|webview|x86|arm
0
2015-02-23T07:51:38.910Z
2,015
2
7
0
219
0
755
84
4
0
false
true
false
false
false
false
zero
28,669,072
Android - PHP $_FILES Parameters?
<p>How can I use the Following PHP code alongside a HTTPPost Request sent from my Android Application:</p> <pre><code>&lt;?php $file_path = "userimage/"; $file_path = $file_path . basename( $_FILES['uploaded_file']['name']); if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $file_path)) { echo "succ...
How can I use the Following PHP code alongside a HTTPPost Request sent from my Android Application: [CODE] Can I simply do this: [CODE] I am confused as to why the PHP code contains name, uploaded_file and tmp_name and Where do they come from Exaclty?
php|android
0
2015-02-23T07:52:04.753Z
2,015
2
7
0
456
2
251
33
2
2
true
false
false
false
false
false
zero
28,669,090
can't attach file with an email
<p>hello i am trying to attach a text file to send it with an email but when opening the email interface it says file does'not exist while it's really exist on the phone storage here's the code</p> <pre><code>Intent i = new Intent(Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(Intent....
hello i am trying to attach a text file to send it with an email but when opening the email interface it says file does'not exist while it's really exist on the phone storage here's the code [CODE]
android|email|filepath|email-attachments
1
2015-02-23T07:53:29.390Z
2,015
2
7
0
268
0
197
31
4
1
true
true
false
false
false
false
low
28,669,137
Connect thermal printer through USB to my android tab
<p>I need to connect my android tab to a thermal printer does anyone have a solution for it I know as it can be done through IOIO Controller but apart from that is there a way to connect my tab to my android tab.</p> <p>Note I need to connect only through usb not through bluetooth or wifi whcih I know can be done and ...
I need to connect my android tab to a thermal printer does anyone have a solution for it I know as it can be done through IOIO Controller but apart from that is there a way to connect my tab to my android tab. Note I need to connect only through usb not through bluetooth or wifi whcih I know can be done and I have did ...
android|printing
0
2015-02-23T07:57:53.710Z
2,015
2
7
0
1,191
0
323
53
2
0
false
true
false
false
false
false
zero
28,669,156
OkHttp not multiplexing SPDY connections on Android 4.4.2
<p>I am trying to do some experiment on Android and SPDY using OkHttp. However, I cannot get the multiplex feature of SPDY work on my Android phone. Below is my code.</p> <pre><code>private static final long WAIT_TIME = 1000 * 2; // Wait 2 seconds between each connection. private static final long SIZE = 1000 * 1000 *...
I am trying to do some experiment on Android and SPDY using OkHttp. However, I cannot get the multiplex feature of SPDY work on my Android phone. Below is my code. [CODE] Basically it initiates a HTTP GET method to the same url (a video) every 2 seconds. What I was expecting was a single HTTPS connection and all 10 con...
java|android|okhttp|spdy
2
2015-02-23T07:59:29.103Z
2,015
2
7
0
825
0
1,980
57
4
1
true
true
false
false
false
false
low
28,669,174
Google Directions API on Android smartphone returns status code NOT_FOUND
<p>I want to get JSON information from a route in my Android app using Google Directions API. But I always get "NOT_FOUND" as status code. If I enter the same URL of my request in the browser it works fine.</p> <p>Here my code inside a AsyncTask:</p> <pre><code> @Override protected String doInBackground(final ...
I want to get JSON information from a route in my Android app using Google Directions API. But I always get "NOT_FOUND" as status code. If I enter the same URL of my request in the browser it works fine. Here my code inside a AsyncTask: [CODE] The output looks like this: [CODE] Anyone an idea where the problem is?
java|android|google-maps|google-directory-api
0
2015-02-23T08:00:50.367Z
2,015
2
8
0
926
1
315
73
4
2
true
false
false
false
false
false
zero
28,669,232
It's possible put a fragment into a swipe tabs?
<p>I have one swipe tab with 3 fragments. In the first fragment I want to put two fragment, one fragment for information and one for login operation. I'll ask you if it's possible doing it and with how API it's possible this. I've searched in the web information but I don't understand so much. If it's possible, I need ...
I have one swipe tab with 3 fragments. In the first fragment I want to put two fragment, one fragment for information and one for login operation. I'll ask you if it's possible doing it and with how API it's possible this. I've searched in the web information but I don't understand so much. If it's possible, I need an ...
android|layout|tabs|fragment
2
2015-02-23T08:04:12.780Z
2,015
2
8
0
43
0
338
47
4
0
false
true
false
false
false
false
low
28,669,290
How to use getResources() for non-activity class
<p>I am trying to validate my text box. I have created a Java class which has the validation. I am using setError(MSG, icon);</p> <p>Something like this:</p> <pre><code>public class Validate { public static boolean hasText(EditText editText) { String text = editText.getText().toString().trim(); editText.set...
I am trying to validate my text box. I have created a Java class which has the validation. I am using setError(MSG, icon); Something like this: [CODE] And my activity java file has this: [CODE] I tried the following: [CODE] I get the following error: [CODE] Can somebody help me to fix this?
java|android
-1
2015-02-23T08:08:15.197Z
2,015
2
8
0
959
3
291
48
2
4
true
false
false
false
false
true
negative
28,669,297
Java - how can I obtain a K-hour-shifted TimeZone?
<p>I have a TimeZone variable (DEFAULT_TIME_ZONE) obtained by following code</p> <pre><code>TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone("GMT"); </code></pre> <p>And now I want to get another TimeZone that is shifted K hours from DEFAULT_TIME_ZONE.</p> <p>How can I do that?</p>
I have a TimeZone variable (DEFAULT_TIME_ZONE) obtained by following code [CODE] And now I want to get another TimeZone that is shifted K hours from DEFAULT_TIME_ZONE. How can I do that?
java|android|timezone|utc|gmt
0
2015-02-23T08:08:35.003Z
2,015
2
8
0
68
1
186
50
5
1
true
false
false
false
false
false
zero
28,669,339
FLAG_ACTIVITY_REORDER_TO_FRONT between two activities
<p>Activity A started B, now the Activity stack will be A,B (B at top). Now from Activity B i started Activity A by using intent FLAG_ACTIVITY_REORDER_TO_FRONT , now the Activity stack will be B,A(A at top). Again I tried starting Activity B from Activity A using intent FLAG_ACTIVITY_REORDER_TO_FRONT, which results in ...
Activity A started B, now the Activity stack will be A,B (B at top). Now from Activity B i started Activity A by using intent FLAG_ACTIVITY_REORDER_TO_FRONT , now the Activity stack will be B,A(A at top). Again I tried starting Activity B from Activity A using intent FLAG_ACTIVITY_REORDER_TO_FRONT, which results in bri...
android|android-intent
0
2015-02-23T08:11:47.333Z
2,015
2
8
0
822
1
372
53
2
0
false
false
false
false
false
false
zero
28,669,348
Reaction to Bluetooth Pairing dialog input
<p>I am working on an App that connects the android device with another device (CAN modules) over Bluetooth.</p> <p>I pair previously unpaired devices like this:</p> <pre><code>Method m = device.getClass().getMethod("createBond", (Class[]) null); m.invoke(device, (Object[]) null); </code></pre> <p>Which works like a...
I am working on an App that connects the android device with another device (CAN modules) over Bluetooth. I pair previously unpaired devices like this: [CODE] Which works like a charm. There is an issue though. The CAN Modules are set up in a way that you don't need the pin stuff or any other form of pairing confirmati...
android|bluetooth
2
2015-02-23T08:12:30.123Z
2,015
2
8
0
3,743
2
811
42
2
1
true
false
true
false
false
false
low
28,669,503
Fragment shows twice on top of eachother
<p>I im displaying fragments in my activity, but seems that some fragments are displaying(instatiating) twice. I'm double checking my code but and in my opinion all should be ok. The issue is when I show the fragment its ok, but after showing another fragment and showing the same fragment it's like reloading the callin...
I im displaying fragments in my activity, but seems that some fragments are displaying(instatiating) twice. I'm double checking my code but and in my opinion all should be ok. The issue is when I show the fragment its ok, but after showing another fragment and showing the same fragment it's like reloading the calling t...
android|android-activity|android-fragments|fragment
1
2015-02-23T08:25:46.297Z
2,015
2
8
0
1,235
2
535
40
4
2
true
false
false
false
false
false
low
28,669,511
What's the right way to get Android Wear to refresh a media notification?
<p>I have an app that plays music; I have a Broadcast Receiver that properly handles the commands from Android wear like <code>KEYCODE_MEDIA_PLAY</code>, <code>KEYCODE_MEDIA_PAUSE</code>, and <code>KEYCODE_MEDIA_NEXT</code>. </p> <p>Everything works, but there's one issue: when I hit Play on the Wear notification, th...
I have an app that plays music; I have a Broadcast Receiver that properly handles the commands from Android wear like KEYCODE_MEDIA_PLAY , KEYCODE_MEDIA_PAUSE , and KEYCODE_MEDIA_NEXT . Everything works, but there's one issue: when I hit Play on the Wear notification, the Intent is fired, the music plays, but the notif...
android|android-notifications|wear-os|android-wear-notification
1
2015-02-23T08:26:35.203Z
2,015
2
8
0
157
1
584
73
4
0
false
false
false
false
false
false
low
28,669,564
Receiving the file with 0 byte at the side of client in android?
<p>I am transferring the file by using socket programming in android the file transferred successfully but when i open that file at client side it does not contain any data in that it contains 0 byte data</p> <p>My client side code goes here:</p> <pre><code> byte [] mybytearray = new byte [filesize]; InputStream is ...
I am transferring the file by using socket programming in android the file transferred successfully but when i open that file at client side it does not contain any data in that it contains 0 byte data My client side code goes here: [CODE] and My server side code goes here [CODE] I am running it on my phones not on emu...
java|android|eclipse|sockets
0
2015-02-23T08:30:36.503Z
2,015
2
8
0
341
0
325
64
4
2
true
true
false
false
false
false
zero
28,669,569
android toolbar like facebook or gmail app
<p>i need the same thing like the toolbar on the Facebook or gmail App (i also want it do disappear when scrolling down and appear when scrolled on top again)</p> <p>The thing is, im using a ActionBar on the top of the App already, what i need is another toolbar on the bottom. I thought about using the new toolbar and...
i need the same thing like the toolbar on the Facebook or gmail App (i also want it do disappear when scrolling down and appear when scrolled on top again) The thing is, im using a ActionBar on the top of the App already, what i need is another toolbar on the bottom. I thought about using the new toolbar and place it o...
android
1
2015-02-23T08:31:09.987Z
2,015
2
8
0
426
0
640
42
1
1
true
true
false
false
false
false
low
28,669,639
Android - SQLite db keeps showing rows that should have been deleted
<p>I'm currently creating an app that downloads lists from a server and places those lists into an SQLite database. In the Mainactivity it calls the lists from the db and places them into a custom adapter, everything works fine and such.</p> <p>After this I go through several screens to proces the listdata and in the ...
I'm currently creating an app that downloads lists from a server and places those lists into an SQLite database. In the Mainactivity it calls the lists from the db and places them into a custom adapter, everything works fine and such. After this I go through several screens to proces the listdata and in the final activ...
android|sqlite
-2
2015-02-23T08:36:16.517Z
2,015
2
8
0
778
1
1,300
68
2
3
true
false
false
false
false
true
negative
28,669,677
Robotium wait until loading date is finished
<p>How can i wait until something is done Loading. I need to wait until the application has downloaded about 10MB of data. Since i have implemented the loading into the Robotium class, i don't have the chance to check the UI for an message if it is done. The loading time takes sometimes longer, so i can't put like <cod...
How can i wait until something is done Loading. I need to wait until the application has downloaded about 10MB of data. Since i have implemented the loading into the Robotium class, i don't have the chance to check the UI for an message if it is done. The loading time takes sometimes longer, so i can't put like solo.sl...
android|testing|robotium
0
2015-02-23T08:38:48.127Z
2,015
2
8
0
178
1
450
44
3
0
false
false
false
false
false
false
zero
28,669,787
Unable to run Parse Cloud Code on Android
<p>I want to run Parse Cloud Code on Android and for this purpose I follow the instructions provided in the <a href="https://parse.com/docs/cloud_code_guide" rel="nofollow">Parse Docs</a>. I try to execute the following code:</p> <pre><code>ParseCloud.callFunctionInBackground("hello", new HashMap&lt;String, Object&gt;...
I want to run Parse Cloud Code on Android and for this purpose I follow the instructions provided in the Parse Docs . I try to execute the following code: [CODE] I get a compile-time error, stating: 'done(String, ParseException)' in 'Anonymous class derived from com.parse.FunctionCallback' clashes with 'done(T, ParseEx...
android|parse-platform|parse-cloud-code
0
2015-02-23T08:45:11.940Z
2,015
2
8
0
271
1
462
41
3
1
true
false
false
false
false
false
zero
28,669,813
Would loading images from assets folder instead of res folder reduce preloaded images on Android?
<p><img src="https://i.stack.imgur.com/W3iyl.png" alt="enter image description here"></p> <p>We know that nothing can be done for <code>android.content.res.Resources</code>as it is caused by <code>Zygote</code> to preload some resources that we cannot directly manipulate.</p> <p>I am not exactly sure about how it pre...
We know that nothing can be done for android.content.res.Resources as it is caused by Zygote to preload some resources that we cannot directly manipulate. I am not exactly sure about how it preloads and where it preloads from. For example, shall I move my image files from res/drawable-hdpi to assets folder? (Note that ...
android|android-resources|android-drawable
0
2015-02-23T08:47:03.967Z
2,015
2
8
0
124
1
423
97
3
0
false
false
false
false
false
false
zero
28,669,862
Share large data amount between activities
<p>I have a parcelable class that is trying to send some camera preview information. So I need to send several byte[] data from one activity to another. I'm using <code>Parcelable</code> with this code:</p> <pre><code>public class CameraResult implements Parcelable { private byte[] imagesList; public Came...
I have a parcelable class that is trying to send some camera preview information. So I need to send several byte[] data from one activity to another. I'm using Parcelable with this code: [CODE] This Parcelable class is working fine. But when I try to send a higher amount of data, the communication Intent is not working...
android|parcelable
0
2015-02-23T08:50:35.580Z
2,015
2
8
0
1,148
1
607
42
2
1
true
false
false
false
false
false
zero
28,669,868
Android - Icon not shown in AlertDialog
<p>I have an alert dialog that does not show the icon that I set using "setIcon".<br> I use Android Studio and Android Emulator API 19/ Android 4.4.2.</p> <p>I can run the app, the dialog is shown without icon, no error.<br> But Android studio marks the line that contains "setIcon" and offers me "Introduce local varia...
I have an alert dialog that does not show the icon that I set using "setIcon". I use Android Studio and Android Emulator API 19/ Android 4.4.2. I can run the app, the dialog is shown without icon, no error. But Android studio marks the line that contains "setIcon" and offers me "Introduce local variable" and "Make meth...
android
9
2015-02-23T08:51:06.207Z
2,015
2
8
0
9,112
5
413
39
1
1
true
false
true
false
false
false
medium
28,669,869
How to Detect Multiple Image Targets?
<p>I've got my unity project exported through Vuforia to Eclpse. But, when I run the application only one image target is detected at a time.</p> <p>In Unity, both datasets have been marked active, but still no use.</p> <p>I see a lot of links like: <a href="https://developer.vuforia.com/resources/dev-guide/detecting...
I've got my unity project exported through Vuforia to Eclpse. But, when I run the application only one image target is detected at a time. In Unity, both datasets have been marked active, but still no use. I see a lot of links like: https://developer.vuforia.com/resources/dev-guide/detecting-and-tracking-multiple-targe...
android|eclipse|unity3d|vuforia
2
2015-02-23T08:51:13.607Z
2,015
2
8
0
3,109
1
477
37
4
0
false
false
true
false
false
false
low
28,669,906
How do I find resource id from items within my listview?
<p>G'day again!</p> <p>Trying to work out a good approach to finding a resource id for an item that lives within a listview.</p> <p>So basically I pull data from a website and add them into my android app's listview. Currently I have a placeholder image, and two text fields. The intention being that after the initial...
G'day again! Trying to work out a good approach to finding a resource id for an item that lives within a listview. So basically I pull data from a website and add them into my android app's listview. Currently I have a placeholder image, and two text fields. The intention being that after the initial text data has been...
android|listview|android-listview|android-resources
0
2015-02-23T08:53:41.540Z
2,015
2
8
0
1,325
3
1,053
56
4
2
true
false
false
false
false
false
zero
28,669,959
Xml parsing using Xstream is too slow for large xml file in android
<p>Parsing xml file using Xstream parser works like charm for small xml files. Some times my web responses (xml format) may be very large as the xml file may be more than 10MB. At this time, the Xml parsing takes too much time to finish. How to increase the performance of Xstream parser for large files.</p>
Parsing xml file using Xstream parser works like charm for small xml files. Some times my web responses (xml format) may be very large as the xml file may be more than 10MB. At this time, the Xml parsing takes too much time to finish. How to increase the performance of Xstream parser for large files.
android|xml-parsing|xstream
2
2015-02-23T08:56:53.787Z
2,015
2
8
0
1,390
1
301
67
3
0
false
false
false
false
false
false
low
28,669,975
OnDestroy() Being called for Service when app goes to background
<p>is it normal that the service is being destroyed when the app is put to the background(pressed the home button)? if it is, can i override it by commenting the onDestroy() function so that the service is not destroyed? i.e is it a good practice to do that.</p>
is it normal that the service is being destroyed when the app is put to the background(pressed the home button)? if it is, can i override it by commenting the onDestroy() function so that the service is not destroyed? i.e is it a good practice to do that.
android|service
2
2015-02-23T08:58:30.477Z
2,015
2
8
0
1,768
1
255
64
2
0
false
false
false
false
false
false
low
28,670,007
What to include when packaging a mobile app in Flash?
<p>I'm just experimenting with building an app in Flash Pro, and when it comes to publishing the files it gives me the option to +include additional files.</p> <p>Would I be right in assuming that this means image folders, com folders etc and any other files typically associated with building an as3 project?</p> <p>A...
I'm just experimenting with building an app in Flash Pro, and when it comes to publishing the files it gives me the option to +include additional files. Would I be right in assuming that this means image folders, com folders etc and any other files typically associated with building an as3 project? Also is it not best ...
android|actionscript-3|flash|publishing
0
2015-02-23T09:00:40.613Z
2,015
2
9
0
42
0
557
53
4
0
false
true
false
false
false
false
zero
28,670,012
Android ListView Filter not working
<p>Can someone help me to filter the list using a custom adapter I have been stuck on this for sometime now.. I have followed logcat and It does output the filtered results my problem is updating the listview with the filtered results.</p> <pre><code> // list of data items private static List&lt;ListData&gt; m...
Can someone help me to filter the list using a custom adapter I have been stuck on this for sometime now.. I have followed logcat and It does output the filtered results my problem is updating the listview with the filtered results. [CODE] }
android-listview|android-edittext
0
2015-02-23T09:00:55.217Z
2,015
2
9
0
204
1
241
35
2
1
true
false
false
false
false
false
zero
28,670,046
Vertical line not expanding vertically[android shape]
<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:visible="true" android:shape="line"&gt; &lt;stroke android:width="1dp" android:color="#008000" android:dashWidth="2dp" android:dashGap="2d...
[CODE] #horizontal_line.xml [CODE] #above is the vertical line xml [CODE] I am trying to use the vertical line in the above layout or view .But the vertical line does not expand fully to its height.
android|layout|view|line
3
2015-02-23T09:02:51.603Z
2,015
2
9
0
2,781
2
198
53
4
3
true
false
true
false
false
false
low
28,670,061
Huge delay of notification's deleteIntent execution on wearable (~5 seconds)
<p>I create notifications on the wearable for some good reasons. Since I display the same one on the mobile too I need to syncronize the deletion of the notifications. I observed that it takes a lot of time between the deletion of the notification on the wearable and the mobile. At first I thought, that this is related...
I create notifications on the wearable for some good reasons. Since I display the same one on the mobile too I need to syncronize the deletion of the notifications. I observed that it takes a lot of time between the deletion of the notification on the wearable and the mobile. At first I thought, that this is related to...
android|notifications|android-notifications|wear-os|android-wear-data-api
0
2015-02-23T09:03:40.070Z
2,015
2
9
0
162
1
939
76
5
2
true
false
false
false
false
false
zero
28,670,065
set attrs programmatically on carousel
<pre><code>&lt;package.controls.Carousel android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/base_carousel" pj:UseReflection="true" pj:Items="@array/icons" pj:Names="@array/planet"...
[CODE] I want to set Items and Names array programmatically.
android
0
2015-02-23T09:03:43.153Z
2,015
2
9
0
224
1
60
38
1
1
true
false
false
false
false
false
zero
28,670,103
Cant figure out how to get center of relativelayout
<p>I have been struggling with this for the last 2 hours, and I just can't get the answer for this. I want the center of my relativelayout because I want to draw a circle there using a canvas. What I've tried already:</p> <ul> <li>ViewTreeObserver.OnGlobalLayoutListener</li> <li>OnStart()</li> </ul> <p>Here is my cod...
I have been struggling with this for the last 2 hours, and I just can't get the answer for this. I want the center of my relativelayout because I want to draw a circle there using a canvas. What I've tried already: ViewTreeObserver.OnGlobalLayoutListener OnStart() Here is my code: [CODE] The variables rel, centreX and ...
java|android|android-relativelayout
0
2015-02-23T09:05:59.127Z
2,015
2
9
0
55
1
358
51
3
1
true
false
false
false
false
false
zero
28,670,143
Android-Database table not created in respective location properly
<p>I have created db for my app but it is not created below is my code</p> <p>//Db version private static final int DATABASE_VERSION = 3;</p> <pre><code>//The Android's default system path of your application database. </code></pre> <p>// private static String DB_PATH = "/data/data/com.virtualmaze.ibilling/data...
I have created db for my app but it is not created below is my code //Db version private static final int DATABASE_VERSION = 3; [CODE] // private static String DB_PATH = "/data/data/com.virtualmaze.ibilling/databases/"; [CODE] help me to find where i go wrong?.. thanks in advance
android|database|sqlite
-1
2015-02-23T09:08:07.683Z
2,015
2
9
0
62
1
280
66
3
2
true
false
false
false
false
true
negative
28,670,152
Using regexes to modify the text of html (with javascript)
<p>I want to modify the text in a html file using javascript in an android webview.</p> <p>Essentially, I want to do what android Linkify does to text, but I don't want to do it with java code, because I feel like that might delay the webview rendering the html (if I parse the text before sending it to the webview).</...
I want to modify the text in a html file using javascript in an android webview. Essentially, I want to do what android Linkify does to text, but I don't want to do it with java code, because I feel like that might delay the webview rendering the html (if I parse the text before sending it to the webview). So, for exam...
javascript|android|regex|webview
0
2015-02-23T09:08:36.813Z
2,015
2
9
0
127
2
1,102
58
4
4
true
false
false
false
false
false
zero
28,670,153
Can't run app in Android Studio
<p>I opened my app (created on Eclipse) on android studio after generating gradle file, but it gives me the following errors. </p> <p><img src="https://i.stack.imgur.com/CMnzF.png" alt="enter image description here"></p> <p>I done clean and rebuild, but still the same. How to solve it?</p>
I opened my app (created on Eclipse) on android studio after generating gradle file, but it gives me the following errors. I done clean and rebuild, but still the same. How to solve it?
android|android-studio|gradle
0
2015-02-23T09:08:41.287Z
2,015
2
9
0
54
2
185
31
3
0
false
false
false
false
false
false
zero
28,670,158
How to lauch the app in mobile while a button clicked in wear watch?
<p>i am new in developing android wear applications. I would like to know how to do an action in mobile device by receiving a button click in android wear watch? For example a button in wear application to start activity in mobile device.</p>
i am new in developing android wear applications. I would like to know how to do an action in mobile device by receiving a button click in android wear watch? For example a button in wear application to start activity in mobile device.
android|wear-os|android-wear-data-api|android-wear-notification
1
2015-02-23T09:08:49.980Z
2,015
2
9
0
1,213
1
235
68
4
0
false
false
false
false
false
false
low
28,670,224
How to prevent select passed date in DatePickerDialog (setMinDate not work as expected)
<p>I found DatePicker(Dialog) very confusing... When setMinDate() is set... the shown calendar really "visually disable" passed dates (make them gray) but these dates are still posible to select! I want to user prevent to do so. Ideal way would be make passed dates non-clickable / unselectable. If it is not possible, ...
I found DatePicker(Dialog) very confusing... When setMinDate() is set... the shown calendar really "visually disable" passed dates (make them gray) but these dates are still posible to select! I want to user prevent to do so. Ideal way would be make passed dates non-clickable / unselectable. If it is not possible, than...
android|android-5.0-lollipop|android-datepicker|datepickerdialog
8
2015-02-23T09:12:41.533Z
2,015
2
9
0
3,022
2
658
87
4
1
true
false
true
false
false
false
medium
28,670,269
Get height and padding size
<p>I want to see the sum of textview's height and of textview's padding. I set padding with method:</p> <pre><code>textView.setPadding(0,x,0,x); </code></pre> <p>But if I use</p> <pre><code>textView.getHeight(); </code></pre> <p>I will receive 0.</p> <p>If I use </p> <pre><code>ViewGroup.LayoutParams params = (Vi...
I want to see the sum of textview's height and of textview's padding. I set padding with method: [CODE] But if I use [CODE] I will receive 0. If I use [CODE] I will receive -2 that's impossible. What have I to do? Edit: This is the XML code [CODE] Edit2: I use this code for setting width of text view and it work correc...
android|android-layout|textview
1
2015-02-23T09:15:33.500Z
2,015
2
9
0
4,365
1
759
27
3
7
true
false
true
false
false
false
low
28,670,499
how to send post request use Volley?
<p>String url = "url.php";</p> <pre><code> ProgressDialog pDialog = new ProgressDialog(this); pDialog.setMessage("Loading..."); pDialog.show(); JsonObjectRequest jsonObjReq = new JsonObjectRequest( Request.Method.POST, url, null, new Response.Listener&lt;JSONObject&gt;() { ...
String url = "url.php"; [CODE] what the problem in this code? when i run this code "null pointer exception", "jsonObjReq" may be null. how can i solve this issue? Here is my Log error [CODE] i am refere this link for post data :- http://arnab.ch/blog/2013/08/asynchronous-http-requests-in-android-using-volley/
android|android-volley|android-webservice
0
2015-02-23T09:28:13.357Z
2,015
2
9
0
322
1
310
36
3
2
true
false
false
false
false
false
zero
28,670,511
Using Google Play Service in Cocos2d-JS
<p>I am currently developing a game using Cocos2d-JS (<a href="http://cocos2d-x.org/wiki/Cocos2d-JS" rel="nofollow">http://cocos2d-x.org/wiki/Cocos2d-JS</a>). I want to integrate my game with google play service (<a href="https://developers.google.com/games/services/" rel="nofollow">https://developers.google.com/games/...
I am currently developing a game using Cocos2d-JS ( http://cocos2d-x.org/wiki/Cocos2d-JS ). I want to integrate my game with google play service ( https://developers.google.com/games/services/ ) for achievement and leaderboard. I had done some research but i didn't find any tutorials. I had found some tutorials on Coco...
javascript|android|google-play-services|cocos2d-android|cocos2d-js
1
2015-02-23T09:28:49.290Z
2,015
2
9
0
759
1
493
39
5
0
false
false
false
false
false
false
low
28,670,523
Navigation Drawer update listView and avoid crash
<p>Anyone can tell me why the Drawer Layout crashes when pressing the menu button ? </p> <p>my main question is about updateing the listView? Could i just add strings and putt them under the listView or should the menu be changed to a framelayout and add buttons on it ?</p> <p>hope my english isn't to bad! </p> <h2>...
Anyone can tell me why the Drawer Layout crashes when pressing the menu button ? my main question is about updateing the listView? Could i just add strings and putt them under the listView or should the menu be changed to a framelayout and add buttons on it ? hope my english isn't to bad! EDIT i now have problem with P...
android
0
2015-02-23T09:29:29.407Z
2,015
2
9
0
63
1
430
49
1
2
true
false
false
false
false
false
zero
28,670,525
Php to android getting the return value
<p>I have a basic auth form working right now. Right now it is just sending a string "success" when login is successful and "false" when it is not. When its successful I want to return the users data like UserID for other purposes. How can I do that? Here is my Php code:</p> <pre><code> static public function Login($...
I have a basic auth form working right now. Right now it is just sending a string "success" when login is successful and "false" when it is not. When its successful I want to return the users data like UserID for other purposes. How can I do that? Here is my Php code: [CODE] And here is my android code: [CODE]
php|android|json
0
2015-02-23T09:29:30.283Z
2,015
2
9
0
1,766
2
311
39
3
2
true
false
false
false
false
false
zero
28,670,533
Android ParseImageView doesnt display same images
<p>On my android application I got picture via camera intent and save it to Parse.com and display it in the another activity with ParseImageView. The problem I faced is when I try code in emulator it works fine however on Samsung Galaxy S4 KitKat 4.4.2 the pictures are not load and I couldnt find why. When I take pictu...
On my android application I got picture via camera intent and save it to Parse.com and display it in the another activity with ParseImageView. The problem I faced is when I try code in emulator it works fine however on Samsung Galaxy S4 KitKat 4.4.2 the pictures are not load and I couldnt find why. When I take picture ...
android|parse-platform|android-parsequeryadapter
0
2015-02-23T09:29:48.143Z
2,015
2
9
0
161
0
646
49
3
2
true
true
false
false
false
false
zero
28,670,548
Making GridView with Fragment Instances
<p>I want to implement GridView that each cell contains an object of class. for this I implemented fragment class:</p> <pre><code>public class DayUC extends Fragment { /* some variables */ // use to create instance of class with initial parameters public static DayUC newInstance(//initial paramet...
I want to implement GridView that each cell contains an object of class. for this I implemented fragment class: [CODE] and also I created GridViewAdapter: [CODE] but when I create GridView it throws NullPointerException! I found that in gridView elements (DayUC) onCreateView() never called. so gridList.get(position).ge...
android|gridview|android-fragments
0
2015-02-23T09:30:42.710Z
2,015
2
9
0
99
0
482
39
3
3
true
true
false
false
false
false
zero
28,670,568
Runnable in java spend more time to complete
<p>I have a native <code>java android</code> application, i'm trying to monitorize data usage using a <a href="http://%20developer.android.com/reference/android/os/Handler.html" rel="nofollow">Handler</a>:</p> <pre><code>private Handler mHandler = new Handler(); </code></pre> <p>And a thread:</p> <pre><code>mHandler...
I have a native java android application, i'm trying to monitorize data usage using a Handler : [CODE] And a thread: [CODE] Why if i monitor data usage it always spend 10 more milliseconds than expected? 1000 milliseconds [CODE] 5000 milliseconds: [CODE]
java|android|multithreading
0
2015-02-23T09:31:59.737Z
2,015
2
9
0
51
0
254
44
3
4
true
true
false
false
false
false
zero
28,670,714
How an Android phone interacts with the server?
<p>I have an app running fine in emulator but not in mobile. That is app basically fetch some records from server using webservice.(SOAP). Installation is successfull and i can open the first page.but not able to proceed further due to server communication. I need your help in making this app to work fine in my android...
I have an app running fine in emulator but not in mobile. That is app basically fetch some records from server using webservice.(SOAP). Installation is successfull and i can open the first page.but not able to proceed further due to server communication. I need your help in making this app to work fine in my android ph...
android|localhost|android-ksoap2|android-networking
0
2015-02-23T09:41:03.723Z
2,015
2
9
0
86
1
348
47
4
0
false
false
false
false
false
false
zero
28,670,715
Can Android devices with old firmware download old app versions in play store?
<p>We currently have an Android app listed in play store which supports Android 2.x and plan an update which has minimum Android 4 (having Holo theme etc).</p> <p>The question now is: If we publish the update, what will happen to phones having Android 2.x? Will they see the last version supporting Android 2 in the sto...
We currently have an Android app listed in play store which supports Android 2.x and plan an update which has minimum Android 4 (having Holo theme etc). The question now is: If we publish the update, what will happen to phones having Android 2.x? Will they see the last version supporting Android 2 in the store or won´t...
android|google-play|compatibility|publishing
3
2015-02-23T09:41:05.490Z
2,015
2
9
0
1,113
1
569
78
4
0
false
false
false
false
false
false
low
28,670,741
How to make a pause button for Android Text-to-speech?
<p>I'm a newbie in android dev and this is my first time in stackoverflow. <br> Im currently developing a simple workout app for my Software Engineering subject and I implemented Text-to-Speech to read out the workout steps. I have a button named "Play/Pause Audio" <br>This is my onclick listener:</p> <pre><code> spe...
I'm a newbie in android dev and this is my first time in stackoverflow. Im currently developing a simple workout app for my Software Engineering subject and I implemented Text-to-Speech to read out the workout steps. I have a button named "Play/Pause Audio" This is my onclick listener: [CODE] But when i try to pause it...
java|android|text-to-speech
1
2015-02-23T09:42:28.310Z
2,015
2
9
0
3,235
2
405
54
3
1
true
false
true
false
false
false
low
28,670,743
hide or disable or prevent pull down status bar (notification bar) inside Service while the service is running
<p>I am writing a launcher for kids. Parents can switch between their Launcher and kids Launcher. i need to hide status bar (notification bar) while its in kids Launcher, even when the kids use the applications which parents put in kids launcher.</p> <p>the code below works fine when I put it in <code>onCreate</code> ...
I am writing a launcher for kids. Parents can switch between their Launcher and kids Launcher. i need to hide status bar (notification bar) while its in kids Launcher, even when the kids use the applications which parents put in kids launcher. the code below works fine when I put it in onCreate of my each activity. [CO...
android|service|hide|statusbar
3
2015-02-23T09:42:29.993Z
2,015
2
9
0
2,129
0
921
110
4
1
true
true
false
false
false
false
low
28,670,820
How to check an activity and bring it to front if it is in Backstack
<p>I have read many questions about backstack and task, But I am not getting them in right way in my problem. I have an issue and that is I have a multi instance activity (declared in manifiest). which could be opened multiple time by the service.This activity has a button which would take user to another activity (Let...
I have read many questions about backstack and task, But I am not getting them in right way in my problem. I have an issue and that is I have a multi instance activity (declared in manifiest). which could be opened multiple time by the service.This activity has a button which would take user to another activity (Lets s...
android|android-activity|back-stack
0
2015-02-23T09:46:50.950Z
2,015
2
9
0
1,500
2
886
68
3
1
true
false
false
false
false
false
zero
28,670,901
What is the best way to implement Color Detection in Android?
<p>I want to implement color detection in Android. What I exactly want to do is that after taking a picture with Android Camera, I want to detect the color of object in that picture. My goal is detecting colors according to color intensity. At this point, I searched and saw different approaches related to this goal. Th...
I want to implement color detection in Android. What I exactly want to do is that after taking a picture with Android Camera, I want to detect the color of object in that picture. My goal is detecting colors according to color intensity. At this point, I searched and saw different approaches related to this goal. There...
android|opencv|colors|image-recognition
0
2015-02-23T09:51:19.470Z
2,015
2
9
0
5,136
1
696
61
4
0
false
false
true
false
false
false
zero
28,670,907
Transaction to a specific fragment if we receive a push notification while app is running
<p>Is it possible not launch new activity if we receive a push notification while the app is running? My activity works with fragments and I want to do transition to a determinate fragment when the notification is received. My activity have data that I need to show the fragments. The problem is that when I receive the ...
Is it possible not launch new activity if we receive a push notification while the app is running? My activity works with fragments and I want to do transition to a determinate fragment when the notification is received. My activity have data that I need to show the fragments. The problem is that when I receive the pus...
android|android-fragments|push-notification
0
2015-02-23T09:51:50.807Z
2,015
2
9
0
1,454
3
710
89
3
0
false
false
false
false
false
false
zero
28,670,941
why next version neo4j-mobile-android is not release?
<p>Here is first version of neo4j-mobile-android and it released in 2013? <a href="https://github.com/neo4j-contrib/neo4j-mobile-android" rel="nofollow">https://github.com/neo4j-contrib/neo4j-mobile-android</a> Why that project haven't next version? thank you with all of my respect</p>
Here is first version of neo4j-mobile-android and it released in 2013? https://github.com/neo4j-contrib/neo4j-mobile-android Why that project haven't next version? thank you with all of my respect
android|neo4j
-2
2015-02-23T09:53:50.737Z
2,015
2
9
0
42
1
196
53
2
0
false
false
false
false
false
true
negative
28,670,950
How to set focus on list view at 0 index
<p>I am trying to set focus on list view when it is loaded. I have a requirement where I want to implement navigation on list view like when an up button is pressed I want it to move one step up and similar for down button. Till now I have tried almost most of the methods like <strong>set selection(position),listview....
I am trying to set focus on list view when it is loaded. I have a requirement where I want to implement navigation on list view like when an up button is pressed I want it to move one step up and similar for down button. Till now I have tried almost most of the methods like set selection(position),listview.requestfocus...
android|listview
2
2015-02-23T09:54:14.507Z
2,015
2
9
0
2,797
4
619
40
2
2
true
false
true
false
false
false
low
28,670,957
Buttons at corners of the screen
<p>I need to place two buttons at the top left and top right corner. But I get the two buttons at the left corner. How do I correct the code? Please help.</p> <pre><code>&lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &...
I need to place two buttons at the top left and top right corner. But I get the two buttons at the left corner. How do I correct the code? Please help. [CODE]
xml|android-layout|button
2
2015-02-23T09:54:34.347Z
2,015
2
9
0
678
2
158
32
3
1
true
false
false
false
false
false
low
28,670,965
How to override android default ringtone by own customize ringtone using broadcast receiver during incoming call?
<p>I am trying to make an application where my purpose is to override the default ringtone and caller screen during the call for a particular contact using broadcast receiver. I already did the caller screen override part. But not able to override the default device ringtone by using broadcast receiver. The requirement...
I am trying to make an application where my purpose is to override the default ringtone and caller screen during the call for a particular contact using broadcast receiver. I already did the caller screen override part. But not able to override the default device ringtone by using broadcast receiver. The requirement is...
android|broadcastreceiver
1
2015-02-23T09:55:08.830Z
2,015
2
9
0
191
0
420
113
2
0
false
true
false
false
false
false
low
28,670,970
ViewPager: java.lang.IllegalArgumentException: pointerIndex out of range
<p>I am writing an code to handle touch event based on what suggested <a href="http://neevek.net/posts/2013/10/13/implementing-onInterceptTouchEvent-and-onTouchEvent-for-ViewGroup.html" rel="nofollow noreferrer">here</a>. I am using ViewPager as an ViewGroup and ListView(I know <a href="https://stackoverflow.com/q/4490...
I am writing an code to handle touch event based on what suggested here . I am using ViewPager as an ViewGroup and ListView(I know #thisbad ) as child view of Fragment. This is what I wanted to achieve: Detect multitouch event on child view then pass touch control to parent but While passing listener event from child V...
android|android-viewpager|illegalargumentexception|android-viewgroup
3
2015-02-23T09:55:21.680Z
2,015
2
9
0
2,694
1
756
72
4
1
true
false
true
false
false
false
low
28,671,002
How to hide a dynamically created EditText box in android?
<p>I want to make an attendance plus tasking system. For this, I have used check-boxes and a linear layout. Linear layout is for adding edit-text box dynamically. When a check-box is checked, a new text field is to be visible and when it is unchecked, the text field has to be hidden. I have used part of code something ...
I want to make an attendance plus tasking system. For this, I have used check-boxes and a linear layout. Linear layout is for adding edit-text box dynamically. When a check-box is checked, a new text field is to be visible and when it is unchecked, the text field has to be hidden. I have used part of code something lik...
android|android-edittext
-1
2015-02-23T09:56:48.603Z
2,015
2
9
0
226
1
472
58
2
1
true
false
false
false
false
true
negative
28,671,029
Android - How to trigger a Broadcast Receiver to call its onReceive() method?
<p>I have scheduled alarm for my application. </p> <p>I have implemented broadcast receiver to be triggered once the alarm time reaches. </p> <p>How to manually call broadcast receiver to execute the code inside of onReceive method without replicating the code twice. </p> <p>I thought of having the code in utility s...
I have scheduled alarm for my application. I have implemented broadcast receiver to be triggered once the alarm time reaches. How to manually call broadcast receiver to execute the code inside of onReceive method without replicating the code twice. I thought of having the code in utility singleton call and call that me...
android|android-intent|broadcastreceiver|android-manifest|android-broadcast
23
2015-02-23T09:58:20.280Z
2,015
2
9
0
38,143
4
662
77
5
0
false
false
true
true
true
false
high
28,671,102
How to execute the negative button function when dialog is canceled through back button?
<p>I am having a dialog which must execute some code on canceled. I set a negative button but its not executing when dialog is canceled from back button. here is my code.</p> <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setTitle("Licence expired"); builder.setCan...
I am having a dialog which must execute some code on canceled. I set a negative button but its not executing when dialog is canceled from back button. here is my code. [CODE]
android
0
2015-02-23T10:01:58.143Z
2,015
2
10
0
261
1
174
88
1
1
true
false
false
false
false
false
zero
28,671,176
NPE when debugging android app in physical device
<p>I've set up my device drivers, eclipse is finding it without problem, I can execute the app in my phone, also debug the view in Chrome, but when I try to <code>Debug as &gt; Android application</code> I can see app starting in the device, it tries to attach the debugger and then I always get this error:</p> <pre><c...
I've set up my device drivers, eclipse is finding it without problem, I can execute the app in my phone, also debug the view in Chrome, but when I try to Debug as > Android application I can see app starting in the device, it tries to attach the debugger and then I always get this error: [CODE] Any ideas?
java|android|eclipse|debugging
-4
2015-02-23T10:05:57.417Z
2,015
2
10
0
283
2
306
49
4
1
true
false
false
false
false
true
negative
28,671,192
Code not working (Randomize Array)
<p>Hey i wanted to ask for help since i dont know why my code is not working. Im new to android programming and wanted to ask for help.</p> <pre><code> public class MotivationalQuotesMenu extends Activity { int [] images = {R.drawable.mem1, R.drawable.mem2, R.drawable.mem3}; public static int[] RandomizeA...
Hey i wanted to ask for help since i dont know why my code is not working. Im new to android programming and wanted to ask for help. [CODE] And then... [CODE] Random images wont show.. just the same array with the same order
java|android|arrays|random
-1
2015-02-23T10:06:36.183Z
2,015
2
10
0
75
2
224
34
4
2
true
false
false
false
false
true
negative
28,671,255
error 403 forbidden when connecting android to mysql using volley and php
<p>I have been connecting my android app to my wamp server but one day it just woke up giving this error BasicNetwork.performRequest: Unexpected response code 403 for <a href="http://192.168.43.71/database/login.php" rel="nofollow">http://192.168.43.71/database/login.php</a>. I am sure its not my java code but there is...
I have been connecting my android app to my wamp server but one day it just woke up giving this error BasicNetwork.performRequest: Unexpected response code 403 for http://192.168.43.71/database/login.php . I am sure its not my java code but there is something wrong with my server, i am not very familiar with configurin...
php|android|mysql|database|apache
3
2015-02-23T10:09:36.150Z
2,015
2
10
0
1,052
1
981
73
5
2
true
false
false
false
false
false
low
28,671,286
Robotium best practice. clickOnView vs clickOnButton
<p>I was wondering if it is not better to always use <code>solo.clickOnView(solo.getView(R.id.example_button));</code> to press on an button or <code>solo.enterText((EditText) solo.getView(R.id.example_editText), "invalidEmail");</code> to enter en Text. When using the index <code>solo.clickOnButton(0)</code> to press ...
I was wondering if it is not better to always use solo.clickOnView(solo.getView(R.id.example_button)); to press on an button or solo.enterText((EditText) solo.getView(R.id.example_editText), "invalidEmail"); to enter en Text. When using the index solo.clickOnButton(0) to press on an button, the test will fail instant w...
android|testing|robotium
0
2015-02-23T10:11:11.857Z
2,015
2
10
0
165
1
494
52
3
0
false
false
false
false
false
false
zero
28,671,293
Deezer sdk android : seek with the TrackPlayer class
<p>I initialized my TrackPlayer like this : </p> <pre><code>trackPlayer = new TrackPlayer((Application) context.getApplicationContext(), deezerConnect, new WifiAndMobileNetworkStateChecker()); trackPlayer.playTrack(trackId); </code></pre> <p>Then, I want to seek into the track with this code :</p> <pre><code>if (tra...
I initialized my TrackPlayer like this : [CODE] Then, I want to seek into the track with this code : [CODE] I get this error : [CODE] If everyone can help me, Thanks
android|java-native-interface|audiotrack|deezer
0
2015-02-23T10:11:35.673Z
2,015
2
10
0
318
1
165
52
4
3
true
false
false
false
false
false
zero
28,671,343
add android-support-v13.jar in Android Studio
<p>I have been trying to add android-support-v13 in Android Studio 1.0.2</p> <p>I have followed the steps <a href="https://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library">here</a> but I still get a build fail. Has anyone successfully managed to add android-support-v13.jar into Android Studio 1....
I have been trying to add android-support-v13 in Android Studio 1.0.2 I have followed the steps here but I still get a build fail. Has anyone successfully managed to add android-support-v13.jar into Android Studio 1.0.2? Below is my code in my gradle file. [CODE] Edit: I have installed extra support library from SDK ma...
android|android-studio|gradle
6
2015-02-23T10:14:17.447Z
2,015
2
10
0
6,761
2
371
45
3
1
true
false
true
false
false
false
medium
28,671,359
putExtra and getStringExtra not working
<p>I have checked the code a dozen times. There doesn't seem to be anything but annoyingly, it's not working.</p> <p>I'm simply using putExtra to pass data from one activity to another. The second activity always gets <strong>null</strong> from the getStringExtra method.</p> <p>Here is the code:</p> <pre><code>dataV...
I have checked the code a dozen times. There doesn't seem to be anything but annoyingly, it's not working. I'm simply using putExtra to pass data from one activity to another. The second activity always gets null from the getStringExtra method. Here is the code: [CODE] The second activity. Here, getStringExtra always r...
android
-3
2015-02-23T10:15:03.457Z
2,015
2
10
0
1,274
3
363
39
1
2
true
false
false
false
false
true
negative
28,671,426
Libgdx - Colouring only part of a sprite dynamically
<p>Have an Android application running Libgdx with many sprites all floating around. Currently I colour them all differently depending on which group they belong to, eg "red", "green", "blue" etc. However, I think I'd prefer to only colour part of the sprite instead of the whole thing.</p> <p>Currently I use:</p> <pr...
Have an Android application running Libgdx with many sprites all floating around. Currently I colour them all differently depending on which group they belong to, eg "red", "green", "blue" etc. However, I think I'd prefer to only colour part of the sprite instead of the whole thing. Currently I use: [CODE] batch.setCol...
java|android|libgdx|blending|spritebatch
1
2015-02-23T10:19:06.323Z
2,015
2
10
0
710
1
866
52
5
1
true
false
false
false
false
false
low
28,671,467
Android webview not filling device screen
<p>My view doesn't fill the whole screen, I see a white background at the sides. This is my XML file:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="mat...
My view doesn't fill the whole screen, I see a white background at the sides. This is my XML file: [CODE]
android|webview
-2
2015-02-23T10:21:14.617Z
2,015
2
10
0
2,124
3
105
41
2
1
true
false
false
false
false
true
negative
28,671,469
Webview Showing error message while tried to load with Line chart report data: SYNTAX_ERR: Dom Exception 12
<p>I've implemented google charts for generating Line Chart reports. It works fine in above ICS Devices. But in ICS web view is loading with an error message instead of expected line chart report.</p> <p>In what case can web view shows this error on web page The error message is: <strong>SYNTAX_ERR: Dom Exception 12<...
I've implemented google charts for generating Line Chart reports. It works fine in above ICS Devices. But in ICS web view is loading with an error message instead of expected line chart report. In what case can web view shows this error on web page The error message is: SYNTAX_ERR: Dom Exception 12 And how could I reso...
android|android-webview|android-4.0-ice-cream-sandwich|linechart
0
2015-02-23T10:21:24.253Z
2,015
2
10
0
399
1
441
107
4
2
true
false
false
false
false
false
zero
28,671,487
what service/URL are hit using application
<p>I want to know what service/URL are hit from my android application - is there is any way to find out this? Like on desktop using fiddler we know what URL are being hit. Is there is any Tool or application present using which i came to know which URL are hit using my application?</p>
I want to know what service/URL are hit from my android application - is there is any way to find out this? Like on desktop using fiddler we know what URL are being hit. Is there is any Tool or application present using which i came to know which URL are hit using my application?
android|google-analytics
-7
2015-02-23T10:22:09.410Z
2,015
2
10
0
673
1
280
42
2
0
false
false
false
false
false
true
negative
28,671,593
StringEntity object from JSONObject gives java.io.UnsupportedEncodingException
<p>I am new to Java and trying to make native android application which includes making HTTP Calls to API Server. Now My issue is that for making HTTP POST (apache httpPost and httpClient) call with some JSON data. So to make StringEntity out of JSONObject I am writing this line of code:</p> <pre><code>StringEntity us...
I am new to Java and trying to make native android application which includes making HTTP Calls to API Server. Now My issue is that for making HTTP POST (apache httpPost and httpClient) call with some JSON data. So to make StringEntity out of JSONObject I am writing this line of code: [CODE] Where StringEntity is impor...
java|android|json|http|post
1
2015-02-23T10:27:49.160Z
2,015
2
10
0
2,772
2
632
78
5
1
true
false
true
false
false
false
low
28,671,595
How to programmatically check that alarm has been scheduled already or not?
<p>I have used the below code to set the alarm,</p> <pre><code>mAlarmManager.setRepeating(AlarmManager.RTC_WAKEUP, activeModeTime.getTimeInMillis(), AlarmManager.INTERVAL_DAY, getActiveModeAlarmPendingIntent()); </code></pre> <p>Every time when my app starts in the Home screen activity...
I have used the below code to set the alarm, [CODE] Every time when my app starts in the Home screen activity I am setting the alarm again and again. I know that all scheduled alarm will be cancelled once the device goes power off. Once the power is on all the alarms will be scheduled again. But I don't know how to che...
android|broadcastreceiver|alarmmanager|repeatingalarm|bootcompleted
-1
2015-02-23T10:27:50.063Z
2,015
2
10
0
1,023
1
677
75
5
1
true
false
false
false
false
true
negative
28,671,637
Delete top and bottom margins in dynamic Textviews Android
<p>How do I delete the top and bottom margins of the dots in the green LinearLayout? </p> <p>I have tried with setMargins to 0 but it not works</p> <p>This are my Java class and my XML's</p> <p><img src="https://i.stack.imgur.com/8Zhk0.png" alt="enter image description here"></p> <p><strong>MainActivity.java</stron...
How do I delete the top and bottom margins of the dots in the green LinearLayout? I have tried with setMargins to 0 but it not works This are my Java class and my XML's MainActivity.java [CODE] activity_main.xml [CODE] view_pager_item.xml [CODE]
android|textview|android-linearlayout|center|gravity
0
2015-02-23T10:29:43.830Z
2,015
2
10
0
274
5
245
58
5
3
true
false
false
false
false
false
zero
28,671,659
how to set text left of relatvie layout in android
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl_main" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#ffffff" &gt; &lt;RelativeLayout andro...
[CODE] This is my xml I am trying to set one Relative-layout always come right of other relative layout when Relative Layout visibility and in single text-view text auto adjust when other Relative Layout invisible. Please help me where I am doing wrong ? please find the attachment . There is Text-view collapse.
android
0
2015-02-23T10:30:45.947Z
2,015
2
10
0
66
1
312
50
1
1
true
false
false
false
false
false
zero