android

Zephyr HxM BT and HTC Legend Bluetooth issues

Hi, I have bought myself a Zephyr HxM BT device and I am trying to listen to its messages in a simple application. I have paired the Device to my HTC Legend and I can establish a connection but everytime I call the read() or available() method on my InputStream I get a NullPointerException. Has anyone succeed in getting information off...

How to calculate Packet loss, Jitter and QoS parameters of video over an IP connection?

I came across a mobile application which performs voice and video quality test to give a measure of the quality of voice/video experience over an IP connection. The test calculates the values of Jitter, Packet loss etc. for the remote stream. I am curious to know how this is being done? What would it take to write such an Mobile applica...

Android ServerSocket ports, connection timeout problem

Hello, I am playing around a bit with peer-to-peer communication with android devices. I have written a basic program that creates a listening ServerSocket on each phone using the application. Using the application you can also connect to other devices that is listening, by connecting to the remote ServerSocket. Nothing strange about t...

ExpandableList in Android

Hi all! I've been working on this few days ago, but I need some guide here (I'm newbie to Android programming). In Api Demos there are 3 examples explaining how to fill a ExpandableList with data, one with arrays, other with List and the third with 2 cursors. So, suppose I want to have for example 3 categories: Video, Audio and Images...

How to learn developing Android applications

Hi! I am a new Java programmer. I want to learn how to develop Android applications. If someone could name the best IDE, books and websites from where I can learn, it would really help a lot. ...

connecting two android devices via TCP sockets

Hi! I've been trying to connect two Android devices (2.1) via TCP sockets. The vital part of the code: Server: ServerSocket serverSocket = new ServerSocket(SERVERPORT); Client: Socket socket = new Socket(serverAddr, SERVERPORT); The weird thing is I can make it work if the client is an emulator, but the same code fails if running bot...

onBackPressed() not being executed

I'm implementing the onBackPressed() method in my activity. It's crucial to my app that I have this functionality. But, the control never enters this function. It enters onPause() instead, when I press the back button. But the problem is I can't have the same logic in onPause() because when I call another activity, the current activity ...

Making Video files Android ready for playback over HTTP

I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video. If we use H.263(video) - AAC LC (Audio) audio-video cod...

Cannot find the culprit file in my android project even after expanding the main folder

The side bar in eclipse shows a red cross on the title of my project folder but there are no such signs in the directories below it in hierarchy. In which particular file does error exist? How can I know that? Error log shows: Current file is not a match for the given config. ...

android - navigating frm 1 screen to anothr, done using Intent but eclipse gives some error

0 in my case i hav to navigate frm 1 screen to nthr aftr the timer is completed ... i hav 2 classes named test.java and test2.java!! inside Test.java class i hav created a class named Timer and in that in onFinish() method wen i write startActivity(new Intent(this,Test2.class)); finish(); eclipse shows an error "The constructor Intent...

android - defining elemnts of any layout on a new screen (activity)

i want to dispaly text views n other stuff on 1 screen and when ny1 of those is selected i want to go another screen which already has textviews and radiobuttons on it??? how do i do that??? ...

android image inside single select

I want to display images inside single select when it appears inside dialog. How can I do it? ...

Android Facebook SDK - java.lang.NoClassDefDefFoundError

Hello, I am using official android facebook SDK (downloaded from here: http://github.com/facebook/facebook-android-sdk). When the program reaches the line Facebook facebook = new Facebook(); i get "java.lang.NoClassDefFoundError: com.facebook.android.Facebook". I created a facebook project from sources downloaded and in my project I ...

Transforming some special caracters (é,è,...) into "e"

Hello, I have a question related to Java in my android application. I have a list with some Belgian cities with accentued ( is that the right english word?) characters: (Liège,Quiévrain,Franière, etc.) and I would like to transform these special characters to compare with a list containing the same names in upper case, but without thes...

How to check internet connectivity in android?

friends, i am trying to check internetconnectivity in android and using following code final ConnectivityManager conn_manager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE); final NetworkInfo network_info = conn_manager.getActiveNetworkInfo(); if ( network_info != null...

Context Menu on Android WebView

I'd like to add a context menu on an entire Android WebView. I have the following code: registerForContextMenu(findViewById(R.id.webview)); ... public void onCreateContextMenu (ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); if (v.getId() == R.id.webview) { //displa...

Change Scrollbar color programmatically

Hello Found a way to set scroll bar drawable from XML file: android:scrollbarThumbVertical="@drawable/scroll_bar_back" but can't find how to set(change) it from program code. Can anyone tell if it's possible? and how it should be changed? ...

addHeaderView changes behavior on ListView

I got two kind of lists on 4 different views. All lists are clickable and starts an activity to read the clicked record. One is just a listview populated from the DB and works fine. The second is also a listview populated from a DB but has a addHeaderView. This makes the list forget where it was when you return from the listview's inten...

Android video simulator

I am new to Android development. I have a requirement to record video through front and back cameras of android device. The default Android simulator doesn't support this video recording. Please tell me how to run and test the video recording. Tell me if there are any simulators available. Thank you! ...

android- calling Intent from an Inner class

i want to call a new activity from within an inner class which is defined in d class which extends Activity.... the piece of written in one of the methods of that Inner class is:: Intent intent = new Intent(this, Test2.class); startActivity(intent); Test2 is placed inside the same package as my main clas is placed and eclipse is...