Android Ignore Flip
I would like to have my android app ignore flip, is that possible? I added android:screenOrientation="portrait" to all of my activities but that is about as effective as the close door button on an elevator. ...
I would like to have my android app ignore flip, is that possible? I added android:screenOrientation="portrait" to all of my activities but that is about as effective as the close door button on an elevator. ...
I need to make my client talk to a XML-RPC service. I found a couple of interesting ones on the web like android-xmlrpc. Have you used any such libraries in your code? Which library do you recommend? ...
If I write a native Android application that uses android.webkit.WebView, how do I enable WebKitDeveloperExtras for it? I would like to be able to enable real script debugging via Web Inspector, not just dumping to a console. ...
I have an app that displays a video using VideoView. The layout consists of a Clock and a VideoView laid out in a simple vertical LinearLayout. Here's my code snippet that I use: VideoView mVideoView = new VideoView(this); mVideoView.setVideoPath(myVideoURL); mVideoView.requestFocus(); mVideoView.start(); Since the buffering of the vi...
When I create an 'Android Library Project' is it OK to put a whole lot of different libraries in there and create a number of different packages? If I use just one or two components from the library, will it import all the resources and packages or is it smart enough to only import the referenced resources and packages that are needed? ...
I am building an app for Android 2.1 that provides notifications based on calendar events. But I'm aware there are issues with the Calendar API not being readily available / stable / whatever. What I'd like to do is somehow communicate with the user's Google Calendar to get a list of tasks every few hours, or perhaps when the calendar i...
I have an Android application that I've been working on, and it's implemented using tabs to separate the different functions that it performs. See the article here The above article talks about how instead of implementing the Twitter application using tabs they decided to go with a home screen and a tool bar because of some of the lim...
My app has a small web view that I want to animate into place once the page has finished loading. My code looks like this: view.setVisibility(View.VISIBLE); TranslateAnimation anim=new TranslateAnimation(0.0f, 0.0f, view.getLayoutParams().height, 0.0f); anim.setDuration(5); anim.setInterpolator(new Lin...
After I down-loaded and installed 2.2, the related tool sets and ADT, I see I had a new installation of 1.6 in platforms as android-4. I experienced a persistant crash of layout editor on my old layout files. What is going on ? ...
I need to detect Android Clipboard's content changes, and register the changes, but I can't really understand how to achieve such result. There are a lot of clipboard managers around, but I found none open source, and it's difficult to believe they work by checking the clipboard every 15 seconds. Is there a good method to observe clipb...
Hi, I am currently developing android XMPP client to communicate with the Tigase server setup locally.Before starting development on Android I am writing a simple java code on PC to test connectivity with XMPP server.My XMPP domain is my pc name "mwbn43-1" and administrator username and passwords are admin and tigase respectively. Foll...
Would anyone know where to control the ISO setting for the camera from in the Android SDK ? It should be possible as the native camera application on the HTC Desire has ISO settings. ...
I'm having a problem in that whenever I start a emulator, either manually through the command line, or when debugging from Eclipse, it is never recognized by adb, i.e. 'adb devices' will not list it. I have to manually kill and restart adb every time I want to recognize a new emulator. Surely, something is wrong here? (I'm on Vista 64-b...
I have a simple user interface: an EditText should be located below a SurfaceView. I use a RelativeLayout to arrange these two views. Now, when I tap on the EditText to open the virtual keyboard the SurfaceView slides up but the EditText is hidden and does not show the typed string. To reproduce, use the following layout XML code: <?...
I tried using the load function of the SoundPool that takes a FileDescriptor, because I wanted to be able to set the offset and length. The File is not stored in the Ressources but a file on the storage card. Even though neither the load nor the play function of the SoundPool throw any Exception or print anything to the console, the soun...
Hey Everyone, I have several ListActivties set up in my Android Application. What I am trying to do is set it up so the user can select the background color, the font size, and the font color through a PreferenceActivity. I have gotten everything figured out regarding the Preference activity but I can not figure out how to grab the Lis...
Hi, i have a question, what is the best way to append ints and Strings to build a new String? In the allocation debug tool i see too much allocations if i use the operator +. But i have tried also with StringBuffer and there are still too much allocations. Anyone can help me? Thanks ...
Here is my animation resource: <set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:interpolator="@android:anim/overshoot_interpolator" android:fromYDelta="+17%p" android:toYDelta="0" android:duration="2660" /> </set> When I run the animation, it only goes to t...
I've written a small app to parse some rss feeds from YouTube and launch videos selected by the user. To play the video, I'm using an intent: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(videoAddress); in order to call the YouTube app, if installed on the device. The problem I'm having is that, of the population of videos I am ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); cursor = fetchAllDiary(); this.setListAdapter(new DiaryListAdapter(this, cursor, true)); View drawer_view = mInflater.inflate(R.layout.drawer, null); LayoutParams params = new LayoutParams(200,150); getWindow().addContentView(drawer_v...