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,629,767
When im creating a new Project in android using Android 4.4 system image then R.java not Generating
<p>whenever im creating a new project in android using android 4.4 then it's not generating R.java i tired to solve this problem. Even i tried Cleaning, Building, and Selecting Buildpath. </p> <p>Please give me solution</p>
whenever im creating a new project in android using android 4.4 then it's not generating R.java i tired to solve this problem. Even i tried Cleaning, Building, and Selecting Buildpath. Please give me solution
android
-1
2015-02-20T13:08:57.887Z
2,015
2
13
4
29
2
208
99
1
0
false
false
false
false
false
true
negative
28,629,811
If condition doesn't recognize the value assign to the variable
<p>I shown a part of my code. i have stored the value of description inside sharedpreferences. when i check the if condition using breakpoint it has the value i want it to have. but when i go throught the flow then the code go inside the else condition. but i want it to go inside the if condition bz description has a v...
I shown a part of my code. i have stored the value of description inside sharedpreferences. when i check the if condition using breakpoint it has the value i want it to have. but when i go throught the flow then the code go inside the else condition. but i want it to go inside the if condition bz description has a valu...
java|android|sharedpreferences
-2
2015-02-20T13:11:26.233Z
2,015
2
13
4
67
2
358
63
3
1
true
false
false
false
false
true
negative
28,629,827
Can't start activities marked as MainLauncher in parallel
<p>I'm working on a Xamarin Android project where I'd like to have activities as different starting points (e.g. <code>app1</code> and <code>app2</code>). To achieve this I've added the option "MainLauncher = true" to the Activity-Attribute of those activities which <em>seemed</em> to work fine in the beginning:</p> <...
I'm working on a Xamarin Android project where I'd like to have activities as different starting points (e.g. app1 and app2 ). To achieve this I've added the option "MainLauncher = true" to the Activity-Attribute of those activities which seemed to work fine in the beginning: [CODE] The issue now is, that if I open app...
c#|android|xamarin|xamarin.android
1
2015-02-20T13:12:38.003Z
2,015
2
13
4
720
1
749
57
4
1
true
false
false
false
false
false
low
28,629,886
Google Fit API client
<p>How can I keep GoogleApiClient connected even if the app is killed ?</p> <p>Actually, the connection to the API is handled in the Activity A. I pass an instance of the client to an Activity that extends Application. Then, I get the client instance in the Activity B. All works perfectly until the app is killed. When...
How can I keep GoogleApiClient connected even if the app is killed ? Actually, the connection to the API is handled in the Activity A. I pass an instance of the client to an Activity that extends Application. Then, I get the client instance in the Activity B. All works perfectly until the app is killed. When the app is...
android|google-fit
0
2015-02-20T13:16:24.777Z
2,015
2
13
4
429
1
720
21
2
0
false
false
false
false
false
false
zero
28,630,008
DownloadManager how to replace HttpClient?
<p>I have Android 4.1.2 device. I'm trying to download file from HTTPS and get error about not valid certificate.</p> <p>Ok, I created custom TrustManager, which skips this error.</p> <p>How to specify, that DownloadManager used my HttpClient whith custom TrustManager?</p>
I have Android 4.1.2 device. I'm trying to download file from HTTPS and get error about not valid certificate. Ok, I created custom TrustManager, which skips this error. How to specify, that DownloadManager used my HttpClient whith custom TrustManager?
android|android-download-manager
1
2015-02-20T13:22:38.007Z
2,015
2
13
4
1,237
1
252
42
2
0
false
false
false
false
false
false
low
28,630,138
Gradle project sync failed when switching build variant
<p>I have a Android Studio project with multiple "buildTypes" in its build.gradle file like this:</p> <pre><code>production { applicationIdSuffix ".some.domain.production" signingConfig signingConfigs.debug } debug { applicationIdSuffix ".some.domain.debug" signingConfig signingConfigs.debug }</code></...
I have a Android Studio project with multiple "buildTypes" in its build.gradle file like this: [CODE] On my machine I get a "Gradle project sync failed" error every second time I switch the "Build Variant" in Android Studio and when ever I get this error Studio switches the "Build Variant" back to what ever it was befo...
android-studio
1
2015-02-20T13:28:20.640Z
2,015
2
13
4
538
1
741
55
1
1
true
false
false
false
false
false
low
28,630,271
How can I know, to which topic the arrived message belongs?
<p>I am developing an App and I am using MQTT protocol supported by Paho library.</p> <p>I am subscribing to 10 topics, and there will be a messgae(s) published for one at least one topic. now, when I get notified about the arrival of a new messae, how can i know to which topic it belongs?</p> <p><strong>Update</str...
I am developing an App and I am using MQTT protocol supported by Paho library. I am subscribing to 10 topics, and there will be a messgae(s) published for one at least one topic. now, when I get notified about the arrival of a new messae, how can i know to which topic it belongs? Update :
mqtt|paho|android-open-accessory
0
2015-02-20T13:35:40.183Z
2,015
2
13
4
361
1
289
59
3
0
false
false
false
false
false
false
zero
28,630,289
Bluetooth Low Energy - notifyCharacteristicChanged() does not update the descriptor value
<p>I have the following problem - I must change the descriptor (BluetoothGattDescriptor) in my characteristic (BluetoothGattCharacteristic) dynamically as my application works.</p> <p>Unfortunately function notifyCharacteristicChanged() from BluetoothGattServer updates only value of the characteristic (looked up this ...
I have the following problem - I must change the descriptor (BluetoothGattDescriptor) in my characteristic (BluetoothGattCharacteristic) dynamically as my application works. Unfortunately function notifyCharacteristicChanged() from BluetoothGattServer updates only value of the characteristic (looked up this function in...
android|bluetooth|bluetooth-lowenergy|descriptor|gatt
1
2015-02-20T13:37:08.690Z
2,015
2
13
4
1,852
1
878
89
5
1
true
false
false
false
false
false
low
28,630,332
Android Studio error: static interface method invocations are not supported in -source 1.7
<blockquote> <p>Error:(100, 48) error: static interface method invocations are not supported in -source 1.7 (use -source 8 or higher to enable static interface method invocations)</p> </blockquote> <p>the line looks like this:</p> <pre><code>field = SomeInterface.someMethod("","",""); </code></pre> <p>and the ...
Error:(100, 48) error: static interface method invocations are not supported in -source 1.7 (use -source 8 or higher to enable static interface method invocations) the line looks like this: [CODE] and the interface: [CODE] How to fix this?
android|android-studio
3
2015-02-20T13:39:29.737Z
2,015
2
13
4
2,261
1
239
90
2
2
true
false
false
false
false
false
low
28,630,349
How to retrieve an image from a SQLite database?
<p>I am storing an image taken from camera into sqlite database can anybody help me to retrieve the same image and i want to show that image in a image view.</p> <p>Here is my Database handler class method for saving the image</p> <pre><code>public long insert(Bitmap img ) { SQLiteDatabase base=this.getWrita...
I am storing an image taken from camera into sqlite database can anybody help me to retrieve the same image and i want to show that image in a image view. Here is my Database handler class method for saving the image [CODE] Please help me for writing the method how i can get the image and display the image in an imagev...
android|sqlite|android-sqlite
-1
2015-02-20T13:40:23.120Z
2,015
2
13
4
3,267
1
324
48
3
1
true
false
true
false
false
true
negative
28,630,399
Android ExpandableListView with different children types
<p>I have an expandable List View in my application. When all the children are TextView all works fine. But now I am trying to have differents children types. That's mean that for example for the first group I want to have TextView children, for the second group I want to have EditText children and for all the others g...
I have an expandable List View in my application. When all the children are TextView all works fine. But now I am trying to have differents children types. That's mean that for example for the first group I want to have TextView children, for the second group I want to have EditText children and for all the others grou...
android|expandablelistview
1
2015-02-20T13:43:16.790Z
2,015
2
13
4
509
0
661
56
2
2
true
true
false
false
false
false
low
28,630,517
Application with ViewPager crashes at start when I set onClickListener
<p>I've got a trouble. When I set onClickListener on a Button, the application simply doesn't start. I think that the promblem in wrong using ViewPager, but I can't find an answer in the Internet. Please tell me what is wrong in simpliest way, because I am new in Java.</p> <pre><code> public class MainActivity exte...
I've got a trouble. When I set onClickListener on a Button, the application simply doesn't start. I think that the promblem in wrong using ViewPager, but I can't find an answer in the Internet. Please tell me what is wrong in simpliest way, because I am new in Java. [CODE] LogCat (if I added setContentView(R.layout.act...
java|android
0
2015-02-20T13:48:50.707Z
2,015
2
13
4
101
1
353
70
2
2
true
false
false
false
false
false
zero
28,630,535
When multiple apps which listen to same GCM channel are installed, How to make sure the notification is shown only once?
<p>I'm going to publish a series of apps and I want to be able to display notifications to users who have installed any of these apps via GCM. but when there are multiple apps installed on each device, multiple notifications are displayed to users. I want to make sure that only one notification is displayed to users, r...
I'm going to publish a series of apps and I want to be able to display notifications to users who have installed any of these apps via GCM. but when there are multiple apps installed on each device, multiple notifications are displayed to users. I want to make sure that only one notification is displayed to users, rega...
android|notifications|broadcastreceiver|google-cloud-messaging
0
2015-02-20T13:49:48.640Z
2,015
2
13
4
273
1
768
120
4
0
false
false
false
false
false
false
zero
28,630,583
Continue countdown timer after pause
<p>I have a countdown timer, I have a button that pause it, but I need that when you click on button, continue to countdown. I search but couldn't a function related this. How can do it? This is my code, I only managed to restart it, but not continue:</p> <pre><code>private TextView cuentaRegresiva; private Button btn...
I have a countdown timer, I have a button that pause it, but I need that when you click on button, continue to countdown. I search but couldn't a function related this. How can do it? This is my code, I only managed to restart it, but not continue: [CODE] I thought about taking millisUntilFinished to a variable, but di...
java|android|countdown|countdowntimer|continue
1
2015-02-20T13:51:42.420Z
2,015
2
13
4
1,083
1
371
36
5
1
true
false
false
false
false
false
low
28,630,601
Multiple launchers for one Application with API 17
<p>I have my application and I would like to have two different launchers that each launch different activities. They should all be bundled into one apk and <em>not</em> two separate applications. I know this is possible, example in the XKCD Browser on the Google play store. I have already tried implementing this segme...
I have my application and I would like to have two different launchers that each launch different activities. They should all be bundled into one apk and not two separate applications. I know this is possible, example in the XKCD Browser on the Google play store. I have already tried implementing this segment in the se...
java|android|intellij-idea
1
2015-02-20T13:52:47.410Z
2,015
2
13
4
147
2
596
50
3
3
true
false
false
false
false
false
low
28,630,699
Get VoIP info from other apps
<p>I need in my service to find the difference between a call from CS (Circuit Switch) and others calls, like Hangout, Viber, whatsapp, and others apps.</p> <p>Can you give me some tips to follow?</p>
I need in my service to find the difference between a call from CS (Circuit Switch) and others calls, like Hangout, Viber, whatsapp, and others apps. Can you give me some tips to follow?
android|service|android-notifications|phone-call
0
2015-02-20T13:57:32.387Z
2,015
2
13
4
96
0
186
29
4
0
false
true
false
false
false
false
zero
28,630,743
Start intent service from one activity and send result to another
<p>I have an android app with an activity (<strong>Activity A</strong>) that shows an image for 3 seconds (splash screen) and after that the main activity (<strong>Activity B</strong>) will start.</p> <p>In my main activity I start a service to fetch some data from web but this work take some time and the user become ...
I have an android app with an activity ( Activity A ) that shows an image for 3 seconds (splash screen) and after that the main activity ( Activity B ) will start. In my main activity I start a service to fetch some data from web but this work take some time and the user become uncomfortable. What I want is to start th...
android|android-intent|intentservice|nested-class
0
2015-02-20T13:59:18.750Z
2,015
2
13
4
991
1
626
65
4
0
false
false
false
false
false
false
zero
28,630,758
Id of the src Image Inside the ImageView
<p>Basically i am working on app like game and I have 20 Images from which one will be set as the Image "src". I want to know is it possible to get the Id of the Image inside the <code>ImageView</code>? but not the Id of the <code>ImageView</code>. Because when i use Click Listener it gives me the id of the </p> <pre...
Basically i am working on app like game and I have 20 Images from which one will be set as the Image "src". I want to know is it possible to get the Id of the Image inside the ImageView ? but not the Id of the ImageView . Because when i use Click Listener it gives me the id of the [CODE]
android
0
2015-02-20T14:00:16.743Z
2,015
2
14
4
574
1
288
40
1
1
true
false
false
false
false
false
zero
28,630,866
Best way to provide custom view for selected list item
<p>Goal : have completely custom layout for selected item, considering only single item can be selected at a time.</p> <p>I do not want to involve <code>getViewTypeCount</code>/<code>getItemViewType</code> for selection as they are already used in this adapter for different purposes.</p> <p>One obvious option is infl...
Goal : have completely custom layout for selected item, considering only single item can be selected at a time. I do not want to involve getViewTypeCount / getItemViewType for selection as they are already used in this adapter for different purposes. One obvious option is inflating custom layout to indicate selected it...
android|android-adapter|android-adapterview
0
2015-02-20T14:05:43.450Z
2,015
2
14
4
110
1
880
54
3
1
true
false
false
false
false
false
zero
28,630,931
Android delete folders after change of ad network
<p>To display ads, files are downloaded by Ad SDKs and stored in the app's private directory:</p> <pre><code>data/data/com.example.myapp/cache data/data/com.example.myapp/files data/data/com.example.myapp/databases </code></pre> <p>Some ad SDKs manage to download and store many megabytes of images. After a change of ...
To display ads, files are downloaded by Ad SDKs and stored in the app's private directory: [CODE] Some ad SDKs manage to download and store many megabytes of images. After a change of ad network those files are no longer used and should probably be deleted, to free up memory. Which folders are safe to delete? (For exam...
android|memory|directory|ads
0
2015-02-20T14:08:37.530Z
2,015
2
14
4
62
1
530
49
4
1
true
false
false
false
false
false
zero
28,630,947
Getting the data path of assets folder in android
<p>I am trying to integrate Tesseract in android. So I have to initialize the tesseract with trained data by calling baseApi.init(DATA_PATH, lang). DATA_PATH is the path of traineddata.lang file which is to be put in assests folder then in tessdata folder in String format.But I am not able to find a way to do this and...
I am trying to integrate Tesseract in android. So I have to initialize the tesseract with trained data by calling baseApi.init(DATA_PATH, lang). DATA_PATH is the path of traineddata.lang file which is to be put in assests folder then in tessdata folder in String format.But I am not able to find a way to do this and get...
android
0
2015-02-20T14:09:29.663Z
2,015
2
14
4
1,533
1
1,073
49
1
0
false
false
false
false
false
false
zero
28,630,974
Getting the Out of memory error when displaying full screen image in android
<p>I have implemented a gridview and full screen image view. Everything works fine, until I do like this. 1. I'll open my grid view and click on any thumbnail image and display the image in full screen. Then i'll come back to grid view from image view and click on other thumbnail image. If I repeat these steps for 6 t...
I have implemented a gridview and full screen image view. Everything works fine, until I do like this. 1. I'll open my grid view and click on any thumbnail image and display the image in full screen. Then i'll come back to grid view from image view and click on other thumbnail image. If I repeat these steps for 6 times...
android|imageview|out-of-memory|android-camera
-1
2015-02-20T14:11:01.080Z
2,015
2
14
4
1,652
2
751
76
4
4
true
false
false
false
false
true
negative
28,631,002
Cannot send an Asset to an Android Wear device
<p>I'm trying to send an Asset to my Sony SmartWatch3. I followed the Google's documentation (<a href="https://developer.android.com/training/wearables/data-layer/assets.html" rel="nofollow">https://developer.android.com/training/wearables/data-layer/assets.html</a>) but it doesn't work.</p> <p>My handheld activity's ...
I'm trying to send an Asset to my Sony SmartWatch3. I followed the Google's documentation ( https://developer.android.com/training/wearables/data-layer/assets.html ) but it doesn't work. My handheld activity's code : [CODE] My wearable activity's code : [CODE] The execution of the Handheld's code works fine (the logs a...
java|android|wear-os|android-wear-data-api
3
2015-02-20T14:12:26.573Z
2,015
2
14
4
1,368
1
542
46
4
3
true
false
false
false
false
false
low
28,631,200
Send file part by part with UDP
<p>I would send a XML file splitted into N parts in my server side.</p> <p>Each files contains at start this informations : fileNumber and totalPart</p> <p>For example if I have 32 parts : - the first file contain at start : 0 (file number) and 32 (total parts) - the second file contain at start : 1 (file number) and...
I would send a XML file splitted into N parts in my server side. Each files contains at start this informations : fileNumber and totalPart For example if I have 32 parts : - the first file contain at start : 0 (file number) and 32 (total parts) - the second file contain at start : 1 (file number) and 32 (total parts).....
java|android|udp
0
2015-02-20T14:22:40.153Z
2,015
2
14
4
1,549
1
799
31
3
2
true
false
false
false
false
false
zero
28,631,225
eclipse luna windows 8 android google map ERROR
<p>I have a problem with eclipse luna windows 8 -64 bit, i install the sdk and I am trying to have a google map example, but when I run the project eclipse luna stop working.</p> <p>I tried different emulators same problem(i have tried eclipse Juno same problem).</p> <p>Any normal android project works properly.</p>
I have a problem with eclipse luna windows 8 -64 bit, i install the sdk and I am trying to have a google map example, but when I run the project eclipse luna stop working. I tried different emulators same problem(i have tried eclipse Juno same problem). Any normal android project works properly.
android|eclipse-luna
-1
2015-02-20T14:23:59.577Z
2,015
2
14
4
50
1
296
47
2
0
false
false
false
false
false
true
negative
28,631,226
Send string array from java client to NodeJs server
<p>I'm developing an Android app that will send a string array to an external NodeJs server running on the Raspberry Pi.</p> <p>I'm currently handling the sending side of the app using an AsyncTask, with a socket layer setup inside targeted at the NodeJs server. The server is successfully receiving calls from the app ...
I'm developing an Android app that will send a string array to an external NodeJs server running on the Raspberry Pi. I'm currently handling the sending side of the app using an AsyncTask, with a socket layer setup inside targeted at the NodeJs server. The server is successfully receiving calls from the app using net a...
java|android|arrays|node.js|socketstream
0
2015-02-20T14:24:00.367Z
2,015
2
14
4
1,132
1
907
51
5
2
true
false
false
false
false
false
zero
28,631,575
How to convert big int number to Binary ? - Java
<p>I am trying to convert int to binary and i am doing below code.</p> <pre><code>public static String intToBinary16Bit(String strInt) { String bin = Integer.toBinaryString(strInt); return String.format("%016d", Integer.parseInt(bin)); } </code></pre> <p>So, if i am giving <code>strInt = 0211</cod...
I am trying to convert int to binary and i am doing below code. [CODE] So, if i am giving strInt = 0211 than it is working fine and giving the output 0000001000010001 . But, if i am giving strInt = 4527 than it is throwing NumberFormateException . How can I resolved this issue ?
java|android
0
2015-02-20T14:40:59.577Z
2,015
2
14
4
209
3
279
48
2
1
true
false
false
false
false
false
zero
28,631,702
Show ProgressDialog from outside class
<p>I want show a ProgressDialog on the current activity from an outside class, other than passing the variable into the outside class or using a static variable like other answered questions. Is it possible? Here is some simple test code that might help illustrate what I want to do:</p> <p>MainActivity.java</p> <pre>...
I want show a ProgressDialog on the current activity from an outside class, other than passing the variable into the outside class or using a static variable like other answered questions. Is it possible? Here is some simple test code that might help illustrate what I want to do: MainActivity.java [CODE] And test2.java...
java|android
0
2015-02-20T14:46:58.013Z
2,015
2
14
4
215
1
641
38
2
2
true
false
false
false
false
false
zero
28,631,832
Android navigation bar looks bad on Lollipop
<p>I have some problems with the translucent navigation and title bar in our app. It looks very bad.</p> <p>On the Splashscreen the background behind the navigation bar is broken directly on the border to the main screen. The complete background screen is not completely expanded to the background of the translucent na...
I have some problems with the translucent navigation and title bar in our app. It looks very bad. On the Splashscreen the background behind the navigation bar is broken directly on the border to the main screen. The complete background screen is not completely expanded to the background of the translucent navigation ba...
android
0
2015-02-20T14:53:33.150Z
2,015
2
14
4
72
0
531
44
1
1
true
true
false
false
false
false
zero
28,631,895
how to create a radio-button list with extra buttons in android?
<p>I need to create a dynamic radio-button list in my android activity. Every button will contain a text label, and two action buttons, like that:</p> <p><img src="https://i.stack.imgur.com/35YK2.png" alt="enter image description here"></p> <p>But since the RG_list is vertical (because I want all the buttons will be ...
I need to create a dynamic radio-button list in my android activity. Every button will contain a text label, and two action buttons, like that: But since the RG_list is vertical (because I want all the buttons will be in seperate lines) it looks like that: This is my code: [CODE]
android|radio-button
0
2015-02-20T14:56:25.090Z
2,015
2
14
4
86
0
280
64
2
1
true
true
false
false
false
false
zero
28,631,914
android- how to change the color of canvas in a view?
<p>I have written a customized <code>View</code> which draws a circle(it's <code>onDraw</code> function has been overridden to do that). </p> <p>Now how doI change the color of my circle, from code?(from the <code>Activity</code> function which is going to show that circle)</p>
I have written a customized View which draws a circle(it's onDraw function has been overridden to do that). Now how doI change the color of my circle, from code?(from the Activity function which is going to show that circle)
android|android-canvas
-2
2015-02-20T14:57:04.297Z
2,015
2
14
4
694
1
224
53
2
0
false
false
false
false
false
true
negative
28,631,983
Issues parsing dates for a while loop in Android
<p>I'm currently prototyping an app that calculates vacation costs based on check in and check out date. The idea is that once the dates are submitted a While loop runs until the check out date is reached. However, I can't seem to get the Calendar dates to parse correctly. In a recent test I entered a check in date of ...
I'm currently prototyping an app that calculates vacation costs based on check in and check out date. The idea is that once the dates are submitted a While loop runs until the check out date is reached. However, I can't seem to get the Calendar dates to parse correctly. In a recent test I entered a check in date of 2/2...
android|date|while-loop|calendar
0
2015-02-20T15:00:33.887Z
2,015
2
15
4
133
1
598
48
4
1
true
false
false
false
false
false
zero
28,632,008
onCreateOptionsMenu content persist between fragments
<p>I have an ViewPager with 2 fragments. Fragment 1 and Fragment 2. They both override the simplest possible onCreateOptionsMenu()</p> <p>Fragment1</p> <pre><code>@Override public void onCreateOptionsMenu(final Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.fragment1, menu); //super.onCreateOptio...
I have an ViewPager with 2 fragments. Fragment 1 and Fragment 2. They both override the simplest possible onCreateOptionsMenu() Fragment1 [CODE] Fragment2 [CODE] The content of the menu xml files: R.menu.fragment1 [CODE] R.menu.fragment2_actionbar: [CODE] The strange thing is. The fragment1 xml menu ("sdfsdf") is shown...
android|android-fragments|android-viewpager|android-optionsmenu
2
2015-02-20T15:01:59.813Z
2,015
2
15
4
110
0
908
53
4
4
true
true
false
false
false
false
low
28,632,013
Problems with the "notes" DropboxAPI example on Android
<p>There is a DropboxAPI example: notes on the developers site to get you started on developing using DropboxAPI(s). I followed all the instructions, I copied the libs files you get from the online download and added it as a library, even added it in the grade.build file for compilation, copied the app key and secret k...
There is a DropboxAPI example: notes on the developers site to get you started on developing using DropboxAPI(s). I followed all the instructions, I copied the libs files you get from the online download and added it as a library, even added it in the grade.build file for compilation, copied the app key and secret key ...
java|android|android-studio|dropbox|dropbox-api
0
2015-02-20T15:02:09.890Z
2,015
2
15
4
201
0
5,973
55
5
0
false
true
false
false
false
false
zero
28,632,043
How to replace (.) to (,) while entering text in Edittextview in android?
<p>I want to replace (.) with (,) run time by entering text in edittextview in android. i use textwatcher but it can't help me out.</p>
I want to replace (.) with (,) run time by entering text in edittextview in android. i use textwatcher but it can't help me out.
android|android-edittext
-1
2015-02-20T15:03:39.467Z
2,015
2
15
4
62
3
128
73
2
0
false
false
false
false
false
true
negative
28,632,046
Spinner NullPointerException
<p>my problem is that my method <strong>visListe()</strong> will not work when add it to Spinner... it works when i add it to <strong>onCreate</strong>, but when added it to spinner it gave me error : </p> <p><strong>LOGCAT</strong></p> <pre><code>E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: no.hit.kvisli.heiverd...
my problem is that my method visListe() will not work when add it to Spinner... it works when i add it to onCreate , but when added it to spinner it gave me error : LOGCAT [CODE] CODE [CODE] My code worked perfectly before spinner and i have used spinner by this way before without any problems, so im confused and not s...
java|android|spinner
-1
2015-02-20T15:03:53.157Z
2,015
2
15
4
71
3
424
28
3
2
true
false
false
false
false
true
negative
28,632,055
Streaming using libvlc and libstreaming
<p>I'd like to get advices on how to do the following if possible:</p> <p>I've given 3 android devices and I'd like to stream from one to an other (maybe backwards too) at a time but also save it on a third platform (a pc maybe to have a lot of space) for later processing. I'd like to make this pc as a "server" where ...
I'd like to get advices on how to do the following if possible: I've given 3 android devices and I'd like to stream from one to an other (maybe backwards too) at a time but also save it on a third platform (a pc maybe to have a lot of space) for later processing. I'd like to make this pc as a "server" where I recieve a...
android|libvlc|libstreaming
1
2015-02-20T15:04:12.957Z
2,015
2
15
4
499
1
700
39
3
0
false
false
false
false
false
false
low
28,632,133
YouTubeAndroidPlayer on Android crashes on play()
<p>I'm trying to embed a YouTubePlayerView in my Android application. I'm using YouTubePlayerAPI v1.2.1 on Android API 17.</p> <p>It comes with a warning before crashing which probably has something to do with it. </p> <p>The crash happens when player.play() is called. I do get a still however before I push play.</p>...
I'm trying to embed a YouTubePlayerView in my Android application. I'm using YouTubePlayerAPI v1.2.1 on Android API 17. It comes with a warning before crashing which probably has something to do with it. The crash happens when player.play() is called. I do get a still however before I push play. Any ideas? [CODE]
android|youtube-api
4
2015-02-20T15:08:15.580Z
2,015
2
15
4
252
0
314
49
2
1
true
true
false
false
false
false
low
28,632,143
Android switch: how to disable response to touch event?
<p>So i'm developing an Android application and I've added some switch to indicate the status of some elements.</p> <p>But the problme is I hope to control the status by a thread, instread of user touch on the screen. </p> <p>Is it possible to turn that off? or if not, what could I use to indicate the changement of s...
So i'm developing an Android application and I've added some switch to indicate the status of some elements. But the problme is I hope to control the status by a thread, instread of user touch on the screen. Is it possible to turn that off? or if not, what could I use to indicate the changement of status by something s...
android|user-interface
0
2015-02-20T15:08:43.347Z
2,015
2
15
4
1,231
1
472
55
2
1
true
false
false
false
false
false
zero
28,632,278
Implementing push technology connection with POST (HTTP) through persistent connection
<p>I am developing a text message type app. </p> <p>The messages are communicated only in direction ((1)Server -> (n)Client)</p> <ul> <li>Server: PHP (LAMP)</li> <li>Clients: Android (Java)</li> </ul> <p>One option is to ask to server every x seconds "new messages?". This option is not worth me because creating a HT...
I am developing a text message type app. The messages are communicated only in direction ((1)Server -> (n)Client) Server: PHP (LAMP) Clients: Android (Java) One option is to ask to server every x seconds "new messages?". This option is not worth me because creating a HTTP connection every x seconds for each device is v...
java|php|android|post
0
2015-02-20T15:16:30.800Z
2,015
2
15
4
171
1
1,274
86
4
2
true
false
false
false
false
false
zero
28,632,367
Button not calling OnClickListener
<p>I've just created a <code>ScrollView</code> that has a <code>LinearLayout</code> inside. This <code>LinearLayout</code> has a button on the top, and there is nothing I can do. The button's onClickListener is never called. </p> <p>I want to detect when a user presses the <code>LinearLayout</code> and when presses th...
I've just created a ScrollView that has a LinearLayout inside. This LinearLayout has a button on the top, and there is nothing I can do. The button's onClickListener is never called. I want to detect when a user presses the LinearLayout and when presses the Button. Here is my code: [CODE] The "layoutClick" function is ...
android|button
0
2015-02-20T15:21:10.090Z
2,015
2
15
4
146
1
416
34
2
1
true
false
false
false
false
false
zero
28,632,372
Overlap home button using Toolbar
<p>I'm using the (relatively) new Toolbar widget instead of an ActionBar. I'm trying to overlap the home menu button (burger) with a notification icon.</p> <p>I've tried a few hacky things to get this done but nothing has worked.</p> <p>Has anyone faced a similar situation?</p> <p>Thanks!</p>
I'm using the (relatively) new Toolbar widget instead of an ActionBar. I'm trying to overlap the home menu button (burger) with a notification icon. I've tried a few hacky things to get this done but nothing has worked. Has anyone faced a similar situation? Thanks!
android|android-toolbar
0
2015-02-20T15:21:22.797Z
2,015
2
15
4
517
1
265
33
2
0
false
false
false
false
false
false
zero
28,632,388
Android Studio integration with MobileFirst
<p>I have several problems running the native android example (Hello World) from IBM MobileFirst Studio (Eclipse Kepler) with an integration with Android Studio.</p> <p>I followed all the steps in the documentation including all prerequisites <a href="https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm...
I have several problems running the native android example (Hello World) from IBM MobileFirst Studio (Eclipse Kepler) with an integration with Android Studio. I followed all the steps in the documentation including all prerequisites here . When I run the application via the context menu: Right click on the application ...
android|android-studio|ibm-mobilefirst
0
2015-02-20T15:21:55.457Z
2,015
2
15
4
1,176
1
1,629
43
3
1
true
false
false
false
false
false
zero
28,632,415
RedBear Beacon. How to get UUID using Bluetooth scan?
<p>I'm using some <a href="http://redbearlab.com/ibeacon/" rel="nofollow noreferrer">Red Bear Beacons</a> (that in Android are charged as <code>bluetooth</code> devices) into an Android application and I want to get the UUID stored in the beacon, as they do in <a href="https://play.google.com/store/apps/details?id=net....
I'm using some Red Bear Beacons (that in Android are charged as bluetooth devices) into an Android application and I want to get the UUID stored in the beacon, as they do in their native app . Using the samples they provide I have not ben able to get it. What I have tried: First approach [CODE] Second approach [CODE] N...
android|bluetooth-lowenergy|ibeacon|ibeacon-android|android-ibeacon
0
2015-02-20T15:23:31.493Z
2,015
2
15
4
4,078
2
1,179
53
5
2
true
false
true
false
false
false
zero
28,632,447
CalendarContract.Events.EVENT_LOCATION during inserting calendar event not working
<p>I have wrote code for inserting calendar event programmatically, which is working fine, Events are added first to device calendar app and then synced with calendar account, and I can check my calendar events synced with it. </p> <pre><code>values.put(CalendarContract.Events.DTSTART, DateUtils.getServerTimeInDate(vi...
I have wrote code for inserting calendar event programmatically, which is working fine, Events are added first to device calendar app and then synced with calendar account, and I can check my calendar events synced with it. [CODE] And when i check my google calendar account, everything get synced with account, but loca...
android|android-intent|google-calendar-api
0
2015-02-20T15:25:19.197Z
2,015
2
15
4
1,082
1
461
82
3
1
true
false
false
false
false
false
zero
28,632,489
MPAndroidChart how to set label color?
<p>got the following code:</p> <pre><code> graph = (LineChart) convertView.findViewById(R.id.graph); graph.getPaint(Chart.PAINT_LEGEND_LABEL).setColor(Color.BLUE); graph.getPaint(Chart.PAINT_YLABEL).setColor(Color.BLUE); graph.getPaint(Chart.PAINT_XLABEL).setColor(Color.BLUE); </code></pre> <p>But stil...
got the following code: [CODE] But still the color of X/Y-value-lables and also the lable of the legend stay in black color. Do I miss something? Is there an other way to set the color of these? This line for example works and results in blue value-lables for each data-point: [CODE] Thanks in advance!
android|mpandroidchart
16
2015-02-20T15:27:15.317Z
2,015
2
15
4
22,445
2
302
38
2
2
true
false
true
true
true
false
medium
28,632,521
Stopped Foreground Service Restarting Itself
<p>I have a foreground service in which I register for location updates, and intent filter for the battery intent <code>Intent.ACTION_BATTERY_CHANGED</code>, and a <code>LocalBroadcast</code>. All of these I remove in the <code>onDestroy</code> of my service as once this service is dead.</p> <p>I also have changed the...
I have a foreground service in which I register for location updates, and intent filter for the battery intent Intent.ACTION_BATTERY_CHANGED , and a LocalBroadcast . All of these I remove in the onDestroy of my service as once this service is dead. I also have changed the return integer in the onStartCommand from START...
android|android-service|android-service-binding
4
2015-02-20T15:28:31.563Z
2,015
2
15
4
1,938
1
1,057
44
3
0
false
false
false
false
false
false
low
28,632,550
Perform an action when a notification is canceled by the system or anything else but the user
<p>Is there a way to perform an action when a notification is canceled by the system (by shutting down or restarting) or any other stuff but the user ?</p> <p>If so, how ? Or how can I implement <em>onNotificationRemoved</em> ?</p>
Is there a way to perform an action when a notification is canceled by the system (by shutting down or restarting) or any other stuff but the user ? If so, how ? Or how can I implement onNotificationRemoved ?
android|android-notifications
2
2015-02-20T15:29:48.810Z
2,015
2
15
4
42
1
208
93
2
0
false
false
false
false
false
false
low
28,632,656
onDraw() doesn't getting called after invalidate
<p>I have the custom view, (it extends View class), it's updated from the Adapter's getView():</p> <pre><code> public void setProgress(float progressDegrees) { this.progressDegrees = progressDegrees; invalidate(); } </code></pre> <p>I've tried to add setWillNotDraw(false) call to the constructor, vie...
I have the custom view, (it extends View class), it's updated from the Adapter's getView(): [CODE] I've tried to add setWillNotDraw(false) call to the constructor, view's visibility is View.VISIBLE, but onDraw() does not getting called. Why?
android|ondraw|invalidation
1
2015-02-20T15:34:53.643Z
2,015
2
15
4
546
0
241
48
3
1
true
true
false
false
false
false
low
28,632,750
Android NDK with OpenGLES2 Undefined reference to glcalls
<p>Following the tutorial on : <a href="http://www.learnopengles.com/calling-opengl-from-android-using-the-ndk/" rel="nofollow">http://www.learnopengles.com/calling-opengl-from-android-using-the-ndk/</a>.<br> Created all the necessary files, but when trying to build I get the errors : </p> <blockquote> <p>D:\svn-Gen...
Following the tutorial on : http://www.learnopengles.com/calling-opengl-from-android-using-the-ndk/ . Created all the necessary files, but when trying to build I get the errors : D:\svn-Genicap3D\trunk\frontend_android\Genicap3D\app\src\main\jni\core\game.cpp Error:(6) undefined reference to 'glClearColor' Error:(14) u...
c++|android-ndk|opengl-es-2.0
0
2015-02-20T15:39:54.677Z
2,015
2
15
4
4,168
2
563
57
3
2
true
false
true
false
false
false
zero
28,632,905
How to change Android thumbnail to protect sensitive data
<p>Our Android app may present sensitive data and we wish to hide it when the app is not in use - Android is taking a snapshot of the app and displays it in the <a href="http://developer.android.com/guide/components/recents.html" rel="nofollow noreferrer">overview screen</a>. At the same time we want to enable the user...
Our Android app may present sensitive data and we wish to hide it when the app is not in use - Android is taking a snapshot of the app and displays it in the overview screen . At the same time we want to enable the user to take screen shots of the app when using it. We already checked following options: Using FLAG_SECU...
android|thumbnails
7
2015-02-20T15:46:57.537Z
2,015
2
15
4
1,477
1
1,053
57
2
0
false
false
false
false
false
false
medium
28,632,912
Specific device fails to layout correctly
<p>Hey there I have an issue, that currently one user reported, on a <code>non-rooted</code> device <code>Micromax A110Q (hdpi)</code> <code>android 4.2.1</code> it fails to <code>MATCH_PARENT</code> on the <code>content view</code> or the <code>decor view</code></p> <p>Here here is a comparison of what you can see o...
Hey there I have an issue, that currently one user reported, on a non-rooted device Micromax A110Q (hdpi) android 4.2.1 it fails to MATCH_PARENT on the content view or the decor view Here here is a comparison of what you can see on the device and on emulator (with exactly the same density and resolution and android ver...
android|android-framelayout
0
2015-02-20T15:47:17.893Z
2,015
2
15
4
34
0
918
41
2
1
true
true
false
false
false
false
zero
28,633,043
getJSONObject returns wrong value
<p>I`m consuming a REST Web Service that returns JSON. But the JSON Object value is </p> <blockquote> <p>"[12]"</p> </blockquote> <p>when I println. The value must be only <code>12</code> without <code>"[]"</code> </p> <p>Is my code wrong? Theres my code:</p> <pre><code> HttpClient httpClient = new DefaultHttpCli...
I`m consuming a REST Web Service that returns JSON. But the JSON Object value is "[12]" when I println. The value must be only 12 without "[]" Is my code wrong? Theres my code: [CODE] There`s my logcat when I println the id [CODE] EDIT: respStr: 02-20 13:45:32.210 31135-31135/com.allapps.localizeapp I/System.out﹕ [{"id...
java|android
0
2015-02-20T15:53:22.263Z
2,015
2
15
4
250
1
393
33
2
2
true
false
false
false
false
false
zero
28,633,117
Null pointer at setting setAdapter() in customadapter
<p>I have two layouts for a single activity that I will dynamically change the layout. Here the null pointer occurs at the line.</p> <ol> <li>I tried to change the view from layout 1 to layout 2</li> <li><p>listview.setadapter(listviewAdapter)</p> <p><strong>lv2.setAdapter(lva);</strong></p></li> </ol> <p>The error ...
I have two layouts for a single activity that I will dynamically change the layout. Here the null pointer occurs at the line. I tried to change the view from layout 1 to layout 2 listview.setadapter(listviewAdapter) lv2.setAdapter(lva); The error I am getting is java.lang.NullPointerException at in.prasilabs.eagleeye.L...
android|android-layout|android-listview|android-asynctask|custom-adapter
0
2015-02-20T15:57:28.440Z
2,015
2
15
4
183
1
364
53
5
1
true
false
false
false
false
false
zero
28,633,132
Android Checkbox getchecked (CompoundButton.OnCheckedChangeListener (without button click event))
<p>Here is my MainActivity :</p> <pre><code>public class MainActivity extends ActionBarActivity implements CompoundButton.OnCheckedChangeListener { CheckBox cb; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activ...
Here is my MainActivity : [CODE] And here my layout : [CODE] I get the following exceptions when i run [CODE] Can you please guide me ? how do you work with checkbox if you don't want to use a button click listener ? Thanks a lot in advance :)
java|android|checkbox|android-checkbox
-2
2015-02-20T15:58:35.670Z
2,015
2
15
4
4,993
4
243
97
4
3
true
false
true
false
false
true
negative
28,633,169
Cannot upload apk to MobileFirst Test Workbench
<p>I am using Eclipse Juno (Service Release 2), IBM Worklight Studio v6.2.0.00 and IBM Mobilefirst Platform Test Workbench v8.6.0 </p> <p>What I am trying to do is to upload an apk from the Android environment of my Worklight Project to the Mobile Test Workbench but it keeps failing, giving me the following error: </...
I am using Eclipse Juno (Service Release 2), IBM Worklight Studio v6.2.0.00 and IBM Mobilefirst Platform Test Workbench v8.6.0 What I am trying to do is to upload an apk from the Android environment of my Worklight Project to the Mobile Test Workbench but it keeps failing, giving me the following error: [CODE] I have s...
android|eclipse|ibm-mobilefirst|worklight-mtww
0
2015-02-20T16:00:35.877Z
2,015
2
16
4
241
2
887
47
4
2
true
false
false
false
false
false
zero
28,633,207
Google Maps Android V2 Grey/Blank Screen App
<p>I am making a new app and I came across an issue. When I launch app(on my physical device and genymotion with google play service enabled both tested) the app launches fine but the screen is all grey, I can only see location button and zoom in and out. I've seen other people having this problem but none of the answe...
I am making a new app and I came across an issue. When I launch app(on my physical device and genymotion with google play service enabled both tested) the app launches fine but the screen is all grey, I can only see location button and zoom in and out. I've seen other people having this problem but none of the answers ...
android|api|google-maps
0
2015-02-20T16:01:59.597Z
2,015
2
16
4
3,003
2
446
44
3
2
true
false
true
false
false
false
zero
28,633,243
How to import the cURL built library into Android NDK
<p>I'm trying to setup cURL (or libcurl) on the .c side of my android application (in the ndk) and in order to keep this as simple as possible I'm trying to import an already built library into my project, instead of the whole source code.</p> <p>I have found several websites on how to import cURL as source code on An...
I'm trying to setup cURL (or libcurl) on the .c side of my android application (in the ndk) and in order to keep this as simple as possible I'm trying to import an already built library into my project, instead of the whole source code. I have found several websites on how to import cURL as source code on Android, but ...
c++|curl|android-ndk
0
2015-02-20T16:04:36.890Z
2,015
2
16
4
1,344
0
878
53
3
0
false
true
false
false
false
false
zero
28,633,270
Trouble receiving Wearable Data API updates
<p>I am reusing some of the classes from the FindMyPhone demo for Android Wear <a href="https://github.com/mauimauer/AndroidWearable-Samples/tree/master/FindMyPhone" rel="nofollow">https://github.com/mauimauer/AndroidWearable-Samples/tree/master/FindMyPhone</a></p> <p>I am trying to send a message to the handheld app ...
I am reusing some of the classes from the FindMyPhone demo for Android Wear https://github.com/mauimauer/AndroidWearable-Samples/tree/master/FindMyPhone I am trying to send a message to the handheld app but only after the user has pressed the launcher on their watch 5 times. If I set the trigger to true for the first r...
android|wear-os|android-wear-data-api
0
2015-02-20T16:06:13.297Z
2,015
2
16
4
296
1
832
43
3
3
true
false
false
false
false
false
zero
28,633,286
Unknown error when playing game for a long time
<p>I m developing the LibGdx based game in android device. I am getting this unknown error when I played for long time.</p> <h2>Logcat</h2> <pre><code>02-20 19:38:01.581: D/dalvikvm(26926): dump native stack for : main 02-20 19:38:01.603: D/dalvikvm(26926): unwind backtrace 02-20 19:38:01.647: D/dalvikvm(26926): get ...
I m developing the LibGdx based game in android device. I am getting this unknown error when I played for long time. Logcat [CODE]
android|libgdx|runtime-error
0
2015-02-20T16:07:24.503Z
2,015
2
16
4
67
0
130
47
3
1
true
true
false
false
false
false
zero
28,633,368
How to retrieve data from parse.com database (Android)?
<p>I'm new to Android and have been trying to use Parse.com. The code snippets provided on their website have been very useful. I've been able to send the data from my app to database, which means that it is connecting to the right database. But I'm unable to retrieve the correct data from it. No matter what object ID ...
I'm new to Android and have been trying to use Parse.com. The code snippets provided on their website have been very useful. I've been able to send the data from my app to database, which means that it is connecting to the right database. But I'm unable to retrieve the correct data from it. No matter what object ID I u...
java|android|parse-platform
3
2015-02-20T16:11:42.813Z
2,015
2
16
4
4,960
1
653
55
3
2
true
false
true
false
false
false
low
28,633,374
Finish on onPause()
<p>I have two activity. One of these is a sort of home activity (with some choises) and the other is the main activity. Use do this:</p> <pre><code>&lt;activity android:name=".Home" android:label="@string/app_name" android:screenOrientation="portrait"&gt; &lt;intent-filt...
I have two activity. One of these is a sort of home activity (with some choises) and the other is the main activity. Use do this: [CODE] And in Home.java i set: [CODE] In MainActivity.java I do nothing in method onPause() and onStop() . The problem is that if in MainActivity I set back, the app is in my background app ...
android|android-intent|android-activity
0
2015-02-20T16:11:59.527Z
2,015
2
16
4
589
2
461
19
3
2
true
false
false
false
false
false
zero
28,633,452
android split the circle without taking the origin into consideration
<p>I'm trying to split the circle into something of this sort: <a href="http://i.stack.imgur.com/hNg3E.png" rel="nofollow">http://i.stack.imgur.com/hNg3E.png</a> I want to color the major arc part of the circle with transparent color and minor arc of the circle with black color. Here is what I have tried, but unable to...
I'm trying to split the circle into something of this sort: http://i.stack.imgur.com/hNg3E.png I want to color the major arc part of the circle with transparent color and minor arc of the circle with black color. Here is what I have tried, but unable to reach the final goal: [CODE] Any help on this pls?
android|canvas|drawable
0
2015-02-20T16:15:37.023Z
2,015
2
16
4
268
1
304
69
3
1
true
false
false
false
false
false
zero
28,633,519
Convert Android Sensor TYPE_ORIENTATION to rotation matrix
<p>Is it possible to convert the three values from an android sensor of <em>TYPE_ORIENTATION</em> to a rotation matrix?</p> <p>I know this sensor is deprecated, but my device doesn't have a <em>ROTATION_VECTOR</em> nor a compass, so I'm stuck with the ORIENTATION sensor.</p> <p>My goal is to animate a cube in <em>Ope...
Is it possible to convert the three values from an android sensor of TYPE_ORIENTATION to a rotation matrix? I know this sensor is deprecated, but my device doesn't have a ROTATION_VECTOR nor a compass, so I'm stuck with the ORIENTATION sensor. My goal is to animate a cube in OpenGL with this rotation matrix, making it ...
java|android|opengl-es|rotation|orientation
3
2015-02-20T16:19:06.353Z
2,015
2
16
4
346
1
390
58
5
0
false
false
false
false
false
false
low
28,633,628
One can use getDefaultSharedPreferences and getSharedPreferences(nome,mode) in the same app?
<p>I'm maintaining an app that uses Shared Preferences. </p> <p>Normal settings are got from getDefaultSharedPreferences. I would like to store another set of preferentes (user session info, completely unrelated with the other settings), using getSharedPreferences.</p> <p>If I do that, there's any chance of one cause...
I'm maintaining an app that uses Shared Preferences. Normal settings are got from getDefaultSharedPreferences. I would like to store another set of preferentes (user session info, completely unrelated with the other settings), using getSharedPreferences. If I do that, there's any chance of one cause interference on ano...
android|sharedpreferences
2
2015-02-20T16:25:38.267Z
2,015
2
16
4
81
1
325
92
2
0
false
false
false
false
false
false
low
28,633,677
Android efficiency importing static methods or importing the class
<p>I've seen in some projects people importing directly a static method into an Activity or a class instead of the whole class. </p> <p>My question is, knowing that a static method can be called several times (<em>for being more accurate, 5 or more times</em>) in the same class, is it more efficient to import the stat...
I've seen in some projects people importing directly a static method into an Activity or a class instead of the whole class. My question is, knowing that a static method can be called several times ( for being more accurate, 5 or more times ) in the same class, is it more efficient to import the static method or it is ...
java|android|performance|static|static-methods
5
2015-02-20T16:28:07.007Z
2,015
2
16
4
863
2
356
66
5
0
false
false
false
false
false
false
low
28,633,807
Put views on a background VideoView
<p>I have a problem with a VideoView.</p> <p>I have to use a VideView as background and I need to have some views on this videoView.</p> <p>I use a similar code in my layout:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools...
I have a problem with a VideoView. I have to use a VideView as background and I need to have some views on this videoView. I use a similar code in my layout: [CODE] When I run this example I can't see the video. I need to call the method videoView.setZOrderMediaOverlay(true); to display this video. But in this way (whe...
java|android|android-videoview|android-relativelayout
0
2015-02-20T16:35:20.180Z
2,015
2
16
4
621
1
450
35
4
1
true
false
false
false
false
false
zero
28,633,873
Android ROTATION_VECTOR sensor to local axis rotation
<p>I need to extract rotation of an Android device about the device Z-axis <img src="https://i.stack.imgur.com/ngpMX.png" alt="Android axes"></p> <p>I am currently using the ROTATION_VECTOR sensor and the following code, where <code>rotVec</code> is cloned from the <code>values</code> member of the <code>SensorEvent</...
I need to extract rotation of an Android device about the device Z-axis I am currently using the ROTATION_VECTOR sensor and the following code, where rotVec is cloned from the values member of the SensorEvent : [CODE] As the device gets closer to flat, the value reported drifts from the true value. Also, the value is i...
android|android-sensors
0
2015-02-20T16:38:34.240Z
2,015
2
16
4
553
0
446
53
2
1
true
true
false
false
false
false
zero
28,633,939
Device orientation change detection issue
<p>My objective is to reposition a container everytime the device's orientation changes. It should be so simple to detect the correct orientation but in reality it isn't because the orientation can be different depending of the device.</p> <p>Any simple ideas without having to validate the device's OS with JavaScript?...
My objective is to reposition a container everytime the device's orientation changes. It should be so simple to detect the correct orientation but in reality it isn't because the orientation can be different depending of the device. Any simple ideas without having to validate the device's OS with JavaScript? Here's a s...
javascript|android|ios|mobile
4
2015-02-20T16:41:54.810Z
2,015
2
16
4
329
0
360
41
4
1
true
true
false
false
false
false
low
28,633,942
getSupportFragmentManager().findFragmentById() always returns null
<p>I'm trying to show a GoogleMap in my App but I get problems right at the beginning of this task. The line:</p> <p><code>SupportMapFragment mapFrag = (SupportMapFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.map);</code></p> <p>always returns null.</p> <p>I have tried a lot of things bu...
I'm trying to show a GoogleMap in my App but I get problems right at the beginning of this task. The line: SupportMapFragment mapFrag = (SupportMapFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.map); always returns null. I have tried a lot of things but nothing works. Could you please help me...
java|android|android-fragments|google-maps-android-api-2
1
2015-02-20T16:41:57.463Z
2,015
2
16
4
6,241
1
453
66
4
2
true
false
true
false
false
false
low
28,633,947
Gradle build variants and flavors, how could i put this into practice?
<p>I have searched and researched and I have performed a lot of tests but I am still stuck.</p> <p>Because an image is better than an explication, i'm stuck on this one....</p> <p><img src="https://i.stack.imgur.com/F4yaQ.png" alt="enter image description here"></p> <p>"Demo" and "main" have a different sourcetree (...
I have searched and researched and I have performed a lot of tests but I am still stuck. Because an image is better than an explication, i'm stuck on this one.... "Demo" and "main" have a different sourcetree (main -> release, demo -> demo). I want to make inerhit other flavors like in the picture. Somebody can help me...
android|gradle|build-settings|android-productflavors
1
2015-02-20T16:42:08.220Z
2,015
2
16
4
42
0
352
70
4
0
false
true
false
false
false
false
low
28,634,009
Widget icon not updating
<p>I've defined an upload_widget.png file for my app widget, and declared it as below in my AndroidManifest.xml. It worked fine when I first created it, but I've now made a change to the .png image files (in each of /drawable folders), synchronised the files in Android Studio, but the widget icon is not reflecting the ...
I've defined an upload_widget.png file for my app widget, and declared it as below in my AndroidManifest.xml. It worked fine when I first created it, but I've now made a change to the .png image files (in each of /drawable folders), synchronised the files in Android Studio, but the widget icon is not reflecting the new...
android|android-widget|icons
0
2015-02-20T16:46:03.217Z
2,015
2
16
4
1,107
1
712
24
3
2
true
false
false
false
false
false
zero
28,634,028
Relative Layout: How to center view in the remaining space to the right of an element?
<p>I am trying to center my 'SKIP' button in the center of the remaining space to the <strong>right</strong> of the little Android icon. How can I do this in a relative layout?</p> <p><img src="https://i.stack.imgur.com/yO115.png" alt="enter image description here"></p> <p>Here's my current XML</p> <pre><code>&lt;Re...
I am trying to center my 'SKIP' button in the center of the remaining space to the right of the little Android icon. How can I do this in a relative layout? Here's my current XML [CODE]
android|android-layout|android-relativelayout
3
2015-02-20T16:46:40.333Z
2,015
2
16
4
1,653
3
185
86
3
1
true
false
false
false
false
false
low
28,634,091
Do custom permissions stops Google Play from auto-update?
<p><strong>Scenario:</strong></p> <p>I have an app already deployed on Google Play.</p> <p>For some internal reasons, we'll have a separate app (separate .apk) which define a custom permission on the manifest:</p> <pre><code>&lt;permission android:name="&lt;my.app.package&gt;.PERMISSION.extras" android:protect...
Scenario: I have an app already deployed on Google Play. For some internal reasons, we'll have a separate app (separate .apk) which define a custom permission on the manifest: [CODE] and the existing app will use this permission. [CODE] both apps are signed with our key and it the communication between the two apks is ...
android|google-play|android-permissions
0
2015-02-20T16:50:06.343Z
2,015
2
16
4
700
2
665
57
3
2
true
false
false
false
false
false
zero
28,634,100
Is it worth to implement parcelable on a simple enum
<p>I know that enums implement serializable interface and that parcelable is much faster. The question is, is it worth to implement parcelable on an enum to gain speed or are they fast enough even with serialization? </p>
I know that enums implement serializable interface and that parcelable is much faster. The question is, is it worth to implement parcelable on an enum to gain speed or are they fast enough even with serialization?
android
1
2015-02-20T16:50:19.803Z
2,015
2
16
4
293
2
213
52
1
0
false
false
false
false
false
false
low
28,634,109
Android Javascript Interface stops working after Resume
<p>I have a <strong>WebView</strong> that shows the content from a HTML file with a SVG object and inside it some clickable objects with a <em>onclick()</em> function calling the Android interface with <em>java.performClick()</em>. </p> <p>Here's a code sample:</p> <pre><code>WebView wvMapa = (WebView) findViewById(R...
I have a WebView that shows the content from a HTML file with a SVG object and inside it some clickable objects with a onclick() function calling the Android interface with java.performClick() . Here's a code sample: [CODE] It works great on the first run, but when I click Home button and after Resume or open another I...
java|javascript|android|webview
0
2015-02-20T16:50:47.523Z
2,015
2
16
4
297
0
458
55
4
1
true
true
false
false
false
false
zero
28,634,132
upload photo to parse ( android)
<p>I'm a new <em>parse.com</em> user and I want to upload image to it that is chosen by the user. </p> <p>the user choose the image , then the name of it and then press the upload button</p> <p>but when I click the button upload the program is crash :(</p> <p>this is my try </p> <pre><code> Button btn; ImageV...
I'm a new parse.com user and I want to upload image to it that is chosen by the user. the user choose the image , then the name of it and then press the upload button but when I click the button upload the program is crash :( this is my try [CODE] thankyou
android|image|parse-platform
0
2015-02-20T16:52:29.917Z
2,015
2
16
4
147
0
256
32
3
1
true
true
false
false
false
false
zero
28,634,191
How do i modify the android actionbar?
<p>I have a problem with understanding how the Action bar can be modified. </p> <p>I want to change the action bar so i can have a reqular menu button on the left side and then a name in the middle, and then a button on the right. </p> <p>Wanted to add picture but i have to low rep sorry. I hope that somebody can und...
I have a problem with understanding how the Action bar can be modified. I want to change the action bar so i can have a reqular menu button on the left side and then a name in the middle, and then a button on the right. Wanted to add picture but i have to low rep sorry. I hope that somebody can understand and help me!
android|android-layout
0
2015-02-20T16:55:06.207Z
2,015
2
16
4
28
0
319
38
2
0
false
true
false
false
false
false
zero
28,634,228
GestureDetector working only on part of the activity
<p>I have an activity that implements onGestureListener and I have some code in its onFling method. The xml layout I am using for this activity contains a Linear layout (vertical) wrapping a relative layout and a custom layout class.</p> <p>This custom layout class extends Relative layout. Inside this custom layout cl...
I have an activity that implements onGestureListener and I have some code in its onFling method. The xml layout I am using for this activity contains a Linear layout (vertical) wrapping a relative layout and a custom layout class. This custom layout class extends Relative layout. Inside this custom layout class, I have...
android|android-relativelayout|mupdf|gesturedetector|onfling
0
2015-02-20T16:56:52.927Z
2,015
2
16
4
236
1
951
52
5
2
true
false
false
false
false
false
zero
28,634,232
Set Adapter to linearLayout instead of listView
<p>I am working on a layout that needs to adapt to the kind of data I receive. I need to make this as generic as possible. So the layout in my adapter class needs to be modified dynamically according to the data. This is how I plan to do so.</p> <p>My activity xml layout:</p> <pre><code>&lt;LinearLayout&gt; &lt;Li...
I am working on a layout that needs to adapt to the kind of data I receive. I need to make this as generic as possible. So the layout in my adapter class needs to be modified dynamically according to the data. This is how I plan to do so. My activity xml layout: [CODE] I have adapter which populates data. Adapter code ...
android|android-layout|listview|android-listview|baseadapter
1
2015-02-20T16:57:16.103Z
2,015
2
16
4
4,604
3
506
47
5
1
true
false
true
false
false
false
low
28,634,351
TARSOS DSP for Android: retrieving SpectralPeaks
<p>I'm using Tarsos Dsp for android for retrieving spectral peaks from an audiofile. Since version 2, TarsosDSP doesn't use javax which should make everything a lot easier.</p> <p>What is bugging me is that my code is working fine but android is struggling deconding the audiofile: this seems to be made with avconv.</...
I'm using Tarsos Dsp for android for retrieving spectral peaks from an audiofile. Since version 2, TarsosDSP doesn't use javax which should make everything a lot easier. What is bugging me is that my code is working fine but android is struggling deconding the audiofile: this seems to be made with avconv. [CODE] How th...
android|audio|signal-processing|avconv|tarsosdsp
1
2015-02-20T17:03:50.837Z
2,015
2
17
4
1,176
1
464
48
5
3
true
false
false
false
false
false
low
28,634,404
Android Emulator system app disappears after reboot
<p>I have installed android sdk on Ubuntu 12.04, its working fine, for testing I installed some application like whatsapp,fileexplorer etc, unfortunately after reboot application disappears, in fact emulator shows only default apps, finally after many google search I found some post on system application, and I tried l...
I have installed android sdk on Ubuntu 12.04, its working fine, for testing I installed some application like whatsapp,fileexplorer etc, unfortunately after reboot application disappears, in fact emulator shows only default apps, finally after many google search I found some post on system application, and I tried like...
android|android-sdk-tools
1
2015-02-20T17:06:26.117Z
2,015
2
17
4
762
1
495
51
2
1
true
false
false
false
false
false
low
28,634,438
Android: Squared button
<p>How can I obtain a squared button in Android?</p> <p>I tried to create a custom button extending the Button class as provided by this <a href="http://android-layouts.com/category/tags/square" rel="nofollow">link</a>. I used the following code:</p> <pre><code>import android.content.Context; import android.util.Attr...
How can I obtain a squared button in Android? I tried to create a custom button extending the Button class as provided by this link . I used the following code: [CODE] I obtain squared button, but they are too big as show here , in this case there is too much margin. How can I draw squared button with an appropiate dim...
android
0
2015-02-20T17:08:15.767Z
2,015
2
17
4
78
1
383
23
1
1
true
false
false
false
false
false
zero
28,634,477
Call native library method in independent native library
<p>I am trying to implement the solution stated in this <a href="https://stackoverflow.com/questions/10649119/calling-native-method-twice-of-third-party-library-in-an-activity-causes-the-and">stackoverflow post</a>.</p> <p>As the solution suggests, I created a independent native library. This how I have implemented th...
I am trying to implement the solution stated in this stackoverflow post . As the solution suggests, I created a independent native library. This how I have implemented that library thus far. [CODE] According to the solution, build another independent native library (utility library) to load and unload the other librari...
android|c|android-ndk|java-native-interface
0
2015-02-20T17:10:50.127Z
2,015
2
17
4
646
1
831
56
4
2
true
false
false
false
false
false
zero
28,634,539
How to share and sync android sqlite database across devices when they are updated?
<p>I am a novice android app developer. Currently I am developing an app which has a sqlite database. Users store some data in that database. Now I want to add an online synchronization / data sharing feature in my app - If a user update his/her device's database( that means store / delete data ) all other users of tha...
I am a novice android app developer. Currently I am developing an app which has a sqlite database. Users store some data in that database. Now I want to add an online synchronization / data sharing feature in my app - If a user update his/her device's database( that means store / delete data ) all other users of that a...
android|android-sqlite
3
2015-02-20T17:14:17.330Z
2,015
2
17
4
7,634
2
714
83
2
0
false
false
true
false
false
false
low
28,634,589
Android emulator on Travis CI showing com.android.builder.testing.ConnectedDevice > hasTests[test(AVD) - 4.4.2] FAILED even though tests present
<p>I've read through <a href="https://stackoverflow.com/questions/27084948/com-android-builder-testing-connecteddevice-hasteststestavd-5-0-failed">com.android.builder.testing.ConnectedDevice &gt; hasTests[test(AVD) - 5.0] FAILED</a> and I am having a very similar problem. Unfortunately, it's very difficult to discern w...
I've read through com.android.builder.testing.ConnectedDevice > hasTests[test(AVD) - 5.0] FAILED and I am having a very similar problem. Unfortunately, it's very difficult to discern what the actual solution to that problem was , given all of the discussion the solution author gave. Essentially, I have the following .t...
android|unit-testing|android-emulator|travis-ci
0
2015-02-20T17:16:35.063Z
2,015
2
17
4
420
1
1,359
144
4
3
true
false
false
false
false
false
zero
28,634,624
How to auto accept Wifi-Direct connection request in android
<p>While connecting to a peer using WiFi Direct, user's permission is required. I know that connection can't be made without user never giving the permission. So I would like a way to ask the user for permission only once at the first start of the application.</p>
While connecting to a peer using WiFi Direct, user's permission is required. I know that connection can't be made without user never giving the permission. So I would like a way to ask the user for permission only once at the first start of the application.
android|user-permissions|wifi-direct
0
2015-02-20T17:19:23.887Z
2,015
2
17
4
1,403
1
257
60
3
0
false
false
false
false
false
false
zero
28,634,785
Checking the contents of the record before it is shown to listview using SimpleCursorAdapter
<p>I would like to display a gray star image if column <code>"status"==0</code> and display a golden star if column <code>"status"==1</code>. My code can display the record to <code>listview</code>, but without checking the "status" column first:</p> <pre><code>public void loadPertanyaan(){ Cursor soal = DBAda...
I would like to display a gray star image if column "status"==0 and display a golden star if column "status"==1 . My code can display the record to listview , but without checking the "status" column first: [CODE] Then I add code to check status column using moveToNext() after setListAdapter(dataAdapter) . But the appl...
android|listview|simplecursoradapter
0
2015-02-20T17:27:35.933Z
2,015
2
17
4
79
1
479
92
3
2
true
false
false
false
false
false
zero
28,634,836
"Gradle files have changed since last project sync." message always shows up
<p>I'm working on an Android Studio project of which I write while constantly move back and forth from laptop to desktop using usb stick. There has been no problem for couple of months I tried this since Android Studio went stable, until today this message keeps showing up no matter how many times I sync the gradle:</p...
I'm working on an Android Studio project of which I write while constantly move back and forth from laptop to desktop using usb stick. There has been no problem for couple of months I tried this since Android Studio went stable, until today this message keeps showing up no matter how many times I sync the gradle: Gradl...
android|android-studio|gradle
20
2015-02-20T17:30:34.633Z
2,015
2
17
4
18,313
7
735
76
3
1
true
false
true
true
true
false
medium
28,634,848
How to terminate invoking setAlarm once the alarm is rang.
<p><strong>My Problem :</strong> <code>setAlarms()</code> method is called again and again (64 times a second!!) by the <code>service</code> once alarm starts ringing. How can I stop calling it once the alarm starts ringing?</p> <p>My code</p> <p><code>TRTimeReminder.class</code></p> <p>This is the class where a new...
My Problem : setAlarms() method is called again and again (64 times a second!!) by the service once alarm starts ringing. How can I stop calling it once the alarm starts ringing? My code TRTimeReminder.class This is the class where a new alarm can be set. [CODE] TRAlarmManager.class [CODE] 'TRService.class' [CODE]
java|android|service|alarmmanager
0
2015-02-20T17:30:53.890Z
2,015
2
17
4
45
1
315
58
4
3
true
false
false
false
false
false
zero
28,634,883
android - PopupMenu snap to selection?
<p>My (admittedly long) PopupMenu's items are the integers from 10 to 99 (radio buttons). The default selection is 48. I would like the menu to snap to the selected value when it opens. PopupMenu appears to lack this functionality. Is there an easy workaround?</p>
My (admittedly long) PopupMenu's items are the integers from 10 to 99 (radio buttons). The default selection is 48. I would like the menu to snap to the selected value when it opens. PopupMenu appears to lack this functionality. Is there an easy workaround?
android|android-layout|selection|popupmenu|snapping
0
2015-02-20T17:32:35.827Z
2,015
2
17
4
47
0
257
38
5
0
false
true
false
false
false
false
zero
28,634,966
path DATA/data/APP_NAME/databases/FILENAME. not exist
<p>I made an application that uses SqliteDatabase. So my application create tables and fill up its. Now I want to find database file. (database.db). I searched the whole forum and I found info that database is by default saved in the directory DATA/data/APP_NAME/databases/FILENAME.</p> <p>But when I explore on my phon...
I made an application that uses SqliteDatabase. So my application create tables and fill up its. Now I want to find database file. (database.db). I searched the whole forum and I found info that database is by default saved in the directory DATA/data/APP_NAME/databases/FILENAME. But when I explore on my phone Data dire...
android|sqlite
0
2015-02-20T17:36:57Z
-1
-1
-1
-1
445
1
572
53
2
1
true
false
false
false
false
false
zero
28,635,064
Android feed.addItem() doesn't add last item
<p>I don't understand why my code doesn't add all the 10 items to my feed, but just 9!</p> <p>The cycle explores all the 10 items, but doesn't add the last one, I checked with Log.e.</p> <p>Here's the code:</p> <pre><code>public class Parser { private Feed feed = new Feed(); private ArrayList&lt;String&gt; ...
I don't understand why my code doesn't add all the 10 items to my feed, but just 9! The cycle explores all the 10 items, but doesn't add the last one, I checked with Log.e. Here's the code: [CODE] Thanks for help! EDIT: I changed the catch, now I get [CODE]
android|vector|jsoup|feedparser|nodelist
1
2015-02-20T17:42:50.410Z
2,015
2
17
4
51
1
257
44
5
2
true
false
false
false
false
false
low
28,635,113
Arrays of sentences with toast
<p>I am studying Java and Android development, and I want to make this application to understand how it works.</p> <p>I am using the Toast class so that clicking on the image, to appear a phrase, I could make it work with numbers, but instead of numbers want to put a few sentences and when I click on the image, the ph...
I am studying Java and Android development, and I want to make this application to understand how it works. I am using the Toast class so that clicking on the image, to appear a phrase, I could make it work with numbers, but instead of numbers want to put a few sentences and when I click on the image, the phrase appear...
java|android
0
2015-02-20T17:46:07.893Z
2,015
2
17
4
85
2
427
30
2
1
true
false
false
false
false
false
zero
28,635,115
Android - Checking FragmentManager transaction for exceptions caused by fragment code before (during) commit
<p>I have a almost-completely-working <strong>modular</strong> (on-the-fly external fragment loading) application on Android.</p> <p>The only thing left is handling exceptions and errors. One of the possibilities that can occur is an <strong>error in the module's (fragment's) code</strong>, such as calling a non-exist...
I have a almost-completely-working modular (on-the-fly external fragment loading) application on Android. The only thing left is handling exceptions and errors. One of the possibilities that can occur is an error in the module's (fragment's) code , such as calling a non-existant method or an average null pointer (which...
java|android|exception|android-fragments|fragmentmanager
0
2015-02-20T17:46:28.160Z
2,015
2
17
4
3,144
1
2,950
108
5
2
true
false
true
false
false
false
zero
28,635,129
Is there a way to put unsent SMS messages in a system queue to be sent whenever service is back?
<p>I am building an android app that will fetch the device location and send it in an SMS to a specified number every certain interval. My problem is that if the SMS was not sent, say for no service, I want the app to send all the unsent messages whenever the service is back. So, my question is, is there a built in fun...
I am building an android app that will fetch the device location and send it in an SMS to a specified number every certain interval. My problem is that if the SMS was not sent, say for no service, I want the app to send all the unsent messages whenever the service is back. So, my question is, is there a built in functi...
android
0
2015-02-20T17:47:02.863Z
2,015
2
17
4
203
0
410
96
1
0
false
true
false
false
false
false
zero
28,635,209
How to correctly bundle 3rd-party-libraries into library projects for .jar creation?
<p>I'm trying to build an SDK <strong>library</strong> (.jar) that developers can include in their projects. The <strong>library</strong> project will use the loopj network 3rd party library to achieve network functionality. <strong><em>So, I need to bundle a library (loopj) into another library (our custom library), a...
I'm trying to build an SDK library (.jar) that developers can include in their projects. The library project will use the loopj network 3rd party library to achieve network functionality. So, I need to bundle a library (loopj) into another library (our custom library), and output a jar. There are two projects, (1) the ...
java|android|intellij-idea|loopj
2
2015-02-20T17:52:52.897Z
2,015
2
17
4
507
1
1,491
84
4
1
true
false
false
false
false
false
low
28,635,303
Transfer speed Android Wear DataApi?
<p>What transfer speed can I expect when transferring data from phone to wearable using the Wearable DataApi?</p> <p>My idea is to transfer files to the wearable from the phone. It's loads of images so I zip them first and then transfer the zip file as an asset. The file is about 30MB and it takes around 3 minutes to ...
What transfer speed can I expect when transferring data from phone to wearable using the Wearable DataApi? My idea is to transfer files to the wearable from the phone. It's loads of images so I zip them first and then transfer the zip file as an asset. The file is about 30MB and it takes around 3 minutes to sync them t...
wear-os|android-wear-data-api
1
2015-02-20T17:57:54.893Z
2,015
2
17
4
332
1
389
36
2
0
false
false
false
false
false
false
low
28,635,311
How to set layout background fade out?
<p>I added an option menu in my app. </p> <p>I want activity's whole background appear dark when menu key is touched so the user can see option menu well.(like when a dialog is displayed)</p> <p>Should I use animation to do this or is there any other way?</p>
I added an option menu in my app. I want activity's whole background appear dark when menu key is touched so the user can see option menu well.(like when a dialog is displayed) Should I use animation to do this or is there any other way?
android
0
2015-02-20T17:58:38.887Z
2,015
2
17
4
125
1
237
38
1
0
false
false
false
false
false
false
zero
28,635,389
Getting the package of a non-installed apk within an Android app
<p>I'm working on an installer application with system permissions in which I need to resolve the package name of an APK that is not yet installed. </p> <p>Just to be clear, I'm talking about doing this within an android app -- I already know how to do this on a desktop.</p> <p>I've already tried treating the APK as ...
I'm working on an installer application with system permissions in which I need to resolve the package name of an APK that is not yet installed. Just to be clear, I'm talking about doing this within an android app -- I already know how to do this on a desktop. I've already tried treating the APK as a ZipFile and pullin...
android
0
2015-02-20T18:03:21.233Z
2,015
2
18
4
77
1
494
64
1
0
false
false
false
false
false
false
zero