I'm trying to build a compound control in Android, containing (among other things) a ScrollView. Things go wrong when I try to view the control in Eclipse, crashing with a NullPointerException after the error message: "Parser is not a BridgeXmlBlockParser".
Stacktrace:
java.lang.NullPointerException
at android.view.View.<init>(View.jav...
What is the convention for naming xml styles in Android.
I have seee things like
Widget.TextView.SpinnerItem
and
Theme.Black
If I extend these in my own styles how should I name it?
...
I'm trying to update and install the latest Android SDK (API 8) and keep getting the following error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find va...
Hi. I am trying to make some alarms after the user selects something with a time from a list and create a notification for it at the given time. My problem is that the "showname" that a putExtra on my Intent cant be received at the broadcast receiver. It always get null value.
This is the way I do it for most of my intents but I think th...
I am trying to unit test a class that does SAX parsing and creates an object.
This class takes a string as a parameter representing the URL of a document on the internet, parses it and then creates an object based on the contents.
I don't want to have the unit tests actually access the network, so I'd like to have a few test xml files t...
This logic is written in a function with signature
private void showDialog(final AdapterView<? extends Adapter> parent,
String title, String message, final Tag subject)
Is there a better way of doing this?
// refresh adapter
SimpleCursorAdapter adapter;
if (parent.getAdapter() instanceof WrapperListAdapter) {
adapter = (Simp...
(I'm coming from an iPhone dev world. )
In Android do we need to worry what OS version we compile against? In the iPhone world I would usually target a release that's at least 6 months old to limit the number of issues with installing on iPhones with old OSs.
What strategy should I use when choosing what to compile against on the Andro...
when i click the button i start a activity for youtube video like this:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM")));
if i use this its redirect to the intent chooser to open that video url on browser or youtube app. how to select the default app as youtube programmatically?
...
I was unable to find the google's search widget on the home screen
neither on the the list of available widgets.If i click menu from the
home screen and if i press search nothing happens.
I could neither find an option called "Search" in settings page from
where i could enable my application in searchable items.The issue is
we have enab...
am trying to capture image using android emulator camera by using a pc web cam.i tried the code given here bt got error in running webcambroadcaster.JMF is installed properly and classpath s provided.in Jmstudio device is detected,bt still compilation says ""ünable to find suitable player""
can anyone help me?it s urgent...
...
If you extend SQLiteOpenHelper, for the Constructor you have to use a Context. I am wondering if there is a way to leave this out, and be able to work with database tables without a Context.
Or at least be least restrictive, I mean a way of project/class structure that will make history the several context passings I have to do now.
A...
I need to create a home screen (menu) with four to six items arranged in a grid view, each item needs to have an icon and a text below the icon. I googled and everything I could find were adapterView examples, with dynamic menu loading, and I want to make it with static xml, this view will not change so no need for dynamic code.
Can any...
please help me
I am using windows xp
adb devices command doesnt show my xperia x10 and
eclipse doesn't recognize my xperia x10
I have htc magic and it works fine please help me.
I downloaded driver from:
http://developer.sonyericsson.com/community/docs/DOC-3328#cf
and I installed driver without problems and I don't have for example ...
Using this mechanism I'm able to successfully rotate the image in an ImageView. Works great.
However, if the ImageView has a background image, that drawable is not also rotated. How can I also rotate the background image of an ImageView?
...
In my application I will receive a byte stream and convert it to a pdf file in the phone memory. How do I render that to a pdf? And show it on an activity?
...
Recently one of our clients is considering the posibility of picking up an old WinMobile 5.0 project.
Several features are to be added to the point it will be a major version update.
The client is worried about the mobile market, and thinks there's a chance all the effort put in this development will have to be thrown away in a couple ...
Following line will only not result in a nullpointer exception if I'm connected to a WLAN:
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
Otherwise I get a nullpointer-exception straight ahead? How can I fix this? I want my background service to only work, when it is connected to wlan. B...
Hi
I am trying to catch the intent that is fired when someone clicks on a hyperlink to a web page in the Mms browser. I have this in the manifest:
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android...
When I change any .java file and build, the compilation takes 16 seconds. I don't understand why it should be so slow!?
I enabled verbose output for Andoroid.
Window > Preferences > Android > Build output > Verbose.
The result output (Console > Android) is:
[19:46:10] Refreshing resource folders.
[19:46:10] Starting incremental Pre ...
Hi all,
I'm doing a map application for the android phone but kept running into these errors when i run it.... can anyone help?? thank you!
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
and
Error Mon Apr 12 23:10:58 EDT 2010 Resource is out of sync with the file system: '/GoogleMaps/res/layout/main.x...