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,581,913
android Videoview not playing .sdp files what should i do?
<p>I am making live tv channel streaming app. But when i try to play the .sdp files in the android videoview it gives the error that "Sorry can't play this video".But it is playing .mp4 and .3gp videos successfully. What should i do.I googled alot but in vain.</p> <pre><code>String VideoURL = "rtsp://pull.newclear.tv/...
I am making live tv channel streaming app. But when i try to play the .sdp files in the android videoview it gives the error that "Sorry can't play this video".But it is playing .mp4 and .3gp videos successfully. What should i do.I googled alot but in vain. [CODE] This is my code for videoview [CODE]
android|android-videoview|live-streaming
1
2015-02-18T10:59:32.630Z
2,015
2
10
2
444
0
301
58
3
2
true
true
false
false
false
false
low
28,582,010
android gradle project refresh fail: The device is not ready
<p>When i have move my project to my laptop and import it in file/import project, Android studio alert me </p> <blockquote> <p>project refresh failed </p> <p>Error: The device is not ready</p> </blockquote> <p><a href="https://i.stack.imgur.com/EXC2n.png" rel="nofollow noreferrer"><img src="https://i.stack.img...
When i have move my project to my laptop and import it in file/import project, Android studio alert me project refresh failed Error: The device is not ready
android|android-studio|gradle|android-gradle-plugin
5
2015-02-18T11:04:20.483Z
2,015
2
11
2
5,153
4
156
60
4
0
false
false
true
false
false
false
low
28,582,033
Android Streaming HTML URL to Player
<p>I'm trying to make a link that's works like this mobile website: <a href="http://m.tn.com.ar/" rel="nofollow noreferrer">http://m.tn.com.ar/</a></p> <p>When I click the link <code>En Vivo</code>, it redirects me to <a href="http://m.tn.com.ar/envivo/24hs" rel="nofollow noreferrer">http://m.tn.com.ar/envivo/24hs</a>...
I'm trying to make a link that's works like this mobile website: http://m.tn.com.ar/ When I click the link En Vivo , it redirects me to http://m.tn.com.ar/envivo/24hs . In PC, however, nothing happens. Instead, in Android it opens a live streaming video using Player App (I use Android VLC Player). How can I make a link...
android|streaming|vlc|android-video-player|video-player
0
2015-02-18T11:05:36.387Z
2,015
2
11
2
807
1
425
36
5
0
false
false
false
false
false
false
zero
28,582,042
Xamarin.Android handling listview scrolling
<p>I am new in Xamarin.Android and I want create custom animation like <a href="https://armijnvink.wordpress.com/2014/05/27/spotify-scrolling-effect-2014/" rel="nofollow">Android Market (app details page)</a>. My problem is handling scroll of listview for changing Top position of image and list. I subscribe to listView...
I am new in Xamarin.Android and I want create custom animation like Android Market (app details page) . My problem is handling scroll of listview for changing Top position of image and list. I subscribe to listView.ViewTreeObserver.ScrollChanged event but when it fired - ScrollY property of listview equals 0. Here is m...
android|listview|xamarin|xamarin.android
2
2015-02-18T11:06:21.977Z
2,015
2
11
2
646
0
364
43
4
0
false
true
false
false
false
false
low
28,582,049
Android Session getting lost in IBM Websphere Server
<p>Whenever i hit the login page from an android device , a session has to be created and maintained until the user hits log out button.. But there seem to be a weird problem with IBM Websphere Servers .. i am able to login successfully but when i try to request some other data the session is getting lost from the serv...
Whenever i hit the login page from an android device , a session has to be created and maintained until the user hits log out button.. But there seem to be a weird problem with IBM Websphere Servers .. i am able to login successfully but when i try to request some other data the session is getting lost from the server ...
android|session|tomcat|websphere
4
2015-02-18T11:06:36.367Z
2,015
2
11
2
733
1
889
52
4
0
false
false
false
false
false
false
low
28,582,099
Android : Compare two ArrayList of objects and find unmatching ids from the second ArrayList
<p>I want to compare two ArrayList of objects and find the unmatching values from the second ArrayList based on the ids in the object.</p> <p>For Example:</p> <p>Person.java</p> <pre><code>private int id; private String name; private String place; </code></pre> <p>MainActivity.java:</p> <pre><code>ArrayList&lt;Per...
I want to compare two ArrayList of objects and find the unmatching values from the second ArrayList based on the ids in the object. For Example: Person.java [CODE] MainActivity.java: [CODE] I want to compare the arrayList1, arrayList2 and need to find the unmatching values from the arrayList2. I need the id values 5,6....
android|object|arraylist|compare|pojo
8
2015-02-18T11:09:15.980Z
2,015
2
11
2
20,661
4
339
92
5
2
true
false
true
true
false
false
medium
28,582,223
is it possible query data that are not equal to the specified condition?
<p>Am fetching list of users for my listview (android) i used firebaselistadapter to backing up my listview , I wanna show users data except mine . Like an sql query Select something from usertable where id!=userid;</p> <p>i wanna fetch all other users data, </p>
Am fetching list of users for my listview (android) i used firebaselistadapter to backing up my listview , I wanna show users data except mine . Like an sql query Select something from usertable where id!=userid; i wanna fetch all other users data,
android|firebase|firebase-realtime-database
7
2015-02-18T11:15:08.743Z
2,015
2
11
2
7,727
2
248
72
3
0
false
false
true
false
false
false
medium
28,582,268
Making website scalable on mobile with viewport meta tag
<p>Morning all,</p> <p>Im trying to get my site so people can pinch to zoom on mobiles and so that it loads at the right size.</p> <p>Currently on an iPhone the site loads zoomed in (everything looks big) but you can pinch zoom it out so it fits the width of the phone.</p> <p>On Chrome for android however pinch to z...
Morning all, Im trying to get my site so people can pinch to zoom on mobiles and so that it loads at the right size. Currently on an iPhone the site loads zoomed in (everything looks big) but you can pinch zoom it out so it fits the width of the phone. On Chrome for android however pinch to zoom does not work at all an...
android|html|iphone|viewport|meta
0
2015-02-18T11:17:24.110Z
2,015
2
11
2
401
1
806
56
5
1
true
false
false
false
false
false
zero
28,582,272
Update existing item in custom ArrayAdapter
<p>I have chat app which have two types of elements in listview</p> <pre><code>message message message Header message message </code></pre> <p>In my app after showing <strong>Header</strong> I need to remove or hide it after particular time or event. I know that I can get this item by position. The problem is that...
I have chat app which have two types of elements in listview [CODE] In my app after showing Header I need to remove or hide it after particular time or event. I know that I can get this item by position. The problem is that my listview dynamically can grow from both sides. What can I do in this situation. You can see m...
android|android-listview
0
2015-02-18T11:17:28.470Z
2,015
2
11
2
321
1
430
43
2
1
true
false
false
false
false
false
zero
28,582,339
Action bar looks cut while using Theme.AppCompat.Dialog
<p>I wished to make one of my activities to look like a dialog and used a Theme.AppCompat.Dialog theme for it, but it made it's action bar to look bad (see below).</p> <p>Now background is cut to the length of the title string and I cant't find any theme property to fix it.(</p> <p><img src="https://i.stack.imgur.com...
I wished to make one of my activities to look like a dialog and used a Theme.AppCompat.Dialog theme for it, but it made it's action bar to look bad (see below). Now background is cut to the length of the title string and I cant't find any theme property to fix it.( What can be done to avoid it? Related part of styles.x...
android|dialog|android-actionbar|styles|themes
5
2015-02-18T11:20:14.717Z
2,015
2
11
2
5,888
4
384
55
5
2
true
false
true
false
false
false
low
28,582,376
How to add geometry annotations to PDF files using MuPDF
<p>I'm developing an app for Android that needs to work extensively with PDF files, and mupdf <a href="http://www.mupdf.com/" rel="nofollow">http://www.mupdf.com/</a> proved to work well with this task. I was also able to modify the Java and C source files to accept different color "Ink Annotations" and different line...
I'm developing an app for Android that needs to work extensively with PDF files, and mupdf http://www.mupdf.com/ proved to work well with this task. I was also able to modify the Java and C source files to accept different color "Ink Annotations" and different line thickness. (The code version 1.6 downloaded from the w...
android|mupdf
2
2015-02-18T11:22:00.387Z
2,015
2
11
2
1,250
1
789
56
2
0
false
false
false
false
false
false
low
28,582,382
Using Autobahn for WebSocket comms, not receiving from Server
<p>I'm implement Autobahn to connnect to a server through WebSockets. When I hit connect, it opens the socket correctly and logs that socket is opened. I then try to send a request to the server which is simply <code>{"request":"getSoftwareVersion"}</code> , when the server receives this, it should send back the soft...
I'm implement Autobahn to connnect to a server through WebSockets. When I hit connect, it opens the socket correctly and logs that socket is opened. I then try to send a request to the server which is simply {"request":"getSoftwareVersion"} , when the server receives this, it should send back the software version in a ...
android|json|websocket|autobahn|autobahnws
0
2015-02-18T11:22:17.900Z
2,015
2
11
2
446
1
592
61
5
2
true
false
false
false
false
false
zero
28,582,441
Android auth: how to store/access user credentials in google app engine?
<p>I am creating a login system for my android app. I want following to happen:</p> <pre><code>1. User enters username/password. 2. Login button sends request to custom API in google app engine. 3. App engine performs a check in google cloud sql if the user entered correct credentials or not. 4. If user entered co...
I am creating a login system for my android app. I want following to happen: [CODE] I am no able to find a way to achieve above goal. I am new to APIs and login system. I need to know how to create an api that can read the request and do a check and return the result.
java|android|api|google-app-engine
1
2015-02-18T11:25:15.200Z
2,015
2
11
2
262
0
268
72
4
1
true
true
false
false
false
false
low
28,582,498
client.execute not responding in android
<p>I try every possible solution but application crash when code reach to client.execute and in exception it just jump to catch and end normally but have no response</p> <pre><code> public static String getUrlResponse(String url) { try { HttpGet get = new HttpGet(url); HttpClient client = new Defau...
I try every possible solution but application crash when code reach to client.execute and in exception it just jump to catch and end normally but have no response [CODE] and this is exception 02-18 15:43:13.246 1951-1951/com.example.munawarhussain.alphacar E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.mu...
android
1
2015-02-18T11:28:42.343Z
2,015
2
11
2
125
2
426
40
1
1
true
false
false
false
false
false
low
28,582,510
How to add label in LinearLayout / GridView
<p>i created the following layout:</p> <p><strong>main.xml:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"...
i created the following layout: main.xml: [CODE] gridview_row.xml: [CODE] and i get this: Now i would divide this menu in two parts and i would add a label above every part, like this: Can you please help me to edit these 2 xml file to make me to reach my purpose? Thank you
android|xml|gridview|layout|label
0
2015-02-18T11:29:21.623Z
2,015
2
11
2
1,207
0
274
43
5
2
true
true
false
false
false
false
zero
28,582,544
Remove loading spinner in SwipeRefreshLayout
<p>I use a SwipeRefreshLayout to reload the content of a listview. It works and the onRefreshListener is triggered but the small loading spinner that appears onswipe doesn't want to dismiss after the loading is complete. Is there a way to make it go ? </p> <p><strong>Edit :</strong> fixed SwipeView means SwipeRefresh...
I use a SwipeRefreshLayout to reload the content of a listview. It works and the onRefreshListener is triggered but the small loading spinner that appears onswipe doesn't want to dismiss after the loading is complete. Is there a way to make it go ? Edit : fixed SwipeView means SwipeRefreshLayout
android|swipeview
37
2015-02-18T11:30:50.967Z
2,015
2
11
2
27,673
5
296
44
2
0
false
false
true
true
true
false
high
28,582,740
Web/Android/iOS - internal links - looking for ideas/solution.
<p>I will describe first what we have now:</p> <ul> <li>CMS - to populate database with drugs(meds) descriptions. Drug name as textbox and CKEditor for description in HTML format. </li> <li>WCF - export database to JSON</li> <li>Android app- list of drugs and then webview to display drug description in HTML format.</l...
I will describe first what we have now: CMS - to populate database with drugs(meds) descriptions. Drug name as textbox and CKEditor for description in HTML format. WCF - export database to JSON Android app- list of drugs and then webview to display drug description in HTML format. We need find solution to create inner ...
android|.net|json|wcf|ckeditor
1
2015-02-18T11:39:39.997Z
2,015
2
11
2
191
1
927
62
5
0
false
false
false
false
false
false
low
28,582,744
Create a 3D push button in android
<p>I want to make <a href="http://www.paulund.co.uk/playground/demo/css_3d_push_button/#" rel="nofollow">this button</a> (or something similar) in android. I don't now how to make that with only <a href="http://idunnolol.com/android/drawables.html#shape" rel="nofollow">those</a> attributes.</p> <p>Or there is other ap...
I want to make this button (or something similar) in android. I don't now how to make that with only those attributes. Or there is other approach how to make button down effect?
android-layout
1
2015-02-18T11:40:08.823Z
2,015
2
11
2
959
1
177
34
1
0
false
false
false
false
false
false
low
28,582,747
Why my image on my custom Actionbar has unwanted left padding
<p>I customized the <code>ActionBar</code> by inflating a custom view. and my custom action bar XML layout is:</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_width="match_parent" android:layout_height="mat...
I customized the ActionBar by inflating a custom view. and my custom action bar XML layout is: [CODE] but I don't know why there is an unwanted left padding for my ImageView at run time!!! like image below: anybody know?
android|android-actionbar
3
2015-02-18T11:40:17.463Z
2,015
2
11
2
316
2
220
61
2
1
true
false
false
false
false
false
low
28,582,775
how to show my data in my listview?
<p>In my application I have a listview. and listview is included a share Imagebutton. when I click on the ImageButton I want to share my text of each item in textview. The problem is how to make my textview public because I want to use it in another activity.</p> <pre><code>public class ListAdapter extends ArrayAdapte...
In my application I have a listview. and listview is included a share Imagebutton. when I click on the ImageButton I want to share my text of each item in textview. The problem is how to make my textview public because I want to use it in another activity. [CODE]
java|android
0
2015-02-18T11:41:51.890Z
2,015
2
11
2
138
1
263
35
2
1
true
false
false
false
false
false
zero
28,582,806
How to I add an image to list view items in Android?
<p>I'm trying to add a different icon to each of my list items but I'm having trouble. The idea was to have each of the list view items together to make editing easier but adding an image is proving to be more complicated than I thought.</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onC...
I'm trying to add a different icon to each of my list items but I'm having trouble. The idea was to have each of the list view items together to make editing easier but adding an image is proving to be more complicated than I thought. [CODE]
java|android
3
2015-02-18T11:43:40.300Z
2,015
2
11
2
1,957
3
241
52
2
1
true
false
false
false
false
false
low
28,582,824
My android app crashes
<p>I have built a simple App which runs a service. In the app the user enters an address, and the service needs to calculate the distance between user location and the address that he entered. If the distance between them is smaller than 100 meters then a toast message pops up. When I first run the app it's providing...
I have built a simple App which runs a service. In the app the user enters an address, and the service needs to calculate the distance between user location and the address that he entered. If the distance between them is smaller than 100 meters then a toast message pops up. When I first run the app it's providing the ...
java|android|eclipse|timer|handler
0
2015-02-18T11:44:34.397Z
2,015
2
11
2
78
1
1,065
22
5
4
true
false
false
false
false
false
zero
28,582,875
Android List to Database
<p>I have a custom List which holds information stored from a online mysql database. I now want to put this List into a sqlite internal database. The table has already been created in the database. I also have a databasehelper class which is working fine.</p> <p>All the list information is stored in FoodInfoModel cla...
I have a custom List which holds information stored from a online mysql database. I now want to put this List into a sqlite internal database. The table has already been created in the database. I also have a databasehelper class which is working fine. All the list information is stored in FoodInfoModel class which is ...
android|sqlite|android-listview|android-adapter
0
2015-02-18T11:47:16.227Z
2,015
2
11
2
93
4
606
24
4
2
true
false
false
false
false
false
zero
28,582,876
Android programatically getting device default phone number from contacts
<p>I got name and contact id from android "my" contact by using this method </p> <pre><code> String[] columnNames = new String[] { Phone._ID, Phone.DISPLAY_NAME }; Cursor c = LoginActivity.this.getContentResolver().query( ContactsContract...
I got name and contact id from android "my" contact by using this method [CODE] How to get phone number of the device too?
android|contacts|android-contacts|phone-number
0
2015-02-18T11:47:18.100Z
2,015
2
11
2
1,039
6
122
73
4
1
true
false
false
false
false
false
zero
28,582,877
How can make Garbage Collector real time in android
<p>I am working for making Android Platform real time , So there is a need to make GC real time. I had searched a lot of things to making GC real time and found some solution. Please see belo PDF file : </p> <p><a href="http://www.utdallas.edu/~cxl137330/courses/spring14/AdvRTS/protected/slides/45.pdf" rel="nofollow">...
I am working for making Android Platform real time , So there is a need to make GC real time. I had searched a lot of things to making GC real time and found some solution. Please see belo PDF file : Please see Page No -7 of this PDF in this PDF file they use a ServiceRT calss for making GC realtime . Plase tell me whe...
android|garbage-collection|real-time
1
2015-02-18T11:47:21.440Z
2,015
2
11
2
62
0
459
51
3
0
false
true
false
false
false
false
low
28,582,934
LibGDX 9 Patch Images aren't working with TextButtonStyle and TextureAtlas
<p>I am attempting to create a simple game using LibGDX. I am trying to use 9 Patch images as the backgrounds to the buttons on the menu however it appears the 9 Patch qualities of the images are being ignored.</p> <p>I have two images, "active.9.png" and "rest.9.png". These are square images that represent the button...
I am attempting to create a simple game using LibGDX. I am trying to use 9 Patch images as the backgrounds to the buttons on the menu however it appears the 9 Patch qualities of the images are being ignored. I have two images, "active.9.png" and "rest.9.png". These are square images that represent the button in it's ac...
android|libgdx|skin|texturepacker
3
2015-02-18T11:50:15.510Z
2,015
2
11
2
1,843
1
1,411
74
4
4
true
false
false
false
false
false
low
28,582,999
How to develop a Smart Magnifier using the mobile camera?
<p>I would like to use the mobile camera and develop a smart magnifier that can zoom and freeze-frame what we are viewing, so we don't have to keep holding the device steady while we read. Also should be able to change colors as given in the image in the link below. </p> <p><a href="https://lh3.ggpht.com/XhSCrMXS7RCJH...
I would like to use the mobile camera and develop a smart magnifier that can zoom and freeze-frame what we are viewing, so we don't have to keep holding the device steady while we read. Also should be able to change colors as given in the image in the link below. https://lh3.ggpht.com/XhSCrMXS7RCJH7AYlpn3xL5Z-6R7bqFL4h...
android|image-processing|android-camera
-1
2015-02-18T11:53:13.677Z
2,015
2
11
2
1,060
1
476
57
3
0
false
false
false
false
false
true
negative
28,583,037
Facebook and Proguard error
<p>I am using Android Studio with proguard. My app uses Facebook and I am not able to build with these settings on in my gradle file:</p> <pre><code>minifyEnabled true shrinkResources true </code></pre> <p>I get multiple errors:</p> <pre><code>Error:(59, 29) error: cannot find symbol class StatusCallback Error:(16...
I am using Android Studio with proguard. My app uses Facebook and I am not able to build with these settings on in my gradle file: [CODE] I get multiple errors: [CODE] com.facebook.Session.StatusCallback, com.facebook.Request.GraphUserCallback is Interfaces and com.facebook.Session.NewPermissionsRequest is a public sta...
android|facebook|android-studio|gradle|proguard
0
2015-02-18T11:55:01.723Z
2,015
2
11
2
559
1
497
27
5
5
true
false
false
false
false
false
zero
28,583,042
NullPointerException and coding
<p>Hi I've made code for Setting menu.<br><br> This application is for Downloading SNS video files and<br> this setting menu needs to have function to change the SNS ID and the location of downloaded file. <br><br>I've made code that can change ID and show the location. <br>But the code <code>save.setText(path.toString...
Hi I've made code for Setting menu. This application is for Downloading SNS video files and this setting menu needs to have function to change the SNS ID and the location of downloaded file. I've made code that can change ID and show the location. But the code save.setText(path.toString()); shows NullPointerException ....
java|android
2
2015-02-18T11:55:13.770Z
2,015
2
11
2
2,765
5
514
31
2
2
true
false
true
false
false
false
low
28,583,056
Image uploaded from gallery not visible on Motorola device
<p>I need to upload an image from the Gallery of my mobile and show it. I use this code.</p> <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == LOAD_IMAGE_RESULT &amp;&amp; resultCode == RESULT_OK ...
I need to upload an image from the Gallery of my mobile and show it. I use this code. [CODE] When I use it in a Samsung device it works, whether when I try it on a Motorola, it doesn't work. The problem is that the bitmap seems to be empty. I tried to upload images from the SD card and from the main storage, but the bi...
android|image|bitmap|upload|gallery
0
2015-02-18T11:56:01.057Z
2,015
2
11
2
244
0
388
58
5
1
true
true
false
false
false
false
zero
28,583,114
Android onclick listener custom listview
<p>With the following code I'm correctly receiving a dynamic list from mysql db and putting the elements in a listview.</p> <pre><code>public class MenuActivity extends ListActivity implements FetchDataListener { private ProgressDialog dialog; @Override protected void onCreate(Bundle savedInstanceState) { super.o...
With the following code I'm correctly receiving a dynamic list from mysql db and putting the elements in a listview. [CODE] This is my array adapter: [CODE] Now I want to click on single row and open another activity passing some values via intent extra. Where should I implement click listener? I'm pretty sure it shoul...
android|android-intent|android-listview|onclick|android-arrayadapter
0
2015-02-18T11:58:23.643Z
2,015
2
11
2
248
3
503
40
5
2
true
false
false
false
false
false
zero
28,583,134
I want to know what the method is. when a button is clicked, screen shows a little small option box
<p>sorry that i couldnt upload a picture cuz not understanding of "need at least 10 reputations to upload an image"</p> <p>anyway, when you use "Youtube" MOBILE application, you can see several videos shown on a screen arranged in a custom listview. and in each item of the listview, there are "three-circled" button a...
sorry that i couldnt upload a picture cuz not understanding of "need at least 10 reputations to upload an image" anyway, when you use "Youtube" MOBILE application, you can see several videos shown on a screen arranged in a custom listview. and in each item of the listview, there are "three-circled" button at the right ...
android|listview|methods|youtube
1
2015-02-18T11:59:23.873Z
2,015
2
11
2
26
1
534
99
4
0
false
false
false
false
false
false
low
28,583,156
Custom view with Typedarray returns null all parameters
<p>I have to create a custom linear layout for repeated use. Linear layout has imageview and textview.</p> <p>I am following current <a href="http://michiganlabs.com/making-custom-views-android/#.VOR7YPmUffI" rel="nofollow noreferrer">creating custom layout</a> </p> <p>Please find my code</p> <blockquote> <p>MainA...
I have to create a custom linear layout for repeated use. Linear layout has imageview and textview. I am following current creating custom layout Please find my code MainActivity.java [CODE] ColorOptionsView.java [CODE] fragment_main.xml [CODE] view_color_options.xml [CODE] attrs.xml [CODE] i always get error during se...
android|xml|android-layout|android-custom-view|android-ui
1
2015-02-18T12:00:14.117Z
2,015
2
12
2
944
1
530
55
5
6
true
false
false
false
false
false
low
28,583,186
Error calling a custom ListView from another activity (not main activity) in Android?
<p>My MainActivity file does some other task. AccountInfo is used to generate my list. </p> <pre><code> public class AccountInfo extends Activity { TextView sublistHeadtext; ImageView sublistHeadImage; ListView listItem; String[] ItemViewNames; AccInfoCustomAdapter adapter; ...
My MainActivity file does some other task. AccountInfo is used to generate my list. [CODE] public class AccInfoCustomAdapter extends BaseAdapter implements OnClickListener { [CODE] I am getting a null pointer exception on line listItem.setAdapter(adapter); I think the error exists here [CODE] LOGCAT :- [CODE]
android|listview|sublist
0
2015-02-18T12:01:40.180Z
2,015
2
12
2
87
1
310
85
3
4
true
false
false
false
false
false
zero
28,583,194
JSON language injection in Android Studio?
<p>Android Studio doesn´t support the JSON syntax, but it is possible with language injections in Intellij Idea.</p> <p>How do I make JSON injectable within Android Studio as it works in Intellij?</p> <p><img src="https://i.stack.imgur.com/BMt0s.png" alt="enter image description here"></p>
Android Studio doesn´t support the JSON syntax, but it is possible with language injections in Intellij Idea. How do I make JSON injectable within Android Studio as it works in Intellij?
json|intellij-idea|autocomplete|android-studio|syntax-highlighting
5
2015-02-18T12:01:49.410Z
2,015
2
12
2
1,326
2
186
42
5
0
false
false
false
false
false
false
low
28,583,213
When back button of action bar is pressed oncreate is called
<p>I have to activities, one <strong>MainActivity</strong> and another activity : <strong>Tech</strong>. Activity Tech is launched from the <strong>MainActivity</strong>. Then when I press the back button of the action bar in the activity <strong>Tech</strong>. <strong>MainActivity</strong> is again created.</p> <p>Th...
I have to activities, one MainActivity and another activity : Tech . Activity Tech is launched from the MainActivity . Then when I press the back button of the action bar in the activity Tech . MainActivity is again created. This doesn't happen when physical back button is pressed. I specified the parent Activity on my...
android|android-activity
3
2015-02-18T12:02:41.990Z
2,015
2
12
2
1,559
2
346
60
2
1
true
false
false
false
false
false
low
28,583,232
Android Wear fullscreen alarm
<p>Is it possible that my Wear application sets an alarm on my watch that is shown above all notifications in fullscreen mode, e.g. like the stock clock alarm does?</p>
Is it possible that my Wear application sets an alarm on my watch that is shown above all notifications in fullscreen mode, e.g. like the stock clock alarm does?
android|wear-os|android-alarms|android-wear-notification
0
2015-02-18T12:03:34.993Z
2,015
2
12
2
178
2
161
29
4
0
false
false
false
false
false
false
zero
28,583,233
Special case when adding a custom Connection/Action to Contacts in Android KitKat 4.4.2
<p>First of all, thanks for all the help. I use stackoverflow daily to solve almost every single code problem I have, it's a brilliant platform with brilliant people.</p> <p>To my problem:</p> <p>My initial goal was to add a custom Connection (action button) to the contacts on Android, with custom actions to execute ...
First of all, thanks for all the help. I use stackoverflow daily to solve almost every single code problem I have, it's a brilliant platform with brilliant people. To my problem: My initial goal was to add a custom Connection (action button) to the contacts on Android, with custom actions to execute in my app (Example:...
android|action|contacts|android-4.4-kitkat
2
2015-02-18T12:03:36.993Z
2,015
2
12
2
614
1
1,504
87
4
0
false
false
false
false
false
false
low
28,583,314
How to create Listview with two textview and one toggle Button?
<p>I have created the listview with two textview as a name and phone no. and infront of this one toggle button. i should get name when i click on the toggle button. but it is giving error as</p> <blockquote> <p>'02-17 06:49:53.170: E/AndroidRuntime(1425): java.lang.ClassCastException: android.widget.TextView c...
I have created the listview with two textview as a name and phone no. and infront of this one toggle button. i should get name when i click on the toggle button. but it is giving error as '02-17 06:49:53.170: E/AndroidRuntime(1425): java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget....
android|listview|textview|togglebutton
0
2015-02-18T12:07:17.027Z
2,015
2
12
2
921
5
1,929
63
4
1
true
false
false
false
false
false
zero
28,583,343
I want to extract and display Json array data into Excel sheet
<p>I have one activity called task list.this task list contains json array I have one button now I want to export the task list into Excel sheet on button click</p> <p>For Creating Excel sheet I have used poi-3.7.jar</p> <p>my code for Excel sheet:</p> <pre><code> public void onClick(View v) { // TODO Aut...
I have one activity called task list.this task list contains json array I have one button now I want to export the task list into Excel sheet on button click For Creating Excel sheet I have used poi-3.7.jar my code for Excel sheet: [CODE] for converting json to csv i have used org.json.jar [CODE] My excelsheet is creat...
android|json|apache-poi|export-to-excel
0
2015-02-18T12:08:50.847Z
2,015
2
12
2
4,331
1
513
62
4
4
true
false
true
false
false
false
zero
28,583,407
setArguments(bundle) is undefined
<p>with a FragmentPagerAdapter I am trying to return a fragment. However I end up in the error setArgument(bundle) is undefined. But I am not suppose to define it, looking at other sample codes</p> <p>Here is the code</p> <pre><code> public static SimpleMapActivity newInstance(int position,String title) { Simp...
with a FragmentPagerAdapter I am trying to return a fragment. However I end up in the error setArgument(bundle) is undefined. But I am not suppose to define it, looking at other sample codes Here is the code [CODE] The PageAdapter that i created is; [CODE] I could put more code, but i think with this is enough for reso...
java|android|android-fragments|fragment|undefined
0
2015-02-18T12:12:12.227Z
2,015
2
12
2
180
2
413
33
5
2
true
false
false
false
false
false
zero
28,583,437
Android resources getting string names "dynamicaly"
<p>I have 2 activities, one with buttons which have ID's. Depending on which button you click, an ID is passed to a second activity through it's intent. I then in that second activity want to retrieve string values based on the id of that button. I had named my string values as followed:</p> <pre><code>&lt;resources&g...
I have 2 activities, one with buttons which have ID's. Depending on which button you click, an ID is passed to a second activity through it's intent. I then in that second activity want to retrieve string values based on the id of that button. I had named my string values as followed: [CODE] So the string have a shared...
android|string|android-resources
0
2015-02-18T12:13:39.450Z
2,015
2
12
2
61
3
747
51
3
1
true
false
false
false
false
false
zero
28,583,483
Can't get the position for view inside RecylerView Adapter
<p>My recycler view adapter is as follows</p> <pre><code> @Override public ContactViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { View itemView = LayoutInflater.from(viewGroup.getContext()). inflate(R.layout.contacts_list_item, viewGroup, false); retur...
My recycler view adapter is as follows [CODE] and my view holder is [CODE] The issue is i cant seem to get the postion of viewHolder.removeContact .All i want to achieve is to remove the row when the viewHolder.removeContact is clicked.I have tried getting the postion by getTag() method also but it gives me only one po...
java|android|android-listview|android-recyclerview
1
2015-02-18T12:16:35.733Z
2,015
2
12
2
619
1
331
58
4
2
true
false
false
false
false
false
low
28,583,614
How to use Ksoap2 on ssl (https) connection - Android
<p>I am trying to make a soap connection with ksoap2 library on ssl but not able to make it work. I have tried many solutions which i could able to find on internet but no luck.</p> <p>If anyone can help me with it would be really appreciated. following is my code :</p> <p><strong>Errors</strong> </p> <pre><code>onP...
I am trying to make a soap connection with ksoap2 library on ssl but not able to make it work. I have tried many solutions which i could able to find on internet but no luck. If anyone can help me with it would be really appreciated. following is my code : Errors [CODE] Activity [CODE] SoapRequest class [CODE] SslReque...
android|ssl|soap|https|ksoap2
2
2015-02-18T12:22:49.017Z
2,015
2
12
2
3,977
0
335
53
5
4
true
true
true
false
false
false
low
28,583,644
How do I work around that two packages are dependent on the same/similar support library?
<p>I am making an android app in xamarin studio and it needs to have google play services because of google maps api v2 and a QR code scanner for mobile. But when I added zxing.net.mobile to my packages after I had set up google maps and gotten the google play services package, they both fail as they are both dependent...
I am making an android app in xamarin studio and it needs to have google play services because of google maps api v2 and a QR code scanner for mobile. But when I added zxing.net.mobile to my packages after I had set up google maps and gotten the google play services package, they both fail as they are both dependent on...
android-support-library|dependency-management|nuget-package|xamarin-studio
0
2015-02-18T12:24:39.927Z
2,015
2
12
2
1,176
1
1,568
89
4
0
false
false
false
false
false
false
zero
28,583,655
launch app for intent and return after
<p>I know it is possible run an external app from an intent but anyone knows if it is possible return to our app programmatically after this "external app" complete the job we want?</p>
I know it is possible run an external app from an intent but anyone knows if it is possible return to our app programmatically after this "external app" complete the job we want?
android|android-intent|sdk|android-pendingintent
0
2015-02-18T12:25:23.040Z
2,015
2
12
2
357
0
178
38
4
0
false
true
false
false
false
false
zero
28,583,725
NTLMv2 requires extended security, When using Dexguard obfuscate in android
<p>I had used <strong>jcifs 1.3.17 jar</strong> in my application (on libs folder).</p> <p>My application works fine, before obfuscate my app by DEXGuard. After obfuscate my app, It gives the run-time error like below.</p> <pre><code>NTLMv2 requires extended security (jcifs.smb.client.useExtendedSecurity must be tru...
I had used jcifs 1.3.17 jar in my application (on libs folder). My application works fine, before obfuscate my app by DEXGuard. After obfuscate my app, It gives the run-time error like below. [CODE] I am building using, ant release. like below [CODE] Guide me to solve this issue. Thanks in advance !
android|jcifs|dexguard
0
2015-02-18T12:29:58.127Z
2,015
2
12
2
1,146
1
300
75
3
2
true
false
false
false
false
false
zero
28,583,742
Null pointer exception on the following code
<p>I am a beginer in android and java,can anybody help me to find out the reason of this error in my code plz???</p> <pre><code>serviceSwitch =(Switch) this.findViewById(R.id.switchservice); serviceSwitch.setOnCheckedChangeListener(new OnCheckedChangeListener(){ public void onCheckedChanged(CompoundButton buttonV...
I am a beginer in android and java,can anybody help me to find out the reason of this error in my code plz??? [CODE] Code for arrayChecking It checks the tbpreferenceArray is empty or not?,If it is empty it shows the toast,else it pass an intent to call background service in my app [CODE] Shared Preference code [CODE]
android
-1
2015-02-18T12:30:53.200Z
2,015
2
12
2
58
1
319
44
1
3
true
false
false
false
false
true
negative
28,583,787
Same size curved background for all devices
<p>How can I get this background for my app, but I want same curve (same radius) and same size of screen in blue, how can I do this?</p> <p><img src="https://i.imgur.com/nWxtjQH.png" alt=""></p>
How can I get this background for my app, but I want same curve (same radius) and same size of screen in blue, how can I do this?
android|android-layout|android-xml
1
2015-02-18T12:33:01.157Z
2,015
2
12
2
3,968
1
129
43
3
0
false
false
true
false
false
false
low
28,583,913
android 4.3 BLE device getting auto disconnect after multiple connection attempts
<p>I am developing an app with BLE features for Android and it works perfectly fine, except when I attempt to connect and disconnect the BLE device multiple times. After several successful attempts at connect/disconnect, the BLE device directly calls the disconnect function after random interval of time even though it ...
I am developing an app with BLE features for Android and it works perfectly fine, except when I attempt to connect and disconnect the BLE device multiple times. After several successful attempts at connect/disconnect, the BLE device directly calls the disconnect function after random interval of time even though it get...
java|android
1
2015-02-18T12:38:56.370Z
2,015
2
12
2
1,759
1
345
81
2
1
true
false
false
false
false
false
low
28,583,954
how to display popup in android webview
<p>I am using the below code to open URL in in webview of my application. But webview in my application not opening pop-up in my application.</p> <p>If I try to open the same URL in my phone native browser its displaying pop up window. </p> <p>My Layout file:</p> <pre><code> &lt;WebView android:id="@+i...
I am using the below code to open URL in in webview of my application. But webview in my application not opening pop-up in my application. If I try to open the same URL in my phone native browser its displaying pop up window. My Layout file: [CODE] My Java File. [CODE] Please let me know what changes I need to do in my...
android|android-webview
0
2015-02-18T12:40:42.413Z
2,015
2
12
2
798
0
366
39
2
2
true
true
false
false
false
false
zero
28,583,957
Android development FTP Client
<p>I recently made a FTP server which runs fine. I'm able to connect with this server by browsing with my laptop and my smartphone. Now I want this same connection to be made by my a self made application in java. So I downloaded a library from 'commons.apache.org' which contains a class FTPClient which I should be abl...
I recently made a FTP server which runs fine. I'm able to connect with this server by browsing with my laptop and my smartphone. Now I want this same connection to be made by my a self made application in java. So I downloaded a library from 'commons.apache.org' which contains a class FTPClient which I should be able t...
java|android|ftp
-1
2015-02-18T12:40:53.207Z
2,015
2
12
2
757
1
588
30
3
1
true
false
false
false
false
true
negative
28,584,033
How to Check whether a value is entered in editexts before submitting?
<p>I have around 5 edittexts.When i click submit button,it has to check whether all fields are entered or not.Along with it if any value is not entered,the focus has to go to that desired edittext.If there are many editexts empty,then the focus has to go in top down order.I have used seterror method but when i type in ...
I have around 5 edittexts.When i click submit button,it has to check whether all fields are entered or not.Along with it if any value is not entered,the focus has to go to that desired edittext.If there are many editexts empty,then the focus has to go in top down order.I have used seterror method but when i type in tha...
android|validation|android-edittext
0
2015-02-18T12:45:39.550Z
2,015
2
12
2
1,258
6
572
70
3
1
true
false
false
false
false
false
zero
28,584,073
set image inside circle shaped layout and hide overlapping part
<p>I'm using frame layout and I've added imageview into it. frame layout is circled shape. the imageview inside frame layout moves outside of that circle when it's size gets bigger than layout size. I want to hide that extra imageview. any help would be much appreciated.</p> <p>Thanks :)</p>
I'm using frame layout and I've added imageview into it. frame layout is circled shape. the imageview inside frame layout moves outside of that circle when it's size gets bigger than layout size. I want to hide that extra imageview. any help would be much appreciated. Thanks :)
android|android-layout|android-xml
0
2015-02-18T12:47:26.033Z
2,015
2
12
2
1,016
2
278
63
3
0
false
false
false
false
false
false
zero
28,584,106
Android - detect gesture on webview
<p>I am trying to detect the swipe gesture on the webview.</p> <p>I try to use the function below:</p> <pre><code>public boolean onTouchEvent(MotionEvent event) { int action = MotionEventCompat.getActionMasked(event); String DEBUG_TAG = "test"; switch (action) { case (MotionEvent.ACTION_DOWN): ...
I am trying to detect the swipe gesture on the webview. I try to use the function below: [CODE] When there is no webview, it works and get back the correct answer. However, when I added the above, it doesn't work on the webview. As the webview must be in full screen, I think I cannot use the function above. Is there an...
android|webview
0
2015-02-18T12:49:13.303Z
2,015
2
12
2
472
0
361
35
2
1
true
true
false
false
false
false
zero
28,584,124
Android MultiDex - A/libc(28851): Fatal signal 11 (SIGSEGV), thread 29117 (pool-16-thread-)
<p>I am getting this error in my app but only on some devices. So far only a few crashes have been reported. I recently enabled multiDex support and since then it crashes on some of the pre-lollipop devices.</p> <pre><code>A/libc(28851): Fatal signal 11 (SIGSEGV), thread 29117 (pool-16-thread-) </code></pre> <p>There...
I am getting this error in my app but only on some devices. So far only a few crashes have been reported. I recently enabled multiDex support and since then it crashes on some of the pre-lollipop devices. [CODE] There is no other information given in the logcat. I saw some other posts on SO but they are different and d...
android|segmentation-fault|android-multidex
1
2015-02-18T12:50:16.917Z
2,015
2
12
2
231
0
383
91
3
1
true
true
false
false
false
false
low
28,584,133
Multiple Actors as Buttons - detecting which one is touched/clicked
<p>I have a screen with 8 different static buttons on it. I have written a class to make this easy:</p> <pre><code>public class TouchButton extends Actor{ Texture texture; float actorX, actorY; int actorWidth, actorHeight; public boolean started = false; public TouchButton(String argButtonID, floa...
I have a screen with 8 different static buttons on it. I have written a class to make this easy: [CODE] As you can see in the code above, I am writing out a message to the LogCat, but I have been unable to work out how to determine which of the buttons was pressed. In my game, a bit like "simon", I wish to display a co...
java|android|button|libgdx
0
2015-02-18T12:50:46.867Z
2,015
2
12
2
109
1
712
67
4
2
true
false
false
false
false
false
zero
28,584,177
How to save (switch) button state in android?
<p>I am using SWITCH (like android toggle button ) instead of normal buttons in my andorid app. The code works fine while enabling and disabling switches. But i want to store the state of the switch. Suppose i enable the switch and close my application the background code will run fine but the switch state will change ...
I am using SWITCH (like android toggle button ) instead of normal buttons in my andorid app. The code works fine while enabling and disabling switches. But i want to store the state of the switch. Suppose i enable the switch and close my application the background code will run fine but the switch state will change to ...
android|switch-statement|togglebutton
8
2015-02-18T12:53:43.823Z
2,015
2
12
2
18,753
2
449
45
3
0
false
false
true
true
false
false
medium
28,584,207
why is android emulator on local network offline?
<p>I am developing an android application on android studio. but because of my hardware limits I'd like to test the results through an android studio emulator which is on another computer in my local network. I've read the tutorial on <a href="http://www.41post.com/5003/programming/android-adb-remote-emulator-access" r...
I am developing an android application on android studio. but because of my hardware limits I'd like to test the results through an android studio emulator which is on another computer in my local network. I've read the tutorial on this page : I did all of the steps on the page and I can see the device on android studi...
java|android|android-studio|android-emulator|portforwarding
1
2015-02-18T12:55:43.107Z
2,015
2
12
2
128
1
407
49
5
0
false
false
false
false
false
false
low
28,584,312
Where do I have to include getActionBar().setIcon()?
<p>I'm trying to set the icon of the actionBar and make it able to go back by tapping it as <a href="https://stackoverflow.com/questions/14483393/how-do-i-change-the-android-actionbar-title-and-icon">this response</a> says, the problem is that the app always get closed when I try to open it. I've tried to include <code...
I'm trying to set the icon of the actionBar and make it able to go back by tapping it as this response says, the problem is that the app always get closed when I try to open it. I've tried to include getActionBar().setIcon(R.drawable.logo_cartas); inside of onCreate() and onCreateOptionsMenu() methods, but it always fa...
android|android-actionbar
0
2015-02-18T13:01:45.280Z
2,015
2
13
2
786
2
670
52
2
4
true
false
false
false
false
false
zero
28,584,411
onRegistered() from GCMIntentService not called
<p>onRegisterd() method from GCMIntentService not called.</p> <p>In log it displays like: onReceive: com.google.android.c2dm.intent.REGISTRATION GCM IntentService class: com.example.dailysales.GCMIntentService Acquiring wakelock My AndroidManifest.XML File code is below:</p> <pre><code>&lt;receiver android:na...
onRegisterd() method from GCMIntentService not called. In log it displays like: onReceive: com.google.android.c2dm.intent.REGISTRATION GCM IntentService class: com.example.dailysales.GCMIntentService Acquiring wakelock My AndroidManifest.XML File code is below: [CODE]
android|push-notification|google-cloud-messaging
1
2015-02-18T13:07:03.537Z
2,015
2
13
2
975
1
268
47
3
1
true
false
false
false
false
false
low
28,584,421
SoapFault - faultcode: SOAP-ENV:Server faultstring: Allowed memory size of 134217728 bytes exhausted (tried to allocate 9758721 bytes)
<p>I am making an application in Android which uses Magento SOAP web services using ksoap2 library as below</p> <pre><code>@Override protected Void doInBackground(Void... arg0) { try { SoapObject request = new SoapObject("urn:Magento", "catalogProductList"); request.addProperty("ses...
I am making an application in Android which uses Magento SOAP web services using ksoap2 library as below [CODE] In the above code I am calling catalogProductList SOAP API method which has been overridden on the server to include more fields in the response other than standard fields (more fields like product descriptio...
android|magento|soap|ksoap2
0
2015-02-18T13:07:27.273Z
2,015
2
13
2
1,590
1
638
134
4
2
true
false
false
false
false
false
zero
28,584,493
Uploaded android app in google play showing no device
<p>I have uploaded an android app created in cordova into google play... After upload it is showing zero supplorted device... Here is my manifest file. I do not know what to do. Please help.</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;manifest android:versionCode="7" android:versionName="7.0.0" ...
I have uploaded an android app created in cordova into google play... After upload it is showing zero supplorted device... Here is my manifest file. I do not know what to do. Please help. [CODE]
android
0
2015-02-18T13:11:46.400Z
2,015
2
13
2
32
2
194
53
1
1
true
false
false
false
false
false
zero
28,584,510
auto Complete textview set hidden value and visible text android
<p>Im try to build auto Complete textview in android, and its work fine, but my problem is I need to get a value was related for item was selected, I mean</p> <p>we have schools </p> <p>abc, bbt, ccce, ddde</p> <p>abc have id = 1, and number_of_students = 30</p> <p>bbt have id = 2, and number_of_students = 20 stu...
Im try to build auto Complete textview in android, and its work fine, but my problem is I need to get a value was related for item was selected, I mean we have schools abc, bbt, ccce, ddde abc have id = 1, and number_of_students = 30 bbt have id = 2, and number_of_students = 20 students ccce have id = 3, and number_of_...
android
1
2015-02-18T13:12:33.513Z
2,015
2
13
2
915
1
716
64
1
2
true
false
false
false
false
false
low
28,584,571
How to pass the value of a variable to another method in android
<p>I have variable and it has a value. i want to pass it to another method so i can use it inside that. in <code>onCreate</code> i have the value for description and i want to pass that value to <code>prepareListData()</code>, so i can use it there. what should i do to achieve that.</p> <pre><code>String description; ...
I have variable and it has a value. i want to pass it to another method so i can use it inside that. in onCreate i have the value for description and i want to pass that value to prepareListData() , so i can use it there. what should i do to achieve that. [CODE] in a method i want to use the value of description, [CODE...
android|expandablelistadapter
1
2015-02-18T13:15:59.303Z
2,015
2
13
2
250
1
321
64
2
2
true
false
false
false
false
false
low
28,584,692
Android Activities do not get garbage collected
<p>Let's say i have 2 Activities, A and B.</p> <p>From Activity A, i'll start Activity B with StartActivity(Intent). I close Activity B via finish().</p> <p>Now, Android will run out of memory. Maybe not for some time, because B is empty, or whatever, but the garbage collector just wont clean activity B... even on lo...
Let's say i have 2 Activities, A and B. From Activity A, i'll start Activity B with StartActivity(Intent). I close Activity B via finish(). Now, Android will run out of memory. Maybe not for some time, because B is empty, or whatever, but the garbage collector just wont clean activity B... even on low memory. Where cou...
android|android-activity|memory-management|memory-leaks|garbage-collection
0
2015-02-18T13:22:26.193Z
2,015
2
13
2
572
0
572
47
5
0
false
true
false
false
false
false
zero
28,584,736
unable to make the ScrollView and textView (added programmatically) visible in Android
<p>I was working on an android project where I have to write data from JSONArray. I tried to use TextView for each of the Array Input. so I used to code to add a scrollView on my existing layout and add a TextView init. The codes working perfectly without any error however, there is nothing in the UI when I compiled it...
I was working on an android project where I have to write data from JSONArray. I tried to use TextView for each of the Array Input. so I used to code to add a scrollView on my existing layout and add a TextView init. The codes working perfectly without any error however, there is nothing in the UI when I compiled it. (...
java|android|xml|android-layout
0
2015-02-18T13:25:22.570Z
2,015
2
13
2
553
2
1,238
86
4
2
true
false
false
false
false
false
zero
28,584,759
Open URL intent in landscape mode
<p>is possible to open URL site "<a href="https://docs.google.com/spreadsheets.....ecc" rel="nofollow">https://docs.google.com/spreadsheets.....ecc</a>" directly in landascape mode? this is the code that i use to open URL with chrome or google application.</p> <pre><code>mgbutton.setOnClickListener(new View.OnClickLis...
is possible to open URL site " https://docs.google.com/spreadsheets.....ecc " directly in landascape mode? this is the code that i use to open URL with chrome or google application. [CODE]
android|url
0
2015-02-18T13:26:35.433Z
2,015
2
13
2
361
0
188
33
2
1
true
true
false
false
false
false
zero
28,584,906
How I can make Sliding layout from bottom like this?
<p>I want to make sliding layout from bottom to the center, like this:</p> <p><img src="https://i.stack.imgur.com/bTzEb.jpg" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/ETvGc.jpg" alt="enter image description here"></p> <p>I saw Umano SlidingLayout but it slides to the top.</p> <p...
I want to make sliding layout from bottom to the center, like this: I saw Umano SlidingLayout but it slides to the top. How I can make something like this?
android|android-layout|android-fragments|android-sliding
0
2015-02-18T13:32:34.173Z
2,015
2
13
2
210
0
155
52
4
0
false
true
false
false
false
false
zero
28,584,920
Bass Boost not working in android
<p>*when i run this code only simple sound is playing BassBoost is not working when change the seek bar,have i done anything wrong. how i have watched some tutorials in Google,on stack-overflow none of them were answered.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre cl...
*when i run this code only simple sound is playing BassBoost is not working when change the seek bar,have i done anything wrong. how i have watched some tutorials in Google,on stack-overflow none of them were answered. [CODE]
android|bass|audioeffect
2
2015-02-18T13:33:25.643Z
2,015
2
13
2
1,938
1
225
33
3
1
true
false
false
false
false
false
low
28,584,945
How to handle two bundles in single page
<p>I am sending information through bundle to Second page and i am getting information to second page from third page, Now i am not getting how to handle bundle in middle page. </p>
I am sending information through bundle to Second page and i am getting information to second page from third page, Now i am not getting how to handle bundle in middle page.
java|android
0
2015-02-18T13:34:49.860Z
2,015
2
13
2
24
0
173
40
2
0
false
true
false
false
false
false
zero
28,584,980
HTML to PDF conversion with images
<p>I am having an issue to parse an image within HTML structure to a PDF file, I have tried using the following line to gather the image , however the PDF file is being created without the image. I am using iText with xmlworker libraries, the html is all stored in a string then parsed into an input stream as shown belo...
I am having an issue to parse an image within HTML structure to a PDF file, I have tried using the following line to gather the image , however the PDF file is being created without the image. I am using iText with xmlworker libraries, the html is all stored in a string then parsed into an input stream as shown below i...
android|html|itext|xmlworker
1
2015-02-18T13:36:30.120Z
2,015
2
13
2
1,419
1
334
34
4
1
true
false
false
false
false
false
low
28,584,994
Generate Random Questions in Database
<p>I have 5 table in Sqlite Database: 1.maths 2.boilogy 3.chemestry 4.physics 5.GK. </p> <p>in all tables 10 Question. and finally we generate random question in test page so what the Query in Sq lite database</p> <pre><code>public ArrayList&lt;ExamModel&gt; getRandomQuestion() { ArrayList&lt;ExamModel&gt; l...
I have 5 table in Sqlite Database: 1.maths 2.boilogy 3.chemestry 4.physics 5.GK. in all tables 10 Question. and finally we generate random question in test page so what the Query in Sq lite database [CODE]
java|android|mysql|sqlite
0
2015-02-18T13:37:19.523Z
2,015
2
13
2
1,039
0
205
37
4
1
true
true
false
false
false
false
zero
28,585,030
How To pick Image From Gallery
<p>I m selecting Image From Gallery and crop in My Phone And Uploading To Server ..</p> <p>When i m testing Someother devices then image was Unable Picked to some devices</p> <pre><code>public void selectImageFromGallery() { String TEMP_PHOTO_FILE = "temporary_holder.jpg"; Intent photoPickerIntent = new ...
I m selecting Image From Gallery and crop in My Phone And Uploading To Server .. When i m testing Someother devices then image was Unable Picked to some devices [CODE] here Is My Code please Tell ME Where I m Doing Wrong I want To Remove To Create An New File On Sd Card if Sd Card Is Not Available on no space app Crash...
android|onactivityresult
0
2015-02-18T13:39:04.647Z
2,015
2
13
2
617
1
322
30
2
1
true
false
false
false
false
false
zero
28,585,138
Connection to server times out android
<p>I am trying to check if server is online in android. I have following code on a button onclick listener block:</p> <pre><code> boolean exists = false; try { SocketAddress sockaddr = new InetSocketAddress("google.com", 80); // Create an unbound socket ...
I am trying to check if server is online in android. I have following code on a button onclick listener block: [CODE] Thing is that, whatever host or ip i check, its always offline. What could be the problem? I have this permission in androidmanifest: [CODE]
java|android|sockets
0
2015-02-18T13:43:28.667Z
2,015
2
13
2
135
2
258
38
3
2
true
false
false
false
false
false
zero
28,585,265
How to inspect the Android device using chrome?
<p>Is there I way that someone can help me fixing a problem ! I am trying to do some remote debugging for my Android app. I am using chrome tools to inspect the device. When I open that I can see that my device is recognized by chrome however that inspect button that usually appears is not there. In short, chrome can s...
Is there I way that someone can help me fixing a problem ! I am trying to do some remote debugging for my Android app. I am using chrome tools to inspect the device. When I open that I can see that my device is recognized by chrome however that inspect button that usually appears is not there. In short, chrome can see ...
android|cordova|google-chrome|remote-debugging
0
2015-02-18T13:49:56.937Z
2,015
2
13
2
1,560
2
567
47
4
0
false
false
false
false
false
false
zero
28,585,267
MPAndroidChart different background colors depending on value?
<p>Is it possible to have multiple y-axix background colors for a MPAndroidChart chart?</p> <p>An example is <a href="https://stackoverflow.com/questions/23688169/multiple-y-axis-background-colors-for-chart">here</a>.</p> <p>In its meaning it is similar to LimitLine but the background colors separate the slices.</p> ...
Is it possible to have multiple y-axix background colors for a MPAndroidChart chart? An example is here . In its meaning it is similar to LimitLine but the background colors separate the slices. thanks!
android|mpandroidchart
2
2015-02-18T13:49:58.933Z
2,015
2
13
2
593
1
202
62
2
0
false
false
false
false
false
false
low
28,585,280
Upload large (mp3) file from android to node.js using POST
<p>I want to upload an mp3 file from my application to a node.js . There are two parameters accepted by the node.js and those are email_address and the mp3 file. </p> <p>Following is the code I used yet failed to achieve the required functionality.</p> <pre><code>&lt;uses-permission android:name="android.permission.I...
I want to upload an mp3 file from my application to a node.js . There are two parameters accepted by the node.js and those are email_address and the mp3 file. Following is the code I used yet failed to achieve the required functionality. [CODE] When I run this code I get an exception. The exception object thrown is als...
android|node.js|file-upload
0
2015-02-18T13:50:37.550Z
2,015
2
13
2
450
1
383
58
3
1
true
false
false
false
false
false
zero
28,585,298
Android Camera Preview color differs from jpeg from Camera.takePicture
<p>I have an application built which is displaying a camera feed. The user is able to take a picture by pressing a button.</p> <p>The color of the preview seems to be different than the picture of the jpeg that results from taking the picture on at least one device (MotoG). I don't see this behavior when testing on an...
I have an application built which is displaying a camera feed. The user is able to take a picture by pressing a button. The color of the preview seems to be different than the picture of the jpeg that results from taking the picture on at least one device (MotoG). I don't see this behavior when testing on an LG-P700. A...
android|image|camera|jpeg|preview
1
2015-02-18T13:51:25.760Z
2,015
2
13
2
205
0
566
70
5
0
false
true
false
false
false
false
low
28,585,331
NullPointerException while retrieving json
<p>I am using <a href="http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/" rel="nofollow">this</a> code example, as orientation to retrieve json values. But in the async task, I get an NullPointer Exception:</p> <pre><code>Caused by: java.lang.NullPointerException at com.adrianopaulus.z...
I am using this code example, as orientation to retrieve json values. But in the async task, I get an NullPointer Exception: [CODE] , while trying to retrieve a value. Running the debugger, It starts my JSONParser class: [CODE] In it, my params is 0, and get jObj returned with value null. In case needed my AsyncTask: [...
java|android|json
0
2015-02-18T13:52:45.223Z
2,015
2
13
2
666
0
354
42
3
4
true
true
false
false
false
false
zero
28,585,498
PhoneGap project does not run on Android phone and Ripple (Error : EPERM, open .....)
<p>I have created a new project in VisualStudio 2013, when i run it on windows emulator and device it works fine, but when I run it on Ripple and Android phones it does not run and gives me 1 Error and 1 Warning.</p> <blockquote> <p>Warning 1 The TypeScript Compiler was given no files for compilation, so it wi...
I have created a new project in VisualStudio 2013, when i run it on windows emulator and device it works fine, but when I run it on Ripple and Android phones it does not run and gives me 1 Error and 1 Warning. Warning 1 The TypeScript Compiler was given no files for compilation, so it will skip compiling. Error 2 EPERM...
android|cordova|typescript|phonegap-plugins
0
2015-02-18T14:00:57.663Z
2,015
2
14
2
146
0
1,039
85
4
1
true
true
false
false
false
false
zero
28,585,533
Compaire sqlite database date string "yyyy-MM-dd" with todays string in android?
<p>I am storing <code>from_date</code> and <code>to_date</code> column in the database as <code>sdf</code> (<strong>yyyy-MM-DD</strong>). And I want to check if todays date is between these two dates or not.</p> <p>My query is: </p> <pre><code>String where = Alarm.COL_TIME+" = "+"'"+time+"' AND Date(from_date) &lt;=...
I am storing from_date and to_date column in the database as sdf ( yyyy-MM-DD ). And I want to check if todays date is between these two dates or not. My query is: [CODE] But it shows nothing. Please neglect time how to do this??
android|sqlite|date|datetime
-1
2015-02-18T14:02:56.333Z
2,015
2
14
2
596
2
229
80
4
1
true
false
false
false
false
true
negative
28,585,548
SimpleCursorAdapter with ContentProvider; ListView empty
<p>I am using <code>SimpleCursorAdapter</code> trying to display data which comes from a content provider. But the <code>ListView</code> stays empty. Have been searching for an answer for 3 days.</p> <p>Here is my code:</p> <p><strong>IssuesFragment.java</strong></p> <pre><code>public class IssuesFragment extends Fr...
I am using SimpleCursorAdapter trying to display data which comes from a content provider. But the ListView stays empty. Have been searching for an answer for 3 days. Here is my code: IssuesFragment.java [CODE] } Here are the corresponding Layout files: issues_list_item.xml [CODE] fragment_issues.xml [CODE] My cursor g...
java|android|android-layout|listview|simplecursoradapter
0
2015-02-18T14:04:01.667Z
2,015
2
14
2
172
1
491
56
5
3
true
false
false
false
false
false
zero
28,585,556
GetAdditionalResourcesFromAssemblies failed unexpected
<p>I just installed Xamarin 3.9.289 (newest version). When using both Visual Studio 2013 or Xamarin Studio, I get the following error:</p> <pre><code>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error MSB4018: The "GetAdditionalResourcesFromAssemblies" task failed unexpectedly. S...
I just installed Xamarin 3.9.289 (newest version). When using both Visual Studio 2013 or Xamarin Studio, I get the following error: [CODE] What is the reason for this and how could I fix it? Further info: Android SDK Tools: 24.0.2 Android SDK Platform Tools: 21 Android SDK Build Tools: 21.1.2
c#|android|xamarin
0
2015-02-18T14:04:25.277Z
2,015
2
14
2
744
2
293
54
3
1
true
false
false
false
false
false
zero
28,585,592
Get coordinates of most recent remaining finger - Android Multitouch
<p>The problem I'm facing is that at the time ACTION_POINTER_UP is fired, I need to grab the coordinates of the most recent <em>remaining</em> finger.</p> <p>Take this example (Using 2 pointers):</p> <ul> <li>Place thumb onto screen (ID0)</li> <li>Place Index Finger onto screen (ID1)</li> <li>Lift thumb from screen (...
The problem I'm facing is that at the time ACTION_POINTER_UP is fired, I need to grab the coordinates of the most recent remaining finger. Take this example (Using 2 pointers): Place thumb onto screen (ID0) Place Index Finger onto screen (ID1) Lift thumb from screen (ID0) Remaining pointer is Index Finger (ID1) Grab co...
android|pointers|multi-touch|touchscreen|ontouch
1
2015-02-18T14:06:12Z
-1
-1
-1
-1
276
1
1,161
68
5
1
true
false
false
false
false
false
low
28,585,608
activity does not work as expected when it calls from an input method service
<p>i have a activity about login twitter which works fine when i run it directly but when i call it from a input method service it does not work ...why? below is my activity code :</p> <pre><code>public class PostTwitter extends Activity { private Button btnLogin; /** * Register your here app https://dev.twitter.co...
i have a activity about login twitter which works fine when i run it directly but when i call it from a input method service it does not work ...why? below is my activity code : [CODE] } and in my input method service i called it like this [CODE] activity is open but login does not work....any one know is there any add...
android|android-twitter
0
2015-02-18T14:06:51.160Z
2,015
2
14
2
137
0
387
77
2
2
true
true
false
false
false
false
zero
28,585,618
Fetch full page from wikipedia using Wikipedia API
<p>I'm trying to get a all the contents from this page <a href="http://en.wikipedia.org/wiki/List_of_Breaking_Bad_episodes" rel="nofollow">http://en.wikipedia.org/wiki/List_of_Breaking_Bad_episodes</a></p> <p>for an Android App, however when I use wikipedia API like this: <a href="http://en.wikipedia.org/w/api.php?for...
I'm trying to get a all the contents from this page http://en.wikipedia.org/wiki/List_of_Breaking_Bad_episodes for an Android App, however when I use wikipedia API like this: http://en.wikipedia.org/w/api.php?format=json&action=query&titles=List_of_Breaking_Bad_episodes&prop=revisions&rvprop=content I don't get all the...
android|json|api|mediawiki-api
0
2015-02-18T14:07:26.320Z
2,015
2
14
2
239
2
493
50
4
0
false
false
false
false
false
false
zero
28,585,694
android gradle failed to find the library
<p>I have an android project and want to add a library in my gradle but when build gradle says: failed to find ...</p> <p>this is my library : </p> <pre><code> compile 'com.felipecsl:abslistviewhelper:1.0.3' </code></pre> <p>and according to <a href="https://github.com/felipecsl/AbsListViewHelper" rel="nofollow">th...
I have an android project and want to add a library in my gradle but when build gradle says: failed to find ... this is my library : [CODE] and according to this link it is okey and should work. I am very thankful if someone tell me what should I do, or suggest me another library with the same functionality. (I need th...
android|android-gradle-plugin|android-gridview|build.gradle
0
2015-02-18T14:11:27.710Z
2,015
2
14
2
72
2
483
41
4
1
true
false
false
false
false
false
zero
28,585,738
Cannot resolve symbol setOutputSoapObject
<p>I am trying to call my webservice in my android application.</p> <p>Following is the piece of code I am using - </p> <pre><code> SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelop...
I am trying to call my webservice in my android application. Following is the piece of code I am using - [CODE] But, setOutputSoapObject is underlined as red and saying cannot resolve symbol setOutputSoapObject. Anyone has any ideas about this? I have made sure everything is imported. Same problem with the following li...
java|android|web-services
-1
2015-02-18T14:13:42.173Z
2,015
2
14
2
442
1
438
41
3
1
true
false
false
false
false
true
negative
28,585,742
How to save annotation on password protected pdf using MuPDF
<p>I am trying to save annotation for password protected pdf. I am able to draw annotation and save it. But as soon as I go back and come again in activity I cannot see my annotation. However strange thing is I can see annotation box there but not the drawn path. It works fine with normal pdf(without password pdf). Any...
I am trying to save annotation for password protected pdf. I am able to draw annotation and save it. But as soon as I go back and come again in activity I cannot see my annotation. However strange thing is I can see annotation box there but not the drawn path. It works fine with normal pdf(without password pdf). Any id...
android|pdf|annotations|native|mupdf
4
2015-02-18T14:13:51.023Z
2,015
2
14
2
748
1
466
60
5
2
true
false
false
false
false
false
low
28,585,776
Android reading text file shows text as gibrige
<p>I have a srt file (subtitle file) which im trying to read in android, opening the srt file on my pc with notepad++ shows gibrige text, but notepad++ has an option to read file as windows-1256 which fix this issue, I was wondering how can I do this in Android ? Also is there a way to automatically choose how to read...
I have a srt file (subtitle file) which im trying to read in android, opening the srt file on my pc with notepad++ shows gibrige text, but notepad++ has an option to read file as windows-1256 which fix this issue, I was wondering how can I do this in Android ? Also is there a way to automatically choose how to read the...
android|text|readfile
0
2015-02-18T14:15:06.993Z
2,015
2
14
2
51
0
461
47
3
1
true
true
false
false
false
false
zero
28,585,780
Android - Customizing ads
<p>I have developed an Android App and want to add some custom ads in it. I know that I can make a fragment and attach it to the layout but what about changing the ads frequently? For e.g. I have two Images (of ads) and want to change every of them in 5 minutes. How can I do that? Also I do not have any idea to put int...
I have developed an Android App and want to add some custom ads in it. I know that I can make a fragment and attach it to the layout but what about changing the ads frequently? For e.g. I have two Images (of ads) and want to change every of them in 5 minutes. How can I do that? Also I do not have any idea to put inters...
android|ads
0
2015-02-18T14:15:14.490Z
2,015
2
14
2
85
1
386
25
2
0
false
false
false
false
false
false
zero
28,585,799
Google Maps v2 for Android loads tiles very slowly when at high speeds
<p>I'm currently making an app that has some functionality that resembles navigation software (but no, I cannot use actual existing navigation software for this) and thus can track a person while they drive. For this I am trying to use google maps api v2, but it gets problematic once I go faster than approximately 50 k...
I'm currently making an app that has some functionality that resembles navigation software (but no, I cannot use actual existing navigation software for this) and thus can track a person while they drive. For this I am trying to use google maps api v2, but it gets problematic once I go faster than approximately 50 km/h...
android|google-maps|google-maps-android-api-2
1
2015-02-18T14:16:06Z
-1
-1
-1
-1
1,401
1
1,054
70
3
0
false
false
false
false
false
false
low
28,585,818
Meteor Android Apps does not install on 4.1.1
<p>I am having a huge problem to deploy my app for 4.1.1 Android Tablet. It works on 4.4.2./4.3.2. Phones or with <code>Meteor run android-device</code>. However when build the bundle for production it fails with <code>error -103</code> (found with logcat).</p> <p>Since it runs on newer Droid the problem is not signat...
I am having a huge problem to deploy my app for 4.1.1 Android Tablet. It works on 4.4.2./4.3.2. Phones or with Meteor run android-device . However when build the bundle for production it fails with error -103 (found with logcat). Since it runs on newer Droid the problem is not signature keys or the app. I have read tha...
android|cordova|meteor
4
2015-02-18T14:17:04.550Z
2,015
2
14
2
1,624
1
717
45
3
2
true
false
false
false
false
false
low
28,585,954
Android in-app purchase Pro Status
<p>I am building a android app which i would like to have in-app billing for.</p> <p>I would just like to ask a general question about i-app purchases and hopefully someone can point me in the right direction.</p> <p>If i want my app to have Pro users, which would be an in app purchase to unlock parts of the app, how...
I am building a android app which i would like to have in-app billing for. I would just like to ask a general question about i-app purchases and hopefully someone can point me in the right direction. If i want my app to have Pro users, which would be an in app purchase to unlock parts of the app, how would one go about...
android|android-billing
0
2015-02-18T14:23:29.617Z
2,015
2
14
2
135
1
350
34
2
0
false
false
false
false
false
false
zero
28,585,955
Listview with checkbox, imageview, textview and imageview filled with an arraylist
<p>I want to make a listview that takes the data from an arraylist. This is an example of the single row</p> <p><img src="https://i.stack.imgur.com/ibVXd.png" alt="enter image description here"></p> <p>The checkbox is disabled by default, it only gets activates in a longitemclicklistener(for multiple delete).</p> <...
I want to make a listview that takes the data from an arraylist. This is an example of the single row The checkbox is disabled by default, it only gets activates in a longitemclicklistener(for multiple delete). The last image is a menu button that opens a menu list for delete, share, etc. I have an arraylist(myList) wi...
java|android|listview|arraylist
0
2015-02-18T14:23:40.043Z
2,015
2
14
2
664
1
670
82
4
2
true
false
false
false
false
false
zero
28,585,956
Getting item from listView that is offscreen
<p>I'm having issues getting an item from a ListView when it is off screen. If I scroll down and <strong>hit next, the top item returns null</strong>. If I scroll back up, the bottom item return null. </p> <p>I know ListView dynamically creates the view so is it possible to get items off screen?</p> <pre><code>public...
I'm having issues getting an item from a ListView when it is off screen. If I scroll down and hit next, the top item returns null . If I scroll back up, the bottom item return null. I know ListView dynamically creates the view so is it possible to get items off screen? [CODE]
android|android-listview|android-adapter
0
2015-02-18T14:23:41.160Z
2,015
2
14
2
624
1
276
44
3
1
true
false
false
false
false
false
zero
28,585,995
Fragment backstack issue
<p>I'm currently trying to create app navigation via navigation drawer. So I can open fragments <strong>A1/B1/C1</strong> from drawer for example. They are replacing each other in my container view so backstack should be empty. I use this code on drawer selection:</p> <pre><code> getSupportFragmentManager().beginTran...
I'm currently trying to create app navigation via navigation drawer. So I can open fragments A1/B1/C1 from drawer for example. They are replacing each other in my container view so backstack should be empty. I use this code on drawer selection: [CODE] From A1 I can go to A2 . A2 -fragment should be added in the same co...
java|android|android-fragments|navigation-drawer
0
2015-02-18T14:25:14.050Z
2,015
2
14
2
1,081
1
830
24
4
3
true
false
false
false
false
false
zero
28,586,098
Can Android Studio library contain resources
<p>I know there was an issue in the past with Eclipse ADT where you could not compile a library project to a JAR if it contained resources.</p> <p>Is it possible to do this with Android Studio and compile to an AAR file? I would also like to convert the AAR file to JAR and need to know if this will cause issue.</p> <...
I know there was an issue in the past with Eclipse ADT where you could not compile a library project to a JAR if it contained resources. Is it possible to do this with Android Studio and compile to an AAR file? I would also like to convert the AAR file to JAR and need to know if this will cause issue. Thanks
android
0
2015-02-18T14:29:59.177Z
2,015
2
14
2
42
1
309
44
1
0
false
false
false
false
false
false
zero
28,586,107
how do I capture a single image with the Android Camera2 API?
<p>I am using the Android Camera2 API to capture and process an image. The image processing happens in reponse to a successful capture. The problem I am having is that the camera captures 2 images, I have been unable to change the code in the Camera2Basic sample to ensure only a single image is captured. The issue can ...
I am using the Android Camera2 API to capture and process an image. The image processing happens in reponse to a successful capture. The problem I am having is that the camera captures 2 images, I have been unable to change the code in the Camera2Basic sample to ensure only a single image is captured. The issue can be ...
android
6
2015-02-18T14:30:34.033Z
2,015
2
14
2
8,497
3
860
61
1
2
true
false
true
false
false
false
medium