android

Can YouTube be embedded in Android Applications? How about WebOS or Blackberry?

Can YouTube videos be played from within an AndroidOS without launching the separate YouTube player? How about WebOS or Blackberry? On the iPhone I can do this with a WebView and the embedded YouTube code and I'm weighing the possibility of porting my app to other mobile platforms. Thanks ...

Using icons in Android preferences

I would like some of my preferences to have icons, like the Settings app. I guess one way of doing this would be to copy all the relevant code and resources from the Settings app, but it seems like overkill for a couple of icons. Also I don't like the idea of having to duplicate the code and resources in each project that requires set...

Android - HorizontalScrollView within ScrollView Touch Handling

Hi, I have a ScrollView that surrounds my entire layout so that the entire screen is scrollable. The first element I have in this ScrollView is a HorizontalScrollView block that has features that can be scrolled through horizontally. I've added an ontouchlistener to the horizontalscrollview to handle touch events and force the view to...

How to change size of the LinearLayout when it is runtime ?

Hi guys. How to change the size of LinearLayout when it is runtime ? I've set the size dynamically when it is runtime. But no luck. Didn't change the size of LinearLayout. How to code it ? Thanks in advance. ...

android drawable changes sizes on screen when reading image from file

Hi I have an image on a private file. I read the file, create the drawable, and assign it to an ImageView. The ImageView has WRAP_CONTENT so the size is automatic. On 320x480 screens, the image looks good But on screens with more resolution and high density 480x800 or 480x854 (N1, droid) , when the image is for example 150x150, I see t...

Why no DatePicker.setDateChangedListener() method

Since most widgets have a standard method of setting a listener, setOnXXXListener(), just wondering why there is no setDateChangedListener() method for DatePicker? I know init(int, int, int, OnDateChangedListener) can be used for the same purpose, but surely there must be some reason why Google decided not to use the standard method her...

Strategy for WCF server with .Net clients and Android clients?

I am using WCF to write a server that should be able to communicate with .Net clients, Android clients and possibly other types of clients. The main type of client is a desktop application that will be written in .Net. This client will usually be on the same intranet as the server. It will make an initial call to the server to get the ...

android status bar text instead of an icon

How can you put text in the status bar to stay there when the window is not expanded? kinda like using text instead of an icon? ...

Android Browser Extensions

Is it possible to write "extensions" for the webkit based browser found on Android devices? i.e. extensions akin to Google Chrome's ? ...

Test Automation Framework For Embedded Platforms

How can i develop a Test Automation Framework for Embedded Devices to achieve the challenge of no dedicated and successful framework for Embedded application in current IT industry. and what are the ways to develop this framework? ...

android and power point

I want to play power point presenetaions on android. basically when user cliks on button , play ppt file. How to do that? any example? ...

android: user preference data location in windows

I'm using Windows to develop android apps and want to know where user preference data is located. It says at /data/data/package/...., but where can I actually see the preference file? Via eclipse or command line tools? ...

android: adding audio files to android emulator [update] permission denied

For debugging purposes, I wanted to have a couple of mp3 files located somewhere "in" my android emulator. Is there anyway to directly push files from my OS file system to the storage system of android? If so, which directory does android keep audio files? if not, how can I access an SD card via emulator? [update2]: The problem in up...

How to programmatically disable onClick handler on Android AppWidget Button

I have a Button on appwidget, that I need to 'enable'/'disable' programmatically from a Service. First idea was to call setBoolean(R.id.buttonid, "setClickable", false) to disable it, but apparently you can't call setClickable remotely. Another idea was was remove the text label from it with rv.setTextViewText(R.id.buttonid, "") and th...

Android threading and database locking

Hi, We are using AsyncTasks to access database tables and cursors. Unfortunately we are seeing occasional exceptions regarding the database being locked. E/SQLiteOpenHelper(15963): Couldn't open iviewnews.db for writing (will try read-only): E/SQLiteOpenHelper(15963): android.database.sqlite.SQLiteException: database is locked E/SQLit...

Launching The package installer.

Hi, I'm looking for a way to automatically start the android Package Installer , after the browser finishes downloading an apk file . Any ideas on this ? Currently after the download is over the list of downloaded files is displayed and clicking on the downloaded apk launches the Package installer . (step which I'd like to automatize)...

How to optimize the login option in android?

HI, I want to create Login option in my application , so that once a person gets login that device creates token which is saved over server. From next time whenever he/she operates the application, directly goes to next label by checking that token keyvalue pair over server.IT requires login page only when that keyvalue pair is deleted ...

Android and Kernel-Modules...

So - Android is build on top of a stripped down linux system. Most of the convenient utilities are missing but all the basics are there. I can call insmod and rmmod. No problem. But where do kernel-modules and firmware files reside? I can't find any. there is no /lib/modules in the standard distribution. Problem: I need modules. For ...

how to debug ExceptionInInitializationError?

I am getting an exception in a very simple 'study' application, so I expect the problem to be in my project setup, but I don't know how to debug ... What is the context of the exception, "ExceptionInInitializationError"? Where is it documented? A: Search Android Developers Guide Stack trace from within Eclipse Debugger with: select t...

Different named Markers on Google Android Map

Hi, i want to add many different markers on an android map. My code works good so far with the same overlay over and over again: mapOverlays = mapView.getOverlays(); drawable = this.getResources().getDrawable(R.drawable.marker); itemizedOverlay = new MyItemizedOverlay(drawable); OverlayItem overlayItem = new OverlayItem(geoPoint, "foo"...