FAQ Database Discussion Community


Best way to create a header and footer for webview in Android

android,android-webview,android-4.0,android-scrollview
I want to create news like activity that has title and date and some share and favorite buttons in the beginning at the top, the article text (and maybe some images and headers titles) is in html that I get from server, and at the end a list of related...

Android external app can't access app's files

android,android-4.0
I'm trying to open a file that I've downloaded on one app, in another viewer, such as the stock gallery or a PDF viewer. Here is how I save the file: FileOutputStream fos = null; try { fos = from.openFileOutput(name, Context.MODE_WORLD_READABLE); fos.write(data); //data is my byte[] fos.flush(); fos.close(); }catch... //...

ProgressDialog#setIndeterminate(false) not working

android,progressdialog,android-4.0
I'm trying to display a determinate progress dialog with a bar, however, I can't get it to working. Here is how I create it: dialog = ProgressDialog.show(from, "Posting...", "Uploading..."); Then on UI thread (calling within runOnUiThread), I'm calling: dialog.setIndeterminate(false); However, when I inspect after it (both immediately after setting, and...

Asynctask issue on android version < 4

android,android-asynctask,handler,android-4.0,android-2.3-gingerbread
I have developed an app to support android os 4 and above. I have used an Asynctask to make an web service call during app start up. Later I have changed my minSdkVersion to 9. To support android 2.3 and above. But the same code throws below error. Calling AsyncTask...

How can my app allocate more heap memory in Android 4.0? (Not enough memory for my app) [closed]

android,memory,android-4.0,barcode-scanner,ram
I'm desesperate with my app. I'm developing an app for a dedicated barcode scanner Android based device. It's like an old phone (CPU Cortex-A8 OMAP 1Ghz, 512MB RAM), with Android 4.0. I can't root the system, nor update it, i've talked with the manufacturer. The problem is that can't finish...

Webview Showing error message while tried to load with Line chart report data: SYNTAX_ERR: Dom Exception 12

android,android-webview,android-4.0,linechart
I've implemented google charts for generating Line Chart reports. It works fine in above ICS Devices. But in ICS web view is loading with an error message instead of expected line chart report. In what case can web view shows this error on web page The error message is: SYNTAX_ERR:...