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,533,668
How to pass array from php sql to android list view?
<p>i want to send String Array from my sql to android and display them in list view, im new to android and have no idea how</p> <p>thanks in advance</p> <p>heres my php code:</p> <pre><code>&lt;?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "db"; date_default_timezone_set('Asia/Singapo...
i want to send String Array from my sql to android and display them in list view, im new to android and have no idea how thanks in advance heres my php code: [CODE] i echoed just to show if my code is retrieving something
php|android
-1
2015-02-16T02:24:17.430Z
2,015
2
2
0
147
1
221
52
2
1
true
false
false
false
false
true
negative
28,533,707
Android AWS S3 Access Denied
<p>I'm trying to simply upload a file to an S3 bucket with my Android app. I've tried everything they've said, did all the examples and used a third party library. Nothing works. I keep getting an Access Denied error when I run this code: </p> <pre><code> AmazonS3Client s3Client = new AmazonS3Client( new BasicAW...
I'm trying to simply upload a file to an S3 bucket with my Android app. I've tried everything they've said, did all the examples and used a third party library. Nothing works. I keep getting an Access Denied error when I run this code: [CODE] It returns this error message at the createBucket(); method: [CODE] I also us...
android|amazon-web-services|amazon-s3
2
2015-02-16T02:28:56.477Z
2,015
2
2
0
1,859
1
575
28
3
2
true
false
false
false
false
false
low
28,533,726
how to show dialog after ten button click
<pre><code>counter initialize with zero value int counter=0; bnt1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click counter +=1; } }); bnt2.setOnClickListener(new...
[CODE] But not show dialog anybody help me. I want to get dialog after ten buttons click or any other method please help me how to show dialog after ten buttons clicks thanks in Advance
android|eclipse
0
2015-02-16T02:31:17.610Z
2,015
2
2
0
188
2
185
41
2
1
true
false
false
false
false
false
zero
28,533,734
Running code from another class
<p>hi I'm new to android programming and I'm creating an app that part of it generate Qrcode by using The Zxing library I created a class with a method Encode contains block of code that generate the qrcode</p> <pre><code>public void Encode(String Text_To_Encode ) { final ImageView imageView = (ImageView) findVi...
hi I'm new to android programming and I'm creating an app that part of it generate Qrcode by using The Zxing library I created a class with a method Encode contains block of code that generate the qrcode [CODE] Whenever I call this method in Oncreate() method in MainActivity the app Unfortunately has stopped but when I...
android
1
2015-02-16T02:32:47.677Z
2,015
2
2
0
62
2
438
31
1
1
true
false
false
false
false
false
low
28,533,762
Drag and Drop for imageview not working
<p>My <code>RelativeLayout</code> has an image. I am just trying to make it draggable in the entire layout.The issue is that every time I drag and drop, it goes back to the original position. Here is my</p> <p><strong>drag_layout.xml</strong></p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com...
My RelativeLayout has an image. I am just trying to make it draggable in the entire layout.The issue is that every time I drag and drop, it goes back to the original position. Here is my drag_layout.xml [CODE] AnimationActivity.java [CODE] I have tried all the following links but still don't know where I am going wrong...
android|drag-and-drop|imageview|android-relativelayout|ontouchlistener
2
2015-02-16T02:36:48.020Z
2,015
2
2
0
6,969
4
510
39
5
2
true
false
true
false
false
false
low
28,533,786
Unable to run sample Android Wear app on physical device
<p>I am trying to figure out the Android Wear APIs. I've imported the <a href="https://developer.android.com/samples/WatchFace/project.html" rel="nofollow">sample WatchFace app</a> provided in the SDK. I've set up my phone <em>AND</em> Moto 360 physical watch for debugging. They both show up in adb devices, and I'm abl...
I am trying to figure out the Android Wear APIs. I've imported the sample WatchFace app provided in the SDK. I've set up my phone AND Moto 360 physical watch for debugging. They both show up in adb devices, and I'm able to select both when running the application. I followed the instructions from here. However, when I ...
android|wear-os
1
2015-02-16T02:39:29.063Z
2,015
2
2
0
2,686
1
894
56
2
0
false
false
true
false
false
false
low
28,533,890
If conditon 1, wait until condtion 2 is true. - bash shell -
<p>I have a script that sets values based of the return of <code>grep -c</code>, I then use those values to determine the state of a connected device, and from those values put the device in a certain state. I want the script to check whether the device successfully entered the state I want it in. Its for android devic...
I have a script that sets values based of the return of grep -c , I then use those values to determine the state of a connected device, and from those values put the device in a certain state. I want the script to check whether the device successfully entered the state I want it in. Its for android devices, so I've bee...
android|bash|shell|if-statement|conditional-statements
0
2015-02-16T02:52:55.080Z
2,015
2
2
0
519
0
1,380
60
5
4
true
true
false
false
false
false
zero
28,533,955
Error reading public key in pem format
<p>I'm trying to read in an X509 public key that is stored in pem format. I believe that this file is stored in plain text, so I don't understand why this error would be thrown:</p> <p><code>java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed</code></p> <p>The of...
I'm trying to read in an X509 public key that is stored in pem format. I believe that this file is stored in plain text, so I don't understand why this error would be thrown: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed The offending line of code is the Asse...
java|android|android-studio
1
2015-02-16T03:01:46.310Z
2,015
2
3
0
575
1
454
38
3
2
true
false
false
false
false
false
low
28,533,976
Can't get childs from listview without clicking on item
<p>I'm having trouble getting my animations to work within my ListView. I can get items to animate when I click on them, but I am trying to get the items that I have not just clicked on to animate as well.</p> <p>I thought I might get the second animation to simply start after first, but then even after making the Lis...
I'm having trouble getting my animations to work within my ListView. I can get items to animate when I click on them, but I am trying to get the items that I have not just clicked on to animate as well. I thought I might get the second animation to simply start after first, but then even after making the ListView final...
android|listview
0
2015-02-16T03:04:34.450Z
2,015
2
3
0
58
1
643
55
2
1
true
false
false
false
false
false
zero
28,534,080
Show Navigation Bar on Android KitKat after hiding it
<p>In my app I want to let the user hide or show the Navigation Bar (back, home, menu). The System Bar (battery, wifi, notifications) should always be hidden.</p> <p>I hide the System Bar with this code:</p> <pre><code>getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FU...
In my app I want to let the user hide or show the Navigation Bar (back, home, menu). The System Bar (battery, wifi, notifications) should always be hidden. I hide the System Bar with this code: [CODE] And I am successfully hiding the Navigation Bar with these flags: [CODE] But I haven't found on how to show the Navigat...
android|navigationbar
3
2015-02-16T03:21:27.690Z
2,015
2
3
0
13,592
5
426
53
2
2
true
false
true
true
false
false
low
28,534,212
Rails api Android Rest Client POST and PUT dont work
<p>my Android Client app is sending a put request to edit an user, it gets to the API but it doesnt modify anything! this is the Client code for the PUT:</p> <pre><code> @Override protected Void doInBackground(Void... arg0) { // Creating service handler class instance ServiceHandler sh = new Servic...
my Android Client app is sending a put request to edit an user, it gets to the API but it doesnt modify anything! this is the Client code for the PUT: [CODE] this is what's inside the ServiceHandler class for PUT: [CODE] this is the request log from the API: [CODE]
android|ruby-on-rails|json|rest
0
2015-02-16T03:41:00.037Z
2,015
2
3
0
179
1
265
52
4
3
true
false
false
false
false
false
zero
28,534,256
How to import jquery/php into android studio
<p>I would like to port my existing html/php/jquery code into an android app. </p> <p>I've search all over and my results have been iffy. Is this even possible? </p>
I would like to port my existing html/php/jquery code into an android app. I've search all over and my results have been iffy. Is this even possible?
php|android|jquery
3
2015-02-16T03:47:37.287Z
2,015
2
3
0
5,056
1
149
44
3
0
false
false
true
false
false
false
low
28,534,257
Monodroid - Handling events on child Views of reused ListView rows
<p>Android's ListView reuses rows that have been scrolled out of view. But, that seems to be a problem when handling events on a row's child Views in C#.</p> <p>An accepted way of adding event handlers in Java is to explicitly <strong>set</strong> a handler like so:</p> <pre><code>ImageView img = (ImageView) row.find...
Android's ListView reuses rows that have been scrolled out of view. But, that seems to be a problem when handling events on a row's child Views in C#. An accepted way of adding event handlers in Java is to explicitly set a handler like so: [CODE] Documents on Xamarin's site encourage developers to use C#'s add event li...
c#|android|mono|xamarin|xamarin.android
5
2015-02-16T03:47:38.710Z
2,015
2
3
0
816
2
1,026
66
5
3
true
false
false
false
false
false
low
28,534,266
Toggle Button acting as an Image Button
<p>I need a toggle button to have an image and a background color. Currently, my toggle button only has an image and no background color. Here is the code for it</p> <pre><code>&lt;ToggleButton android:id="@+id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="centerC...
I need a toggle button to have an image and a background color. Currently, my toggle button only has an image and no background color. Here is the code for it [CODE] Is it possible to have two backgrounds on the toggle button? I want a background color as well as an image on it. If not, is there a simple way to have an...
android|xml|image|button|toggle
1
2015-02-16T03:48:31.703Z
2,015
2
3
0
3,835
3
529
39
5
1
true
false
true
false
false
false
low
28,534,300
Getting real time coordinates of ImageView while it is in Translate Animation on android
<p>I have an ImageView, set to Translate animation. I want real time coordinates of the ImageView when it is moving.</p> <p>My code here: </p> <pre><code>ImageView myimage = (ImageView)findViewById(R.id.myimage); Animation animation = new TranslateAnimation(100, 200, 300, 400); animation.setDuration(1000); my...
I have an ImageView, set to Translate animation. I want real time coordinates of the ImageView when it is moving. My code here: [CODE] Variables x and y don't updatee real time and only give original static coordinate of the ImageView. How can I get the real time coordinates as the ImageView is in motion ?
java|android|imageview
0
2015-02-16T03:53:59.027Z
2,015
2
3
0
695
2
307
88
3
1
true
false
false
false
false
false
zero
28,534,558
Google play incompatible with many devices
<p>I just upload my app and I found that in almost 60% of the devices isn't compatible (Google Play, compatibly devices).</p> <p>I have this on my manifest</p> <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"...
I just upload my app and I found that in almost 60% of the devices isn't compatible (Google Play, compatibly devices). I have this on my manifest [CODE] I try it on Nexus 7 (2012) and LG Optimus and none are compatible any ideas? Best,
android
-1
2015-02-16T04:31:51.080Z
2,015
2
4
0
53
1
235
42
1
1
true
false
false
false
false
true
negative
28,534,597
filter the data when retrieving from json JSONArray
<p>I have implemented a swipeable tabs using (<a href="http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/" rel="nofollow noreferrer">http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/</a>). I have a grid in my 1st tab which is a fragment. I am getting a json respo...
I have implemented a swipeable tabs using ( http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ ). I have a grid in my 1st tab which is a fragment. I am getting a json response carrying the items to load in the 1st tab. at the moment i have loaded all the items. but these items belongs to 3 c...
android|json|filter
0
2015-02-16T04:37:00.270Z
2,015
2
4
0
376
0
794
51
3
2
true
true
false
false
false
false
zero
28,534,625
Send SMS from one SIM in dual sim moble phones
<p>When I tried to send SMS from a dual SIM android device from an application using SMS Manager it is sending SMS from both the SIM. Can you help me with the solution.</p> <pre><code>private void sendSMS(String phoneNumber) { String msg="app Test"; try { SmsManager smsManager =...
When I tried to send SMS from a dual SIM android device from an application using SMS Manager it is sending SMS from both the SIM. Can you help me with the solution. [CODE]
android|smsmanager|dual-sim
0
2015-02-16T04:40:39.333Z
2,015
2
4
0
8,059
2
172
46
3
1
true
false
true
false
false
false
zero
28,534,649
unable to resolve null pointer excet
<pre><code> 02-16 10:10:48.126: E/AndroidRuntime(9838): FATAL EXCEPTION: main 02-16 10:10:48.126: E/AndroidRuntime(9838): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 02-16 10:10:48.126: E/AndroidRuntime(9838): at android.view.ViewRootImpl.setView(Vi...
[CODE]
android
-4
2015-02-16T04:42:54.407Z
2,015
2
4
0
54
1
6
36
1
1
true
false
false
false
false
true
negative
28,534,813
How can I prompt user to make a Facebook post without using Facebook SDK?
<p>I would like to have the user press a button in my app and it would take them to Facebook with the message already typed out. Below is what I do for Twitter. Is there something similar I can do for Facebook without having to integrate the Facebook SDK?</p> <pre><code>public void twitterTweetButtonPressed(View view)...
I would like to have the user press a button in my app and it would take them to Facebook with the message already typed out. Below is what I do for Twitter. Is there something similar I can do for Facebook without having to integrate the Facebook SDK? [CODE]
android|facebook
0
2015-02-16T05:00:43.837Z
2,015
2
5
0
98
2
259
73
2
1
true
false
false
false
false
false
zero
28,534,855
Background thread locking UI for several seconds
<p>I'm experiencing a weird issue. I have my app's 2-way sync code running inside a <code>ScheduledThreadPoolExecutor</code>. The code iterates over a large list of objects from the server's response and saves them to the local database (SQLite with GreenDAO).</p> <p>The problem is, while this thread is processing the...
I'm experiencing a weird issue. I have my app's 2-way sync code running inside a ScheduledThreadPoolExecutor . The code iterates over a large list of objects from the server's response and saves them to the local database (SQLite with GreenDAO). The problem is, while this thread is processing the list of objects, the U...
java|android|multithreading|performance|greendao
5
2015-02-16T05:05:37.027Z
2,015
2
5
0
14,361
0
1,947
48
5
3
true
true
true
true
false
false
low
28,534,900
Retrofit : gson stackoverflow
<p>I try to make API requests with Retrofit and gson library , I followed this tutorial to make my API request with retrofit : <a href="http://blog.robinchutaux.com/blog/a-smart-way-to-use-retrofit/" rel="nofollow">http://blog.robinchutaux.com/blog/a-smart-way-to-use-retrofit/</a> but I encounter an error. This is dif...
I try to make API requests with Retrofit and gson library , I followed this tutorial to make my API request with retrofit : http://blog.robinchutaux.com/blog/a-smart-way-to-use-retrofit/ but I encounter an error. This is different parts of log message : [CODE] This is the class ItemTypeAdapterFactory: [CODE] JSON [CODE...
java|android|gson|retrofit
0
2015-02-16T05:09:51.210Z
2,015
2
5
0
1,444
1
631
29
4
3
true
false
false
false
false
false
zero
28,534,909
Navigation Drawer & Toolbar with tabs
<p>Well guys, my error is simple.</p> <p>I'm implementing an Custom Toolbar like action bar on and Android Application and implementing an Navigation drawer.</p> <p>The issue is that i'm using material design theme, so the navigation drawer start on the top of the screen behind the status bar, and take all the screen...
Well guys, my error is simple. I'm implementing an Custom Toolbar like action bar on and Android Application and implementing an Navigation drawer. The issue is that i'm using material design theme, so the navigation drawer start on the top of the screen behind the status bar, and take all the screen height, but if i d...
android|android-studio|navigation-drawer|material-design
4
2015-02-16T05:11:33.417Z
2,015
2
5
0
10,618
2
747
37
4
3
true
false
true
false
false
false
low
28,534,912
Android app not on relaunch from background not maintaing state
<p>I have two activity in my application. I intent from A to B and then put my application in background but when i relaunch the application it starts form Activity A not maintains it state of Activity B.</p> <p>Activity A &amp; Activity B declaration in android manifest : </p> <pre><code>&lt;activity and...
I have two activity in my application. I intent from A to B and then put my application in background but when i relaunch the application it starts form Activity A not maintains it state of Activity B. Activity A & Activity B declaration in android manifest : [CODE] I havent used any flags. I have used startActivityFor...
android|android-activity
0
2015-02-16T05:12:10.797Z
2,015
2
5
0
54
0
330
63
2
1
true
true
false
false
false
false
zero
28,534,935
Android: App to download files not working (only worked once)
<p>I am making an app that downloads files to the internal storage. It worked for the first time now the files doesn't show up anymore despite getting the correct message. What seems to be the problem?</p> <p>I have tried it in both emulator and my phone (kitkat)</p> <p>here is my code</p> <pre><code>new DownloadJSO...
I am making an app that downloads files to the internal storage. It worked for the first time now the files doesn't show up anymore despite getting the correct message. What seems to be the problem? I have tried it in both emulator and my phone (kitkat) here is my code [CODE]
java|android
0
2015-02-16T05:14:49.533Z
2,015
2
5
0
37
0
276
61
2
1
true
true
false
false
false
false
zero
28,534,942
android -How to call a function when keyboard displays
<p>I've an edittext view on my layout . I want to call a function when keyboard is showing and also call another function when keyboard hides. </p> <p>How can I do so ? </p>
I've an edittext view on my layout . I want to call a function when keyboard is showing and also call another function when keyboard hides. How can I do so ?
android|android-edittext
-1
2015-02-16T05:15:40.250Z
2,015
2
5
0
119
3
157
54
2
0
false
false
false
false
false
true
negative
28,534,947
can we invoke any activty or service on android wear using voice command
<p>i know that i can start my application launcher activity in wear by invoking voice command (Eg Start MyApp) right from wear home screen but i want to invoke other activities with the same mechanism i.e using voice command for example start B where B is the name of my activity other than launcher activity.i want to ...
i know that i can start my application launcher activity in wear by invoking voice command (Eg Start MyApp) right from wear home screen but i want to invoke other activities with the same mechanism i.e using voice command for example start B where B is the name of my activity other than launcher activity.i want to laun...
android|wear-os
0
2015-02-16T05:16:14.117Z
2,015
2
5
0
167
3
546
72
2
0
false
false
false
false
false
false
zero
28,535,013
Google Map USGSOverlay clickevent multi response on same level markers
<p>I used Google Map V3 create 20 markers , click one marker and the marker will show it's infowindow (which the marker , the infowindow all create by USGSOverlay).</p> <p>Now ,I get a bugs, example:</p> <p>I clicked marker A,and show the infowindow B, here I will click infowindow B to goto another page,but now , the...
I used Google Map V3 create 20 markers , click one marker and the marker will show it's infowindow (which the marker , the infowindow all create by USGSOverlay). Now ,I get a bugs, example: I clicked marker A,and show the infowindow B, here I will click infowindow B to goto another page,but now , the marker C (which is...
javascript|android|google-maps|google-maps-api-3
0
2015-02-16T05:23:50.853Z
2,015
2
5
0
240
1
587
70
4
2
true
false
false
false
false
false
zero
28,535,024
Show Upload and Download Speed in android
<p>First off, this question have been asked before also (i did a 1 hour research) but none of them seem to answer the question. so here it goes- i want to get <strong>current Upload and Download speed</strong> using TrafficStats and show it in my textView where i am able to show Up and Down stats in the below code (i g...
First off, this question have been asked before also (i did a 1 hour research) but none of them seem to answer the question. so here it goes- i want to get current Upload and Download speed using TrafficStats and show it in my textView where i am able to show Up and Down stats in the below code (i got this code from a ...
android
0
2015-02-16T05:24:51.747Z
2,015
2
5
0
3,039
2
590
41
1
1
true
false
true
false
false
false
zero
28,535,064
Click listener on dynamically created linearlayout
<p>I am creating linear layout dynamically inside for loop for pop up window and trying to add listener to each layout.</p> <p>I am using following code. But when I click on any of the layout, it clears all data..</p> <pre><code> LinearLayout layout = null; for(int i=0;i&lt;data.size();i++) { lay...
I am creating linear layout dynamically inside for loop for pop up window and trying to add listener to each layout. I am using following code. But when I click on any of the layout, it clears all data.. [CODE] and in fillGridData method [CODE] So when I click on Linear Layout, data whatever it is displaying goes invis...
android
1
2015-02-16T05:29:08.123Z
2,015
2
5
0
492
1
430
50
1
2
true
false
false
false
false
false
low
28,535,080
programmatically turn off playstore ,youtube etc in android
<p>Our company issues Android devices to staff. These devices need to be used only for the purpose of calls, SMSes and GPS navigation. All other activities need to be locked down.</p> <p>These devices need to be locked to allow only certain features to work, for example:</p> <p>Waze,Google Maps,Phone,SMS</p> <p>It n...
Our company issues Android devices to staff. These devices need to be used only for the purpose of calls, SMSes and GPS navigation. All other activities need to be locked down. These devices need to be locked to allow only certain features to work, for example: Waze,Google Maps,Phone,SMS It needs to lock out a majority...
android
0
2015-02-16T05:32:22.427Z
2,015
2
5
0
1,195
1
562
59
1
0
false
false
false
false
false
false
zero
28,535,089
Adding and removing call to handler from other classes
<p>I have a data that I always update every X time.</p> <p><strong>MainFragment.java</strong> </p> <pre><code>private void updateData() { if(updateRunnable == null) { updateRunnable = new Runnable() { @Override public void run() { callServerU...
I have a data that I always update every X time. MainFragment.java [CODE] I'm using this method in my main class that, now in another class I have a trigger that should call to callServerUpdate() , I want to run removeCallbacks() also like I'm doing in MainFragment.java but I'm in other class. Do I have an option to ca...
java|android|multithreading|android-handler
1
2015-02-16T05:33:00.047Z
2,015
2
5
0
35
0
413
54
4
1
true
true
false
false
false
false
low
28,535,123
android volley form post requests are always out of order
<p>so i am using volley to connect to a backend and for some reason they need the form request data to be in a certain order the server wont accept it. unfortunately no matter how i put my data into the hashmap when overriding getParams they always come out in the same, incorrect order causing me to be unable to make a...
so i am using volley to connect to a backend and for some reason they need the form request data to be in a certain order the server wont accept it. unfortunately no matter how i put my data into the hashmap when overriding getParams they always come out in the same, incorrect order causing me to be unable to make a re...
android|post|android-volley
0
2015-02-16T05:35:56.650Z
2,015
2
5
0
149
0
412
57
3
0
false
true
false
false
false
false
zero
28,535,223
Force Stop android application
<p>Help me! I need the source code to force stop an Android application programmatically. I already tried</p> <p><code>Process.killProcess(int pid))</code></p> <p>but it didn't work</p> <p>Thank You.</p>
Help me! I need the source code to force stop an Android application programmatically. I already tried Process.killProcess(int pid)) but it didn't work Thank You.
java|android|eclipse
0
2015-02-16T05:46:46.810Z
2,015
2
5
0
454
1
162
30
3
0
false
false
false
false
false
false
zero
28,535,233
NDK:OpenSSL error" java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libssl.so.1.0.0" needed by "libmyLib.so"
<p>I am trying to build libcurl with openSSL support. I tried using DockerFile and using ubantuimage with that. I am able to compile .so file for libcurl and openSSL. When I try to use those in my android NDK project and load application into device then it gives me error "java.lang.UnsatisfiedLinkError: dlopen failed:...
I am trying to build libcurl with openSSL support. I tried using DockerFile and using ubantuimage with that. I am able to compile .so file for libcurl and openSSL. When I try to use those in my android NDK project and load application into device then it gives me error "java.lang.UnsatisfiedLinkError: dlopen failed: co...
android-ndk|openssl
3
2015-02-16T05:48:18.457Z
2,015
2
5
0
2,598
1
788
130
2
1
true
false
false
false
false
false
low
28,535,242
How to load database data, and store it into array list, and show it into ListVIew
<p>So, I want to build an app to view some data from database. I already have the database, also already made some entities that have exactly same properties name with the column names in database. And also I put the database into database directory by copying from assets folder. </p> <p>What I want to achieve is, I w...
So, I want to build an app to view some data from database. I already have the database, also already made some entities that have exactly same properties name with the column names in database. And also I put the database into database directory by copying from assets folder. What I want to achieve is, I want to pull ...
android|orm|greendao
0
2015-02-16T05:49:00.827Z
2,015
2
5
0
542
2
804
82
3
1
true
false
false
false
false
false
zero
28,535,248
Is there a scaling Factor method For Multi Resolution support of Android
<p>Currently in order to do multi-resolution you have to provide all the images inside the res directory, which makes the app quite large in size, especially if the app has a lot of images or supports tablets[xxxhdpi] images.</p> <p>So basically i want to know how to make a scaling factor algorithm like that in cocos2...
Currently in order to do multi-resolution you have to provide all the images inside the res directory, which makes the app quite large in size, especially if the app has a lot of images or supports tablets[xxxhdpi] images. So basically i want to know how to make a scaling factor algorithm like that in cocos2dx, in whic...
java|android
0
2015-02-16T05:49:31.283Z
2,015
2
5
0
153
1
542
72
2
0
false
false
false
false
false
false
zero
28,535,258
Android Sqlite : assign one column's values to another using ContentValues
<p>I want to assign one column's values to another.</p> <p>here is a query for it.</p> <pre><code>UPDATE contacts SET contactName=phone; </code></pre> <p>Here contactName and phone are two different columns.i am assigning phone column's values to contactName column.I can do this by using </p> <pre><code>db.execSQL(...
I want to assign one column's values to another. here is a query for it. [CODE] Here contactName and phone are two different columns.i am assigning phone column's values to contactName column.I can do this by using [CODE] but if i want it to update it using [CODE] what should i put in Content values.If i put phone as a...
android|database|sqlite|android-sqlite|sqliteopenhelper
0
2015-02-16T05:50:26.800Z
2,015
2
5
0
538
1
473
74
5
4
true
false
false
false
false
false
zero
28,535,283
How to add Smart Image View In android app page
<p>Now i am trying to add smart Image view on my app page,I have added </p> <p>"android_smart_image_view.jar" in lib folder then now how should i directly add the smart image view from palette bar???</p>
Now i am trying to add smart Image view on my app page,I have added "android_smart_image_view.jar" in lib folder then now how should i directly add the smart image view from palette bar???
android|xml
0
2015-02-16T05:53:12.937Z
2,015
2
5
0
528
0
188
47
2
0
false
true
false
false
false
false
zero
28,535,298
WebView scrolling doesn't work in WindowManager
<p>Code snippet:</p> <pre><code>WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE); WindowManager.LayoutParams params = new WindowManager.LayoutParams( WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.TYPE_PHO...
Code snippet: [CODE] It works fine: browser displays, links clicking works, but web page scrolling doesn't work. What could be the reason? Thanks.
java|android|android-webview|android-windowmanager
1
2015-02-16T05:54:44.360Z
2,015
2
5
0
298
1
146
47
4
1
true
false
false
false
false
false
low
28,535,337
Volley blocking request
<p>My problem is that I made a simple data send to a PHP server by using Volley, but sometimes the message doesn't go.<br> Not even an error is shown in my logcat, also with full internet access</p> <p><code>onClick()</code> function</p> <pre><code>public void sendServer(View v){ Intent mServiceIntent = new In...
My problem is that I made a simple data send to a PHP server by using Volley, but sometimes the message doesn't go. Not even an error is shown in my logcat, also with full internet access onClick() function [CODE] capitalservice.java [CODE]
android|android-volley
0
2015-02-16T05:58:41.860Z
2,015
2
5
0
172
0
240
23
2
2
true
true
false
false
false
false
zero
28,535,368
Android List View Image Issue
<p>I have Created a Listview, and I am trying to add Images to some entries in the Listview. However when doing that I seem to get strange results, the Image appears much smaller than it should. Despite the fact that I have set its Width to Fill_Parent. Here is the XML code:</p> <pre><code>&lt;RelativeLayout xmlns:andr...
I have Created a Listview, and I am trying to add Images to some entries in the Listview. However when doing that I seem to get strange results, the Image appears much smaller than it should. Despite the fact that I have set its Width to Fill_Parent. Here is the XML code: [CODE] Here is the Result: As you can see, the ...
android|xml
0
2015-02-16T06:01:13.700Z
2,015
2
6
0
41
1
440
29
2
1
true
false
false
false
false
false
zero
28,535,382
How to finish my custom launcher Programmatically in android
<p>I am developing an application my requirement is to finish my custom launcher and switch to default launcher. How can I achieve that?</p>
I am developing an application my requirement is to finish my custom launcher and switch to default launcher. How can I achieve that?
android|android-launcher
0
2015-02-16T06:02:16.627Z
2,015
2
6
0
755
1
133
60
2
0
false
false
false
false
false
false
zero
28,535,384
How to Fix java.lang.ClassCastException: com.gc.materialdesign.views.ButtonFlat cannot be cast to android.widget.EditText
<p>I am creating an android application that consists of registration form in dialog. Here, I placed a drop down spinner in registration dialog. But,here it was showing type casting error even i did the correct type casting. Please check it and make it solve. I am trying to solve since 2 hours. This is my code: package...
I am creating an android application that consists of registration form in dialog. Here, I placed a drop down spinner in registration dialog. But,here it was showing type casting error even i did the correct type casting. Please check it and make it solve. I am trying to solve since 2 hours. This is my code: package co...
android|type-conversion
0
2015-02-16T06:02:38.180Z
2,015
2
6
0
476
1
381
121
2
2
true
false
false
false
false
false
zero
28,535,414
Spinner throws NullPointerException when calling an entries value
<p>I have a <code>Spinner</code> in my <code>ActionBar</code>, I want to get the value of the entries in the <code>Spinner</code> when I pick one and convert it to <code>String</code>. It is thorwing <code>NullPointerException</code> every time I start the <code>Activity</code>. How do I fix this? </p> <p>I have read ...
I have a Spinner in my ActionBar , I want to get the value of the entries in the Spinner when I pick one and convert it to String . It is thorwing NullPointerException every time I start the Activity . How do I fix this? I have read many guides and stackoverflow questions but I can't find anything that is simpler and n...
java|android|spinner
-1
2015-02-16T06:04:45.867Z
2,015
2
6
0
858
2
543
65
3
5
true
false
false
false
false
true
negative
28,535,468
Bluetooth application
<p>I am making bluetooth application in which I want to send data using bluetooth. That task I am able to do. But after that I want open any particular file from device. Then How can I do it? I have written the code below. </p> <pre><code>package com.example.blue; import java.io.File; import java.util.List; im...
I am making bluetooth application in which I want to send data using bluetooth. That task I am able to do. But after that I want open any particular file from device. Then How can I do it? I have written the code below. [CODE]
java|android|bluetooth
1
2015-02-16T06:09:53.313Z
2,015
2
6
0
401
0
226
21
3
1
true
true
false
false
false
false
low
28,535,562
Google+ login in android and then maintain offline session
<p><strong>Scope</strong></p> <p>I want to have google login in my app. For this I referred to <a href="https://developers.google.com/+/mobile/android/sign-in" rel="nofollow">https://developers.google.com/+/mobile/android/sign-in</a> and was able to create a basic login.</p> <p><strong>Problem</strong></p> <p>Now, t...
Scope I want to have google login in my app. For this I referred to https://developers.google.com/+/mobile/android/sign-in and was able to create a basic login. Problem Now, the problem is quite interesting. The login process works like a charm, but only when internet is connected. Lets get to a specific use case: I st...
android|authentication|oauth-2.0|google-plus|google-play-services
0
2015-02-16T06:18:06.850Z
2,015
2
6
0
1,175
1
1,534
58
5
3
true
false
false
false
false
false
zero
28,535,565
Conflict between int and string while use of getIntent()
<pre><code>if ((object.getString("MainCategoryID")).equals("3") &amp;&amp; (object.getString("SubCategoryID")).equals("5")) { Log.i("ImageURL ", object.getString("ImageURL")); imageUrls.add(object.getString("ImageURL")); Log.i("Descript...
[CODE] actually Price is decimal value but im taking it as string and passing it to next activity. It recives as, [CODE] then Im using that string value to calculate the subtotal as shown below, [CODE] but im getting this error, The operator * is undefined for the argument type(s) java.lang.String, java.lang.String. I ...
java|android|string|int
1
2015-02-16T06:18:14.103Z
2,015
2
6
0
114
3
569
56
4
3
true
false
false
false
false
false
low
28,535,571
Where Image gets stored in Android phone when i use Universal Image Loader library?
<p>I am using:</p> <pre><code>ImageLoader.getInstance().displayImage(imageUrls.get(position), holder.ivPhoto, options); </code></pre> <p>Where imageUrls is a ArrayList of String which is the urls list from where the images are loaded and holder contains the ImageView. <br /><br />To share this image i want to use thi...
I am using: [CODE] Where imageUrls is a ArrayList of String which is the urls list from where the images are loaded and holder contains the ImageView. To share this image i want to use this Intent But i don't know the location of the image saved. I have searched on Stack Overflow but can't fine the appropriate solution...
android|universal-image-loader|instagram-api
0
2015-02-16T06:18:43.487Z
2,015
2
6
0
80
2
393
83
3
1
true
false
false
false
false
false
zero
28,535,598
Android: screen cropped at bottom when phone at landscape mode
<p>I created screen using eclipse for Android. screen display correctly in portrait mode, but when we mobile rotate to landscape screen area in RelativeLayout cropped. I tried the same by removing RelativeLayout, but all vain.</p> <p>screen cropped at bottom when phone at landscape mode</p> <pre><code>*&lt;?xml versi...
I created screen using eclipse for Android. screen display correctly in portrait mode, but when we mobile rotate to landscape screen area in RelativeLayout cropped. I tried the same by removing RelativeLayout, but all vain. screen cropped at bottom when phone at landscape mode [CODE]
android|screen
-1
2015-02-16T06:20:59.170Z
2,015
2
6
0
206
1
284
62
2
1
true
false
false
false
false
true
negative
28,535,612
issue on adding all day event
<p>I am Adding all day event in calendar more then 1 day example "2015-02-27T00:00:00+00:00" to "2015-02-28T00:00:00+00:00"</p> <p>Problem is : It add only in 27 not 28 because of time is 00:00. I want to add in 27 and 28 both. </p> <p>code is </p> <pre><code> public static void addToCalendar(Context context, S...
I am Adding all day event in calendar more then 1 day example "2015-02-27T00:00:00+00:00" to "2015-02-28T00:00:00+00:00" Problem is : It add only in 27 not 28 because of time is 00:00. I want to add in 27 and 28 both. code is [CODE]
android|android-intent|google-calendar-api|android-calendar
0
2015-02-16T06:22:16.930Z
2,015
2
6
0
309
1
232
29
4
1
true
false
false
false
false
false
zero
28,535,633
Estimate memory usage of an image on Android
<p>Is there some quick way to estimate what the memory usage of a bitmap will be in an Android app based on resolution, compression type etc. without having to actually build and run an app with the image to find out?</p>
Is there some quick way to estimate what the memory usage of a bitmap will be in an Android app based on resolution, compression type etc. without having to actually build and run an app with the image to find out?
android|image|memory
1
2015-02-16T06:23:36.540Z
2,015
2
6
0
463
0
214
44
3
0
false
true
false
false
false
false
low
28,535,640
Getting 'Proxy authentication error' in genymotion when trying to sign in to add virtual devices
<p>I have installed genymotion application and wanted to add virtual devices from genymotion cloud when i try to sign in with my working credentials i always get the error saying 'proxy authentication error'. My machine is behind a proxy and i have configured those details properly in the setting screen of genymotion.<...
I have installed genymotion application and wanted to add virtual devices from genymotion cloud when i try to sign in with my working credentials i always get the error saying 'proxy authentication error'. My machine is behind a proxy and i have configured those details properly in the setting screen of genymotion. Gen...
android-emulator|genymotion
0
2015-02-16T06:23:58.947Z
2,015
2
6
0
1,827
0
551
96
2
0
false
true
false
false
false
false
zero
28,535,643
How to hide the source code of library project in android studio?
<p>I have a library project in android studio and i want to hide all the source codes of that project. I have done it in Eclipse IDE but i am not finding any ways to do it in Android Studio. Any suggestion???</p>
I have a library project in android studio and i want to hide all the source codes of that project. I have done it in Eclipse IDE but i am not finding any ways to do it in Android Studio. Any suggestion???
android
2
2015-02-16T06:24:22.393Z
2,015
2
6
0
1,203
0
205
65
1
0
false
true
false
false
false
false
low
28,535,651
How to show Myanmar font from database in webview
<p>I store Myanmar font in database. When I show Myanmar font by webview, They show the followings. How do I change my codes? Please help me.</p> <p>ပရမá€á± (ပရမ + အá€á³) = အá‚ွစ္á€á€ºá€³á€•္አအျမင့္ဆုံး သိစရာá‹</p> <pre><code>These are my codes. dstory = (WebVi...
I store Myanmar font in database. When I show Myanmar font by webview, They show the followings. How do I change my codes? Please help me. ပရမá€á± (ပရမ + အá€á³) = အá‚ွစ္á€á€ºá€³á€•္አအျမင့္ဆုံး သိစရာዠ[CODE]
android|webview
1
2015-02-16T06:25:06.347Z
2,015
2
6
0
709
2
263
49
2
1
true
false
false
false
false
false
low
28,535,670
how to save downloaded files to external storage
<p>i have created an android application to download an image and save it to external directory but the application downloads the file and saves it to internal directory. this is my code</p> <pre><code>protected String doInBackground(String... aurl) { int count; try { File root = Environm...
i have created an android application to download an image and save it to external directory but the application downloads the file and saves it to internal directory. this is my code [CODE]
android
0
2015-02-16T06:27:07.800Z
2,015
2
6
0
108
3
190
48
1
1
true
false
false
false
false
false
zero
28,535,688
Google Analytics get uncaught exceptions via email
<p>I am using Google Analytics to get uncaught exceptions. But to view these exceptions you need to every time login and see if there was any uncaught exceptions.</p> <p>So I tried Google Analytics automatic email service. This feature can be configured from Behavior >> Crashes and Exceptions >> Email. You can insert ...
I am using Google Analytics to get uncaught exceptions. But to view these exceptions you need to every time login and see if there was any uncaught exceptions. So I tried Google Analytics automatic email service. This feature can be configured from Behavior >> Crashes and Exceptions >> Email. You can insert your email ...
android|email|google-analytics|automatic-updates
0
2015-02-16T06:29:04.027Z
2,015
2
6
0
73
0
615
50
4
0
false
true
false
false
false
false
zero
28,535,703
Best way to get user GPS location in background in Android
<p>In my android app i want to get user current location every few minute interval and update in to my center server using web service. Currently i am using Fused Location Provide for get user current location, See <a href="https://developer.android.com/reference/com/google/android/gms/location/FusedLocationProviderApi...
In my android app i want to get user current location every few minute interval and update in to my center server using web service. Currently i am using Fused Location Provide for get user current location, See link now i want to know what is the best way to get user location frequently and call web service. below is ...
android|gps|location-provider|fusedlocationproviderapi
123
2015-02-16T06:30:49.707Z
2,015
2
6
0
269,111
13
505
58
4
1
true
false
true
true
true
false
high
28,535,754
Capturing video automatically and saved in phone in cordova android
<p>I have implemented video capturing facility in cordova using this plugin(<a href="https://github.com/EddyVerbruggen/VideoCapturePlus-PhoneGap-Plugin" rel="nofollow">https://github.com/EddyVerbruggen/VideoCapturePlus-PhoneGap-Plugin</a>). But I need capture the video automatically and save to memory without any user ...
I have implemented video capturing facility in cordova using this plugin( https://github.com/EddyVerbruggen/VideoCapturePlus-PhoneGap-Plugin ). But I need capture the video automatically and save to memory without any user actions,Also i want to get the path of saved Video.Is it possible with this plugin?? [CODE] Also ...
android|cordova|cordova-plugins
1
2015-02-16T06:35:30.370Z
2,015
2
6
0
900
1
357
67
3
1
true
false
false
false
false
false
low
28,535,786
How do I create a table of windows that I can scroll horizontally and vertically?
<p>I want to do something like this:</p> <p><a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="nofollow">https://github.com/nostra13/Android-Universal-Image-Loader</a></p> <p>Except I want to be able to scroll between windows containing images and text instead of images like the one used by AUI...
I want to do something like this: https://github.com/nostra13/Android-Universal-Image-Loader Except I want to be able to scroll between windows containing images and text instead of images like the one used by AUIL. Is it possible?
android|image|scroll|loader|universal
1
2015-02-16T06:37:56.853Z
2,015
2
6
0
36
0
231
81
5
0
false
true
false
false
false
false
low
28,535,803
Pushing notification in background
<p>I want to know how to push notification with out letting user know that a push notification is received.Just my application should be aware of the notification and do the task required depended upon notification.</p>
I want to know how to push notification with out letting user know that a push notification is received.Just my application should be aware of the notification and do the task required depended upon notification.
android|parse-platform
0
2015-02-16T06:39:36.250Z
2,015
2
6
0
46
1
212
34
2
0
false
false
false
false
false
false
zero
28,535,845
How to implement a universal login in Android like Facebook and Google
<p>If there is some sdk (let's assume facebook here) that is implemented in multiple apps. </p> <p>Now facebook asks a login one time from the user (the first time user uses fcbk app/sk on device). Once logged in, if any app (in same device) tries to access the sdk again, it does not ask user to login again (but just ...
If there is some sdk (let's assume facebook here) that is implemented in multiple apps. Now facebook asks a login one time from the user (the first time user uses fcbk app/sk on device). Once logged in, if any app (in same device) tries to access the sdk again, it does not ask user to login again (but just the permissi...
android
3
2015-02-16T06:43:33.660Z
2,015
2
6
0
305
1
598
70
1
0
false
false
false
false
false
false
low
28,535,859
what is best approch to handle data when host Activity is not active
<p>I have four activity Activity1,Activity2,Activity3,Activity4. Activity2 has some operation where we need to communicate with server that means we will send some request and according to request response will come. </p> <ol> <li>I click on button which will communicate with server in Activity2.</li> <li>Now i moved ...
I have four activity Activity1,Activity2,Activity3,Activity4. Activity2 has some operation where we need to communicate with server that means we will send some request and according to request response will come. I click on button which will communicate with server in Activity2. Now i moved to Activity3 and Activity4....
android|view|background-process
0
2015-02-16T06:44:28.207Z
2,015
2
6
0
44
3
677
68
3
0
false
false
false
false
false
false
zero
28,536,015
Is Google's speech recognition free on business or free apps?
<p>I'm using the Android speech API in conjunction with the Google servers and Google search app (installed by default on my Android device) to make speech recognition possible on my app, which I want to publish on Google play.</p> <p>Is there any cost for using Google's speech recognition on a business or free app?</...
I'm using the Android speech API in conjunction with the Google servers and Google search app (installed by default on my Android device) to make speech recognition possible on my app, which I want to publish on Google play. Is there any cost for using Google's speech recognition on a business or free app?
android|mobile
1
2015-02-16T06:56:32.980Z
2,015
2
6
0
63
0
307
61
2
0
false
true
false
false
false
false
low
28,536,024
Jackson data-bind deserialization: Skip over an element dependent on a value
<p>I am using jackson library for deserializing json data. Is there a way to skip some element if a attribute does not fit a criteria?</p> <p>For Example</p> <p>The java classes:</p> <pre><code>@JsonIgnoreProperties(ignoreUnknown = true) public class Group { private String name; private int id; private List...
I am using jackson library for deserializing json data. Is there a way to skip some element if a attribute does not fit a criteria? For Example The java classes: [CODE] The Json File: [CODE] Usually I am deserialzing like this: [CODE] Now, Is it possible to skip every user-element whose attribute " deleted " has value ...
java|android|json|jackson
0
2015-02-16T06:57:32.560Z
2,015
2
6
0
917
2
592
76
4
3
true
false
false
false
false
false
zero
28,536,105
What technology does GCM (Google Cloud Messaging) use?
<p>Does it work by polling the servers periodically ? Does it work using long-held http request , like comet ? Or theres some new technology they are using ? </p>
Does it work by polling the servers periodically ? Does it work using long-held http request , like comet ? Or theres some new technology they are using ?
android|sockets|http|google-cloud-messaging|comet
1
2015-02-16T07:04:28.273Z
2,015
2
7
0
1,555
1
154
54
5
0
false
false
false
false
false
false
low
28,536,138
Android: navigate to first MainActivity in stack
<p>By default Android creates new Activity instance and closes it, when user navigates back. That makes stack.</p> <p>While trying with <code>launchMode</code>s different than <code>standard</code> we found that on some devices there is undesirable animation when launching those activities.</p> <p>In our app there is...
By default Android creates new Activity instance and closes it, when user navigates back. That makes stack. While trying with launchMode s different than standard we found that on some devices there is undesirable animation when launching those activities. In our app there is a search, view by category, related and fin...
android|navigation
0
2015-02-16T07:06:57.340Z
2,015
2
7
0
176
3
475
48
2
0
false
false
false
false
false
false
zero
28,536,139
Directions using google maps in android studio
<p>How to get intermediate points between source and destination using geocoding. I have to draw the route map between the source and destination along with way points. I read posts about using Google Maps Directions API to retrieve the way-points. Can someone please help me with the coding ! Also, could you please s...
How to get intermediate points between source and destination using geocoding. I have to draw the route map between the source and destination along with way points. I read posts about using Google Maps Directions API to retrieve the way-points. Can someone please help me with the coding ! Also, could you please sugges...
google-maps|android-studio|directions
0
2015-02-16T07:07:04.620Z
2,015
2
7
0
3,469
0
399
46
3
0
false
true
true
false
false
false
zero
28,536,192
How to implement native accelerator readout code in Codename 1 for Android?
<p>I am trying to develop a native code in Codename One to read out the accelerometer sensor data. I looked up how it's done in Android Java code, implemented it in Codename One, compiled without errors, but it doesn't seem to even get pass the initialization of the sensor class below. The method sensor.startReading() ...
I am trying to develop a native code in Codename One to read out the accelerometer sensor data. I looked up how it's done in Android Java code, implemented it in Codename One, compiled without errors, but it doesn't seem to even get pass the initialization of the sensor class below. The method sensor.startReading() see...
android|codenameone|accelerator
0
2015-02-16T07:10:30.690Z
2,015
2
7
0
266
1
683
75
3
2
true
false
false
false
false
false
zero
28,536,237
Android eclipse edittext input calculated result shown on another empty edittext(automatically)
<p>i am making an application to calculate PMT fucntion, but i got stuck on calculating the 1st payment. short explanation : my apps will have 3 edittexts, 1 for price ,1 for percentage and last one for the result of them, for example we input the price 100.000 then the 1st payment 30 then the 3rd one will automatical...
i am making an application to calculate PMT fucntion, but i got stuck on calculating the 1st payment. short explanation : my apps will have 3 edittexts, 1 for price ,1 for percentage and last one for the result of them, for example we input the price 100.000 then the 1st payment 30 then the 3rd one will automatically s...
android|eclipse
1
2015-02-16T07:13:21.610Z
2,015
2
7
0
584
2
1,040
95
2
4
true
false
false
false
false
false
low
28,536,242
How to make simple peer to peer chatting using android
<p>I am developing chatting application using android. And my requirement is chatting. Now i am stuck that how i can achieve this for example through sockets, or through web services. I need to make my own server and then chatting between users. But i have no idea to do this. I also looking for complete example that ho...
I am developing chatting application using android. And my requirement is chatting. Now i am stuck that how i can achieve this for example through sockets, or through web services. I need to make my own server and then chatting between users. But i have no idea to do this. I also looking for complete example that how c...
java|android
-3
2015-02-16T07:13:49.530Z
2,015
2
7
0
533
1
372
54
2
0
false
false
false
false
false
true
negative
28,536,253
Is there is any Free/Open source libraries for compressing the video file /reducing file size of video file in android?
<p>My application deals video sharing. Here i need to reduce the size of videos/ compress the video, so that i can minimize the data upload/download. I went through many threads and most of the threads suggesting FFMPEG. I could integrate it with my application and it is working exactly how i want it to be. But now i c...
My application deals video sharing. Here i need to reduce the size of videos/ compress the video, so that i can minimize the data upload/download. I went through many threads and most of the threads suggesting FFMPEG. I could integrate it with my application and it is working exactly how i want it to be. But now i came...
android|video|ffmpeg
0
2015-02-16T07:14:28.417Z
2,015
2
7
0
1,570
1
488
119
3
0
false
false
false
false
false
false
zero
28,536,333
how to display the groupname in android
<p>Hi In the below how to get the group name based on json response from the server.how to display in listview. New is the 1st position and Group is the second position</p> <p><strong>response</strong></p> <pre><code>{"groupname":"New"}{"groupname":"Group"} </code></pre> <p><strong>java</strong></p> <pre><code> Str...
Hi In the below how to get the group name based on json response from the server.how to display in listview. New is the 1st position and Group is the second position response [CODE] java [CODE] this is php code Here I am getting the output like this updated [CODE]
android
0
2015-02-16T07:19:44.767Z
2,015
2
7
0
46
1
264
39
1
3
true
false
false
false
false
false
zero
28,536,336
Click event of notifcation and resume the fragment without changing it UI
<pre><code> I developed a MediaPlayer with background service to handle playing of audio. When song is playing it shows notification of current song and also displaying on lock screen. Now my problem is that when I'm going to click on notification, the fragment, which contains the list of songs, is refreshing. I don...
[CODE] =================== In MainActivity.java following code snippet open the fragment. ===================== [CODE]
android|android-mediaplayer|android-notifications
0
2015-02-16T07:20:07.903Z
2,015
2
7
0
111
0
118
73
3
2
true
true
false
false
false
false
zero
28,536,394
Exception in plugin Android Support
<p>Suddenly when I was running my android application project, Android Studio shows an error balloon of <strong>Internal Error</strong></p> <p>Then my manifest suddenly got errors saying</p> <pre><code>java.lang.RuntimeException: Activity name cannot be empty. </code></pre> <p><img src="https://i.stack.imgur.com/mDB...
Suddenly when I was running my android application project, Android Studio shows an error balloon of Internal Error Then my manifest suddenly got errors saying [CODE] I tried disabling the Android Plugin and restarting it back again but no use. I also have error on R not being resolved but I think it is because it can'...
java|android|android-studio|android-manifest|android-support-library
4
2015-02-16T07:23:57.103Z
2,015
2
7
0
7,018
2
421
35
5
1
true
false
true
false
false
false
low
28,536,402
Android fires OutOfMemoryError while loading image from asmx web service
<p>What can be cause for this error: java.lang.OutOfMemoryError: Failed to allocate a 10111384 byte allocation with 1305618 free bytes and 1275KB until OOM </p> <p>Error happens in this line : </p> <pre><code>Bitmap bmp = BitmapFactory.decodeByteArray(currentTour.getTourImage(),0,currentTour.getTourImage().leng...
What can be cause for this error: java.lang.OutOfMemoryError: Failed to allocate a 10111384 byte allocation with 1305618 free bytes and 1275KB until OOM Error happens in this line : [CODE] My ListView adapter View : [CODE]
android|web-services|android-listview|android-studio|asmx
0
2015-02-16T07:24:28.300Z
2,015
2
7
0
193
2
222
72
5
2
true
false
false
false
false
false
zero
28,536,416
where i miss the semicolon?
<p>I have this code:</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); WebView webview=(WebView) findViewById(R.id.webView); webview.getSettings().setJavaScriptEnabled(true); webview....
I have this code: [CODE] and when I run my code, i get 2 error: Error:(25, 38) java: ';' expected Error:(25, 54) java: ';' expected and when i click on the errors, courser goes on this parts: [CODE] but i cant find out where i miss semicolon. can some one give me a light?:)
java|android|android-webview
-4
2015-02-16T07:25:49.983Z
2,015
2
7
0
124
3
274
27
3
2
true
false
false
false
false
true
negative
28,536,431
Special charaters show square box in webservice response
<p>Here is the word pronounciation coming in my web services response <strong>tækˈsɑ:nəmi</strong> but when i show it android textview it shows like this <strong>tækËsÉ:nÉmi</strong> And also sometime it shows Square boxes in place of some characters when i show it in android textview.</p> <p>Please guide or suggest ...
Here is the word pronounciation coming in my web services response tækˈsɑ:nəmi but when i show it android textview it shows like this tækËsÉ:nÉmi And also sometime it shows Square boxes in place of some characters when i show it in android textview. Please guide or suggest some solution. Ali
android|parsing|dictionary|textview|special-characters
0
2015-02-16T07:26:40.337Z
2,015
2
7
0
184
1
293
56
5
0
false
false
false
false
false
false
zero
28,536,434
How to set repeating alarm on week days[Day and Night], Week end in simple manner?
<p>I need to set on repeating alarm for my below cases,</p> <pre><code>Week Days[Day(8AM -8PM), Night(8PM -8AM)] Week End </code></pre> <p>My Application mode changes during each period of time. </p> <p><strong>I have used the below code to set an alarm for particular day[Monday].</strong></p> <pre><code>//Setting ...
I need to set on repeating alarm for my below cases, [CODE] My Application mode changes during each period of time. I have used the below code to set an alarm for particular day[Monday]. [CODE] Above code will set the alarm for Monday. How to Set separate alarm for Week days for 8AM and 8PM. How to set Alarm for Week e...
android|calendar|alarmmanager|android-pendingintent
0
2015-02-16T07:26:46.717Z
2,015
2
7
0
542
1
494
82
4
2
true
false
false
false
false
false
zero
28,536,486
Is there anyway to view the embedded resources of an Android app?
<p>I need to view the embedded resources of an Android app? Is there anyway to do that if I have the binary for the app? Thanks</p>
I need to view the embedded resources of an Android app? Is there anyway to do that if I have the binary for the app? Thanks
android
0
2015-02-16T07:30:51.803Z
2,015
2
7
0
48
1
124
65
1
0
false
false
false
false
false
false
zero
28,536,504
Android: Is there any intents to listen for CPU "sleep" and "wake Up" apart from screen on and off?
<p>My understanding is,existing Screen OFF and ON intents are not exactly mean that the device is in sleep and waked up respectively. Any applications on the device holds partial wake lock, device will not be in deep sleep but screen may be off/on. </p> <p>Is there any intents to listen CPU "WAKE UP" and "SLEEP" ?</p>...
My understanding is,existing Screen OFF and ON intents are not exactly mean that the device is in sleep and waked up respectively. Any applications on the device holds partial wake lock, device will not be in deep sleep but screen may be off/on. Is there any intents to listen CPU "WAKE UP" and "SLEEP" ? Is there any wa...
android|android-intent
6
2015-02-16T07:32:22.370Z
2,015
2
7
0
930
1
364
99
2
0
false
false
false
false
false
false
medium
28,536,517
Quote the resource of Android library
<p>I imported an android library for my application by android studio module.However something wrong happened.I defined a custom view in my module and it use the method of getResource().Because I used the view in my application.So the context is my application context instead of my module context.So I can't get my file...
I imported an android library for my application by android studio module.However something wrong happened.I defined a custom view in my module and it use the method of getResource().Because I used the view in my application.So the context is my application context instead of my module context.So I can't get my file of...
java|android
0
2015-02-16T07:33:21.877Z
2,015
2
7
0
90
1
602
37
2
2
true
false
false
false
false
false
zero
28,536,553
different child layout for each Group header in ExpandableListview android
<p>I have used <code>ExpandableListview</code> in which every <code>Group</code> has same <code>child layout</code>.</p> <p>Now there is a situation , in which every <code>Group</code> has different child layout (some has <code>checkbox</code>, some has <code>imageview</code>, some has <code>textview</code>) dependin...
I have used ExpandableListview in which every Group has same child layout . Now there is a situation , in which every Group has different child layout (some has checkbox , some has imageview , some has textview ) depending upon its values fetched from web service How do I modify My previous ExpandableListAdapter that h...
android|expandablelistview
2
2015-02-16T07:35:50.647Z
2,015
2
7
0
2,246
1
374
74
2
1
true
false
false
false
false
false
low
28,536,593
Android - Center Grid View in Linear Layout AND use Horizontal Spacing
<p>I have an Android app in which I am trying to center a grid view in a linear layout. I don't have to use the linear layout, but I prefer to if possible. </p> <p>I want to set the horizontal spacing (space between columns) in the grid view, as well as center the grid view in the parent. </p> <p>When I use <code>...
I have an Android app in which I am trying to center a grid view in a linear layout. I don't have to use the linear layout, but I prefer to if possible. I want to set the horizontal spacing (space between columns) in the grid view, as well as center the grid view in the parent. When I use android:stretchMode="none" in ...
android|android-layout|gridview
0
2015-02-16T07:39:04.967Z
2,015
2
7
0
777
1
620
70
3
1
true
false
false
false
false
false
zero
28,536,602
HID Digitizer Descriptor doesn't perform well with landscape orientation
<h2>Use-case</h2> <ul> <li>Implement a HID "Touch Screen" for a SmartPhone device using USB</li> <li>"Touch Screen" should operate well in either landscape or portrait orientation</li> </ul> <h2>Dev Environment</h2> <ul> <li>Samsung Galaxy 5</li> <li>Android 5</li> </ul> <h2>Problem description</h2> <p>When the ph...
Use-case Implement a HID "Touch Screen" for a SmartPhone device using USB "Touch Screen" should operate well in either landscape or portrait orientation Dev Environment Samsung Galaxy 5 Android 5 Problem description When the phone is in the Portrait orientation ( 1080x1920 ) all is perfectly working, when changing to l...
android|driver|hid|touchscreen|android-kernel
2
2015-02-16T07:39:52.040Z
2,015
2
7
0
1,083
0
1,196
72
5
1
true
true
false
false
false
false
low
28,536,618
com.handmark.pulltorefresh.extras.listfragment.PullToRefreshListFragment throw nullpointerException
<p>I got the following error:</p> <pre><code>02-16 12:58:42.444: W/System.err(28893): at com.railyatri.in.fragments.SelectionFragmentNew.init(SelectionFragmentNew.java:206) 02-16 12:58:42.444: W/System.err(28893): at com.railyatri.in.fragments.SelectionFragmentNew.onResume(SelectionFragmentNew.java:229) 02-16 12...
I got the following error: [CODE] I am using android-support-v7-appcompat for developing app . i have following method that return null [CODE] I have the following layout: [CODE] please help me thanks in advance ...
android|pull-to-refresh
0
2015-02-16T07:40:36.677Z
2,015
2
7
0
79
1
215
99
2
3
true
false
false
false
false
false
zero
28,536,628
Creating custom shadows with Robolectric 2.X
<p>I am running Robolectric 2.x(2.4) on my project. I have followed the example in the official doc to create a custom shadow of my own class but Robolectric is not using it.</p> <p>The project is on <a href="https://github.com/jiahaoliuliu/RobolectricSample/tree/roboMockitoTutorial" rel="nofollow">GitHub(branch roboM...
I am running Robolectric 2.x(2.4) on my project. I have followed the example in the official doc to create a custom shadow of my own class but Robolectric is not using it. The project is on GitHub(branch roboMockitoTutorial) . Here is some pieces of the code: The class which I try to create shadow(AppUtils): [CODE] The...
android|robolectric
2
2015-02-16T07:41:39.593Z
2,015
2
7
0
739
1
425
44
2
4
true
false
false
false
false
false
low
28,536,673
Android custom view: can't add own styles
<p>I've found an improvement that may help not to hardcode view values into java classes in my android app. I wonder how can i get it to work. I want to to use this kind of view in my adapter (that means that i cannot use @style attribute in my layout's root). What am i doing wrong?</p> <p>Code:</p> <p>styles.xml:</p...
I've found an improvement that may help not to hardcode view values into java classes in my android app. I wonder how can i get it to work. I want to to use this kind of view in my adapter (that means that i cannot use @style attribute in my layout's root). What am i doing wrong? Code: styles.xml: [CODE] View class: [C...
android|android-view|android-styles
0
2015-02-16T07:44:44.757Z
2,015
2
7
0
266
2
450
41
3
3
true
false
false
false
false
false
zero
28,536,688
Set marker to the center of circle (current location)
<p>I use Google Map Android API v2 in my app and I have a little problem as in the picture below but have no ideas how to fix it. I set marker to current location of device but its now in the center of circle. I want to <strong>set marker to the center of the circle</strong>. Is it possible or not?</p> <p><strong>Than...
I use Google Map Android API v2 in my app and I have a little problem as in the picture below but have no ideas how to fix it. I set marker to current location of device but its now in the center of circle. I want to set marker to the center of the circle . Is it possible or not? Thanks for any help! Code that I used :...
android|google-maps|google-maps-markers|google-maps-android-api-2|google-maps-api-2
0
2015-02-16T07:45:41.210Z
2,015
2
7
0
3,286
1
327
53
5
1
true
false
true
false
false
false
zero
28,536,788
How Activity Layout Selection works in Android
<p>I have creating a layout for Samsung tab 2 but getting confuse about the layout selection process.</p> <p>As layout-sw600dp means that it will be used when the smallest side is equal or greater that 600dp.</p> <p>And in Samsung tab 2 in portrait height is 976dp and width is 600dp but in landscape mode width is 102...
I have creating a layout for Samsung tab 2 but getting confuse about the layout selection process. As layout-sw600dp means that it will be used when the smallest side is equal or greater that 600dp. And in Samsung tab 2 in portrait height is 976dp and width is 600dp but in landscape mode width is 1024dp and height is 5...
android|layout
1
2015-02-16T07:53:44.807Z
2,015
2
7
0
38
0
514
46
2
0
false
true
false
false
false
false
low
28,536,846
unknown error on webservice + android java
<p>unexpected error when i try to retrieve the data from my webservice</p> <p>here is my webservice: <img src="https://i.stack.imgur.com/gZ4Pl.png" alt="webservice"></p> <p>here is my android code, i want the result where msgFrom = 1:</p> <pre><code>private static final String SOAP_ACTION = "http://tempuri.org/selec...
unexpected error when i try to retrieve the data from my webservice here is my webservice: here is my android code, i want the result where msgFrom = 1: [CODE] besides that, i also added internet permission inside my manifest [CODE] here is the logcat: when i press the OK button, the apps is force close. not even throw...
java|android|web-services
1
2015-02-16T07:58:33.827Z
2,015
2
7
0
312
1
483
42
3
2
true
false
false
false
false
false
low
28,536,988
How to add shaking animation to a DialogFragment
<p>I have a DialogFragment that asking user to input a password. When user enter at most 4 digits, I want to shake the DialogFragment (just like MacOS login dialog does).</p> <p>I try to shake it by starting an animation on DialogFragment.getView() but no effect.</p> <p>How to implement it?</p> <p>EDIT: Note that I ...
I have a DialogFragment that asking user to input a password. When user enter at most 4 digits, I want to shake the DialogFragment (just like MacOS login dialog does). I try to shake it by starting an animation on DialogFragment.getView() but no effect. How to implement it? EDIT: Note that I am not looking for any anim...
android|animation
2
2015-02-16T08:08:10.577Z
2,015
2
8
0
921
1
537
48
2
0
false
false
false
false
false
false
low
28,537,019
Add items to layout in dynamic way
<p>I want to add buttons to layout from code, but in specific way. All buttons should be added in horizontal orientation in one line, but when last button is too long, should be put in next line. How can I do that? There is any custom control to do that?</p>
I want to add buttons to layout from code, but in specific way. All buttons should be added in horizontal orientation in one line, but when last button is too long, should be put in next line. How can I do that? There is any custom control to do that?
android
0
2015-02-16T08:10:59.400Z
2,015
2
8
0
28
2
251
34
1
0
false
false
false
false
false
false
zero
28,537,170
Data loading in multiple fragments in ViewPager
<p>I have Activity with ViewPager that holds 3 tabs of Fragments. Each of the fragments has its own URL where it needs to send request and fetch data in JSON format that is shown in Lists in each Fragment. I am fetching the data in onCreateView and then populating the data in the ListView. However the ViewPager simulta...
I have Activity with ViewPager that holds 3 tabs of Fragments. Each of the fragments has its own URL where it needs to send request and fetch data in JSON format that is shown in Lists in each Fragment. I am fetching the data in onCreateView and then populating the data in the ListView. However the ViewPager simultaneo...
android
1
2015-02-16T08:22:02.847Z
2,015
2
8
0
624
0
709
47
1
1
true
true
false
false
false
false
low
28,537,289
Make an android app in multiple languages
<p>I want to use drop-down list in my app to change my app language. How can I do that? I don't want to change OS language.</p>
I want to use drop-down list in my app to change my app language. How can I do that? I don't want to change OS language.
android
0
2015-02-16T08:30:44.820Z
2,015
2
8
0
41
2
120
41
1
0
false
false
false
false
false
false
zero
28,537,317
Adding google_play_services_lib to my android app makes it 5 Mega larger
<p>This is something that didn't happen to me in the previous project I did (this is only my second project).</p> <p>After adding Google Play Services via Properties -> android -> add -> google-play-services_lib the apk size grew by 5 Megabit!</p> <p>Maybe it's important to mention that I work with eclipse, I tried w...
This is something that didn't happen to me in the previous project I did (this is only my second project). After adding Google Play Services via Properties -> android -> add -> google-play-services_lib the apk size grew by 5 Megabit! Maybe it's important to mention that I work with eclipse, I tried working with android...
android|eclipse|apk|google-play-services
0
2015-02-16T08:32:42.410Z
2,015
2
8
0
73
1
602
72
4
1
true
false
false
false
false
false
zero
28,537,326
Android Using @hide methods via reflection
<p>Apart from the risk of the hidden api being changed by Android developers in the future, which seem to an obvious risk you take if you use hidden api, what are other downsides of using it? especially, I would like to know if there is any legal aspect? should I declare anything on the manifest? It doesn't seem to enf...
Apart from the risk of the hidden api being changed by Android developers in the future, which seem to an obvious risk you take if you use hidden api, what are other downsides of using it? especially, I would like to know if there is any legal aspect? should I declare anything on the manifest? It doesn't seem to enforc...
android
0
2015-02-16T08:33:30.437Z
2,015
2
8
0
57
1
401
42
1
0
false
false
false
false
false
false
zero
28,537,341
Failed to open browser
<p>I want to open browser when I click a button on keyguard screen.</p> <p>Here is my code</p> <pre><code>public static void startOpenQuotationUrl(Context context, String urlString) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK ); Log.v(TAG, "context name:...
I want to open browser when I click a button on keyguard screen. Here is my code [CODE] It is successful to open the browser if the browser is not alive.But it is failed when the browser process exists. Here is part of my manifest [CODE] Any ideas?
android|android-intent|android-service
0
2015-02-16T08:34:49.940Z
2,015
2
8
0
201
0
248
22
3
2
true
true
false
false
false
false
zero
28,537,358
how to make Search query in SQLite
<p>How to make a search query in SQLite ?</p> <p>Suppose I have a table,</p> <p><img src="https://i.stack.imgur.com/y9NFC.png" alt="enter image description here"></p> <p>I want search in 3 fields,</p> <p>If I search for string <code>anil Hno Delhi</code> then, </p> <p><img src="https://i.stack.imgur.com/5GWV7.png"...
How to make a search query in SQLite ? Suppose I have a table, I want search in 3 fields, If I search for string anil Hno Delhi then, I tried to concatenate all 3 fields and then given a search query for that concatenated column using like but its not fulfilling my requirement. Please Help. Thanks
android|sql|sqlite
-3
2015-02-16T08:36:31.673Z
2,015
2
8
0
87
1
298
34
3
0
false
false
false
false
false
true
negative
28,537,362
AltBeacon setLayout for Gimbal beacons on android
<p>I would like the Android AltBeacon Library to be able to properly detect Gimbal beacons. I know that Gimbal beacons have encrypted identifiers, so these cannot be read directly. But I would at least like to share code that can detect that one is around. </p> <p>Here is what I have:</p> <p>Code to detect a Gimbal b...
I would like the Android AltBeacon Library to be able to properly detect Gimbal beacons. I know that Gimbal beacons have encrypted identifiers, so these cannot be read directly. But I would at least like to share code that can detect that one is around. Here is what I have: Code to detect a Gimbal beacon (without readi...
android|xamarin|ibeacon|altbeacon|gimbal
2
2015-02-16T08:36:57.833Z
2,015
2
8
0
771
0
771
49
5
2
true
true
false
false
false
false
low