Android :: Need To Determine Current IME In Droid

Apr 30, 2010

I have an application where I would like to warn the user if they are not using the default Android softkeyboard. (i.e. they are using Swype or some thing else).

How can I check which input method they currently have selected?

Android :: Need to determine current IME in droid


Android :: Determine Current Connection State Is WIFI / Cell Network?

May 31, 2010

I am trying to determine if my current connection state is WIFI or Cell network (3g/2g... etc)
I am using SDK 1.5.

Tried couple of technique not really working.

Any working suggestions?

View 2 Replies View Related

General :: Determine Current Time Is Between Two Other Time Objects?

Dec 28, 2012

How can I determine if the current time is between two other time objects?

For example: current: 15:23, startTime: 22:00, endTime: 06:00. So the current time is not between this two other times, but this "23:47" is.

*I don't care about the date, only the time

I tried to do it like this:

Code:

Time startTime = getStartTime();
Time endTime = getEndTime();
Calendar c = Calendar.getInstance();
Time now = new Time(c.getTimeInMillis());

[Code]...

but it dosen't work well. their aren't any errors but it just dosen't work.

To be more precise the problem is that 15:35.after(22:00) return true... and I don't know why. I think that the problem is something with the dates but I don't know what

View 1 Replies View Related

Android :: Blocking Current Activity / Screen Till Current Task Is Complete

May 13, 2010

The default behavior of an activity when BACK softkey is pressed is, GO BACK TO PREVIOUS ACTIVITY. If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity.

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options

View 12 Replies View Related

Android :: Determine When Droid GC Runs?

Feb 19, 2010

Does anyone know if there is a way to identify (in code, not LogCat) when the GC has run? Perhaps an intent is fired? I could analyze the LogCat output, but it would be ideal if I could determine when the GC has run from my code.

View 2 Replies View Related

Android :: Want To Determine Audio Capabilities On Droid?

Mar 10, 2010

I'm experimenting with Android's audio recording and playback. Is there a way to enumerate the available audio parameters on my device?

Right now, when I pass a combination of parameters that the hardware (or emulator) doesn't like, I just get an error. So I am having to "guess":code...

Surely there's a better way!

This chart indicates that the only supported audio input sampling rate is 8 kHz? Is that correct?

View 1 Replies View Related

Android :: Droid ImageButton - Determine What Resource Is Currently Set?

Jun 30, 2010

Is there a way I can find what resource a particular ImageButton is set to, at any given time?

For eg: I have an ImageButton that I set to R.drawable.btn_on onCreate. Later, at some point, the ImageButton gets set to R.drawable.btn_off. I want to be able to check what resource the ImageButton is set to in my code.

View 3 Replies View Related

Android :: Determine How Much Text Will Fit In A TextView In Droid?

Aug 4, 2010

I have a layout that looks something like this:

[TextView 1] [TextView 2]
[ TextView 2 spill-over ]

Essentially, I need the contents of TextView 2 to wrap to the next line, but start where TextView 1 starts. I was thinking that if I knew how much text would fit into TextView 2 before it runs out of space on line one, I could take the rest of the text and put it in another TextView below the first two. So I need to measure how much text will fit into a TextView (which can be tricky because as far as I can tell, Android will try to break the text in a TextView at a good location so that it won't break a word in the middle if it can be avoided) or I need a new idea on how to lay this out.

View 1 Replies View Related

Android :: Determine Droid Is First Run - Not After Booting Device?

Jun 16, 2009

How to distinguish Android is first run or not after booting device?

View 2 Replies View Related

Android : How To Determine Droid Internet Connection?

Nov 15, 2009

How can I determine the current internet connection type available to an Android device? e.g. have it return WiFi, 3G, none.

View 2 Replies View Related

Android :: Determine Apps Installed On Droid Device?

Sep 6, 2010

Is there a way to determine what apps are currently installed on an android device? I guess reading /data/app directory doesn't do the trick (access denied).

View 1 Replies View Related

Android :: Determine Image Area Clicked In Droid?

Jun 20, 2010

Is there a way to determine in an Android app which area of an ImageView (x,y coordinates, for instance) was clicked by a user?

View 1 Replies View Related

Android :: Determine Velocity Of Droid Device Is Traveling?

Apr 27, 2010

What is the easiest way to find out how fast the Android device is traveling?

Also, is there a way to register an intent for speed? Example: intent if the device goes more than 20 miles an hour.

View 2 Replies View Related

Android :: Determine Revision Number Of Droid Build?

May 25, 2010

I know how to get the API level, android.os.Build.VERSION.SDK_INT, but there are also several revisions of each level release, e.g. for 2.1 there's rev 1 and 2. How do I determine the revision of a build?

The reason i'd like to know this is that I have a workaround for a bug in Android 2.1 (and 2.2), and this workaround will break the moment the corresponding bug is fixed. So right now i'm in the odd position of hoping that the bug won't be fixed (at least not until I can find an answer to above question).

View 1 Replies View Related

Android : Way To Determine Programmatically / Install Time For Droid App?

Jun 27, 2010

Is there any way to determine programmatically the time at which an Android application was installed? I don't see anything in PackageInfo, etc.

--EDIT--
To clarify, App A is installed at Time X. At some later time, Time Y, App B is installed. Is there any way App B can know when App A was installed? The link http://stackoverflow.com/questions/2831333/how-to-get-app-install-time-from-android/2920310#2920310 indicates that reading the modify time on the source dir of the App is sufficient. Is this really correct? Why?

View 3 Replies View Related

Android :: Does Droid Determine Whether To Move Layout Up When Showing Softkeyboard?

Sep 6, 2010

How does Android determine whether to move the layout up when showing the softkeyboard?

Note: I am aware that the activity property android:windowSoftInputMode="adjustResize|adjustResize|adjustUnspecified"
exists, as described here http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft
, but in my case it doesn't seem to have any effect. This is my problem:

I have two activities, pretty much the same layout, but the first one is using a ListView that holds a list of buttons. The second activity holds a scrollview with buttons.
The rest is the same, same number of buttons, same height of elements, etc.

Now, when I press the search button to open the search input bar, in my first activity, the entire layouts gets moved up.
While on the second activity, the layout is not being moved up but the softkeyboard just displays on top of it. This is actually how I want it to behave. How can I achieve the same with my activity that's using the ListView?

In my manifest, initially I didn't specify any android:windowSoftInputMode attribute, but even if I do, it doesn't make any difference; I tried all three values (adjustPan, adjustResize, adjustUndefined, without any difference).

This is my layout:

1) http://pastebin.com/5zzVxjbK

2) http://pastebin.com/KFtPuHvP

Interestingly though: when I set my ListView visibility in my layout 1 (left) to View.INVISIBLE, then the layout doesn not get moved up!

View 2 Replies View Related

Android :: Droid Maps : Determine Map Center After A Drag Has Been Completed?

Nov 20, 2009

Is there a way through the android maps API, where I can detect the map center after pan animation has completed? I want to use this information to load markers from a server dynamically.

View 2 Replies View Related

Android :: Programmatically Determine Installed Audio Applications On Droid?

Aug 19, 2010

I'm trying to programmatically determine what audio applications are installed on an Android phone. I'm able to enumerate all the installed applications, but don't yet see a way to figure out which ones are capable of playing audio? What property of the application would have to queried to determine if is capable of playing audio?

View 1 Replies View Related

Android :: Unable To Determine Signal Strength On Droid - 2.0 - OnSignalStrengthsChanged Deprecated

Nov 17, 2009

The typical method to obtain signal strength has been to extend the PhoneStateListener class and override the onSignalStrengthsChanged method. Anytime the signal strength changes the system will call this method passing in the new ASU.

Since this method is now deprecated as of Android 2.0, how are we suppose to go about obtaining the signal strength? I tried using the method above on Droid (CDMA) and the ASU passed in is always -1.

There are also no details in the SDK as to why this was removed or what we are supposed to do now. http://developer.android.com/reference/android/telephony/PhoneStateLi...

View 7 Replies View Related

Android :: Determine Droid Database Maximum Size And Prevent SQLiteFullException?

Sep 7, 2010

I have few queries on Android SQLiteDatabase

1.) As normally the database stored in internal memory, can we specify the path of external storage and use it in similar way ?
2.) How to determine the size of available space of database ? I used getMaximumSize() from SQLIteDatabase class but that gives me 1099511626752
Is this in bytes ? If assumed then this seems to be too large and not practical. I am using HTC G1 to test this.
3.) How can I determine the size of an entry in table ? Or do I have to pull the whole table and manually see its size. Is it same that would be in phone storage ?
4.) Can I check if any free space available before making entry in database ? I want to prevent SQLiteFullException.

View 1 Replies View Related

Motorola Droid :: Determine Phone's Date Of Birth?

May 16, 2010

How do I determine my DROID's date of birth?

View 3 Replies View Related

Android :: Use C++ In Current Droid Market App?

Apr 26, 2009

All app development are based on java and sdk, anyone tried to use c++, i.e. compiled into so, and modify jni to access it? is there a way to using c++ in current Android Market App?

View 4 Replies View Related

Android :: How To Get Current DNS Servers For Droid

Jun 18, 2010

I´m trying to get hold of the addresses to the currently used DNS-servers in my application, either I´m connected through Wifi or mobile.
The DhcpInfo object should provide this but how can I get hold of a valid DhcpInfo object?

View 1 Replies View Related

Android :: How To Get Current Droid Sdk Version (1.5, 1.6, 2.0) Programmatically

Dec 10, 2009

How can i get the current android sdk version (1.5, 1.6, 2.0, etc.) programmatically

View 2 Replies View Related

Android :: Possible To Use Droid 2.2 On Eclipse Current Version?

Nov 9, 2010

Is it possible to use Android 2.2 on Eclipse current version?
And Is it working properly on Eclipse current version?

View 2 Replies View Related

Android :: Droid Charging Requirements (Voltage And Current)

Mar 22, 2010

I have several USB-MicroUSB cables (some OEM Motorola, some other brands), several 12 volt-USB converters, several cars, and several devices that accept MicroUSB connection for power. With everything other than my Droid (including a Blackberry and a GPS unit) every combination of cable and 12volt converter works. With the Droid, all of the combinations will turn on the screen (indicating the Droid knows a cable has been connected), but only a few combinations will actually charge the Droid. The only possible explanation I have come up with for this is that the Droid has some sort of minimum current requirement, and that some converter/car/cable combinations are unable to meet this requirement. So, what is the minimum voltage and current that will allow the Droid to charge?

View 18 Replies View Related

Android :: Droid NumberPicker Not Saving EditText Changes / Set It As Current?

Sep 11, 2010

I have copied Android's NumberPicker widget to my own application, but I'm having one problem...

When someone manually clicks the EditText and changes it via the keyboard, the selection is not saved. Is there some listener that I can implement to check and see if the user manually changes the EditText to set it as current? Or something?

View 1 Replies View Related

Android : Dump Current Screen To A Bitmap In Droid?

Jun 3, 2010

Is there way to dump the current screen to a bitmap in Android?

And what about dump screen of other applications? For example, running a service background, the foreground app could send an intent to start the service, and capture the current screen and save as a bitmap.

View 2 Replies View Related

Android :: How Can Check Current Time On Droid Device And Put Into Integer?

Nov 15, 2010

I know there is the Date() class built into the API, but line of code actually grabs the time of day?

View 3 Replies View Related

Android :: Save Current State Of Canvas As An Image In Droid?

Nov 16, 2010

I'm developing an application which allows user to edit an image and save that edited image as new image on sd card I want to get the current state of the canvas object.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved