Hi'
Is there a piece of code I could write to be notified when a download finishes in android, and be able to execute some custom actions on this event ?
Hi folks,
while my time developing on android I was looking for a functionality to get logcat messages from my real device (when starting an app on it from eclipse) and not only from my emulator...
Does someone know how to enable such a feature?
greetz. poeschlorn
Hello everyone! I try to learn java for android devices..
i have to create the update function. But still have one question: How????
in class root
public void update(){
maindebug("update"); // This is my debug function
}
public void run(){
while(isRunning){ // isRunning is a boolean variable
SystemClock.sleep(100);
update();
}
}
and inside onCreate
run();
but it doesnt work :(
I have two ImageView's in a FrameLayout of which one (the one on top) is to be animated.
I want it to fade in and continuously rotate, the animation works fine and looks like this: http://code.google.com/p/switchctrl/source/browse/trunk/android/res/anim/device_loading_fadein.xml
ImageView loading = (ImageView) v.findViewById(R.id.loading_anim);
Animation loading_animation = AnimationUtils.loadAnimation(getContext(), loading_animation_id);
loading.startAnimation(loading_animation);
I can not setAlpha on the loading image, if I do the animation does not quite work.
When am lancing camera using
Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, CAMERA_REQUEST);)
And then we getting callback after taking pic to the
onActivityResult(){
//HERE AM CALL ING ANOTHER FRAGMENT
FragmentManager fm = getFragmentManager();
fm.beginTransaction().replace( R.id.tab_upload, new uploadingActivty(), "tabId").setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.addToBackStack(null).commit();
}
Then we getting error as
11-21 16:13:44.316: E/AndroidRuntime(30944): Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Any idea?
Are you an iPhone/iPad/Android programmer with a designer soul? If so we would like to hear from you.
Drop us your best work/portfolio and than we talk.
[email protected]
Cheers
T
Hi i couldn't find a single query that would give me in API 2.0 of the contacts API the URI of the contact's image and the display name.
For now as far as i know i can create a uri by having the contact's _ID , but i didn't see any row name that i can use in the projection of Data or Contact to get all that i need.
can anyone help ?
(i refer to using API 2 of the contacts API on android SDK V5 and above )
10x.
Hi,
Does anyone know of a way to obtain the phone service state (IN_SERVICE, OUT_OF_SERVICE, EMERGENCY_ONLY, POWER_OFF) in android.
I was hoping there would be a broadcastreciever to identify the changes, but I can't find anything. I know there's a listener but I'm not sure how I would use that from my app as it runs as a service using a WakefulIntentService (by thecommonsguy).
With something like battery level (ie BATTERY_LOW, BATTERY_OKAY) it's quite easy, but I just can't work out a similar things for phone service changes.
Is it possible to configure an android app so that if a user has opened your app, launched numerous activities, then returns to the home screen and relaunches your app again, instead of going to the main activity they will instead be taken to the activity highest on the stack (the most recent activity in your app)?
I need as simple as possible solution for uploading files (eg. photos) to my website from mobile devices (iPhone, Android, BB, Nokia). Is it possible to do it in same way? Using Java or XHTML?
I want to build a relatively simple version of my site for mobile phones but i will definately need javascript and jquery for many functions.
Googling didn't help to find an answer. How is compatibility of jquery with popular browsers in mobile phones? I am talking for smartphones. For example the deafult browsers for these platforms
Windows mobile 6+
Android 1.5+
iphone 3g
and let's add opera mobile.
Has anyone tried it?
I want to write an app that a parent can use to disable phone functionality to prevent their child from using it. One way the child could circumvent this is by uninstalling the app.
Is there a way to prevent application uninstall on the Android?
I am building an Android hello world application in Netbeans. It's building properly and I am to run in the emulator also.
But when creating and running the Junit test and running the test I get a java.lang.NoClassDefFoundError.
How can I fix this problem?
I want to hide the title bar for some of my activities. The problem is that I applied a style to all my activities, therefore I can't simply set the theme to @android:style/Theme.NoTitleBar.
Using the NoTitleBar theme as a parent for my style would remove the title bar for to much activities.
Can I set a no title style item somewhere?
As the title says, are there any sources (web pages etc) of summarised changes at each API level?
I have an app which I've put out to a small group of beta testers and I already fell foul of Environment.getExternalFilesDir(), which I hadn't noticed was introduced in API Level 8, when a couple of the guys tried it on Android v2.1 devices.
The majority of my code should be pretty generic but it would be useful if I could find a condensed/summarised list/table or similar that I can quickly glance over.
Hi,
Could someone describe to me what happens when an android application is updated? Is it the old version uninstalled and then installed the new one ? What about the resources the application might need ?
I am trying to update a datetime column in an android sqlite db to use international date format (yyyy-mm-dd) instead of the current format (mm/dd/yyyy). I want to use the sqlite date() function to reformat the current value of the column. I thought it would be as simple as the following:
update tblename set thedate = date(thedate)
but the above does not work.
How would i write the sql statement to accomplish this?
thanks
patrick
I am using html, tag:
<input type = "file" />
On android and on many cellulars I have the ability to get the file directly by taking a picture and save it.
How can I know (by javascript code) how did I get the picture (direcly by the camera, or by some files that on my cellular)?
I did some workarround, and found exif (http://www.nihilogic.dk/labs/exif/exif.js), but I didn't succeed using it, either I don't know whether exif is the right solution.
Thanks :)
I maintain and develop on the Windows Mobile platform.
I know the market is changing rapidly with iPhone and Android gaining market shares.
There are also app development platforms like rhomobile/titanium.
Are there any platform/non platform specific mobile conferences this year?
What would be some of the important/useful conferences to attend in the mobile arena?
Thanks in advance.
Hi all,
on Android, there's a Canvas class that represents a drawing surface. It has a clipping rect. Question - are the rect's right and bottom borders inclusive or exclusive? In other words - if the rect is (0, 0)-(10, 10), will the Canvas allow drawing in pixels at coordinates 10?
I want to implement an android app which compares recorded audio files with our sound database and reports a similiarity metric. The app will work somehow like Shazam but is matched against our database audio files. Can anyone point me to an open source project which implements adequate algorithms to do the sound recogognition/comparision on our server ? Thanks
Hi guys i am using android ndk and for that i am trying to create a c header file using javah tool how to use and where to use this tool i am unable to understand so please any one can
tell me the procedure how to do that i am waiting for the reply please.........
Hi,
I have a strange problem. To detect outgoing calls I have registered a broadcast receiver for android.intent.action.PHONE_STATE. When the state becomes OFFHOOK, then a conversation is started. It seems working on emulator: the debugger in fact reaches some code while it doesn't work on real device (Acer Liquid). Is it possible?
Which is a way to detect outgoing calls?
Thanks