Does anyone know what approach one can take to automatically generate Java source code, from for example an xml or json file, in eclipse?
One great example of what I am thinking of doing is what Google Android sdk does: they have an R class generated automatically from the resources.
Every time a resource file is saved in Eclipse R cla...
I'm trying to make an activity that is asked for some result. This result is normally returned instantly (in the onCreate), however, sometimes it is nesesary to wait for some internet-content to download which causes the "loader"-activity to show. What I want is that the loader-activity don't display anything more than a progressdialog (...
I am getting this error when trying to play certain mp4/3gp videos encoded as H.264/AVC.
06-02 08:46:38.262: ERROR/QCOmxcore(51): OMXCORE API : Free Handle 586d4
06-02 08:46:38.262: ERROR/QCOmxcore(51): Unloading the dynamic library for OMX.qcom.video.decoder.avc
06-02 08:46:38.281: ERROR/PlayerDriver(51): Command PLAYER_PREPARE comp...
Hi
Im trying to see working of ambient media player.
I checkout from url https://ambientmp.svn.sourceforge.net/svnroot/ambientmp/Ambient/trunk to my eclipse work space. when build the app it is showing errors as
Unbound classpath variable: 'M2_REPO/hotsax/hotsax/0.1/hotsax-0.1.jar' in project 'ambient'
Unbound classpath variable: 'M...
Hello, I have implemented a routing protocol on an Android 1.6 mobile that uses wireless (ad-hoc) network in order to exchange messages. Now I would like to evaluate it under an energy consumption point of view, the base would be to try to calculate the energy wasted to transmit a single packet, do anybody has any idea how to do that? So...
I've written an Android app wich various abstract classes that perform useful functions. These functions could be leveraged in other apps.
I want to share a class module with another programmer, but I don't want to share the source code. I would like to share a .class file but I'm not sure how to do the following:
Compile an Android ....
I need to rely on external app (Barcode scanner in my case). The eclipse emulator crashes when I try to download it from within the emulator itself.
Is there a way to download it using the emulator?
Or Is there a way to directly install the APK and make it available for my application?
...
Hello,
I have problems getting the HTML code of a website by using this example code.
http://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x/httpclient/src/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java
I have to use the above one, as I need preemptive authentication for my applicat...
I got an app with tabs and a notification bar entry,
when I send it to background (click on home button)
and try to re-open the application via click on the
notification bar, the app restarts (last selected
tab is lost).
When I hold the home button if the application is in
the background and select it from there or click the
app's ico...
I am using a TabWidget that contains a List in one tab. What I want to do is when a user selects an item, a webview is shown in that tab.
If the user then wants to go back to the list, they would click on the list tab.
I can get the webview up that replaces the whole tabwidget but don't know how to leave the tabs and show a webview.
...
Check out this image
How do I create such a dialog? Having 2 line subtitle and three distinctive buttons.
...
In the same fasion as the android:onClick="function_name" property, is there a way to subscribe to onItemClick via XML?
...
I need a way to detect if this is the first time the user is ever opening the application, if so, start an activity. Then all previous application launches wouldn't start that activity. I've read in a few places about using preferences to accomplish this. Anyone got any ideas?
...
I've posted a bigger chunk of the code below. You can see that initially QUOTE was procedural- coded in place. I'm trying to learn how to use declarative design so I want to do the same thing but by using resources. It seems like I need to access the string.xml thru the @R.id tag and identify QUOTE with that string value. But I d...
I have an app that creates a new data entry in a sqlite db with several columns. I would like to have a simple share button on the final activity so they can share the results (or even a simple text field) with apps that accept it (email, mms, twitter, etc..).
I did some reading on ContentProviders but the more I read, the more I'm thin...
Hi all,
I'm trying to get a character count of an EditText. I've looked into different properties of the EditText and TextView classes, but there doesn't seem to be a function that returns the amount of characters. I have tried to use the TextWatcher, but that is not ideal since sometimes I load a saved message into the EditText from th...
Please Help me compile a list of Effective Android Programming techniques
Don't forget to free resources after use.
Lot of resources like Cursors are overlooked. Free them too.
Don't Use magic Numbers.
values[0] is meaningless. The framework provides very useful accessors like values[SensorManager.DATA_X]
"Make use of onPause()/o...
I am creating a program which requires me to change a setting in the program when the video reaches specific points (at 1/3 of the video's completion, 2/3's and on completion). Android has a built in callback method for completion so performing an action at that point in time is not difficult. However, I don't know how to go about checki...
I´m looking forward to launch a mobile application for Android, iPhone and maybe other platforms like Blackberry, Symbian, ... too in the future.
What do you think is the best way to promote this application?
Is setting up a website; provide a screencast with the features; running ads on ad networks enough or are there other ways too ? W...
I have a horizontal LinearLayout and in it I have EditText and Spinner elements.
Which attributes I need to adjust so I would get proportional widths: I want EditText to take 3/5 and Spinner - 2/5 of all available width?
My code looks like this:
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="fill_par...