I am, programmatically, creating a lot of LinearLayouts and putting them on another LinearLayout: public void loadList(){ LinearLayout linearLayout = (LinearLayout)findViewById(R.id.linearShowing); if(linearLayout.getChildCount() > 0) linearLayout.re
I am creating an application in which i would like to know whether is it possible to show the list view inside a bottom sheet view .If so can anyone can tell me how i can do it because the examples which i have seen in bottom sheet shows only the sha
Now, I'm working one audio signal processing, and I want to do a real time display audio sound wave which I recorded by my phone. Here is a problem that my audio format is "ENCODING_PCM_16BIT". So how can I change 16bit short data to double form
Currently, I am using firebase Realtime Database. Hence, my data changes come from another thread. Hence, I have no control on when the fresh data update comes over. How do I then know when to call to refresh my UI? This is my implementation of a swi
I am developing a UI which uses icons and custom circular views. According to the documentation https://developer.android.com/guide/practices/screens_support.html I have created separate drawable folders for hdpi, ldpi....xxxhdpi. Also created layout
I'm using com.netcompss.loader.LoadJNI (FFmpeg4Android) and it was working fine until I try to concat 1 video with audio track and other video without audio track. I was using this command line: ffmpeg -y -i /storage/emulated/0/app/1.mp4 -i /storage/
I have a relative layout in my XML file and it contains a button. Now I want that when I press this button, it creates 2 TextViews. Any help please because I am new to Android Studio? I have tried creating the onClickListener for the button but I am
I have been trying to send JSON data to the server. However, my efforts have failed since NameValuePair is deprecated. And okHttp is giving some error like okie.string not found on library classpath. Does anyone know about it?. Please suggest me some
I have installed the latest cordova. The version is 4.3.0. I created an empty Cordova project: cordova create test com.test Test I then add the platform: cordova platform add android I built the project with: cordova build android But i always get: [
columnx 1425795755580/0 1425785965412/3 i have inserted milliseconds/noofdays in db in columnx.Now i want to retrieve that using the currenttime is equal to that milliseconds so for that i have written a query as follows. SELECT substr(reminder,0,14)
I have called a function returnCurrentNameById() by passing the id of the particular row. But it gives an error. String[] s1; public String[] returnCurrentNameById(int k) throws SQLException{ String[] columns = new String[]{ KEY_ID1, KEY_NAME, Key_DO
I haven't encountered a stack trace such as this. It's particularly weird because I can only get the error to be thrown when debugging. (Running the app without debugging does not yield this error). This happens upon selecting a particular page from
How can I animate the RecyclerViews when there are appearing? The default item animator only animates when a data is added or removed after the recycler data has been set. I'm new developing applications, and don't have any clue where to start. Any i
I am trying to receive image stream from desktop in the android phone. When I put decodeStream() method in my thread, then put decodestream() into runOnuiThread() to display in the imageView, it takes more than 7 secs. But when I try to directly read
I want to create an activity that opens only when links with a specific URL are clicked. For example: i want to open http://mysite.xyz/test?param=val#myid=12345 with my app (activity), but http://mysite.xyz/test?other=stuff i want to be opened with d
I've installed a fresh version of Android Studio and from there created a new application. It created my file but the Gradle causes me a lot of problem. For the whole day straight it always try to download the gradle-1.10-all.zip but as always it fai
I am having an issue getting the view to change on a tabhost - when I select a tab the content stays blank. From what I can tell, onCreateView is not being called on the child Fragments. onMenuCreate runs fine because the menu changes like it is supp
In the following code i display images with swipe action and on Tap buttons using ViewPager and ImageView. But It doesn't allow me to Zoom/Pan images. For that i got tried using TouchImageView, bt didn't succedded. My original activity is as follows:
I want to localize (values-ru) strings values: textview and app_name. App localizes only textview ("Привет мир") but app_name still the same ("Localization"). What's the problem with app_name localization? App label name & activity
Right now i am trying to display some text on the screen,but my project is not getting launch and i could not find the accurate reason.Has any one met this situation? Here i have given you every thing in detail for your reference.please find below LO
I tried adding another set of values to the demo example of stacked bar charts with achartengine, but the new values introduced by me don't appear on the chart. Is Stacking bars limited to two bars? public Intent getIntent(Context context) { String[]
I am looking for a way to hide one item in an Android spinner widget. This would allow you to simulate a spinner with no items selected, and ensures that the onItemSelected() callback is always called for every item selected (if the hidden item is th
I'm currently displaying a bunch of data to the user as HTML in a webview. I have some links below each entry that should call a method in my app when clicked. The Android WebView's javascript interface seems to be the best (only?) way of handling th
I try to use spark DropDownList Controller for flex mobile project but its not working properly. Is there any alternative solution available?You want to use <s:List/>. As said by @www.Flextras.com, DropDownLists aren't supported on mobile.
i have linear layout.inside there is textview.which sometiomes contains large information. on pc if run application with emulator it works fine but on phone whole text is not showing. left sided text is gone,cant c it,n only 1 line it is showing. i t
I have to use the getContentResolver method in a class that extends BroadcastReceiver and I found that getContentResolver can be used only in a class that extends Activity. I try to do a static method in a class that extends activity but i can't use
I have an Activity where a user types in an EditText, hits a search button, and the app queries a web service and places the results in a ListView. I'd like to do away with the search button. Obviously I don't want every character the user types to h
It seems that the Android SDK doesn't compile my android app correctly. After building an app, I sometimes get seemingly random exceptions. The error goes away if I comment out the offending code, rebuild, uncomment the code, then rebuild again. For
I'm thinking of buy an android phone, but I'm a little bit scared about the security and privacy because in my palm I had in contacts and calendar a lot of private information. First I thought it could be solved by trying to sync without google, but
I am confused as to the difference between the two. In my application I have just used Extends Activity and the application is working perfectly, so what is the purpose of Extends Application?. Would you use it on the first class you create in the An