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,621,832
What folder should the ".android" junction point to?
<p>I installed the Android Studio. First it gave me an error installing the built-tools-21.1.1, but the android 21.1.2 folder was already in there. I downloaded 21.1.1, which had a folder named android-5.0. I put it alongside the "21.1.2" folder, clicked retry on the error message, and the installation succeeded. H...
I installed the Android Studio. First it gave me an error installing the built-tools-21.1.1, but the android 21.1.2 folder was already in there. I downloaded 21.1.1, which had a folder named android-5.0. I put it alongside the "21.1.2" folder, clicked retry on the error message, and the installation succeeded. However,...
android|android-studio|junction
0
2015-02-20T04:50:43.930Z
2,015
2
4
4
166
0
1,332
52
3
0
false
true
false
false
false
false
zero
28,621,893
Can we use Tab menu in Widget Android
<p>I have created widget for my application and I need to add two tabs one is <code>Favorite</code> another is <code>Recent List</code>. Is there any way to use tab in widget. I searched in google but I cant any tutorials.</p>
I have created widget for my application and I need to add two tabs one is Favorite another is Recent List . Is there any way to use tab in widget. I searched in google but I cant any tutorials.
android|android-layout|android-widget
0
2015-02-20T04:58:45.337Z
2,015
2
4
4
55
0
194
37
3
0
false
true
false
false
false
false
zero
28,621,903
Multiple images in image flipper Android
<p>I'm using this code to dynamically pop images on the slider using Image Flipper. </p> <pre><code>flipper= (ViewFlipper) findViewById(R.id.flipper1); for(int i=0;i&lt;6;i++) { // This will create dynamic image view and add them to ViewFlipper Button image ...
I'm using this code to dynamically pop images on the slider using Image Flipper. [CODE] I have set sliding animation to it. The issue is that it fits one image on the whole screen width and then animates to other. While I want the image size to remain same and it should not fit it to the entire screen. Also note that i...
android|image|android-layout|viewflipper
0
2015-02-20T04:59:26.453Z
2,015
2
4
4
556
0
518
40
4
1
true
true
false
false
false
false
zero
28,621,995
how to make table row fit to width of screen in android
<p>I am developing android application which generating results dynamically with table layout. Table rows are generating dynamically. Each table row contains two text views. but the results are not filling total screen. How to fill total width of screen with two text views of table row. pleas help me.</p>
I am developing android application which generating results dynamically with table layout. Table rows are generating dynamically. Each table row contains two text views. but the results are not filling total screen. How to fill total width of screen with two text views of table row. pleas help me.
android|textview|fill
1
2015-02-20T05:08:55.143Z
2,015
2
5
4
1,124
1
299
55
3
0
false
false
false
false
false
false
low
28,622,009
Unable to open existing Android Studio project?
<p>I am trying to open an existing project developed on Android Studio. But it doesn't show me Android app folders.</p> <p>Can any of you please guide how do I open an existing project on Android Studio.</p>
I am trying to open an existing project developed on Android Studio. But it doesn't show me Android app folders. Can any of you please guide how do I open an existing project on Android Studio.
android-studio
1
2015-02-20T05:10:15.860Z
2,015
2
5
4
129
0
193
47
1
0
false
true
false
false
false
false
low
28,622,010
Is Android BluetoothLE support two way communication between glass and mobile?
<p>My Google Glass and Mobile supports Bluetooth LE.Can I use the Bluetooth LE for two way communication between Glass and mobile.I try to send an image from Glass to mobile and again send response to Glass using bluetooth LE.Is it possible to do this?</p>
My Google Glass and Mobile supports Bluetooth LE.Can I use the Bluetooth LE for two way communication between Glass and mobile.I try to send an image from Glass to mobile and again send response to Glass using bluetooth LE.Is it possible to do this?
android|bluetooth|bluetooth-lowenergy|android-bluetooth
0
2015-02-20T05:10:25.180Z
2,015
2
5
4
218
1
249
78
4
0
false
false
false
false
false
false
zero
28,622,036
Android NDK: Calling Java functions from C++
<p>I am very new to JNI and I am trying to figure out how certain things work before I port my C++ iOS code to it. I was successful in getting one of the NDK samples working in Android studio and I can see how Java is able to call C++ functions. </p> <p>I've been searching around and taking chunks of code, but I haven...
I am very new to JNI and I am trying to figure out how certain things work before I port my C++ iOS code to it. I was successful in getting one of the NDK samples working in Android studio and I can see how Java is able to call C++ functions. I've been searching around and taking chunks of code, but I haven't been able...
java|android|c++|android-ndk
9
2015-02-20T05:12:32.433Z
2,015
2
5
4
12,795
2
984
44
4
4
true
false
true
true
false
false
medium
28,622,146
Trying to download file to directory and android gives StrictModeViolation: policy=79 violation=1
<p>Background: I come across this from this book "The Busy Coder's Guide to Android Development" Source code location: <a href="https://github.com/commonsguy/cw-omnibus/tree/master/Internet/Download" rel="nofollow">https://github.com/commonsguy/cw-omnibus/tree/master/Internet/Download</a></p> <p>I am trying to build ...
Background: I come across this from this book "The Busy Coder's Guide to Android Development" Source code location: https://github.com/commonsguy/cw-omnibus/tree/master/Internet/Download I am trying to build a function to perform background download and this example seems to show what I need to learn. However, just by ...
android
2
2015-02-20T05:23:13.643Z
2,015
2
5
4
411
2
991
97
1
3
true
false
false
false
false
false
low
28,622,194
Android live streaming using wowza + libstreaming
<p>I wanted to stream live video with the help of the wowza server. Currently am using <code>libstreaming</code> along with wowza and it works fine. </p> <p>It works fine with WiFi. 4mbps speed. </p> <p>But Problem comes when it is connected to 3G, even when it is at least resolution -> <code>320x240</code>. It gets ...
I wanted to stream live video with the help of the wowza server. Currently am using libstreaming along with wowza and it works fine. It works fine with WiFi. 4mbps speed. But Problem comes when it is connected to 3G, even when it is at least resolution -> 320x240 . It gets pixelated, faded, and sometimes stops. Is ther...
java|android|wowza|libstreaming
1
2015-02-20T05:27:38.403Z
2,015
2
5
4
743
1
472
49
4
0
false
false
false
false
false
false
low
28,622,210
How to fix the "HD-Frontend" error in bluestack?
<p>Whenever I start my bluestack, they gave a error like <code>HD-Frontend &lt;vm-name&gt;</code>.</p> <p><img src="https://i.stack.imgur.com/aBn09.jpg" alt="enter image description here"></p>
Whenever I start my bluestack, they gave a error like HD-Frontend <vm-name> .
android
0
2015-02-20T05:28:32.447Z
2,015
2
5
4
3,852
1
77
48
1
0
false
false
true
false
false
false
zero
28,622,254
--core-library error with build tools android (Eclipse)[solved with android studio]
<p>I am trying to build an apk with <code>xmlParserAPIs-2.6.2.jar</code> <strong>using eclipse without Maven</strong>. But unfortunately it gives following error.</p> <pre><code>trouble processing "javax/xml/parsers/DocumentBuilder.class": Ill-advised or mistaken usage of a core class (java.* or javax.*) when not bui...
I am trying to build an apk with xmlParserAPIs-2.6.2.jar using eclipse without Maven . But unfortunately it gives following error. [CODE] look at this image for error - Image I follwed https://stackoverflow.com/a/11090774/1602333 and put this [CODE] Dx File Image in my build tools (21.1.2) dx file. But with no luck , e...
android|eclipse|build-tools|dx
0
2015-02-20T05:32:43.943Z
2,015
2
5
4
652
1
385
83
4
2
true
false
false
false
false
false
zero
28,622,262
WebView performs slowly when it is attached to WindowManager android
<p>I'm creating an app shows HTML5 video, for studying android programming, that uses Floating <code>WebView</code>.</p> <p>It performs very choppy even on device that has upgraded <code>WebView</code>. (I'm using lollipop-powered Nexus 5)</p> <p>While it is attached on Activity(not floating) it performs buttery smoo...
I'm creating an app shows HTML5 video, for studying android programming, that uses Floating WebView . It performs very choppy even on device that has upgraded WebView . (I'm using lollipop-powered Nexus 5) While it is attached on Activity(not floating) it performs buttery smooth. Even if it is floating, it performs smo...
android|webview
2
2015-02-20T05:33:08.040Z
2,015
2
5
4
793
2
902
68
2
1
true
false
false
false
false
false
low
28,622,325
How to insert a name with apstrophe in SQLite
<p>I am trying to insert <code>Gandhi's Salt March</code> as the Name in the Name column of my database. I have the following function to detect apostrophes in names and capitalize the starting character:</p> <pre><code>public static String toTitleCase(String givenString) { StringBuffer sb = null; if(gi...
I am trying to insert Gandhi's Salt March as the Name in the Name column of my database. I have the following function to detect apostrophes in names and capitalize the starting character: [CODE] The first System.out.println() results in the following: [CODE] In SQLite I get the following exception: [CODE] What is goin...
java|android|sql|sqlite
1
2015-02-20T05:38:23.387Z
2,015
2
5
4
138
4
421
45
4
3
true
false
false
false
false
false
low
28,622,392
Separate Crashlytics app entry for production and test
<p>Similar to <a href="https://stackoverflow.com/questions/16986753/how-to-disable-crashlytics-while-developing">this question</a>, how can I have two app entries in Crashlytics - one that reports production issues and another for regression testing or even beta testing issues?</p>
Similar to this question , how can I have two app entries in Crashlytics - one that reports production issues and another for regression testing or even beta testing issues?
android|crashlytics
4
2015-02-20T05:44:19.710Z
2,015
2
5
4
1,567
2
173
54
2
0
false
false
false
false
false
false
low
28,622,403
listSelector for Group Header and Child Layout in ExpandableListview not working android
<p>I am using <code>ExpandableListview</code> that displays data dynamically from server.</p> <p>I used selector for <code>Group Header</code> and <code>Child Layout</code>, but I can't notice any selector that reflects.</p> <p>Pls help me how to get this done.</p> <p>Thanks in advance.</p> <p>row_highlighter.xml</...
I am using ExpandableListview that displays data dynamically from server. I used selector for Group Header and Child Layout , but I can't notice any selector that reflects. Pls help me how to get this done. Thanks in advance. row_highlighter.xml [CODE] ExpandableListviewDemo.java [CODE] activity_demo.xml [CODE]
android|selector|expandablelistview
0
2015-02-20T05:45:20.810Z
2,015
2
5
4
1,817
1
312
88
3
3
true
false
false
false
false
false
zero
28,622,419
Hide Layout/View on ListView scroll up
<p><img src="https://i.stack.imgur.com/gkWYd.png" alt="enter image description here"></p> <p>Excuse my terrible paint skills, but that's a picture of my proposed layout. </p> <p>I would like the blue part to be a RelativeLayout. Underneath the blue RelativeLayout is a ViewPager with Tabs, each tab containing a ListVi...
Excuse my terrible paint skills, but that's a picture of my proposed layout. I would like the blue part to be a RelativeLayout. Underneath the blue RelativeLayout is a ViewPager with Tabs, each tab containing a ListView. What I'd like to do is be able to hide the blue layout as the user scrolls down the ListView, and r...
android|android-layout|listview|android-listview
0
2015-02-20T05:46:58.830Z
2,015
2
5
4
2,988
2
402
38
4
0
false
false
true
false
false
false
zero
28,622,456
How to review the selected item on spinner
<p>Here is my code for my spinner.. i want it to save to my database by using setText but theres no option for setting it into setText.. this is how i want it to save on my database <code>spinpstat.setText(student.status);</code> this is how i want it to declare in my <code>onClick(View view)</code> <code>student.statu...
Here is my code for my spinner.. i want it to save to my database by using setText but theres no option for setting it into setText.. this is how i want it to save on my database spinpstat.setText(student.status); this is how i want it to declare in my onClick(View view) student.status = spinpstat.getText.toString(); b...
android|android-spinner
0
2015-02-20T05:51:17.560Z
2,015
2
5
4
113
1
635
42
2
1
true
false
false
false
false
false
zero
28,622,549
Android: NullPointerException: cursoradapter, populating listview
<p>I have NullPointerException when i call method from ShowRecords class. It works fine when i have the same method in DBAdapter and i call it in ShowRecords class.</p> <p>Here is my DBAdapter class having method getAllMeter(). </p> <pre><code> //---------getting data from sqlite------------- public Cursor getAllMe...
I have NullPointerException when i call method from ShowRecords class. It works fine when i have the same method in DBAdapter and i call it in ShowRecords class. Here is my DBAdapter class having method getAllMeter(). [CODE] Here is my MeterAdapter class. when i call getAllMeter() from DBAdapter class. it works fine i ...
android|android-listview|nullpointerexception
-1
2015-02-20T05:59:16.183Z
2,015
2
5
4
249
1
550
65
3
5
true
false
false
false
false
true
negative
28,622,663
JSESSIONID=0000fWm58im_RcpQXmWI8LlDdvg:-1 what does ":-1" resembles to?
<p>I am trying to solve android session problem which i am facing with IBM Websphere server and when i logged response headers , JSESSIONID has ":-1" appended to it .What does ":-1" mean ?? </p>
I am trying to solve android session problem which i am facing with IBM Websphere server and when i logged response headers , JSESSIONID has ":-1" appended to it .What does ":-1" mean ??
android|session|servlets|websphere|jsessionid
1
2015-02-20T06:10:09.243Z
2,015
2
6
4
449
1
186
71
5
0
false
false
false
false
false
false
low
28,622,664
Android Update the file content of created file on Google Drive
<p>I have done Google drive integration and in integration i have created a file and write some text on the file and save it into the Login user's drive it is running fine but i want to to update the contents of the file i have created a save to drive, i have done allot of research but did not able to find the demo or ...
I have done Google drive integration and in integration i have created a file and write some text on the file and save it into the Login user's drive it is running fine but i want to to update the contents of the file i have created a save to drive, i have done allot of research but did not able to find the demo or any...
java|android|google-drive-android-api
1
2015-02-20T06:10:16.117Z
2,015
2
6
4
2,068
2
426
63
3
1
true
false
false
false
false
false
low
28,622,698
How to update a widget that depends on AsyncTask
<p>I am creating a widget that needs to make a network connection to update its information. </p> <p>I'm pretty much using Android Studio boilerplate template for Widgets, and its <code>onUpdate</code> method comes with this:</p> <pre><code>public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[...
I am creating a widget that needs to make a network connection to update its information. I'm pretty much using Android Studio boilerplate template for Widgets, and its onUpdate method comes with this: [CODE] where updateAppWidget is a static function. The problem is that I'm making use of AsyncTask to make a network c...
android|android-asynctask|android-widget
0
2015-02-20T06:13:20.327Z
2,015
2
6
4
472
1
964
48
3
2
true
false
false
false
false
false
zero
28,622,753
How to add TextWatcher on Editext which is created at Runtime (programmatically)?
<p>I want to use TextWatcher on EditText which is created at Runtime programmatically. But it is not working with EditText created at Runtime.</p> <p>I used Model class for UI elements to be add at Runtime. And a Controller class having arraylist to store objects of Model class, my code is below,</p> <p>MainActivity....
I want to use TextWatcher on EditText which is created at Runtime programmatically. But it is not working with EditText created at Runtime. I used Model class for UI elements to be add at Runtime. And a Controller class having arraylist to store objects of Model class, my code is below, MainActivity.java [CODE] Control...
android
0
2015-02-20T06:18:02.937Z
2,015
2
6
4
185
1
495
81
1
3
true
false
false
false
false
false
zero
28,622,759
How can I access files in res/raw folder or any other location in android?
<p>I posted a day ago similar question, but I simplified my problem here so hoping to get resolved. I think I know when reading a file with 'filename.ext', I use</p> <pre><code>InputStream inputStream = getResources().openRawResource(R.raw.filename); </code></pre> <p>But how I can access multiple files? I need a fun...
I posted a day ago similar question, but I simplified my problem here so hoping to get resolved. I think I know when reading a file with 'filename.ext', I use [CODE] But how I can access multiple files? I need a function looks like [CODE] Thanks!
java|android|file-io
0
2015-02-20T06:18:33.453Z
2,015
2
6
4
1,265
1
246
74
3
2
true
false
false
false
false
false
zero
28,622,786
Accessing Android Content Provider inside Webview
<p>In Android. How do you access Content Provider inside your webview. It is showing content uri as not defined </p> <pre><code>google.visualization.Query(CONTENT_URI, opt_options); </code></pre>
In Android. How do you access Content Provider inside your webview. It is showing content uri as not defined [CODE]
html|android-webview|android-sqlite|android-contentprovider
0
2015-02-20T06:20:30.190Z
2,015
2
6
4
647
1
115
49
4
1
true
false
false
false
false
false
zero
28,622,792
How to improve OpenCV face detection performance in android?
<p>I am working on a project in android in which i am using OpenCV to detect faces from all the images which are in the gallery. The process of getting faces from the images is performing in the service. Service continuously working till all the images are processed. It is storing the detected faces in the internal sto...
I am working on a project in android in which i am using OpenCV to detect faces from all the images which are in the gallery. The process of getting faces from the images is performing in the service. Service continuously working till all the images are processed. It is storing the detected faces in the internal storag...
android|c++|c|opencv
1
2015-02-20T06:20:55.933Z
2,015
2
6
4
4,647
2
857
60
4
1
true
false
true
false
false
false
low
28,622,797
How to show user if he has reached the destination in android?
<p>Recently, I have developed an app on travelling domain. The aim of this app is to show the user; the path from source to destination. When the user comes in the range of 25 meters range of the destination, the user gets a notification/ an alert stating that the destination is nearby. </p> <p><strong>What I tried to...
Recently, I have developed an app on travelling domain. The aim of this app is to show the user; the path from source to destination. When the user comes in the range of 25 meters range of the destination, the user gets a notification/ an alert stating that the destination is nearby. What I tried to achieve it: In the ...
android|geolocation
1
2015-02-20T06:21:16.157Z
2,015
2
6
4
629
3
1,066
62
2
0
false
false
false
false
false
false
low
28,622,816
Context.MEDIA_PROJECTION_SERVICE error while using MediaProjectionManager
<p>I am trying to use Media projection API to enable screen capturing ability in my app. I am not able to call getsystemservice in Android Studio. I am getting an error on Context.MEDIA_PROJECTION_SERVICE :Must be one of the context.power_service,context.window_service error. Any suggestions to get it working?? or why...
I am trying to use Media projection API to enable screen capturing ability in my app. I am not able to call getsystemservice in Android Studio. I am getting an error on Context.MEDIA_PROJECTION_SERVICE :Must be one of the context.power_service,context.window_service error. Any suggestions to get it working?? or why am ...
android
1
2015-02-20T06:22:48.603Z
2,015
2
6
4
489
1
342
73
1
0
false
false
false
false
false
false
low
28,622,822
android javax mail messaging exception could not connect to smtp host network unreachable
<p>I am new to Android development, trying to develop a simple app that sends email automatically using javax mail. I tried with several codes for both SSL &amp; TSL (port no 465 &amp; 587) with adding respective properties. But still it returns me with error <code>invalid IPv6 type or code from... ,messaging exception...
I am new to Android development, trying to develop a simple app that sends email automatically using javax mail. I tried with several codes for both SSL & TSL (port no 465 & 587) with adding respective properties. But still it returns me with error invalid IPv6 type or code from... ,messaging exception, could not conne...
android|jakarta-mail|socketexception
3
2015-02-20T06:23:14.723Z
2,015
2
6
4
780
0
530
89
3
3
true
true
false
false
false
false
low
28,622,844
How to change Parse push notification icon in android?
<p>In my application i have used parse cloud code for sending push notifications to user.By default notification icon used app icon.but I want to change notification icon . I used this below code in manifest xml </p> <pre><code>&lt;meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/n...
In my application i have used parse cloud code for sending push notifications to user.By default notification icon used app icon.but I want to change notification icon . I used this below code in manifest xml [CODE] But the icon will not change. Any way to achieve this??
android|parse-platform
4
2015-02-20T06:24:53.887Z
2,015
2
6
4
6,402
4
271
54
2
1
true
false
true
false
false
false
low
28,622,980
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.namecardlistview.MainActivity}: java.lang.NullPointerException
<p>I am trying to create my own Android app but am having errors</p> <p>Logcat:</p> <pre><code>02-20 05:51:45.955: I/DB(2527): Database opened 02-20 05:51:46.555: I/DB(2527): Returned 3 rows 02-20 05:51:46.595: D/AndroidRuntime(2527): Shutting down VM 02-20 05:51:46.647: W/dalvikvm(2527): threadid=1: thread exiting w...
I am trying to create my own Android app but am having errors Logcat: [CODE] MainActivity: [CODE] I just started using stackoverflow so i have no idea what i am supposed to do. so just tell me whatever code you need. Also, is there a easier way to create a code block other than putting 4 spaces for all the lines? EDIT:...
java|android
-2
2015-02-20T06:36:04.253Z
2,015
2
6
4
2,827
1
416
141
2
4
true
false
true
false
false
true
negative
28,622,988
Do I need REST for a web service that requires no authenciation?
<p>Im confused regarding the need of REST for a web service.Im a noob when it comes to web service,the scalability etc.</p> <p>This is my requirement </p> <p>-Need to fetch some data eg:names of students in a class and their photographs plus their address and stuff</p> <p>-There is no authenciation/Tokens required s...
Im confused regarding the need of REST for a web service.Im a noob when it comes to web service,the scalability etc. This is my requirement -Need to fetch some data eg:names of students in a class and their photographs plus their address and stuff -There is no authenciation/Tokens required since the data is publicly av...
php|android|web-services|rest
0
2015-02-20T06:36:32.270Z
2,015
2
6
4
84
3
753
64
4
0
false
false
false
false
false
false
zero
28,623,019
Issues reading accelerometer data from Mpu9150
<p>I am trying to get accelerometer data from mpu9150 and pass it to android for screen rotation.</p> <p>My initialization is as follows:</p> <ol> <li>Reset Mpu9150</li> <li>Clear sleep bit</li> <li>Set Sample Rate Divider to 7 (for 1KHz)</li> <li>Set DLPD to 260Hz</li> <li>Configuring INT pin condition and enabling ...
I am trying to get accelerometer data from mpu9150 and pass it to android for screen rotation. My initialization is as follows: Reset Mpu9150 Clear sleep bit Set Sample Rate Divider to 7 (for 1KHz) Set DLPD to 260Hz Configuring INT pin condition and enabling Data Ready interrupt With this configuration I am able to get...
android|linux|accelerometer|android-sensors|mpu
1
2015-02-20T06:39:22.243Z
2,015
2
6
4
160
0
830
46
5
1
true
true
false
false
false
false
low
28,623,083
Getting position value 0 while retrieving
<p>hi i'm passing the value of <strong>Context,Actionmode,list and position</strong> in my class Topratedfragment.java through a function Actionmodecallback And while retrieving the values in function i am getting all values fine except the value of position when i'm trying to save its value in my global variable of ...
hi i'm passing the value of Context,Actionmode,list and position in my class Topratedfragment.java through a function Actionmodecallback And while retrieving the values in function i am getting all values fine except the value of position when i'm trying to save its value in my global variable of class . and i'm sorry ...
java|android|function|listview
1
2015-02-20T06:44:55.373Z
2,015
2
6
4
64
0
670
41
4
3
true
true
false
false
false
false
low
28,623,138
web view is not working in android
<p>I trying to create a new browser for android using eclipse. I had added webview, edit text and button to my browser app...</p> <p>and in MainActivity.java :</p> <pre><code>public class MainActivity extends Activity implements OnClickListener { ImageButton btngo; EditText eturl; WebView wvbrowser; protecte...
I trying to create a new browser for android using eclipse. I had added webview, edit text and button to my browser app... and in MainActivity.java : [CODE] What should do to get correct output...???? ANy help...???
java|android
-1
2015-02-20T06:48:27.837Z
2,015
2
6
4
48
1
215
34
2
1
true
false
false
false
false
true
negative
28,623,184
How to call REST services using HTTP methods to download an excel file?
<p>I am trying to call the REST Web Services from Android in order to download excel files located on server. Currently, I am able to fetch the files from rest services but am unable to call rest services from android using HttpURL connection. When I try to run the app on emulator, Its shutting down,This is my code</p>...
I am trying to call the REST Web Services from Android in order to download excel files located on server. Currently, I am able to fetch the files from rest services but am unable to call rest services from android using HttpURL connection. When I try to run the app on emulator, Its shutting down,This is my code [CODE]...
android|excel|rest|download
0
2015-02-20T06:51:40.400Z
2,015
2
6
4
157
0
393
71
4
1
true
true
false
false
false
false
zero
28,623,205
Error parsing data org.json.JSONException: Value UPDATE of type java.lang.String cannot be converted to JSONObject
<p>I am making an android application that connects to an external mysql database and i fetch the images from database successfully. when i click on the single item it will open another activity with selcted item data with update button.i successfuly retrive the data.but when i click update button it shows the bellow e...
I am making an android application that connects to an external mysql database and i fetch the images from database successfully. when i click on the single item it will open another activity with selcted item data with update button.i successfuly retrive the data.but when i click update button it shows the bellow erro...
android
-4
2015-02-20T06:52:30.073Z
2,015
2
6
4
842
1
616
114
1
3
true
false
false
false
false
true
negative
28,623,275
Tesseract OCR Build Issue on Windows
<p>I have Windows 8.1, Android Studio and NDK installed.</p> <p>I am making an OCR android app and following this tutorial <a href="http://www.codeproject.com/Tips/840623/Android-Character-Recognition" rel="nofollow">http://www.codeproject.com/Tips/840623/Android-Character-Recognition</a></p> <p>I am facing a problem...
I have Windows 8.1, Android Studio and NDK installed. I am making an OCR android app and following this tutorial http://www.codeproject.com/Tips/840623/Android-Character-Recognition I am facing a problem at building the project . I updated my PATH in System Variables to “C:\Program Files\Java\jdk1.8.0_25\bin;D:\Softwar...
java|android|android-studio|android-ndk|tesseract
-2
2015-02-20T06:57:23.940Z
2,015
2
6
4
1,018
2
760
36
5
1
true
false
false
false
false
true
negative
28,623,333
How to make date toast in image gallery while scrolling?
<p>I have created a sample gallery application using grid view and now i would like to add a toast with date of file created with the images like moto g,</p> <p><a href="http://media2.giga.de/2014/01/moto-g-motorola-gallery-app.jpg" rel="nofollow">Sample Image</a></p> <p>given below is the method used to get list of...
I have created a sample gallery application using grid view and now i would like to add a toast with date of file created with the images like moto g, Sample Image given below is the method used to get list of images, [CODE] and getview() method to display image, [CODE] Thanks in advance.
android|date|android-gridview|toast|image-gallery
0
2015-02-20T07:02:37.607Z
2,015
2
7
4
201
0
289
56
5
2
true
true
false
false
false
false
zero
28,623,378
How to display the duplicate phone number from call log ,contact list and inbox in android
<p>I want to retrieve the phone number from the call log, contact list and inbox to compare that number to a list and display it only once in a <code>listview</code>.</p> <p>I'm able to get contacts from call log, contact list and inbox but the problem is that I'm not able to compare the number from call log and the ...
I want to retrieve the phone number from the call log, contact list and inbox to compare that number to a list and display it only once in a listview . I'm able to get contacts from call log, contact list and inbox but the problem is that I'm not able to compare the number from call log and the contact list because the...
android|listview|duplicates|phone-number|calllog
-2
2015-02-20T07:05:24.947Z
2,015
2
7
4
609
1
485
90
5
1
true
false
false
false
false
true
negative
28,623,388
How to add bottom round icon like gmail application android?
<p><img src="https://i.stack.imgur.com/y6AsW.jpg" alt="enter image description here"></p> <p>i want to make view like this with a button at the bottom. how can i do it? i am new to material design. I tried RecyclerView but i don't know whats that button. </p>
i want to make view like this with a button at the bottom. how can i do it? i am new to material design. I tried RecyclerView but i don't know whats that button.
android|android-5.0-lollipop|material-design
-5
2015-02-20T07:06:13.227Z
2,015
2
7
4
728
2
161
60
3
0
false
false
false
false
false
true
negative
28,623,464
mail function in php not working with intent messages for android
<p>I am trying to open my app by clicking a link in mail. I tried it first by writing an html page and opened my app when I clicked on the href tag/link that connected my app. Everything worked fine, but when I tried to put the same html as a messagebody inside the mail function of php, it doesnot recognize the link wh...
I am trying to open my app by clicking a link in mail. I tried it first by writing an html page and opened my app when I clicked on the href tag/link that connected my app. Everything worked fine, but when I tried to put the same html as a messagebody inside the mail function of php, it doesnot recognize the link when ...
php|android|html|email|android-intent
2
2015-02-20T07:12:55.060Z
2,015
2
7
4
138
0
788
65
5
0
false
true
false
false
false
false
low
28,623,656
Android button onclick if dialog open close it else open it
<p>In my app i open dialog using a button onclick, Dialog open nicely if i press again same button i want close dialog.</p> <pre><code> final ImageButton topmenu = (ImageButton) findViewById(R.id.menu); topmenu.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View vi...
In my app i open dialog using a button onclick, Dialog open nicely if i press again same button i want close dialog. [CODE] If i press button again dialog not closed
android|button|if-statement
-1
2015-02-20T07:26:34.720Z
2,015
2
7
4
743
3
165
59
3
1
true
false
false
false
false
true
negative
28,623,690
Creating and Writing a file to the SD card...File Not Found exception is coming
<p>I'm trying to write a file on SD Card but I'm unable to do it. Can you help me debug the code?</p> <p>In the Method <code>WriteToFile</code> at this line it's getting exception <code>FileOutputStream fos = new FileOutputStream(fileWithinMyDir);</code>.</p> <pre><code>package utilities; import java.io.File; import...
I'm trying to write a file on SD Card but I'm unable to do it. Can you help me debug the code? In the Method WriteToFile at this line it's getting exception FileOutputStream fos = new FileOutputStream(fileWithinMyDir); . [CODE]
java|android
0
2015-02-20T07:28:55.210Z
2,015
2
7
4
230
1
227
79
2
1
true
false
false
false
false
false
zero
28,623,707
MQTT broker for Android
<p>Does anyone know of an MQTT broker that runs on an Android smartphone? I tried to Google and found nothing, and on the app store there seems to be only one app with just 10 downloads, so I'm not sure how well it works. </p>
Does anyone know of an MQTT broker that runs on an Android smartphone? I tried to Google and found nothing, and on the app store there seems to be only one app with just 10 downloads, so I'm not sure how well it works.
android|mqtt
11
2015-02-20T07:30:07.417Z
2,015
2
7
4
32,086
4
218
23
2
0
false
false
true
true
true
false
medium
28,623,745
Android - How to be the first to receive WAP PUSH (MMS)
<p>I would like to intercept incomming MMS to enable mobile data. For that, I need to intercept them before any other app.</p> <p>I have setup my intent filter to receive <code>WAP_PUSH_RECEIVED_ACTION</code> broadcasts with the highest possible priority.</p> <p>But, in the Android documentation (<a href="https://dev...
I would like to intercept incomming MMS to enable mobile data. For that, I need to intercept them before any other app. I have setup my intent filter to receive WAP_PUSH_RECEIVED_ACTION broadcasts with the highest possible priority. But, in the Android documentation ( https://developer.android.com/reference/android/pro...
android|push|broadcast|mms|wap
4
2015-02-20T07:33:32.820Z
2,015
2
7
4
5,769
1
845
55
5
0
false
false
true
false
false
false
low
28,623,779
Android http connection - multiple devices cannot connect the same server
<p>I really need help here...</p> <p>I have a simple Android application that connects to my sever to fetch data over HTTPS. </p> <p>Everything is working fine up until i connected to the same server from another device (iOS or Android). I am starting to get timeouts or connection refused or other errors depending on...
I really need help here... I have a simple Android application that connects to my sever to fetch data over HTTPS. Everything is working fine up until i connected to the same server from another device (iOS or Android). I am starting to get timeouts or connection refused or other errors depending on the library that I ...
android|http|keep-alive|httpconnection
4
2015-02-20T07:36:13.713Z
2,015
2
7
4
2,695
4
1,267
73
4
1
true
false
true
false
false
false
low
28,623,815
NullPointerException while trying to replace a fragment
<p>I am getting a javga.lang.NullPointerException while trying to replace a Fragment in my Activity. I use a FrameLayout as my host for the fragment to be placed in dynamically based on button clicks.</p> <p>Exception Stacktrace:</p> <pre><code>[AndroidRuntime] Shutting down VM [AndroidRuntime] FATAL EXCEPTION: main ...
I am getting a javga.lang.NullPointerException while trying to replace a Fragment in my Activity. I use a FrameLayout as my host for the fragment to be placed in dynamically based on button clicks. Exception Stacktrace: [CODE] Here's the code I am using to replace the fragment. [CODE] A thing to note is, if I try to pl...
android|android-fragments|xamarin|xamarin.android|mvvmcross
0
2015-02-20T07:39:23.420Z
2,015
2
7
4
180
1
695
55
5
2
true
false
false
false
false
false
zero
28,623,880
DataAPI much slower then MessageAPI?
<p>I'm synchronizing events between the wearable and the smartphone. Since I want that my events are recieved by the phone even if they are disconnected I started using the <a href="https://developer.android.com/training/wearables/data-layer/data-items.html">DataAPI</a> instead of the <a href="https://developer.android...
I'm synchronizing events between the wearable and the smartphone. Since I want that my events are recieved by the phone even if they are disconnected I started using the DataAPI instead of the MessageAPI , but now the "synchronization" takes about 1-2 seconds instead of 0.1-0.5 seconds (perceived timings). I'm transmit...
android|wear-os|android-wear-data-api
5
2015-02-20T07:44:22.130Z
2,015
2
7
4
577
2
752
36
3
0
false
false
false
false
false
false
low
28,624,007
Getting LatLng error to get direction?
<p>I try to get direction my current location and which i like to interest place and i used <a href="http://www.youtube.com/watch?v=pJguXeAk9OU" rel="nofollow">this</a> tutorial i have two button Marker and Direction when i click marker button my application will crush</p> <p><strong>My Main Java Class</strong></p> ...
I try to get direction my current location and which i like to interest place and i used this tutorial i have two button Marker and Direction when i click marker button my application will crush My Main Java Class [CODE] } Error in LogCat [CODE]
java|android|google-maps-markers|geocoding|direction
0
2015-02-20T07:52:51.083Z
2,015
2
7
4
138
0
245
38
5
2
true
true
false
false
false
false
zero
28,624,067
How to send data to server each 15 min time interval
<p>My requirement is I have to send longitude and latitude from Android to PHP server. I am able to get current latitude and and longitude using Service and <code>LocationListener</code>. I am also succeeded to send those data to PHP server using <code>AsyncTask</code>. But I could not call <code>AsyncTask</code> 15 mi...
My requirement is I have to send longitude and latitude from Android to PHP server. I am able to get current latitude and and longitude using Service and LocationListener . I am also succeeded to send those data to PHP server using AsyncTask . But I could not call AsyncTask 15 min interval.
android|android-asynctask
-1
2015-02-20T07:56:03.677Z
2,015
2
7
4
1,271
1
291
52
2
0
false
false
false
false
false
true
negative
28,624,069
How to enable transparent on screen keys in app on Android Lollipop?
<p>I saw this in a flashlight app on my nexus 5 the other day running Lollipop, and I now really want to implement it in some of the apps I am developing, but I can't seem to find any resources saying how to enable the transparent navigation keys.</p> <p>This is what I mean: <img src="https://i.stack.imgur.com/IcYUl.p...
I saw this in a flashlight app on my nexus 5 the other day running Lollipop, and I now really want to implement it in some of the apps I am developing, but I can't seem to find any resources saying how to enable the transparent navigation keys. This is what I mean: If someone could point me in the right direction I wou...
android
0
2015-02-20T07:56:11.070Z
2,015
2
7
4
184
1
342
68
1
0
false
false
false
false
false
false
zero
28,624,127
Mobile multiplatform app in windows 7 os and with visual studio 2012
<p>I have created website in visual studio 2012 for mobile and in android studio I have created web view to call my website ...android studio creates android file for android phone . now similarly I want to create windows and apple phone applications. is there any software or method through which I can convert my andr...
I have created website in visual studio 2012 for mobile and in android studio I have created web view to call my website ...android studio creates android file for android phone . now similarly I want to create windows and apple phone applications. is there any software or method through which I can convert my android ...
android|ios|windows-phone-8|hybrid-mobile-app
0
2015-02-20T07:59:15.617Z
2,015
2
7
4
49
1
442
68
4
0
false
false
false
false
false
false
zero
28,624,261
Android Gridview of Webviews: how avoid scrolling refresh
<p>I'm having a very annoying problem with a gridview of webviews in my application. I need to load an image from URL in each webview. The code seems to work quite well, but, when I scroll the gridview, the webviews always refresh giving an unpleasant effect. Moreover, if I scroll quickly and continuously, the gridview...
I'm having a very annoying problem with a gridview of webviews in my application. I need to load an image from URL in each webview. The code seems to work quite well, but, when I scroll the gridview, the webviews always refresh giving an unpleasant effect. Moreover, if I scroll quickly and continuously, the gridview so...
android|gridview|webview|refresh
0
2015-02-20T08:08:27.033Z
2,015
2
8
4
472
0
641
57
4
3
true
true
false
false
false
false
zero
28,624,337
Trying to implement StickyListHeaders and SwipeMenuListView on the same ListView in android
<p>I am trying to have a list view that has sticky headers as well as the ability to swipe left and have two options appear that are clickable. </p> <p>I need both but the MAIN problem I am having is that StickyListHeaders requires me to declare my ListView like this</p> <pre><code>&lt;se.emilsjolander.stickylisthead...
I am trying to have a list view that has sticky headers as well as the ability to swipe left and have two options appear that are clickable. I need both but the MAIN problem I am having is that StickyListHeaders requires me to declare my ListView like this [CODE] And SwipeMenuListView requires me to declare my listView...
android|listview|android-listview
3
2015-02-20T08:14:04.107Z
2,015
2
8
4
357
0
690
91
3
2
true
true
false
false
false
false
low
28,624,365
Media Controllers are not visible on the top of the surface view
<p>Media Controllers are not visible on the top of the surface view .I have tried almost all the options </p> <ol> <li><p>Surface View should disappear every time an channel is clicked from the list. </p></li> <li><p>Then the Flip animation for the background Images takes place.</p></li> <li><p>Then the Surface shou...
Media Controllers are not visible on the top of the surface view .I have tried almost all the options Surface View should disappear every time an channel is clicked from the list. Then the Flip animation for the background Images takes place. Then the Surface should be visible. The above three steps happen for every cl...
android|android-mediaplayer
2
2015-02-20T08:16:04.920Z
2,015
2
8
4
407
0
1,051
64
2
4
true
true
false
false
false
false
low
28,624,379
How to disable/suppress IDEA "Rendering problems" warnings
<p>IDEA keeps raising a popup with message &quot;Rendering Problems Missing styles. Is the correct theme chosen for this layout? …&quot;<br /> Yes, everything is correct, IDEA just doesn't see some symbols from AppCompat library.<br /> Is it possible to suppress these warnings? Because it's very annoying. (I want IDEA ...
IDEA keeps raising a popup with message &quot;Rendering Problems Missing styles. Is the correct theme chosen for this layout? …&quot; Yes, everything is correct, IDEA just doesn't see some symbols from AppCompat library. Is it possible to suppress these warnings? Because it's very annoying. (I want IDEA to just &quot;s...
android|android-layout|intellij-idea
11
2015-02-20T08:17:17.023Z
2,015
2
8
4
1,960
1
398
58
3
0
false
false
false
false
true
false
medium
28,624,394
How to use ACR35 NFC Reader in Android
<p>I'm new in developing with ACR or NFC Reader, especially for Android. And recently I need to use an ACR35 and I've got the SDK and the example from <a href="http://www.acs.com.hk/en/products/341/acr35-nfc-mobilemate-card-reader/" rel="nofollow">this acs official website</a>. And It works just fine as an example. And...
I'm new in developing with ACR or NFC Reader, especially for Android. And recently I need to use an ACR35 and I've got the SDK and the example from this acs official website . And It works just fine as an example. And now I need to create an activity that will always be ready to check whether nfc card is tapped. But th...
android|nfc
1
2015-02-20T08:18:15.440Z
2,015
2
8
4
2,816
2
616
38
2
0
false
false
true
false
false
false
low
28,624,407
to get value from the function to the global function
<p>here i'm having a function Actionmodecallback having 4 different parameters and i wants to store the value of position in my global variable but whenever i'm doing this the value comes out to be 0 always but the values of the other parameters is fine except the position variable </p> <pre><code>Context _context, _a...
here i'm having a function Actionmodecallback having 4 different parameters and i wants to store the value of position in my global variable but whenever i'm doing this the value comes out to be 0 always but the values of the other parameters is fine except the position variable [CODE]
java|android|function|parameters
0
2015-02-20T08:19:14.100Z
2,015
2
8
4
40
0
286
53
4
1
true
true
false
false
false
false
zero
28,624,438
My Custom Intents do not work. Seems flakey
<p>I am attempting to get one activity to launh another via an intent and intent filter. Here is what I have.</p> <p>In the launching activity:</p> <pre><code> Intent i = new Intent(); i.setAction("com.test.apps.CATAPP"); i.addCategory("com.test.apps"); this.startActivityForResult(i,APP_REQUEST_CODE); </code></pre...
I am attempting to get one activity to launh another via an intent and intent filter. Here is what I have. In the launching activity: [CODE] The intent filter in the receiving app: [CODE] This fails to work. However, if I take the example from Wei Meng Lee's Android 4 Development, it works and then only if the URI and ...
android|android-intent|intentfilter
0
2015-02-20T08:21:07.443Z
2,015
2
8
4
56
1
661
43
3
4
true
false
false
false
false
false
zero
28,624,490
AES 256 Cross platform Encryption
<p>I am working on the cross platform (IOS, ANDROID) <a href="https://github.com/Pakhee/Cross-platform-AES-encryption" rel="nofollow">AES 256 Encryption</a> Library. Now, when I try to add encryption to the image object it adds 16 bytes in iOS and around 8KB in Android. Here is the problem. Why is it so? Could anybody ...
I am working on the cross platform (IOS, ANDROID) AES 256 Encryption Library. Now, when I try to add encryption to the image object it adds 16 bytes in iOS and around 8KB in Android. Here is the problem. Why is it so? Could anybody explain me why is there a difference in such padding. Basically I am breaking the image ...
android|ios|encryption|aes
0
2015-02-20T08:24:47.437Z
2,015
2
8
4
677
0
547
33
4
0
false
true
false
false
false
false
zero
28,624,508
How to set the screens size of Grid view to match all screen sizes?
<p>Here i have used a gridview but it is not changing according to the screen size.I think there is a problem with height.the xml used for gridview is given below.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_w...
Here i have used a gridview but it is not changing according to the screen size.I think there is a problem with height.the xml used for gridview is given below. [CODE]
android|xml|gridview
0
2015-02-20T08:26:01.250Z
2,015
2
8
4
551
4
167
67
3
1
true
false
false
false
false
false
zero
28,624,542
android google drive api - query files return 0 file for the first time, second time it is ok
<p>I have android app which create file and read file on google drive (synchronization sql lite db between devices). Create file is running ok. Read file is ok too but only for second attempt. First time my query returns always 0. It looks like first time query check only local storage?</p> <p>Example: I create export...
I have android app which create file and read file on google drive (synchronization sql lite db between devices). Create file is running ok. Read file is ok too but only for second attempt. First time my query returns always 0. It looks like first time query check only local storage? Example: I create export from mobil...
android|google-drive-api|google-drive-android-api
4
2015-02-20T08:28:01.433Z
2,015
2
8
4
697
1
954
93
3
2
true
false
false
false
false
false
low
28,624,584
how do i read mifare classic tag first sector value?
<p>On my Main Activity i have to show the first sector block value of Mi-fare classic tag. when i hold new tag at mobile at that time app also show tag information. In my app i have to show only one activity.so please tell me how it is possible. Yet i tried all the tutorial but not getting proper info. My manifest code...
On my Main Activity i have to show the first sector block value of Mi-fare classic tag. when i hold new tag at mobile at that time app also show tag information. In my app i have to show only one activity.so please tell me how it is possible. Yet i tried all the tutorial but not getting proper info. My manifest code [C...
android
0
2015-02-20T08:31:02.693Z
2,015
2
8
4
159
0
324
52
1
1
true
true
false
false
false
false
zero
28,624,624
Sort contact list by name on Android, but special character first
<p>I have a contact in my contact list and her name is start with ♥ character, this character code is 9825. Every dialer &amp; contacts application show this item on the first place, but if I get the list in my app with this order:</p> <pre><code>ContactsContract.Data.DISPLAY_NAME + " ASC" </code></pre> <p>then this ...
I have a contact in my contact list and her name is start with ♥ character, this character code is 9825. Every dialer & contacts application show this item on the first place, but if I get the list in my app with this order: [CODE] then this contact will be the last. I also tried sort by Collections class but same resu...
android|sorting|special-characters|contacts
1
2015-02-20T08:34:15.497Z
2,015
2
8
4
584
0
449
65
4
1
true
true
false
false
false
false
low
28,624,753
Unresolved Statement - Using Toast in Android Studio
<p>I'm new with android programming and when I use the following code to show a toast on the android studio and there's the error "Unresolved statement"... what can I do to fix it ? (BTW I imported the toast library too)</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(s...
I'm new with android programming and when I use the following code to show a toast on the android studio and there's the error "Unresolved statement"... what can I do to fix it ? (BTW I imported the toast library too) [CODE]
java|android
-5
2015-02-20T08:42:33.620Z
2,015
2
8
4
1,363
5
224
52
2
1
true
false
false
false
false
true
negative
28,624,811
android show local html while no connection and if connection than load web url
<p>we have a regular webview loading a remote url. "while" there is no internet connection we want lo load a local html file, and every 3 sec. we have to check if there is a connection again. and in case of true we should load the remote url.</p> <p>we have already a class that checks the connection and gives us a boo...
we have a regular webview loading a remote url. "while" there is no internet connection we want lo load a local html file, and every 3 sec. we have to check if there is a connection again. and in case of true we should load the remote url. we have already a class that checks the connection and gives us a boolean back i...
java|android
-2
2015-02-20T08:46:23.683Z
2,015
2
8
4
863
1
397
79
2
1
true
false
false
false
false
true
negative
28,624,833
commit a class after having changed its name
<p>I am using Android Studio.</p> <p>I can't commit my class after having changed its name.</p> <p>I have a file <code>home.java</code>, I want to rename it into <code>Home.java</code></p> <p>I right click on the file name and <code>Refractor&gt;Rename</code></p> <p>Then I try to commit this file by doing a <code>r...
I am using Android Studio. I can't commit my class after having changed its name. I have a file home.java , I want to rename it into Home.java I right click on the file name and Refractor>Rename Then I try to commit this file by doing a right click > Git > Add And finally right click > Git > commit file But I have an e...
android|git|android-studio|git-commit
1
2015-02-20T08:47:55.163Z
2,015
2
8
4
282
2
333
44
4
1
true
false
false
false
false
false
low
28,624,838
Cocos2dx C++ Sending game data to a MySQL database on a remote server
<p>Creating a game for Android/Win32/WP8 using Cocos2dx written in C++.</p> <p>I want to send basic game statistics to a remote MySQL database so they can be viewed on a webpage. </p> <p>What I think will work:</p> <ul> <li>From the game on Android/Win32 use the cocos2dx network libraries to send a HTTP POST request...
Creating a game for Android/Win32/WP8 using Cocos2dx written in C++. I want to send basic game statistics to a remote MySQL database so they can be viewed on a webpage. What I think will work: From the game on Android/Win32 use the cocos2dx network libraries to send a HTTP POST request to the remote server with the dat...
php|android|c++|mysql|windows-phone-8
0
2015-02-20T08:48:08.923Z
2,015
2
8
4
769
1
737
69
5
0
false
false
false
false
false
false
zero
28,624,896
Android Studio doesn't show options for create android projects
<p>There is some problem with my android studio, as it not showing any option to create android apps. Help me out to reset it. I tried to delete it and re-install it but no good.</p>
There is some problem with my android studio, as it not showing any option to create android apps. Help me out to reset it. I tried to delete it and re-install it but no good.
android|android-studio|installation
-2
2015-02-20T08:51:27.463Z
2,015
2
8
4
2,916
2
175
63
3
0
false
false
true
false
false
true
negative
28,624,999
Rails - Google Cloud messaging rpush gem
<p>I am following the installation instruction of <a href="https://github.com/rpush/rpush" rel="nofollow">rpush</a> gem and I am done with migrations, then the next instruction says to write :</p> <pre><code>app = Rpush::Gcm::App.new app.name = "android_app" app.auth_key = "..." app.connections = 1 app.save! </code></...
I am following the installation instruction of rpush gem and I am done with migrations, then the next instruction says to write : [CODE] [CODE] I am new to rails so where exactly should i write this could and how to run it and connect it with the Android clients.
android|ruby-on-rails|ruby|google-cloud-messaging|server-push
1
2015-02-20T08:57:24.393Z
2,015
2
8
4
1,043
2
263
40
5
2
true
false
false
false
false
false
low
28,625,078
Android: get Listener PID
<p>In my Service I have a list of listeners (RemoteCallbackList) and I'm broadcasting some messages. Not every process is supposed to get the broadcast, so I'd like to filter them out. Is there a way to get PID of listening process from Listener itself?</p> <p>Currently in my registerNewListener method I get callingPi...
In my Service I have a list of listeners (RemoteCallbackList) and I'm broadcasting some messages. Not every process is supposed to get the broadcast, so I'd like to filter them out. Is there a way to get PID of listening process from Listener itself? Currently in my registerNewListener method I get callingPid and save ...
android|listener|pid
0
2015-02-20T09:02:20.663Z
2,015
2
9
4
146
0
474
25
3
0
false
true
false
false
false
false
zero
28,625,096
Phonegap / Cordova Export to CSV(or) Excel Programmatically
<p>I am developing a Phonegap Android application where I need to export data from the db to an Excel or CSV. And I want to read the data from an Excel or CSV file into my application.</p> <p>Is there any plugin to achieve this? Any idea or suggestion to acheive this?</p>
I am developing a Phonegap Android application where I need to export data from the db to an Excel or CSV. And I want to read the data from an Excel or CSV file into my application. Is there any plugin to achieve this? Any idea or suggestion to acheive this?
android|cordova|phonegap-plugins|cordova-plugins
2
2015-02-20T09:03:35.780Z
2,015
2
9
4
5,132
3
258
59
4
0
false
false
true
false
false
false
low
28,625,100
Fragment transaction animations lost when rotating screen
<p>I show animation when user navigates away from fragment. For that I am using <a href="http://developer.android.com/reference/android/support/v4/app/FragmentTransaction.html#setCustomAnimations(int,%20int,%20int,%20int)" rel="nofollow">setCustomAndimations</a> of support package.<br> "popEnter" and "popExit" work fin...
I show animation when user navigates away from fragment. For that I am using setCustomAndimations of support package. "popEnter" and "popExit" work fine, but they are lost after activity gets rotated, i.e. after rotation popping fragment happens without the animation. Fragment creation in activity: [CODE] Is there way ...
android|android-fragments|android-animation
3
2015-02-20T09:03:56.563Z
2,015
2
9
4
720
1
393
57
3
1
true
false
false
false
false
false
low
28,625,199
How to change the rows color in Listview on specific data from Sqlite
<p>I am showing all data/records of student in a single list view. Now at this point I am getting all data of students. I am getting student name,student roll number , address and their status (failed/Pass) 0 for fail and 1 for pass.</p> <p>I am getting it in a fine way . But now I wanted to change it instead of makin...
I am showing all data/records of student in a single list view. Now at this point I am getting all data of students. I am getting student name,student roll number , address and their status (failed/Pass) 0 for fail and 1 for pass. I am getting it in a fine way . But now I wanted to change it instead of making two diffe...
android|listview|android-arrayadapter
-2
2015-02-20T09:09:53.707Z
2,015
2
9
4
550
1
638
69
3
1
true
false
false
false
false
true
negative
28,625,235
Issue with use of onSaveInstanceState and onRestoreInstanceState
<p>Im using the below code in my shopping cart activity. when i added the items to cart, it shows the items in the cart. but when i open another activity and go back to the cart it shows null. then i found use of <code>onSaveInstanceState</code> and <code>onRestoreInstanceState</code>.. even after i use this code it sh...
Im using the below code in my shopping cart activity. when i added the items to cart, it shows the items in the cart. but when i open another activity and go back to the cart it shows null. then i found use of onSaveInstanceState and onRestoreInstanceState .. even after i use this code it shows null. can anyone point o...
android|onrestoreinstancestate
0
2015-02-20T09:12:10.177Z
2,015
2
9
4
366
1
576
64
2
1
true
false
false
false
false
false
zero
28,625,276
Soft Key Pad Push Frame Layout while Enter the text in Edit Box in android
<p>I have used <code>framelayout</code> to be shown one custom alert dialog box where i have used one fragment to replace the <code>framelayout</code> in one activity, Now i have been facing issues as push frame layout up on the screen while enter the text from the soft keypad. i have used </p> <pre><code>getActivity(...
I have used framelayout to be shown one custom alert dialog box where i have used one fragment to replace the framelayout in one activity, Now i have been facing issues as push frame layout up on the screen while enter the text from the soft keypad. i have used [CODE] this is working fine only when show the soft key pa...
android|fragment|android-softkeyboard|android-framelayout
1
2015-02-20T09:14:28.450Z
2,015
2
9
4
251
0
598
74
4
1
true
true
false
false
false
false
low
28,625,286
Directory exists on phone, but directory.exists() returns 'false'
<p>In my application I want to create a folder and a subfolder for my application on the external storage. I also check at application start whether these directories exist or not. If not, I create them.</p> <p>The problem I'm facing is that for the first folder <code>externalAppDirectory.exists()</code> returns <stro...
In my application I want to create a folder and a subfolder for my application on the external storage. I also check at application start whether these directories exist or not. If not, I create them. The problem I'm facing is that for the first folder externalAppDirectory.exists() returns true , for the subfolder it r...
java|android|file-io
0
2015-02-20T09:14:54.927Z
2,015
2
9
4
102
0
584
65
3
2
true
true
false
false
false
false
zero
28,625,298
get Text on TextView's background
<p>can any one tell me how to get background image over TextView's text like this </p> <p><img src="https://i.stack.imgur.com/JaW69.png" alt="enter image description here"></p> <p>i m able to get background image over TextView but image is showing below on textView like this <img src="https://i.stack.imgur.com/zT7...
can any one tell me how to get background image over TextView's text like this i m able to get background image over TextView but image is showing below on textView like this can anyone help me thanks in Advance
android|android-activity|textview
1
2015-02-20T09:15:25.333Z
2,015
2
9
4
217
5
211
33
3
0
false
false
false
false
false
false
low
28,625,313
Scale Android drawable to fill whole screen
<p>There is an an image set as a background for activity. I would like to scale an image so that it always fills the whole screen like in the example without excessive scaling. How to achieve it?</p> <p><img src="https://i.stack.imgur.com/nSx3W.png" alt="enter image description here"></p>
There is an an image set as a background for activity. I would like to scale an image so that it always fills the whole screen like in the example without excessive scaling. How to achieve it?
android|android-layout
-1
2015-02-20T09:16:14.617Z
2,015
2
9
4
133
1
192
43
2
0
false
false
false
false
false
true
negative
28,625,321
how to design custom material design views in android?
<p>I am developing an Android App. I am new to Android Material Design. Can anyone give me any lead on how to design custom material design views ?</p>
I am developing an Android App. I am new to Android Material Design. Can anyone give me any lead on how to design custom material design views ?
java|android|xml|android-layout|material-design
-1
2015-02-20T09:16:38.870Z
2,015
2
9
4
513
1
144
54
5
0
false
false
false
false
false
true
negative
28,625,342
package R does not exist when maven build my application?
<pre><code>Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-cli) on project New_Sample: Compilation failure [ERROR] workspace/New_Sample/src/main/java/com/samplepackge/New_Sample/HelloAndroidActivity1.java: [22,25] package R does not exist </code></pre> <p>HelloAndroi...
[CODE] HelloAndroidActivity1: [CODE] Is there any idea about this... am already tried previous suggestions but am not get exact solution,Please help me
java|android|eclipse|maven|r.java-file
0
2015-02-20T09:17:32.537Z
2,015
2
9
4
293
0
151
57
5
2
true
true
false
false
false
false
zero
28,625,505
Google Inbox like RecyclerView item open animation
<p>Currently, I'm trying to implement Google Inbox like <code>RecyclerView</code> behaivior, and I'm very curious about email opening animation.</p> <p>My question is: how to do that? I mean, which method they used? Did they use <code>ItemAnimator.dispatchChangeStarting()</code> and change it's height to fill parent? ...
Currently, I'm trying to implement Google Inbox like RecyclerView behaivior, and I'm very curious about email opening animation. My question is: how to do that? I mean, which method they used? Did they use ItemAnimator.dispatchChangeStarting() and change it's height to fill parent? Or something another? And if they do,...
java|android|material-design|google-inbox
13
2015-02-20T09:24:50.550Z
2,015
2
9
4
2,117
1
499
50
4
0
false
false
false
false
true
false
medium
28,625,523
How to write unit test case for onitemclick for list view using Robolectric
<p>Can anybody tell me how can I check that clicking on an item in list view is triggered properly using Robolectric test case?</p>
Can anybody tell me how can I check that clicking on an item in list view is triggered properly using Robolectric test case?
android|robolectric
-2
2015-02-20T09:25:32.787Z
2,015
2
9
4
508
1
124
75
2
0
false
false
false
false
false
true
negative
28,625,526
fragments - how to use them with activities that require actions?
<p>First - apologies for the newbie question.</p> <p>I'm trying to implement a Navigation Drawer that will be used across my app. To start, I've followed the Android tutorial and created a basic navigation which changes a with Fragments.</p> <p>I can pass a framelayout id and fragment to FragmentTransaction. It work...
First - apologies for the newbie question. I'm trying to implement a Navigation Drawer that will be used across my app. To start, I've followed the Android tutorial and created a basic navigation which changes a with Fragments. I can pass a framelayout id and fragment to FragmentTransaction. It works great. I decided t...
android|android-intent|android-fragments|navigation|navigation-drawer
0
2015-02-20T09:25:37.893Z
2,015
2
9
4
575
2
2,103
65
5
3
true
false
false
false
false
false
zero
28,625,627
Android NDK & FFMPEG : findLibrary returned null
<p>I am using this to build ffmpeg on ndk: <a href="http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9" rel="nofollow noreferrer"> roman10's android ndk r9d - ffmpeg tutorial</a></p> <p>The link shows how to compile, but its not clear how to use it. Can anybody guide me? Thanks.</p> <p>After ndk-build from my pr...
I am using this to build ffmpeg on ndk: roman10's android ndk r9d - ffmpeg tutorial The link shows how to compile, but its not clear how to use it. Can anybody guide me? Thanks. After ndk-build from my project root i was able to generate .so files inside libs/armeabi and obj/local/armeabi .. Now I am getting findLibrar...
android|android-ndk|ffmpeg
3
2015-02-20T09:31:39.297Z
2,015
2
9
4
3,011
4
516
48
3
4
true
false
true
false
false
false
low
28,625,682
Link on a Android textView
<p>I am trying to put a link on a <code>textview</code>, but when I click this link the application breaks!! This is my code:</p> <pre><code>final TextView msg = (TextView)view_aux.findViewById(R.id.accordion_msg); msg.setText(Html.fromHtml(dbStructure.getMsg())); msg.setTypeface(tF); msg.setTextColor(Color.DKGRAY); m...
I am trying to put a link on a textview , but when I click this link the application breaks!! This is my code: [CODE] Where dbStructure.getMsg() returns a String . This String could be something like: [CODE] lets child views specify their position relative to the parent view or to each other (specified by ID). So you c...
android|textview
0
2015-02-20T09:34:32.430Z
2,015
2
9
4
80
2
534
26
2
2
true
false
false
false
false
false
zero
28,625,702
GridView imageviews are cropped
<p>I have a GridView in my android app and in each cell I have two imageviews. The problem is that I have to set one of the imageviews gravity to center, and when I do this the imageview gets cropped. I wanted to ask if there is a way to keep the aspect ratio of the image and prevent it from being cropped.<br/> PS: if ...
I have a GridView in my android app and in each cell I have two imageviews. The problem is that I have to set one of the imageviews gravity to center, and when I do this the imageview gets cropped. I wanted to ask if there is a way to keep the aspect ratio of the image and prevent it from being cropped. PS: if I don't ...
android|gridview|imageview|scaletype
0
2015-02-20T09:35:34.943Z
2,015
2
9
4
404
1
513
31
4
1
true
false
false
false
false
false
zero
28,625,704
Simple framework XML binding with generic types
<p>I'm trying to implement a base class for binding from the following XML file.</p> <pre><code>&lt;BaseClass&gt; &lt;SUCCESS&gt;TRUE&lt;/SUCCESS&gt; &lt;MESSAGE&gt;TEST&lt;/MESSAGE&gt; &lt;CONTENT&gt; &lt;InfoList&gt; &lt;Info&gt; &lt;MESSAGE&gt;Test1&lt;/MESSAGE&gt; ...
I'm trying to implement a base class for binding from the following XML file. [CODE] Main Activity: [CODE] BaseClass.java [CODE] InfoList.java: [CODE] Information: [CODE] The XML example is an answer of an HTTP result, and it is standard for every result except for the CONTENT part. I want to implement the class such t...
android|generics|simple-framework
2
2015-02-20T09:35:40.323Z
2,015
2
9
4
740
0
726
47
3
5
true
true
false
false
false
false
low
28,625,749
Java - openCV - Area Selection on live camera feed
<p>I am trying to do a area selection to create a mask on the camera view provided by <strong>CameraBridgeViewBase</strong>. Is it possible? If yes how ? I tried to look in this forum and over the <strong>opencv.answers's</strong> forum site but there is no question of this type. If anybody can please help. Thank you. ...
I am trying to do a area selection to create a mask on the camera view provided by CameraBridgeViewBase . Is it possible? If yes how ? I tried to look in this forum and over the opencv.answers's forum site but there is no question of this type. If anybody can please help. Thank you.
java|android|opencv
0
2015-02-20T09:38:19.807Z
2,015
2
9
4
90
1
283
50
3
0
false
false
false
false
false
false
zero
28,625,755
Not retrieving email and location from facebook - permissions are approved
<p>Ok, so i am working on application which is implementing facebook login.</p> <p>I followed login tutorial on facebook page, implementation is fine and working with my facebook account and few other accounts(i already published my app on google play), but not all.</p> <p>Facebook approved my request for permissions...
Ok, so i am working on application which is implementing facebook login. I followed login tutorial on facebook page, implementation is fine and working with my facebook account and few other accounts(i already published my app on google play), but not all. Facebook approved my request for permissions, they are all live...
android|facebook|performance|facebook-graph-api
0
2015-02-20T09:38:40.737Z
2,015
2
9
4
151
1
790
74
4
2
true
false
false
false
false
false
zero
28,625,768
Nested Scroll Effect in android with backward compativility
<p><a href="https://www.youtube.com/watch?v=if9qBW_nIxM&amp;feature=youtu.be" rel="nofollow noreferrer">https://www.youtube.com/watch?v=if9qBW_nIxM&amp;feature=youtu.be</a></p> <p>i am working on Scrolling effect like default android calling App in lollipop.but i am not able to get smoothness like in default app.i am ...
https://www.youtube.com/watch?v=if9qBW_nIxM&feature=youtu.be i am working on Scrolling effect like default android calling App in lollipop.but i am not able to get smoothness like in default app.i am posted a link please check it.This is what i have achieved . [CODE] my requirement is
java|android|animation|scroll
2
2015-02-20T09:39:25.213Z
2,015
2
9
4
176
0
285
59
4
1
true
true
false
false
false
false
low
28,625,874
android studio resource identifier not found
<p>I am just doing my thing with the java files and everything, when 4 errors pop up when i try to run the app:</p> <pre><code>Error:(2) No resource identifier found for attribute 'versioncode' in package 'android' Error:(2) No resource identifier found for attribute 'versionname' in package 'android' Error:(9) No r...
I am just doing my thing with the java files and everything, when 4 errors pop up when i try to run the app: [CODE] So i try to edit these: [CODE] But it just goes back right after i try to start up. Any ideas? It says: files under the build folder are generated and should not be edited. So i found out i was in the wro...
java|android|android-studio
-2
2015-02-20T09:45:41.390Z
2,015
2
9
4
1,953
2
574
44
3
3
true
false
false
false
false
true
negative
28,625,902
How can I know what broke why an Android fragment won't load?
<p>I have an Android app with quite a few <code>activities</code> and even more <code>fragments</code>.</p> <p>I want to swap places of a <code>Button</code> and a <code>TextView</code>.</p> <p>Regardless of whether I move them in the <code>GUI editor</code>, or move the text in the <code>XML file</code>, it causes t...
I have an Android app with quite a few activities and even more fragments . I want to swap places of a Button and a TextView . Regardless of whether I move them in the GUI editor , or move the text in the XML file , it causes the app to crash when I open that fragment . How do I find out what goes wrong so that I can f...
android|android-fragments
0
2015-02-20T09:47:17.383Z
2,015
2
9
4
77
0
509
61
2
3
true
true
false
false
false
false
zero
28,625,955
Android notifications: have colors in small icon
<p>Since Lollipop, notification small icons are "masks" (only the alpha channel is used). I can verify this in the project I am working on: previously we had a colorful small icon, and it worked well on 4.4- devices but appeared as a white square on 5.0+ devices. (We updated the icon to fix this).</p> <p>But now I se...
Since Lollipop, notification small icons are "masks" (only the alpha channel is used). I can verify this in the project I am working on: previously we had a colorful small icon, and it worked well on 4.4- devices but appeared as a white square on 5.0+ devices. (We updated the icon to fix this). But now I see apps that ...
android|notifications|android-notifications|android-5.0-lollipop
4
2015-02-20T09:49:47.263Z
2,015
2
9
4
7,034
0
627
48
4
0
false
true
true
false
false
false
low
28,626,048
Android MediaPlayer slows down the code flow
<p>I am trying to create sound effects for a game. But with using of MediaPlayer when sound effect starts playing - the game slows down for a bit of a second. And if I use a lot of sound effects - the game really works struggles. I guess something is wrong with my realization.</p> <pre><code>protected void onDraw(C...
I am trying to create sound effects for a game. But with using of MediaPlayer when sound effect starts playing - the game slows down for a bit of a second. And if I use a lot of sound effects - the game really works struggles. I guess something is wrong with my realization. [CODE] Using short mp3 files
android|android-mediaplayer
0
2015-02-20T09:54:14.193Z
2,015
2
9
4
171
2
303
44
2
1
true
false
false
false
false
false
zero
28,626,059
getActionBar Showing null
<pre><code> public class Main_Activity extends Fragment_Activity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ViewPager pager = (ViewPager) findViewById(R.id.viewPager); ...
[CODE] I am using extends Fragment_Activity and i want action bar to be displayed but in my program getActionBar() is returning null
java|android
0
2015-02-20T09:54:40.890Z
2,015
2
9
4
72
3
132
25
2
1
true
false
false
false
false
false
zero
28,626,075
I'm using DateFormat (MMM dd H:mm) to get Jan 29 9:27 this result ,samsung S2 device showing (Jan 29 H:27) result ,It should return hour not H
<pre><code>if (!DateFormat.is24HourFormat(this.context)) { sB.append(DateFormat.format("MMM dd h:mm a", callingDate)); } else { sB.append(DateFormat.format("MMM dd H:mm", callingDate)); } </code></pre> <p>In first condition it is showing expected result <strong>(Jan 29 9:27)</strong> ,but in second condition it is s...
[CODE] In first condition it is showing expected result (Jan 29 9:27) ,but in second condition it is showing (Jan 29 H:27) result ,why it is showing capital H instead of hour in only Samsung S2 device. I have tested in other samsung device like s3, s4 ,s5 it is showing expected result , please guide me. Thanks
android|date-format|date-formatting
-1
2015-02-20T09:55:37.150Z
2,015
2
9
4
513
2
311
142
3
1
true
false
false
false
false
true
negative
28,626,144
android cannot access thread class
<p>//when i debug this code the compiler do not compiles ContactList.java so loop goes to infinite state</p> <p>// Contact.java class</p> <pre><code>rslt = "START"; ContactList.userid=getIntent().getStringExtra("userID").toString(); ContactList con = new ContactList(); con.joi...
//when i debug this code the compiler do not compiles ContactList.java so loop goes to infinite state // Contact.java class [CODE] where my ContactList.java is: [CODE] //this resp is came from my sql server database through .net webservice
java|android|web-services
0
2015-02-20T09:59:10.083Z
2,015
2
9
4
116
1
239
34
3
2
true
false
false
false
false
false
zero
28,626,181
How to prevent to close dialog when a user input error information and click "Save" button in Android
<p>I have setup a custom Preference that must launch a dialog with 3 TextViews to confirm and change a password. </p> <p>I hope that the dialog will not be closed and display a prompt information if a user input error information and click "Save" button, how can I do? Thanks!</p> <p>BTW, is it suitable to use Dialog...
I have setup a custom Preference that must launch a dialog with 3 TextViews to confirm and change a password. I hope that the dialog will not be closed and display a prompt information if a user input error information and click "Save" button, how can I do? Thanks! BTW, is it suitable to use DialogPreference control to...
android
0
2015-02-20T10:00:44.200Z
2,015
2
10
4
313
1
410
101
1
2
true
false
false
false
false
false
zero
28,626,186
crosswalk cordova android update project?
<p>how to solve? i am using Migrate an existing Cordova application to Crosswalk this command</p> <pre><code>android update project --subprojects --path . \ --target "android-19" </code></pre> <p>Show this error:</p> <pre><code> build.xml: Found version-tag: custom. File will not be updated. </code></pre>
how to solve? i am using Migrate an existing Cordova application to Crosswalk this command [CODE] Show this error: [CODE]
android|cordova|ant
5
2015-02-20T10:00:55.910Z
2,015
2
10
4
424
1
121
41
3
2
true
false
false
false
false
false
low