android

Is the Twitter client for Android using OAuth ?

Since basic auth has been deprecated, is the official android twitter app using OAuth? It still asks for my userid & password & I'm wondering how they are retrieving the oauth token ? ...

moving an image from one point to another in android on canvas

Hi i am developing a game, in that i have to move an object image from one point to another in any direction not only vertical/horizontal. How can i move that image. please help me any one. ThanQ. ...

Angle of mobile while using

Hi all I'm working on an Android program for my research. It needs to find out the angle while user using my mobile phone. The angle here is like a rotation angle of entire mobile phone, not the widgets in layout. I've tried keyword "angle" on http://developer.android.com/reference/packages.html And I found a method "onSensorChang...

Moving the hold button on Android phone app

Hey all, Is there a way we can access the android phone app and move it's hold button to Right down instead of left top currently? Basically is it a non-open source google app (I see contacts is one) or can we download the source and modify it? Thanks for pointers! ...

How to get performance increases using Processing for Android?

I have converted a few of my Processing sketches into Android apps, but they seem to run really slowly in the emulator and on my device. Are there any tips on how to increase the speed and performance of my sketch running as an Android app? Are there things or parts of the Processing API I should avoid? ...

How to make a Drawable(Custom Polygon) part draggable...

I have some Drawable objects in a View. And draw them like this: protected void onDraw(Canvas canvas) { super.onDraw(canvas); Drawable1 dr1 = new Drawable1(); dr1.draw(canvas); Drawable2 dr2 = new Drawable2(); dr2.draw(canvas); Drawable3 dr3 = new Drawable3(); dr3.draw(canvas); } Then how c...

Videoplayer issue in android

Hello In my android application i am playing live rtsp links. The issue is at times if the player gets struck somewhere then the videoplayer doesnot exit even if we press back. The only option will be to close the program from task manager. Is there any way that i can make it better? Please share your valuable suggestions. Thanks in a...

Android MediaPlayer supported MJPEG

hi, Is Android MediaPlayer supported the MJPEG format. 1 path = "http://cif12.nfreeway.gov.tw/live-view/mjpg/video.cgi camera=187&1168226466841"; 2 mPreview = (SurfaceView) findViewById(R.id.camsurface); 3 holder = mPreview.getHolder(); 4 holder.addCallback(this); 5 ...

Is it possible to place 2 buttons in List view

ListView [Text] [Button 1][Button 2] [Text] [Button 1][Button 2] ... (and so on) ... Button 1 should be like Check Box and other button which allows to redirect on other page Is above mentioned thing possible?? Thanks in advance.. ...

I need to move an image dynamically,depending upon the input from the user..What should i use?

Depending upon the user i may need to move it to right ,left,top or bottom. Should i use animation for the purpose? Or is there any method to move image dynamically? I meant the things in android application ...

Change screen preferences

I have a business requirement, and after lot of googling came to a point that android (as compared to iPhone) would be the platform to go for I have a requirement wherein lets say an App 'X' that comes built-in with OS (firmware) needs to be replaced with some App 'Y'. Of course, i understand that there would be something that i would ...

screen launching in anrdoid

hai....i got a question... Suppose Screen1 is the main screen of an Android application MyAndroid. Now if another screen, Screen2 has to be opened from Screen1, then which of the following are true? Screen2 has to be a part of MyAndroid. Screen2 can exist in any other Android application installed on the device. Screen2 will always be...

seekbar onseekchangelistener in mediaplayer android

Hi i have a android code to streaming audio file from internet and play the stream ofter 10 seconds here i am using a seekbar to view the buffering status an playing status.i want to listen the audio from middile of the buffered stream for that i seek the seekbar point to middle but i cannot listen audio from middile it will go back and ...

Is there a particular reason Java is the only way to program Android?

I read a lot about Dalvik and Google's Android OS when it first came out. One of the things that I don't quite understand though is why Java is used. The way I understand it is this: Java code -> Java bytecode -> Dalvik bytecode What I don't understand is why I have yet to see anything compile to straight Dalvik code or any other fron...

How to Enable/Disable Wifi or Internet Connection Programatically Andriod

Using the Connectivity Manager Class We can get access to either wifi or Internet Network Using ConnectivityManager connec = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); // ARE WE CONNECTED TO THE NET if ( connec.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTED || connec.getNetworkInfo(1)...

Android : On application exit?

Hi, I understand when an activity closes, onDestroy() is called. But this is not done always right? Sometimes, onPause() is called. So suppose I want to clear some memory when an activity closes, where exactly do I do it? Since onDestory may not be called, I cannot keep it there either right? Elaborating: I have 2 activities A1 and A2...

list view setChecked() selects multiple items instead of one.

I have a listview which populates the data using CheckedTextView. Here is the xml <?xml version="1.0" encoding="utf-8"?> <CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:textSize="14dp" android:paddingTop="5dp" a...

Intent_Filter Action won't work in AndroidManifest

Hi, I have an Activity which also has t olisten to a specific broadcast from a self-made service. I have noticed though that when I add that as an action to my Androidmanifest file the app won't actually start whilst debugging. The Activity is also my MAIN activity : <intent-filter> <action android:name="android.intent.action.MAIN" ...

Android custom codec or encrypt media file?

Hi, I want to create an application which permits to the user to download media files and play them, but only with my application. So first of all I thought that encrypting files will be a good solution, but it takes to much. Now I'm thinking to create a custom codec for my media files. I didn't work until now with codecs so how complic...

Is it possible to establish a P2P connection between two Android phones?

I am able to connect 2 phones through Bluetooth. But is it possible to connect through the wireless network? Any help will be appreciated! Thanks Pradeep ...