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,747,524
Error installing .apk from intent
<p>I'm downloading from a FTP server an .apk file to update my application. My relevant code is:</p> <pre><code>Intent intent = new Intent(Intent.ACTION_VIEW); File file = new File(context.getFilesDir() + "/" + filename); if (file.exists()) { intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.packa...
I'm downloading from a FTP server an .apk file to update my application. My relevant code is: [CODE] When the intent is launched (in the last line, context.startActivity(intent); ) it just say that there has been an error analyzing the package (or something like that, I'm not sure how the message is in english). The .a...
android|android-intent|apk
1
2015-02-26T16:22:40.403Z
2,015
2
16
3
182
1
394
33
3
1
true
false
false
false
false
false
low
28,747,556
How to parse custom roster query response in Android XMPP client with SMACK
<p>As for now I have very little understanding of XMPP and SMACK in general so please excuse me if my questions are imprecise. </p> <p>Upon login I receive packet with roster that looks as follows:</p> <pre><code>&lt;iq id="8CiUQ-1" type="result"&gt; &lt;query xmlns="jabber:iq:roster"&gt; &lt;item jid="625126...
As for now I have very little understanding of XMPP and SMACK in general so please excuse me if my questions are imprecise. Upon login I receive packet with roster that looks as follows: [CODE] I know this because I can see this packet printed to my logcat under SMACK tag. I need to access msgblock parameter. org.jives...
java|android|xmpp|smack
2
2015-02-26T16:24:22.567Z
2,015
2
16
3
715
1
927
75
4
3
true
false
false
false
false
false
low
28,747,590
is it possible to loop through the ids to findViewById android
<p>I Have a table created on the GUI but I'm stuck on looping through the IDs of the views as it is not a string that goes in the path. HELP anyone please! </p> <p>for example IDs are tMon9, tMon10, tMon11 etc...</p> <pre><code> String classgroup = "CO.DNET3"; int semester = 2; Timetable t = null; try...
I Have a table created on the GUI but I'm stuck on looping through the IDs of the views as it is not a string that goes in the path. HELP anyone please! for example IDs are tMon9, tMon10, tMon11 etc... [CODE]
java|android|xml|findviewbyid
-1
2015-02-26T16:25:52.323Z
2,015
2
16
3
597
1
208
62
4
1
true
false
false
false
false
true
negative
28,747,597
Android Emulator shows same output every time
<p>Being new to the <strong>Eclipse/Phonegap</strong> environment and <strong>Android</strong>, I have tried for days now (but to no avail) to understand as to why the emulator shows the same output every time I run an app.</p> <p>May it be some another app and may it's <em>index.html</em> or <em>homepage.html</em> fi...
Being new to the Eclipse/Phonegap environment and Android , I have tried for days now (but to no avail) to understand as to why the emulator shows the same output every time I run an app. May it be some another app and may it's index.html or homepage.html file contains different text, the output is the same as it was w...
android|eclipse|cordova|android-emulator|phonegap-build
0
2015-02-26T16:26:03.507Z
2,015
2
16
3
79
0
500
45
5
0
false
true
false
false
false
false
zero
28,747,647
Android Studio does not run in Elemtary OS
<p>I am new in Linux (I'm using Elementary OS) and I downloaded Android Studio but, when I trying to open it I get this</p> <pre><code>openjdk 6 is not supported. please use oracle java or newer openjdk. </code></pre> <p>I've read several information about this. I installed a newer openjdk but nothing happens.</p> <...
I am new in Linux (I'm using Elementary OS) and I downloaded Android Studio but, when I trying to open it I get this [CODE] I've read several information about this. I installed a newer openjdk but nothing happens. I'm counfused because in /usr/lib/jvm are a lot of folders` Sorry for the picture but the screencaptures ...
android|linux|ubuntu
0
2015-02-26T16:28:58.393Z
2,015
2
16
3
216
1
352
42
3
1
true
false
false
false
false
false
zero
28,747,697
How to read the screen lock type set by the user on Android?
<p>I have a device admin application. How can I programmatically read what is the active screen lock type set on the device whether by the user or any device admin?</p>
I have a device admin application. How can I programmatically read what is the active screen lock type set on the device whether by the user or any device admin?
android|android-activity|android-service
1
2015-02-26T16:31:02.077Z
2,015
2
16
3
50
0
161
60
3
0
false
true
false
false
false
false
low
28,747,839
Inlined icon links have weird behavior on (some) android devices
<p>So here is a tiny <a href="http://jsfiddle.net/1bjbyqxb/1/" rel="nofollow noreferrer">jsFiddle</a> :</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"&gt; &lt;style&gt; .navButton { font-size:30px; ...
So here is a tiny jsFiddle : [CODE] It behaves perfectly fine pretty much everywhere, but on my LG G2 and Galaxy Note 2 phones' native browser (it works fine on the Chrome app), when I press one of the right camera links, it displays a white rectangle which covers about half of the icon on the left of it, as follows (h...
android|html|css|icons|font-awesome
0
2015-02-26T16:37:24.257Z
2,015
2
16
3
184
1
986
64
5
1
true
false
false
false
false
false
zero
28,747,847
Connection between Android Server and Laptop Client using same wifi
<p>I want to connect android server application with laptop client java which connected on same wifi network.</p> <p>i try the following code.</p> <p>laptop client code</p> <pre><code> String IPToConnect="192.168.0."; int i=0; Socket skt; PrintWriter pw; try { for(i=105;i&lt;=199;i++) ...
I want to connect android server application with laptop client java which connected on same wifi network. i try the following code. laptop client code [CODE] and android server code [CODE] above code working fine for me i want the program working like this Android mobile app and laptop connected through same wifi netw...
java|android|networking|network-programming
0
2015-02-26T16:37:50.770Z
2,015
2
16
3
797
0
732
67
4
2
true
true
false
false
false
false
zero
28,747,943
Android: Casting serializable out of bundle fails in phone but not emulator
<p>long time listener, first time caller, so apologies if my formatting is terrible.</p> <p>TL/DR Version:</p> <p>Put serializable class[] into bundle/intent within my service. Send to main activity via BroadcastReceiver. When pulling object[] out of bundle and trying to cast back to my custom class, dump occurs on...
long time listener, first time caller, so apologies if my formatting is terrible. TL/DR Version: Put serializable class[] into bundle/intent within my service. Send to main activity via BroadcastReceiver. When pulling object[] out of bundle and trying to cast back to my custom class, dump occurs on my phone(MOTO Razr H...
android|service|broadcastreceiver|bundle|serializable
1
2015-02-26T16:42:27.603Z
2,015
2
16
3
536
1
3,110
75
5
3
true
false
false
false
false
false
low
28,748,064
I need help making my first Android app...I have some issues
<p>Need help with this code. When I click Settings item in the menu, it crashes. I have looked in the MainActivity.java file and I can't find the source of the problem. What can I do?? I am a beginner and I really want to make this work. If anyone can help that would be amazing.</p> <pre><code>package natanrosenfeld.t...
Need help with this code. When I click Settings item in the menu, it crashes. I have looked in the MainActivity.java file and I can't find the source of the problem. What can I do?? I am a beginner and I really want to make this work. If anyone can help that would be amazing. [CODE] }
android|text-editor
-3
2015-02-26T16:47:50.470Z
2,015
2
16
3
48
2
285
60
2
1
true
false
false
false
false
true
negative
28,748,094
JSON Array and Object into Table View with Java
<p>JSON looks like:</p> <pre><code> [{"pmid":"2","name":"MANAGEMENT","result":"1","properties":[{"prop_id":"32","prop_name":" Tower","address":"281 Lakeshore","city":"Euclid","state":"OH","zip":"44142","lat":"54.5","long":"-81.5034"}]},{"pmid":"1","name":"ONE","result":"18","properties":[{"prop_id":"3","prop_name":"...
JSON looks like: [CODE] Using Android Studio, trying to retrieve with: [CODE] After naming the nodes, I am retrieving the JSON with the following: [CODE] I am able to successfully retrieve into the TableView the first Array, Tower, with Lakeshore Address. But, I do not know how to get to the other pieces of JSON, the o...
java|android|json
1
2015-02-26T16:49:12.330Z
2,015
2
16
3
1,610
1
534
47
3
3
true
false
false
false
false
false
low
28,748,243
How to make users not to delete suffix in EditText?
<p>i create a form with an EditText that takes in input numberDecimal (i set <code>android:inputType="numberDecimal"</code> in related XML file) and i write the following activity that prevent inserting numbers with more than 2 decimal places (i used <code>.setFilters()</code>). In addition i set a suffix in the same E...
i create a form with an EditText that takes in input numberDecimal (i set android:inputType="numberDecimal" in related XML file) and i write the following activity that prevent inserting numbers with more than 2 decimal places (i used .setFilters() ). In addition i set a suffix in the same EditText and i would avoid th...
android|input|filter|android-edittext|cursor
0
2015-02-26T16:56:34.250Z
2,015
2
16
3
190
1
562
51
5
1
true
false
false
false
false
false
zero
28,748,265
ActionBarSherlock and appcompat_v7
<p>I have had an old application project that uses ActionBarSherlock. I have found it, and made a few changes to it. Now, I need to add new activities to the project, but when I try to do so, eclipse give me a lot of errors. The reason behind the errors is - I think - that the ActionBarSherlock and appcompat_v7 is inte...
I have had an old application project that uses ActionBarSherlock. I have found it, and made a few changes to it. Now, I need to add new activities to the project, but when I try to do so, eclipse give me a lot of errors. The reason behind the errors is - I think - that the ActionBarSherlock and appcompat_v7 is interfe...
android|eclipse|actionbarsherlock|android-appcompat
0
2015-02-26T16:57:32.193Z
2,015
2
16
3
102
1
584
34
4
0
false
false
false
false
false
false
zero
28,748,271
Updating ExpandableListView items with AsyncTask
<p>I apologize for my English but translated with google. I need help for my application, I'm using a <code>ExpandableListView</code> with <strong>3 different</strong> groups, 2 groups with <strong>static</strong> items and a group with items that it should to <strong>update</strong> after a <code>AsyncTask</code>. Whe...
I apologize for my English but translated with google. I need help for my application, I'm using a ExpandableListView with 3 different groups, 2 groups with static items and a group with items that it should to update after a AsyncTask . When I run the application the first time, the group with dynamic items is empty ,...
android|android-asynctask|expandablelistview|expandablelistadapter|notifydatasetchanged
0
2015-02-26T16:57:43.760Z
2,015
2
16
3
1,022
1
1,002
48
5
3
true
false
false
false
false
false
zero
28,748,361
Running a go program on Android?
<p>I have a go library that i want to run on android and use its methods in my android app. I could write the whole android app in go to make it easier to use this dependency. Is this possible? If so, how? </p>
I have a go library that i want to run on android and use its methods in my android app. I could write the whole android app in go to make it easier to use this dependency. Is this possible? If so, how?
android|go
13
2015-02-26T17:01:57.677Z
2,015
2
17
3
15,445
3
202
32
2
0
false
false
true
true
true
false
medium
28,748,450
SimpleCursorAdapter queries
<p>I have a process to create the content for a view that I'd like to defer until the view for that cursor row is visible. Processing the file with the initial filtered query could be problematic if there are far more results than visible.</p> <p>When a SimpleCursorAdapter has a cursor with many rows and it wants to ...
I have a process to create the content for a view that I'd like to defer until the view for that cursor row is visible. Processing the file with the initial filtered query could be problematic if there are far more results than visible. When a SimpleCursorAdapter has a cursor with many rows and it wants to generate a v...
android|android-contentprovider|simplecursoradapter
0
2015-02-26T17:05:38.830Z
2,015
2
17
3
47
1
403
27
3
0
false
false
false
false
false
false
zero
28,748,454
Android showing remaining time is different between devices
<p>I'm developing an Android app which terminates itself after a certain amount of time. I added a button to the actionbar and it's supposed to show remaining time to the user. Here's the code:</p> <pre><code>String srt = getResources().getString(R.string.remainingTime) + " "; DateFormat fmt = new SimpleDateFormat("HH...
I'm developing an Android app which terminates itself after a certain amount of time. I added a button to the actionbar and it's supposed to show remaining time to the user. Here's the code: [CODE] While testing it on AVD, the toast contains proper remaining time (like "00:44:32"), but on a phone the toast says "01:44:...
android|time|simpledateformat
0
2015-02-26T17:05:54.607Z
2,015
2
17
3
141
1
1,064
59
3
5
true
false
false
false
false
false
zero
28,748,675
How to give root permission for Catlog on Android
<p>I was trying to capture logs on my unrooted phone using <a href="https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&amp;hl=en" rel="nofollow">Catlog</a>. But I couldn't get the logs from the app that I am debugging because because Catlog don't have root permission. Is there any way to enable this p...
I was trying to capture logs on my unrooted phone using Catlog . But I couldn't get the logs from the app that I am debugging because because Catlog don't have root permission. Is there any way to enable this permission?
android|adb|logcat|android-logcat
1
2015-02-26T17:16:05.580Z
2,015
2
17
3
6,646
1
220
49
4
0
false
false
true
false
false
false
low
28,748,744
Corrupted Images From BitmapFactory
<p>Once in a while when I am downloading images, some of them will appear with gray lines as displayed in the sample image below: <img src="https://i.stack.imgur.com/bIwdh.png" alt="Example"></p> <p>This tends to happen exclusively on poor network conditions.</p> <p>My code for decoding images is essentially a modded...
Once in a while when I am downloading images, some of them will appear with gray lines as displayed in the sample image below: This tends to happen exclusively on poor network conditions. My code for decoding images is essentially a modded version of that from UIL: [CODE] where stream is just an InputStream to the remo...
android|bitmap|bitmapfactory|corrupt-data
3
2015-02-26T17:19:34.707Z
2,015
2
17
3
543
1
587
35
4
2
true
false
false
false
false
false
low
28,748,753
How to make a input type="file" field in a web page that is guaranteed to work in Android?
<p>I have a simple <code>&lt;input type="file"&gt;</code> in a web form (to be viewed in a browser) and I need it to work on Android (besides other mobile devices and desktop).</p> <p>Due to a well known but still unfixed bug in Android (<a href="https://code.google.com/p/android/issues/detail?id=53088" rel="nofollow"...
I have a simple <input type="file"> in a web form (to be viewed in a browser) and I need it to work on Android (besides other mobile devices and desktop). Due to a well known but still unfixed bug in Android ( https://code.google.com/p/android/issues/detail?id=53088 ), any such input field may miserably fail to work, b...
javascript|android|html|file-upload
1
2015-02-26T17:19:59.797Z
2,015
2
17
3
492
1
1,623
90
4
0
false
false
false
false
false
false
low
28,748,754
HAXM error but vt-x is enabled
<p>When I am installing Intel HAXM I have the following error:</p> <blockquote> <p>This computer meets the requirements for HAXM, but Intel Virtualization technology (VT-x) is not turned on. HAXM cannot be installed until VT-x is enabled.</p> </blockquote> <p>So, I have checked my BiOS, VT-x is supported, and I e...
When I am installing Intel HAXM I have the following error: This computer meets the requirements for HAXM, but Intel Virtualization technology (VT-x) is not turned on. HAXM cannot be installed until VT-x is enabled. So, I have checked my BiOS, VT-x is supported, and I enabled Intel virtualization (it wasn't before). I ...
android|android-studio|virtualization|intel|haxm
4
2015-02-26T17:20:02.997Z
2,015
2
17
3
23,109
5
625
30
5
0
false
false
true
true
false
false
low
28,748,757
How to get integers saved into SharedPreferences
<p>I have made a food calculator, which calculates calories (from food types) and weight (based on user input using EditText) and displays these in a TextView. How would I then take the value displayed in the textView and save it into an SharedPreference? </p>
I have made a food calculator, which calculates calories (from food types) and weight (based on user input using EditText) and displays these in a TextView. How would I then take the value displayed in the textView and save it into an SharedPreference?
java|android|android-studio|sharedpreferences
-1
2015-02-26T17:20:14.193Z
2,015
2
17
3
1,130
1
252
48
4
0
false
false
false
false
false
true
negative
28,748,812
External touch screen input only uses cursor coordinates
<p>I have a ViewSonic touch screen display connected to an Android PC (kernel 3.0.36+) via HDMI &amp; USB. The display shows everything correctly. Furthermore, the Linux kernel recognizes it.</p> <p>dmesg:</p> <pre><code>&lt;6&gt;[ 99.699034] usb 2-1.2.3: new full speed USB device number 8 using usb20_host &lt;6&...
I have a ViewSonic touch screen display connected to an Android PC (kernel 3.0.36+) via HDMI & USB. The display shows everything correctly. Furthermore, the Linux kernel recognizes it. dmesg: [CODE] The problem is that the screen, while I can touch anywhere, only registers the tap at the curser location (wireless keybo...
android|coordinates|touchscreen
1
2015-02-26T17:23:36.003Z
2,015
2
17
3
1,484
0
742
56
3
2
true
true
false
false
false
false
low
28,748,831
CreateProcess error=2 The system cannot find the file specified
<p>I have recently started using Android Studios and have already come up to a pretty irritating problem, help please.</p> <p>Error:org.gradle.internal.UncheckedException: java.io.IOException: Cannot run program "C:\Users\User\AppData\Local\Android\sdk1\build-tools\21.1.2\dx.bat": CreateProcess error=2, The system can...
I have recently started using Android Studios and have already come up to a pretty irritating problem, help please. Error:org.gradle.internal.UncheckedException: java.io.IOException: Cannot run program "C:\Users\User\AppData\Local\Android\sdk1\build-tools\21.1.2\dx.bat": CreateProcess error=2, The system cannot find th...
java|android|sdk
0
2015-02-26T17:24:21.137Z
2,015
2
17
3
6,407
1
336
63
3
0
false
false
true
false
false
false
zero
28,748,870
Disable buttons if textfield is empty on custom dialog
<p>Hi I have a custom dialog when new_post_message is clicked I want it to check it there is anything in edittext before and if nothing is entered to disable the button any help would be great. Thanks!</p> <pre><code>post_button.setOnClickListener(new View.OnClickListener() { @Override ...
Hi I have a custom dialog when new_post_message is clicked I want it to check it there is anything in edittext before and if nothing is entered to disable the button any help would be great. Thanks! [CODE]
android
0
2015-02-26T17:26:08.643Z
2,015
2
17
3
213
2
205
54
1
1
true
false
false
false
false
false
zero
28,748,903
Phonegap: GCM Push Notification registration call returns OK but device is not even connected to the internet
<p>I have followed <a href="http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/" rel="nofollow">this tutorial</a> and I have the following code:</p> <p>onDeviceReady I execute:</p> <pre><code>var pushNotification = window.plugins.pushNotification; pushNotification.registe...
I have followed this tutorial and I have the following code: onDeviceReady I execute: [CODE] The Handlers: [CODE] This code works perfectly if my device is connected to the internet on the first time I open the app. If my device is not connected the successHandler is being called with "OK" and the onNotificationGCM is ...
android|cordova|phonegap-plugins|phonegap-pushplugin
2
2015-02-26T17:27:37.683Z
2,015
2
17
3
1,737
1
586
109
4
2
true
false
false
false
false
false
low
28,748,905
Twoway view spannable grid layout parameters not working
<p>I'm using the twoway view for the first and i'm struggling to specify the layout attributes for the views. I have tow kinds of views, header and the episode.</p> <p>This is the xml of both: Show:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_margin="@di...
I'm using the twoway view for the first and i'm struggling to specify the layout attributes for the views. I have tow kinds of views, header and the episode. This is the xml of both: Show: [CODE] Header: [CODE] I set the height to be 54dp in the header and 160dp for the show but what i'm getting is this, it's always th...
android|android-recyclerview
0
2015-02-26T17:27:43.617Z
2,015
2
17
3
1,419
2
582
56
2
4
true
false
false
false
false
false
zero
28,749,014
how to import your own github forked library into android studio
<p>I found a nice open library on GitHub, I imported it into my Android Studio project using Gradle dependencies, but then I realized I need to make little modifications on it.</p> <p>So I forked the library on my GitHub, done the modifications and asked for a pull request, but I can't wait until they approve and merg...
I found a nice open library on GitHub, I imported it into my Android Studio project using Gradle dependencies, but then I realized I need to make little modifications on it. So I forked the library on my GitHub, done the modifications and asked for a pull request, but I can't wait until they approve and merge my modifi...
github|android-studio|gradle|android-gradle-plugin|android-library
33
2015-02-26T17:33:29.020Z
2,015
2
17
3
9,866
5
495
64
5
0
false
false
true
false
true
false
high
28,749,044
Using layout_above/layout_below does not yield expected results. Item dissapears
<p>I have the following code:</p> <p>grid_view_item.xml</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" android:orientation="vertical"&gt; &lt;RelativeLayout and...
I have the following code: grid_view_item.xml [CODE] Which yields this view: I want my item to look like this: So, I added this line in my CheckMark imageView code: [CODE] And the checkMark imageview just dissapears. Same for layout_below, as shown here: Can anyone help me in solving this problem? Cheers!
android|xml|image|android-relativelayout
0
2015-02-26T17:35:04.777Z
2,015
2
17
3
117
1
306
80
4
2
true
false
false
false
false
false
zero
28,749,051
Error calling a new class using the onBackPressed method
<p>I was trying to use the <code>onBackPressed()</code> method to open an activity that I need and close the existing one but the application close unexpectedly; I put a try catch if I can see the error but the variable "<code>e</code>" comes <code>null</code>, the only thing that show me something is the log, also I t...
I was trying to use the onBackPressed() method to open an activity that I need and close the existing one but the application close unexpectedly; I put a try catch if I can see the error but the variable " e " comes null , the only thing that show me something is the log, also I try to search for a solution that shows ...
android|android-studio|onbackpressed
0
2015-02-26T17:35:12.513Z
2,015
2
17
3
793
2
1,078
56
3
5
true
false
false
false
false
false
zero
28,749,140
Automatic saving of picture taken from android device to htdocs folder (xxamp)
<p>I am developing an android app to capture image and I want to save it directly to the htdocs in xxamp. How can I automatically save the picture in htdocs folder?. I want to save the image directly there so that I could easily store the filename in my mysql database and retrieve it when i want. I dont have any codes ...
I am developing an android app to capture image and I want to save it directly to the htdocs in xxamp. How can I automatically save the picture in htdocs folder?. I want to save the image directly there so that I could easily store the filename in my mysql database and retrieve it when i want. I dont have any codes yet...
php|android|mysql
0
2015-02-26T17:40:08.910Z
2,015
2
17
3
63
0
422
78
3
0
false
true
false
false
false
false
zero
28,749,165
Can I Lockdown iPad Browser to a Specific Web Application?
<p>I'm developing a Point-of-Sale solution to be deployed on an iPad. The application will be engineered as a web application. I've seen some great info on how to lock down the iPad to a specific application and so this gets me halfway to my solution; the application I lock down to will be the browser.</p> <p><a href=...
I'm developing a Point-of-Sale solution to be deployed on an iPad. The application will be engineered as a web application. I've seen some great info on how to lock down the iPad to a specific application and so this gets me halfway to my solution; the application I lock down to will be the browser. Lock-down iPhone/iP...
android|ipad|point-of-sale
0
2015-02-26T17:41:32.663Z
2,015
2
17
3
70
1
968
58
3
0
false
false
false
false
false
false
zero
28,749,176
Android material design confusion in listview
<p>I was designing a 2 line text layout for a listview row as the material design specifies. </p> <pre><code>Primary text font: Roboto Regular 16sp Secondary text font: Roboto Regular 14sp Tile height: 72dp Text padding, left: 16dp Text padding, top and bottom: 20dp </code></pre> <p>it is showing ok in the display of...
I was designing a 2 line text layout for a listview row as the material design specifies. [CODE] it is showing ok in the display of android studio design view but when I run it on my 7inch samsung tab, its being cropped like this I know if u move some dp from here to there then this problem will be fixed, but before th...
android|material-design
4
2015-02-26T17:42:16.537Z
2,015
2
17
3
2,507
1
443
45
2
1
true
false
false
false
false
false
low
28,749,316
Android ListFragment with custom CursorAdapter not showing data
<p>So basically I have a ListFragment setup like this</p> <pre><code>public class ObavijestiFragment extends ListFragment implements LoaderManager.LoaderCallbacks&lt;Cursor&gt; { private View mApiError; private ObavijestiAdapter mAdapter; private static String TAG="ObavijestiFragment"; public static ObavijestiFragmen...
So basically I have a ListFragment setup like this [CODE] Also, I implemented onActivityCreated and onLoadFinished like this [CODE] My cursor in onLoadFinished has 4 rows of data but non of this rows are shown in my ListView. Can somebody help me with this?? Also bindView or newView in my custom adapter that extends Cu...
android|android-listview|android-listfragment|android-cursoradapter
0
2015-02-26T17:49:12.100Z
2,015
2
17
3
1,008
1
1,148
63
4
4
true
false
false
false
false
false
zero
28,749,407
How to run XMPP server with GCM?
<p>I have implemented the <code>XMPP</code> server as described in the google api. The <code>main</code> function that was written is sending a downstream message. I used <code>while(true)</code> loop to keep the server running. I was wondering what is the best practice for keeping the server app awake and process mess...
I have implemented the XMPP server as described in the google api. The main function that was written is sending a downstream message. I used while(true) loop to keep the server running. I was wondering what is the best practice for keeping the server app awake and process messages. [CODE]
java|android|xmpp|google-cloud-messaging
2
2015-02-26T17:53:33.927Z
2,015
2
17
3
125
0
290
32
4
1
true
true
false
false
false
false
low
28,749,445
OpenCV logo detection - What to use?
<p>I want to create an Android application for logo detection. I want to ask you which approach would be better:</p> <ol> <li><p>Using feature detector and extractor and then findHomography();</p> <p>1.1 Which detector/extractor should I use? Is it necessary to use SURF or something else like ORB can give a good...
I want to create an Android application for logo detection. I want to ask you which approach would be better: Using feature detector and extractor and then findHomography(); 1.1 Which detector/extractor should I use? Is it necessary to use SURF or something else like ORB can give a good accuracy too? I'm asking because...
android|opencv|feature-detection|object-recognition|haar-classifier
4
2015-02-26T17:55:22.910Z
2,015
2
17
3
1,283
1
511
36
5
0
false
false
false
false
false
false
low
28,749,448
Xamarin Android Calendar Events
<p>I'm trying to implement calendar events in my app, and I was following example from xamarin site and their calander demo but it's not working. I can launch application and when I press button to add event nothing happens.Here is my code does anyone knows why it's not working.</p> <pre><code>using System; using Syst...
I'm trying to implement calendar events in my app, and I was following example from xamarin site and their calander demo but it's not working. I can launch application and when I press button to add event nothing happens.Here is my code does anyone knows why it's not working. [CODE] }
android|calendar|xamarin
1
2015-02-26T17:55:23.417Z
2,015
2
17
3
2,960
3
285
31
3
1
true
false
true
false
false
false
low
28,749,502
Android Studio Unexpected Content Storage Modification
<p>I am currently working on a project using Android development Studio. But everytime I try to create an application I keep on getting the error </p> <blockquote> <p>Java.lang.RuntimeException:java.io.IOException:java.lang.AssertionError: Unexpected Content Storage modification </p> </blockquote>
I am currently working on a project using Android development Studio. But everytime I try to create an application I keep on getting the error Java.lang.RuntimeException:java.io.IOException:java.lang.AssertionError: Unexpected Content Storage modification
java|android|android-developer-api
5
2015-02-26T17:58:19.287Z
2,015
2
17
3
3,040
4
255
54
3
0
false
false
true
false
false
false
low
28,749,514
Material Design suggestions for edit button for each item
<p>I wanted to add an edit button to each button in a list of items. Android action buttons should only be used once per view so those don't make sense. Is there any other way of doing it by following material guidelines? This button should be something that flies off and flies on depending on whether the overall edit ...
I wanted to add an edit button to each button in a list of items. Android action buttons should only be used once per view so those don't make sense. Is there any other way of doing it by following material guidelines? This button should be something that flies off and flies on depending on whether the overall edit but...
android|button
2
2015-02-26T17:58:56.673Z
2,015
2
17
3
1,473
2
342
57
2
0
false
false
false
false
false
false
low
28,749,539
getIntent error, doesnt get recognized
<p>getIntent does not get recognized, what I am doing wrong? </p> <p>I get this error:</p> <blockquote> <p>error: cannot find symbol variable getIntent</p> </blockquote> <p>PS: at first I got this error cannot find symbol method getIntent.</p> <p>My code:</p> <pre><code>package com.example.r.app; import android...
getIntent does not get recognized, what I am doing wrong? I get this error: error: cannot find symbol variable getIntent PS: at first I got this error cannot find symbol method getIntent. My code: [CODE]
android
3
2015-02-26T17:59:55.127Z
2,015
2
17
3
15,247
3
203
38
1
1
true
false
true
true
false
false
low
28,749,571
Samsung Pen text recognition returns errors for german language
<p>I am working on an Android App, that uses the Samsung Pen sdk to recognizes handwritten words. I worked through the tutorials and got the recognition to work, but when I use the german language instead of korean (which is used in the example) I get errors. The language is in the list of supported languages, so I don...
I am working on an Android App, that uses the Samsung Pen sdk to recognizes handwritten words. I worked through the tutorials and got the recognition to work, but when I use the german language instead of korean (which is used in the example) I get errors. The language is in the list of supported languages, so I don't ...
android|samsung-mobile-sdk|pen
0
2015-02-26T18:01:22.433Z
2,015
2
18
3
102
1
1,073
63
3
3
true
false
false
false
false
false
zero
28,749,603
Reading and changing value of a XML Node (Android)
<p>I'm going to try and explain my problem. What I have is an Android App, with a Map and Markers. Each time you press the a Marker I get the info of an XML file (Local File set in the raw folder), such as name and visited. I'm using DOM, because is the easiest way I know.</p> <p>What I'am trying to do is that everyti...
I'm going to try and explain my problem. What I have is an Android App, with a Map and Markers. Each time you press the a Marker I get the info of an XML file (Local File set in the raw folder), such as name and visited. I'm using DOM, because is the easiest way I know. What I'am trying to do is that everytime that the...
android|xml|google-maps
0
2015-02-26T18:03:06.350Z
2,015
2
18
3
138
0
720
50
3
3
true
true
false
false
false
false
zero
28,749,610
Mediaplayer, exoplayer and audio streaming
<p>I am working on an Android app that streams audio. I am currently using Android MediaPlayer. If I seek to a certain position in the audio file while streaming and at the same time seek to the same position in the same audio file that has been downloaded to my mac (using QuickTime Player), I don't come to the same au...
I am working on an Android app that streams audio. I am currently using Android MediaPlayer. If I seek to a certain position in the audio file while streaming and at the same time seek to the same position in the same audio file that has been downloaded to my mac (using QuickTime Player), I don't come to the same audio...
android|audio|streaming|android-mediaplayer|exoplayer
4
2015-02-26T18:03:22.887Z
2,015
2
18
3
4,885
1
1,036
42
5
0
false
false
true
false
false
false
low
28,749,664
Creating listener to move ImageView
<p>How to create listener for <code>x</code> and <code>y</code> coordinates and move <code>ImageView</code> object continuously on the screen?</p> <p>I have the <code>ImageView jajko</code> object and a thread that publishes <code>x</code> and <code>y</code> variables. I want my app to move <code>jajko</code> from the...
How to create listener for x and y coordinates and move ImageView object continuously on the screen? I have the ImageView jajko object and a thread that publishes x and y variables. I want my app to move jajko from the old location to the new one described by x and y . I am able to achieve this with some UI interaction...
android|animation|imageview
1
2015-02-26T18:06:58.193Z
2,015
2
18
3
289
2
389
35
3
0
false
false
false
false
false
false
low
28,749,717
Parse JSON into List in Android Studio [java]
<p>I'm new to Java, now I want to parse data from API Request. I have tested all the classes in JSONParse but no luck.</p> <p>I use the JSONParser class made by <a href="http://mrbool.com/how-to-use-json-to-parse-data-into-android-application/28944" rel="nofollow noreferrer">Mini Sharma</a></p> <p>and also I prepare...
I'm new to Java, now I want to parse data from API Request. I have tested all the classes in JSONParse but no luck. I use the JSONParser class made by Mini Sharma and also I prepare a JSON from URL it returns: [CODE] My approach: [CODE] I encounter the error when running this code. Here's the log: [CODE] and to be hone...
java|android|json
1
2015-02-26T18:10:08.150Z
2,015
2
18
3
610
3
371
45
3
3
true
false
false
false
false
false
low
28,749,747
How to display Strings from ArrayList in TextView
<p>I need to display current values in TextView (after removing String). I'm adding String when button is On and I need to remove it, when it's Off ( I don't know if I do it well), next I need to display Strings in TextView without deleted String. I need to display only Strings from On buttons. Here is my code:</p> <p...
I need to display current values in TextView (after removing String). I'm adding String when button is On and I need to remove it, when it's Off ( I don't know if I do it well), next I need to display Strings in TextView without deleted String. I need to display only Strings from On buttons. Here is my code: [CODE]
java|android|sharedpreferences|textview
1
2015-02-26T18:11:51.660Z
2,015
2
18
3
3,971
2
316
49
4
1
true
false
true
false
false
false
low
28,749,777
always display 3 buttons in a HorizontalScrollView
<p><img src="https://i.stack.imgur.com/lJLwZ.png" alt="3 buttons scrollview"></p> <p>Hello everyone I am trying to display 3 to X buttons on android. The idea is to always start with 3 buttons that takes each 33% of the size of the screen (width) And to be able to scroll <strong>Horizontaly</strong> through items.</p>...
Hello everyone I am trying to display 3 to X buttons on android. The idea is to always start with 3 buttons that takes each 33% of the size of the screen (width) And to be able to scroll Horizontaly through items. Also theses items will be added programmatically to the view. I tried to put a LinearLaout horizontal with...
android|button|horizontalscrollview|programmatically-created
2
2015-02-26T18:13:31.743Z
2,015
2
18
3
1,363
1
655
50
4
2
true
false
false
false
false
false
low
28,749,817
How do I specify a view for multiple platforms?
<p>This is hard to put into words. </p> <p>I have a <code>class LoginPage : Activity</code> which contains the usual View setup for Android like <code>OnCreate (Bundle bundle)</code> etc.</p> <p>But since this is a cross-platform project, I would like to generalize the structure of my view for each platform (iOS, Win...
This is hard to put into words. I have a class LoginPage : Activity which contains the usual View setup for Android like OnCreate (Bundle bundle) etc. But since this is a cross-platform project, I would like to generalize the structure of my view for each platform (iOS, Windows), so I wrote a public abstract class Logi...
c#|android|ios|inheritance|xamarin
0
2015-02-26T18:15:46.857Z
2,015
2
18
3
45
3
862
47
5
0
false
false
false
false
false
false
zero
28,749,831
Android: Issue while saving Hasmap in parse
<p>I am facing an issue while saving a HashMap on Parse and then retrieving it. Below is the code to put data in the ParseObject.</p> <pre><code>HashMap&lt;Object, Object&gt; eventInfo = new HashMap&lt;&gt;(); eventInfo.put(ParseTable.Column.AllDay, allday); JSONArray dateSet = new JSONArray(); JSONObject sdObj = new ...
I am facing an issue while saving a HashMap on Parse and then retrieving it. Below is the code to put data in the ParseObject. [CODE] Now when I get this data from the same object in which I have set it, its correct. [CODE] This also saves properly on server: [CODE] But when I retrieve the same data from Parse server, ...
android|parse-platform
0
2015-02-26T18:16:38.763Z
2,015
2
18
3
252
1
409
43
2
4
true
false
false
false
false
false
zero
28,749,913
fail import external libraries in Android Studio
<p>i'm working on my (multidex) android application and it seems the 1.1.0 AS update has broken my project structure. I'm using API Level 19 w. JDK 1.7.0_75 and build tools 21.1.2.</p> <p>problem is that AS cannot resolve any of my external libraries. The libs seems to be imported correctly, they're listed in the proj...
i'm working on my (multidex) android application and it seems the 1.1.0 AS update has broken my project structure. I'm using API Level 19 w. JDK 1.7.0_75 and build tools 21.1.2. problem is that AS cannot resolve any of my external libraries. The libs seems to be imported correctly, they're listed in the project windows...
android
0
2015-02-26T18:21:51.960Z
2,015
2
18
3
1,553
1
802
48
1
1
true
false
false
false
false
false
zero
28,750,082
How can i update a widget only when i press a button in an activity from within the main app
<p>I have made an app consisting of 5 activities . I just wanted to know how I could update a widget only when I press a button in the present in an activity in the main app </p>
I have made an app consisting of 5 activities . I just wanted to know how I could update a widget only when I press a button in the present in an activity in the main app
android|android-activity|android-widget
0
2015-02-26T18:31:40.630Z
2,015
2
18
3
294
1
170
92
3
0
false
false
false
false
false
false
zero
28,750,086
App crashes when I try to set the TextView
<p>I have this class I've named Scoreboard that looks like this:</p> <pre><code>public class Scoreboard { private int mScore = 0; private int mHighScore = 0; public void addPoint() { mScore += 1; } public int getHighScore() { return mHighScore; } public void setHighScore(int highScore) { mHighScore = hi...
I have this class I've named Scoreboard that looks like this: [CODE] And I have a piece of code in my acticity that manipulates this class everytime the user passes a ball through a rectangle's gap and changes the TextView accordingly to show the user the score: [CODE] Everytime I run the app it crashes whenever I try ...
java|android
0
2015-02-26T18:31:46.580Z
2,015
2
18
3
45
0
558
42
2
2
true
true
false
false
false
false
zero
28,750,088
Clear an Android application of all Activity's (above/launched by, and including the main launched one)
<p>I have a root activity which of necessity is defined <code>singleTop</code></p> <pre><code> &lt;activity android:name=".MyMainActivity" android:label="@string/app_name" android:launchMode="singleTop" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.ac...
I have a root activity which of necessity is defined singleTop [CODE] I have a notification that sends a broadcast to my foreground service telling it, and the Activity if it is bound to MyMainActivity , to stop. A widget can be touched to restore MyMainActivity to its previous state, hence the need for singleTop . The...
android|terminate|back-stack
0
2015-02-26T18:31:49.217Z
2,015
2
18
3
45
1
1,220
103
3
1
true
false
false
false
false
false
zero
28,750,109
Cursor to String
<p>I'm new to android, and I don't know why I am getting CursorIndexOutOfBoundsException: Index 0 requested with a size of 0. I'm trying to display it on another class using listview. Here are my codes:</p> <pre><code>public void onItemClick(AdapterView&lt;?&gt; arg0, View view, int position, long id) { //...
I'm new to android, and I don't know why I am getting CursorIndexOutOfBoundsException: Index 0 requested with a size of 0. I'm trying to display it on another class using listview. Here are my codes: [CODE] I know that there's something really wrong here. And I wonder what it is. Create Table: [CODE] Insert Table: [COD...
android|sqlite|cursor
0
2015-02-26T18:32:40.950Z
2,015
2
18
3
127
2
322
16
3
3
true
false
false
false
false
false
zero
28,750,261
How to test Configuration Change with Espresso 2.0
<p>I'm not really sure if it is event relevant, but I have a relatively complex custom <code>View</code>s and errors resulted by configuration changes pops up and I would definitely like to write tests for those and future cases.</p> <p>Currently I'm using <code>Robolectric</code> for unit tests and with 1.1.0 <code>A...
I'm not really sure if it is event relevant, but I have a relatively complex custom View s and errors resulted by configuration changes pops up and I would definitely like to write tests for those and future cases. Currently I'm using Robolectric for unit tests and with 1.1.0 AS started to use Espresso for UI tests. Es...
android|testing|robolectric|android-espresso
3
2015-02-26T18:41:18.393Z
2,015
2
18
3
4,061
2
477
50
4
0
false
false
true
false
false
false
low
28,750,267
Android - RenderScript - Performance drop in SDK 21
<p>I'm developing a project which requires complex Photoshop type blend effects. I am using custom <code>RenderScript</code> scripts to solve this.</p> <p>I've been testing it on a <code>Samsung Galaxy S4</code> device running <strong>Kitkat</strong>, and everything works great and very quickly.</p> <p>I then tried t...
I'm developing a project which requires complex Photoshop type blend effects. I am using custom RenderScript scripts to solve this. I've been testing it on a Samsung Galaxy S4 device running Kitkat , and everything works great and very quickly. I then tried testing it on a Nexus 5 running Lollipop , and I noticed a sud...
java|android|renderscript
3
2015-02-26T18:41:28.263Z
2,015
2
18
3
1,211
2
2,602
51
3
3
true
false
false
false
false
false
low
28,750,355
Android(Eclipse) deleting project completely
<p>Recently I found that after deleting project (in Eclipse) from <code>workspace</code> directory and from <code>&lt;workspace&gt;\.metadata\.plugins\org.eclipse.core.resources\.projects\</code> it still exist in emulator and I can simply run it. So how can I completely delete project?</p>
Recently I found that after deleting project (in Eclipse) from workspace directory and from <workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\ it still exist in emulator and I can simply run it. So how can I completely delete project?
android|project
1
2015-02-26T18:46:42.900Z
2,015
2
18
3
35
0
252
44
2
0
false
true
false
false
false
false
low
28,750,396
Remove/disable geofence from Google API client
<p>I was wondering of what's the best practice to remove/disable a Geofence from a Google API client. My first idea was to disable a geofence within the client, but it looks like we can only remove all the geofences or either add a list to the API client.</p> <p>Does that mean if I reference a list of geofences, and i...
I was wondering of what's the best practice to remove/disable a Geofence from a Google API client. My first idea was to disable a geofence within the client, but it looks like we can only remove all the geofences or either add a list to the API client. Does that mean if I reference a list of geofences, and if I want to...
android|google-api-client|geofencing|android-geofence
2
2015-02-26T18:49:11.940Z
2,015
2
18
3
9,052
3
496
46
4
0
false
false
true
false
false
false
low
28,750,402
Adjust line height of a text field with a fixed font size
<p>I have a textfield which whose font size for eg, is <code>14sp</code>. Can I set the text field's line height to be a fixed value, like maybe <code>18dp</code>? I cant seem to find a way to do this in android</p>
I have a textfield which whose font size for eg, is 14sp . Can I set the text field's line height to be a fixed value, like maybe 18dp ? I cant seem to find a way to do this in android
android|android-ui
0
2015-02-26T18:49:39.767Z
2,015
2
18
3
291
1
184
57
2
0
false
false
false
false
false
false
zero
28,750,417
Magnification based on touch location
<p>I'm having an issue developing a magnification based on touch location in Android. The result I want is similar to the older mac book application bar magnification; the icon where the mouse is hovered over is the largest magnified and the icons surround it slow scale down back to their original size. </p> <p>I've i...
I'm having an issue developing a magnification based on touch location in Android. The result I want is similar to the older mac book application bar magnification; the icon where the mouse is hovered over is the largest magnified and the icons surround it slow scale down back to their original size. I've included an i...
android|layout|image-scaling|magnification
0
2015-02-26T18:50:15.533Z
2,015
2
18
3
188
1
790
37
4
2
true
false
false
false
false
false
zero
28,750,457
How to pull data correctly with Android SDK 2.0.2 (Incremental sync)
<p>We have integrated the new version of Android SDK 2.0.2 with Offline Incremental Sync in our project cause the new features are very helpfull for us, but we have problems with pull action.</p> <p>More specifically, we get an unusual error (" E/SQLiteLog﹕ (1) too many SQL variables +++ LOG: malformed log message") f...
We have integrated the new version of Android SDK 2.0.2 with Offline Incremental Sync in our project cause the new features are very helpfull for us, but we have problems with pull action. More specifically, we get an unusual error (" E/SQLiteLog﹕ (1) too many SQL variables +++ LOG: malformed log message") from sqlite ...
android|azure-mobile-services
1
2015-02-26T18:52:20.953Z
2,015
2
18
3
127
0
468
68
2
0
false
true
false
false
false
false
low
28,750,508
Display horizontal and vertical images in imageview
<p>I am getting pictures from the sdcard in my app. I am using imageview to display image. However since I dont know if the image will be horizontal or vertical, how can I show horizontal or vertical image in imageview appropriately.Thanks</p> <pre><code> File img_file = new File(picture_path); bm = BitmapFact...
I am getting pictures from the sdcard in my app. I am using imageview to display image. However since I dont know if the image will be horizontal or vertical, how can I show horizontal or vertical image in imageview appropriately.Thanks [CODE] imageview xml [CODE]
android
1
2015-02-26T18:54:31.967Z
2,015
2
18
3
2,846
1
264
51
1
2
true
false
true
false
false
false
low
28,750,514
Error only when running on actual phone (not emulator)
<p>Making my app in Android Studio, I've been mostly running/testing it on the emulator. Well I'm pretty much done with it(I think), and I ran it on my phone, which I've done before much earlier on. Now when I get to one of my activities, I'm supposed to select a number of questions (quiz app) for a practice test I w...
Making my app in Android Studio, I've been mostly running/testing it on the emulator. Well I'm pretty much done with it(I think), and I ran it on my phone, which I've done before much earlier on. Now when I get to one of my activities, I'm supposed to select a number of questions (quiz app) for a practice test I want t...
android|android-emulator
0
2015-02-26T18:54:50.490Z
2,015
2
18
3
188
1
590
54
2
3
true
false
false
false
false
false
zero
28,750,536
LibGDX Sprite Not Rotating With Both "Rotate" and "setRotation"
<p>I am currently creating a game based on a platform that tilts side to side and there is a ball on that platform. For this ball I applied dynamic body physics and got it to work great, but when I try updating the ball's sprite rotation based on the ball's body angle the sprite will not rotate. </p> <p>My code is bel...
I am currently creating a game based on a platform that tilts side to side and there is a ball on that platform. For this ball I applied dynamic body physics and got it to work great, but when I try updating the ball's sprite rotation based on the ball's body angle the sprite will not rotate. My code is below. [CODE]
java|android|libgdx
0
2015-02-26T18:55:52.770Z
2,015
2
18
3
425
1
318
63
3
1
true
false
false
false
false
false
zero
28,750,656
Connecting and getting JSON response from an open API , HTTP
<p>I have been trying to figure this out on my own going trough tutorials, documentation and searching questions on SO and I cant find a solution. I have connected through tutorials but I have been trying to connect to a API. The <a href="https://github.com/owainlewis/exercise" rel="nofollow">Website</a>. I have been ...
I have been trying to figure this out on my own going trough tutorials, documentation and searching questions on SO and I cant find a solution. I have connected through tutorials but I have been trying to connect to a API. The Website . I have been trying to get a result but I don't have enough knowledge in this area t...
android|http|androidhttpclient
0
2015-02-26T19:02:48.167Z
2,015
2
19
3
1,102
1
569
60
3
2
true
false
false
false
false
false
zero
28,750,707
errors in values.xml while running AppCompat v7 r21 fire phone
<p>I get the following error: </p> <pre><code>C:\Users\amandeeg\AndroidStudioProjects\ImageFeeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\values-v11\values.xml Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. and many more lik...
I get the following error: [CODE] Following is the build.gradle (module) file: [CODE] and build.gradle(project): [CODE] This gradle file is set up as suggested in setting up dev env for fire phone plugin I am new to android and not sure how to get around this problem. I cannot take the advice suggested in this answer a...
android
1
2015-02-26T19:05:42.967Z
2,015
2
19
3
122
1
390
62
1
3
true
false
false
false
false
false
low
28,750,729
Converting json String to UTF-8
<p>I'm parsing data from web in json in gujarati language but when i receive it at android application it looks like</p> <pre><code>{"message":"Authorized","u_status":0,"c_Alert":0,"get_data":[{"id":"29","End":"2015-02-19","EntrTime":"2015-02-26","Content":"&amp;#2733;&amp;#2736;&amp;#2724;&amp;#2752;&amp;#2728;&amp;#...
I'm parsing data from web in json in gujarati language but when i receive it at android application it looks like [CODE] when i set any filtered text from json string it looks like [CODE] (i putted space because it shows perfect unicode in html code) but actually it is "&#2744;&#2765;&#2725;&#2739;" I know thats encodi...
android|json|unicode|utf-8
0
2015-02-26T19:06:40.277Z
2,015
2
19
3
9,715
4
673
31
4
4
true
false
true
false
false
false
zero
28,750,746
ExceptionInInitializerError Physics World
<p>I searched in a number of forums and it seems to be a common question. However i couldnt find a solution. I didnt do anything crazy so it seems stange that this happens. </p> <pre><code>@Override protected Scene onCreateScene() { Scene s = new Scene(); PhysicsWorld mWorld=new PhysicsWorld(new Vector2(0, Sen...
I searched in a number of forums and it seems to be a common question. However i couldnt find a solution. I didnt do anything crazy so it seems stange that this happens. [CODE] I dont have much more to say because i dont know much about Andengine so a dummies explanation would be apreciated. After adding what you said ...
android|andengine
1
2015-02-26T19:07:39.223Z
2,015
2
19
3
656
1
406
41
2
2
true
false
false
false
false
false
low
28,750,756
Values are not set on the custom adapter list view
<p>I have a listview with a custom adapter. I am trying to set value to the listview using an adapter. But the values are not being set at run time, but it was working when implemented with a simpleadapter. My custom Adapter code is as follows.</p> <pre><code> public class dataListAdapter extends SimpleAdapter { ...
I have a listview with a custom adapter. I am trying to set value to the listview using an adapter. But the values are not being set at run time, but it was working when implemented with a simpleadapter. My custom Adapter code is as follows. [CODE] This is how I set the values to the custom adapter.But the values are n...
android|listview|custom-adapter
0
2015-02-26T19:08:28.863Z
2,015
2
19
3
914
1
804
50
3
2
true
false
false
false
false
false
zero
28,750,864
Writing to Google Play Leaderboard API callback returns successfully but no scores are recorded
<p>I've implemented Google Play Services into my Unity-Android game using the plugin <a href="https://github.com/playgameservices/play-games-plugin-for-unity" rel="nofollow">here</a>. All other aspects of the API work fine, I can unlock achievements, authenticate sign ins, bring up the leaderboard UI. However, when I r...
I've implemented Google Play Services into my Unity-Android game using the plugin here . All other aspects of the API work fine, I can unlock achievements, authenticate sign ins, bring up the leaderboard UI. However, when I request for a score to be submitted, the API callback is successful, as evidenced by my Debug.Lo...
android|unity3d|google-play-services
1
2015-02-26T19:14:02.267Z
2,015
2
19
3
304
1
1,003
95
3
1
true
false
false
false
false
false
low
28,750,992
Android app, activity startup lag with viewpager
<p>So in my main activity, I have a <code>viewpager</code> with 4 pages. When starting the activity I have a async task that reads numerous files with a splash screen and <code>progressbar</code>, but then when its done and I start the view pager activity, due to the size of each fragment there is noticeable lag time w...
So in my main activity, I have a viewpager with 4 pages. When starting the activity I have a async task that reads numerous files with a splash screen and progressbar , but then when its done and I start the view pager activity, due to the size of each fragment there is noticeable lag time when transitioning. The only ...
android|android-fragments|android-asynctask|android-viewpager
2
2015-02-26T19:20:41.233Z
2,015
2
19
3
1,666
2
1,809
48
4
3
true
false
false
false
false
false
low
28,751,002
Foreign field class does not have id field
<p>I get errors with the entities below (probably because of the relationship One To Many), but I do not see how to fix the problem.</p> <p><strong>Course:</strong></p> <pre><code>@ForeignCollectionField(eager = true) Collection&lt;Grade&gt; grades; @DatabaseField(columnName = "ID", canBeNull = false) private long i...
I get errors with the entities below (probably because of the relationship One To Many), but I do not see how to fix the problem. Course: [CODE] Grade: [CODE] When launching the app and trying to fetch datas from database : Foreign field class Course does not have id field
java|android|ormlite
3
2015-02-26T19:21:50.830Z
2,015
2
19
3
1,617
1
273
42
3
2
true
false
false
false
false
false
low
28,751,101
FragmentManager add multiple instances of the same Fragment type
<p>I have the need to "stack up" fragments one on top of another. I do this by:</p> <pre><code> String className = fragment.getClass().getName(); FragmentManager fragmentManager = getChildFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); fragmentTransacti...
I have the need to "stack up" fragments one on top of another. I do this by: [CODE] Within: [CODE] This all works good as long as the fragments are of different type. However if I create a second instance of a fragment type that is already there then there is an exception: [CODE] How can I add multiple instances of the...
android|android-fragments|fragment|android-fragmentactivity
4
2015-02-26T19:27:37.957Z
2,015
2
19
3
3,874
2
520
64
4
3
true
false
true
false
false
false
low
28,751,111
"Invalid --abi armeabi-v7a for the selected target" with Google APIs
<p>I'm trying to update an Android project from using the API Level 19 SDK and build tools to the newest API Level 21, including the Google APIs. Everything was running fine on Travis prior to this update (for example, see <a href="https://travis-ci.org/OneBusAway/onebusaway-android/builds/52172085" rel="noreferrer">t...
I'm trying to update an Android project from using the API Level 19 SDK and build tools to the newest API Level 21, including the Google APIs. Everything was running fine on Travis prior to this update (for example, see this build ). When I run with the new API level I see the following error: [CODE] See this build for...
android|travis-ci
17
2015-02-26T19:28:06.173Z
2,015
2
19
3
12,602
2
496
68
2
2
true
false
true
true
true
false
medium
28,751,117
Only expandable listview showing up in activity
<p>I'm making an android app for an automatic salad machine. The app lets you choose your ingredients and such, and then sends it to the machine. I set up an activity with an expandable listview to hold the ingredients, but I also need a next button on the activity and a nutritional information box below it. I added th...
I'm making an android app for an automatic salad machine. The app lets you choose your ingredients and such, and then sends it to the machine. I set up an activity with an expandable listview to hold the ingredients, but I also need a next button on the activity and a nutritional information box below it. I added them ...
android|listview|android-listview|expandablelistview|expandablelistadapter
0
2015-02-26T19:28:22.283Z
2,015
2
19
3
580
1
592
47
5
3
true
false
false
false
false
false
zero
28,751,212
Making buttons clickable at new game in Android
<p>I'm new at Android development and doing a simple Hangman game.</p> <p>I have a gridview which is filled by buttons for each letter(A-Z). Each button becomes unclickable after clicked and when new word has openned i want to make them clickable again. How can i do this efficiently ? I dont want to keep each clicked ...
I'm new at Android development and doing a simple Hangman game. I have a gridview which is filled by buttons for each letter(A-Z). Each button becomes unclickable after clicked and when new word has openned i want to make them clickable again. How can i do this efficiently ? I dont want to keep each clicked buttons in ...
android|button|gridview
0
2015-02-26T19:33:40.150Z
2,015
2
19
3
73
1
363
47
3
0
false
false
false
false
false
false
zero
28,751,239
XML Preload File in Android
<p>I need to preload an XML file (that I created before), that I need to modify and edit later in my application. Where should I copy this file, in wich folder? Should I copy later into a /sdcard/ folder? </p> <p>How can I copy it when the program is started for the first time? only for this first time. </p> <p>Need ...
I need to preload an XML file (that I created before), that I need to modify and edit later in my application. Where should I copy this file, in wich folder? Should I copy later into a /sdcard/ folder? How can I copy it when the program is started for the first time? only for this first time. Need to mention that I'm g...
android|xml
0
2015-02-26T19:35:44.520Z
2,015
2
19
3
258
1
414
27
2
0
false
false
false
false
false
false
zero
28,751,253
Maven and Android natures not playing nice together
<p>I have an existing Android project in Eclipse which I recently decided I need to convert to a Maven enabled project so that I can build an AAR. By clicking Configure -> Convert to Maven Project, I was able to get a POM added. I then added a parent POM as well, and POM's for any dependent library projects. I added th...
I have an existing Android project in Eclipse which I recently decided I need to convert to a Maven enabled project so that I can build an AAR. By clicking Configure -> Convert to Maven Project, I was able to get a POM added. I then added a parent POM as well, and POM's for any dependent library projects. I added the a...
java|android|eclipse|maven
0
2015-02-26T19:36:49.243Z
2,015
2
19
3
202
1
1,305
51
4
0
false
false
false
false
false
false
zero
28,751,261
findViewById - Cannot resolve method
<p>I am new to android programming. This is my first app. I am trying to understand the best practice or way to use Async task.</p> <p>scenario- I need to get data over HTTP and display it on app home screen.</p> <p>main Class - Draws some basic stuff on screen and calls Async class. Async class - get data from strin...
I am new to android programming. This is my first app. I am trying to understand the best practice or way to use Async task. scenario- I need to get data over HTTP and display it on app home screen. main Class - Draws some basic stuff on screen and calls Async class. Async class - get data from strings.xml, send it ove...
android|view|android-asynctask
-2
2015-02-26T19:37:23.923Z
2,015
2
19
3
732
2
554
36
3
0
false
false
false
false
false
true
negative
28,751,345
Android Swipe View with tabs, fragments and ListView
<p>I am facing problem with my android app and I cannot find working solution for this particular problem - I am starting to believe that it is not possible to achive what I try to do.</p> <p>I want to have an app with tabs (DONE!). I want to swipe through those tabs with finger gesture (partialy done) and I want to d...
I am facing problem with my android app and I cannot find working solution for this particular problem - I am starting to believe that it is not possible to achive what I try to do. I want to have an app with tabs (DONE!). I want to swipe through those tabs with finger gesture (partialy done) and I want to display diff...
android|listview|android-fragments|tabs|swipe
0
2015-02-26T19:42:16.380Z
2,015
2
19
3
1,131
0
1,037
52
5
4
true
true
false
false
false
false
zero
28,751,376
What is the difference between android:uses-permission and uses-permission?
<p>What is the difference between these two syntaxes. <code>android:uses-permission</code> and <code>uses-permission</code>. For example:</p> <pre><code>&lt;android:uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="18" /&gt; &lt;uses-permission android:name="android.pe...
What is the difference between these two syntaxes. android:uses-permission and uses-permission . For example: [CODE] The first one was automatically added to the manifest by Android Studio when I created an activity that reads from storage. Also why did it add an android:maxSdkVersion attribute and specifically set it ...
android|android-layout|android-studio|android-manifest|android-permissions
9
2015-02-26T19:44:17.390Z
2,015
2
19
3
2,221
1
381
75
5
1
true
false
false
false
false
false
medium
28,751,384
How may I delete using Titanium with Alloy Framework?
<p>I am trying to delete only one record using Alloy framework:</p> <p>I created in my controller .js this code to show the variables I got from a ListView:</p> <pre><code>var args = arguments[0] || {}; $.titleLabel.text = args.titulo || 'Default Title'; $.authorLabel.text = args.author || 'Default Author'; </code></...
I am trying to delete only one record using Alloy framework: I created in my controller .js this code to show the variables I got from a ListView: [CODE] And I have created this function for deleting: [CODE] And I invoke the function with a button, however I get this error: [CODE] I just want to be able for deleting re...
javascript|android|titanium|titanium-alloy|sql-delete
1
2015-02-26T19:44:56.357Z
2,015
2
19
3
533
2
337
53
5
3
true
false
false
false
false
false
low
28,751,500
How to relogin and check is session has exired in android?
<p>I have a login feature and when user logs in I am saving the data in Shared Preferences. </p> <p>In my situation I am uploading data randomly to the server and getting data from the server. I have the login details but I want to know if the session has time out or not so that I login again. Do I relogin or have a t...
I have a login feature and when user logs in I am saving the data in Shared Preferences. In my situation I am uploading data randomly to the server and getting data from the server. I have the login details but I want to know if the session has time out or not so that I login again. Do I relogin or have a timer for the...
android
1
2015-02-26T19:51:44.520Z
2,015
2
19
3
107
2
329
58
1
0
false
false
false
false
false
false
low
28,751,528
Android network reachability (offline mode)?
<p>So I am calling few different web services in my app but I want to check if the device is able to connect to internet before service is called.</p> <p>First I created a static Flag.</p> <p><code>public static bool IsOfflineMode = false;</code></p> <p>And before each service is called, I add the following:</p> <p...
So I am calling few different web services in my app but I want to check if the device is able to connect to internet before service is called. First I created a static Flag. public static bool IsOfflineMode = false; And before each service is called, I add the following: [CODE] This is how I am checking if the device ...
c#|android|xamarin|connectivity
1
2015-02-26T19:53:09.497Z
2,015
2
19
3
403
1
624
44
4
2
true
false
false
false
false
false
low
28,751,617
Sending notification does not work
<p>I'm writing an app having <code>minSdkVersion = 9</code> and <code>maxSdkVersion = 21</code>. In <code>service</code> I have written a code to send notification, user will be notified when pre-set time matches current time.</p> <p>However, it notifies me perfectly if I run it in emulator having <strong>API = 19</st...
I'm writing an app having minSdkVersion = 9 and maxSdkVersion = 21 . In service I have written a code to send notification, user will be notified when pre-set time matches current time. However, it notifies me perfectly if I run it in emulator having API = 19 but if I run in my device having API = 10 it does not notify...
android|service|notifications|android-notifications
0
2015-02-26T19:58:08.250Z
2,015
2
19
3
328
2
826
34
4
2
true
false
false
false
false
false
zero
28,751,661
Connection with 000webhost sql from android apps
<p>This is my domain name in 000webhost</p> <p><a href="http://sofebos.site88.net" rel="nofollow">http://sofebos.site88.net</a></p> <p>I have put create_booking.php file in public_html in the website.</p> <p>Thus, if I want to call the url to create booking, is this the url?</p> <p>private static String url_create_...
This is my domain name in 000webhost http://sofebos.site88.net I have put create_booking.php file in public_html in the website. Thus, if I want to call the url to create booking, is this the url? private static String url_create_product = " http://sofebos.site88.net/public_html/create_booking.php ";
android|mysql
0
2015-02-26T20:00:29.717Z
2,015
2
20
3
1,113
0
301
48
2
0
false
true
false
false
false
false
zero
28,751,719
android.os.NetworkOnMainThreadException on trying to connect with jsoup android
<p>In my code I am trying to connect to the website multiple times to extract one record from a table each time it tries to connect. </p> <p>I tried pulling a all records at once and then parse it to the strings, but each timetable for different classgroups comes up with a little bit different spacing and the algorith...
In my code I am trying to connect to the website multiple times to extract one record from a table each time it tries to connect. I tried pulling a all records at once and then parse it to the strings, but each timetable for different classgroups comes up with a little bit different spacing and the algorithm is gone......
java|android|jsoup
0
2015-02-26T20:03:52.100Z
2,015
2
20
3
540
1
711
79
3
3
true
false
false
false
false
false
zero
28,751,760
Android: sendBroadcast Unhandled exception in callback java.lang.NullPointerException
<p>I am trying to send a broadcast from a service to my main activity. For some reason, when I call sendBroadcast I get the following warning. </p> <pre><code>02-26 14:55:40.615 11079-11090/com.example.sdp11.wmd W/BluetoothGatt﹕ Unhandled exception in callback java.lang.NullPointerException at android.content...
I am trying to send a broadcast from a service to my main activity. For some reason, when I call sendBroadcast I get the following warning. [CODE] The method I am using to call sendBroadcast function is as follows. [CODE] The above method is called in my Bluetooth Callback: [CODE] Any help would be greatly appreciated....
java|android|bluetooth
1
2015-02-26T20:05:51.850Z
2,015
2
20
3
1,608
2
385
85
3
4
true
false
false
false
false
false
low
28,751,765
Android remove and add to ArrayList in between activities
<p>I'm making my first android app and here's where i'm stuck. I have an activity A which requires 4 players to be picked. I'm passing to the activity PickPlayer <code>1</code>,<code>2</code>,<code>3</code>,<code>4</code> according to which player i want to fill. </p> <pre><code>ImageButton addp1 = (ImageButton)findVi...
I'm making my first android app and here's where i'm stuck. I have an activity A which requires 4 players to be picked. I'm passing to the activity PickPlayer 1 , 2 , 3 , 4 according to which player i want to fill. [CODE] On the PickPlayer activity i have a list which is populated and each item receives a listener. [CO...
java|android
4
2015-02-26T20:06:25.320Z
2,015
2
20
3
137
3
1,011
57
2
2
true
false
false
false
false
false
low
28,751,771
maven-jarsigner not executing during build
<p>everyone. I'm trying to sign an Android APK with Maven Jarsigner. I followed the instructions on the maven-jarsigner site and told it to use my own keystore and verify. It doesn't look like the jarsigner plugin is even running from my pom.xml, much less verifying. I'm using Codenvy as my environment right now, so Ma...
everyone. I'm trying to sign an Android APK with Maven Jarsigner. I followed the instructions on the maven-jarsigner site and told it to use my own keystore and verify. It doesn't look like the jarsigner plugin is even running from my pom.xml, much less verifying. I'm using Codenvy as my environment right now, so Maven...
java|android|maven|apk
0
2015-02-26T20:06:46.267Z
2,015
2
20
3
771
1
463
42
4
2
true
false
false
false
false
false
zero
28,751,783
How to set default country code in digits by twitter?
<p>I am using digits by twitter for login through phone number. <a href="http://digits.com/" rel="nofollow">http://digits.com/</a></p> <p>How can I set the default country code? As I dont want users to scroll through all list of country codes as my major customers are from same geographical reason ?</p>
I am using digits by twitter for login through phone number. http://digits.com/ How can I set the default country code? As I dont want users to scroll through all list of country codes as my major customers are from same geographical reason ?
android|twitter|sms-gateway
2
2015-02-26T20:07:37.180Z
2,015
2
20
3
573
2
242
53
3
0
false
false
false
false
false
false
low
28,751,793
Android Studio on Mac
<p>When creating a new project in Android Studio, before I do anything, I get this error:</p> <p>Error:java.io.IOException: Operation not supported</p> <blockquote> <p>Operation not supported</p> </blockquote> <p>Even after a gradle sync and update I still get this error. Anyone got a clue? Thanks</p>
When creating a new project in Android Studio, before I do anything, I get this error: Error:java.io.IOException: Operation not supported Operation not supported Even after a gradle sync and update I still get this error. Anyone got a clue? Thanks
android|android-studio|android-ide
7
2015-02-26T20:08:07.897Z
2,015
2
20
3
2,175
1
247
21
3
0
false
false
false
false
false
false
medium
28,751,831
javascript Sencha touch not displaying data on device only in browser
<p>Sencha touch 2.4.1 not displaying data on device, but does in browser. Here is my code:</p> <pre><code>{ flex: 3, xtype: 'container', type: 'hbox', layout: 'fit', height: '400px', align: 'center',...
Sencha touch 2.4.1 not displaying data on device, but does in browser. Here is my code: [CODE] "{Foo}" only displays in browser, but never does on my device. Everything else displays and works perfectly on both. When I debug the device, I can add a break point to the store: myStore, line I see that it contains all the ...
javascript|android|extjs|sencha-touch
0
2015-02-26T20:10:32.823Z
2,015
2
20
3
84
2
663
69
4
2
true
false
false
false
false
false
zero
28,751,964
Calabash 'Then I scroll up' WaitError
<p>In looking at Calabash's predefined <a href="https://github.com/calabash/calabash-android/blob/master/ruby-gem/lib/calabash-android/canned_steps.md#gestures" rel="nofollow">Gesture Steps</a></p> <p>I do not understand why the step definition <code>Then I scroll up</code> would return the following failure:<code>Tim...
In looking at Calabash's predefined Gesture Steps I do not understand why the step definition Then I scroll up would return the following failure: Timeout waiting for elements: android.widget.ScrollView index:0 (Calabash::Android::WaitHelpers::WaitError) . What is puzzling to me is that when I run an older build of our...
calabash|calabash-android
0
2015-02-26T20:18:45.327Z
2,015
2
20
3
151
1
591
37
2
0
false
false
false
false
false
false
zero
28,752,025
Android - Set text of TextView with Final String Array
<p>I have managed to extract the first letters on a sentence and store that into a variable.</p> <pre><code>String[] result = matches.toString().split("\\s+"); // The string we'll create String abbrev = ""; // Loop over the results from the string splitting for (int i = 0; i &...
I have managed to extract the first letters on a sentence and store that into a variable. [CODE] I then store the values into a Final String Array; [CODE] I then set the values into a alert dialog as follows: [CODE] My next task is when the user selects one of the items for it to go into the text view. However it doesn...
android|textview|settext
0
2015-02-26T20:23:05.180Z
2,015
2
20
3
2,448
1
446
54
3
4
true
false
false
false
false
false
zero
28,752,105
My App is not read a simple JSON from URL ASPX
<p>im new on Android Code, I need this for connect to internet and READ a JSON text from ASPX (Visual .NET for Websites) and Deserialize but my app crash when load the unic layout.</p> <p>The JSON of the website doesnt have Arrays, I need help please!</p> <p>This is on the ActivityMain.Java:</p> <pre><code> TextV...
im new on Android Code, I need this for connect to internet and READ a JSON text from ASPX (Visual .NET for Websites) and Deserialize but my app crash when load the unic layout. The JSON of the website doesnt have Arrays, I need help please! This is on the ActivityMain.Java: [CODE] The error when i use the "Debug" on t...
java|android|asp.net|json
-1
2015-02-26T20:27:51.707Z
2,015
2
20
3
90
1
590
46
4
1
true
false
false
false
false
true
negative
28,752,123
Horizontal checked line android textview
<p>This might be a simple question but I am not able to find a solution after hours of search. How to achieve Strikethrough effect on the <code>TextView</code> given in the image below. The line length should be same as the text length. </p> <p><img src="https://i.stack.imgur.com/7QYds.jpg" alt="enter image descriptio...
This might be a simple question but I am not able to find a solution after hours of search. How to achieve Strikethrough effect on the TextView given in the image below. The line length should be same as the text length.
android|android-layout|checkbox|textview
1
2015-02-26T20:28:27.013Z
2,015
2
20
3
786
1
220
40
4
0
false
false
false
false
false
false
low
28,752,138
Cordova and Android: keyboard doesn´t appear when click on input tag
<p>I use Cordova 2.9.0 and Android whit minimun api 10. I have the follow inputs:</p> <pre><code>&lt;input class='inputSignup' id='name' type='text' placeholder='Nombre'&gt; &lt;input class='inputSignup' id='lastname' type='text' placeholder='Apellidos'&gt; &lt;input class='inputSignup' id='email' type='email' placeho...
I use Cordova 2.9.0 and Android whit minimun api 10. I have the follow inputs: [CODE] The problem is in the first input. If I click it don´t appear the keyboard, but If I click on the others input the keyboard appear. I don´t understand this behavior. Any ideas?
android|cordova
0
2015-02-26T20:29:26.843Z
2,015
2
20
3
189
1
262
68
2
1
true
false
false
false
false
false
zero
28,752,238
AccessibilityService onUnbind not always called when running on emulator
<p>I'm developing an accessibility service for Android. The problem is that, when running on the emulator (Android 4.0.5 API 15), <strong>sometimes</strong> onUnbind is not called when the service is switched off. When this happens, it is not possible to stop the service and I need to reinstall the apk or reboot the em...
I'm developing an accessibility service for Android. The problem is that, when running on the emulator (Android 4.0.5 API 15), sometimes onUnbind is not called when the service is switched off. When this happens, it is not possible to stop the service and I need to reinstall the apk or reboot the emulator. When running...
android|accessibilityservice
2
2015-02-26T20:34:44.140Z
2,015
2
20
3
601
0
919
72
2
1
true
true
false
false
false
false
low
28,752,299
{Need help!!} Google maps within Viewpager Fragment
<p>Ive been trying to implement Google maps into a viewpager fragment, Ive followed many different tutorials but have fail miserably every time. If anyone has any incite into how to get something like this working i would be really happy!! below is the source code im using:</p> <p>Src/MainActivity.java</p> <pre><code...
Ive been trying to implement Google maps into a viewpager fragment, Ive followed many different tutorials but have fail miserably every time. If anyone has any incite into how to get something like this working i would be really happy!! below is the source code im using: Src/MainActivity.java [CODE] Src/Map.java [CODE]...
android|google-maps|android-fragments
0
2015-02-26T20:38:53.167Z
2,015
2
20
3
406
2
419
51
3
4
true
false
false
false
false
false
zero