android

Adroid SDK and XQuery?

Is there any implementation of XQuery known to work with the Android SDK? I tried mxquery, but had no luck. I did not expect it to work as their site says Andriod support comming soon. I'm unsing jTidy to parse web pages into XHMTL and am looking for something lite and fast to search, filter and reformat XML files. Thanks. ...

Android - Using Custom Font

Hi All, I applied custom font to an TextView, but it doesn't seems to change the typeface. Here is my code:- Typeface myTypeface = Typeface.createFromAsset(getAssets(), "fonts/myFont.ttf"); TextView myTextView = (TextView)findViewById(R.id.myTextView); myTextView.setTypeface(mTypeface); So anyone can plz get me out of th...

How to OverRide some of the methods of VideoView of android.

Is there any Listener to override methods of Videoview like boolean canPause() boolean canSeekBackward() boolean canSeekForward() int getBufferPercentage() int getCurrentPosition() int getDuration() boolean isPlaying() How to pause a video. For audio we use mediaController.setMediaPlayer. How we can use for v...

Android: Set Shared Preferences during Installation?

Does Android provide smth. like that OR do I have to check every time during start of my app "Oh, am I freshly installed? Do I have to initialize the Shared Preferences now?" ...

How to determine apps installed on Android device?

Hi, is there a way to determine what apps are currently installed on an android device? I guess reading /data/app directory doesn't do the trick (access denied) thanks in advance for your help regards peter ...

How to control scroll bars upto listview height.

friend's I am facing problem in scrolling of listview,while inflating footer layout.the listview shows 10 records initially and i have click event to append more data below my last list row content,after clicking to view more data,the data has been binded and the listview focussed to firstrow and when i scrolled down to view new load...

Android - capture users signature

My requirement is to make an activity which provides user with a screen in which user can input his signs. I want these signs to be then saved as an image in database. Is there any default activity which does similar task. ...

Tips for saving memory when coding under android ?

Hi all, Im currently developing a software under android and im getting quite quickly some OutOfMemoryException.... I did modified some part of my code to use more static variables instead of making new allocation with the "new" operator but is there any things else to do ? or any other tips ? Any advices would be welcome. Thanks. ...

Scrolling through ListView with some images very laggy

I've got the below screen that contains some images (6 per visible page). Scrolling up and down seems quite laggy to me. It's like it's rendering the images again. Scrolling back up seems worse than scrolling down. Anyone know how to increase performance in such an area to create a nice smooth scroll? Update: The images and text is all...

Unable to cd do sdcard with adb after update to Froyo

My application takes a picture and saves to the sdcard. It worked fine on Android 2.1, but I just upgraded to Froyo and now I'm getting: ERROR/CameraPreview(28216): Problem taking picture WARN/System.err(28216): java.io.FileNotFoundException: /mnt/sdcard/silviaterra/temp.jpg (Permission denied) WARN/System.err(28216): at org.apache...

One frontend for iPhone/iPad, Android and Multi-Touch displays.

Hello to all. I have built a multi-touch application which is based on a Java EE backend and combined with BlazeDS to a Adobe Flex frontend. The application runs on a DIY-Multi-Touch which I built. Now I want to use another solution. The Adobe Flex frontend (with a multitouch library) and the BlazeDS adapter should be replaced by a solu...

How does Android determine whether to move the layout up when showing the softkeyboard?

How does Android determine whether to move the layout up when showing the softkeyboard? Note: I am aware that the activity property android:windowSoftInputMode="adjustResize|adjustResize|adjustUnspecified" exists, as described here http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft , but in my case it doesn't...

Accessing Android Low-level networking parameters

Hi there I am trying to access low level Android GSM networking parameters such as Bit Error Rate from the phone's radio hardware. The Signal Strength API provides some information but, as an example, the function getGsmBitErrorRate() which should return the received bit error rate always returns a value of -1. Is there a way to access ...

Making rest request from android with url variable with "/" character.

So im trying to make a request from a rest jersey webservice, but since i want to pass a variable that has the "/" character im having trouble to reach my resource class method. Heres the url: http://localhost:8030/IPDMS/rest/process/search/210/2010 Where the 210/2010 is a variable, so the "/" character will mess when searching the res...

Android: Gzip/Http supported by default?

I am using the code shown below to get Data from our server where Gzip is turned on. Does my Code already support Gzip (maybe this is already done by android and not by my java program) or do I have to add/change smth.? How can I check that it's using Gzip? For my opionion the download is kinda slow. private static InputStream OpenHtt...

Android listView null pointer exception

Hello everyone, I need a small help in List view. I am generating a list View, but whenever i do getChildAt(int position) it throws null pointer exception. Here is the code _list=(ListView)findViewById(android.R.id.list); _loadListElements(); _showListUI(); _list.getChildAt(1).setBackgroundColor(Color.WHITE); ...

android NumberFormat

Here is my code : NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(14); nf.setMinimumFractionDigits(0); double d = 0; System.out.println(nf.format(d)); With Android SDK : it prints "0.00000000000001" With Java SDK (j2SE) : it prints "0" Why this difference ? bug in NumberFormat class for Android SDK ? ...

Main difference between Manifest and Programmatic registering of BroadcastReceiver

I am trying to understand the main differences between registering a BroadcastReceiver in the Manifest and registering it programmatically... My understanding is basically as follows - would appreciate someone correcting my points if I am missing something. Registered in Manifest: - The OS will magically find and instantiate your clas...

Android Spinner with no selected text - arrow only

I would like to create a spinner which only displays the drop-down arrow and not the selected value and is only the width of the arrow. You can see various examples of this in Android itself e.g. Settings->Display->Brightness (Edit: a commenter has pointed out that this is a DialogPreference, but I would like a similar effect using a spi...

Create drawable resource path dynamically

Hi, I have something like the following line of code: Notification notif = new Notification(R.drawable.notification_XX, "Notify", System.currentTimeMillis()); My problem is that i want to make R.drawable.notification_XX changeable, so for example if I have a variable i = 24; then the appropriate resource R.drawable.notification_24 sho...