[android-developers] How to pop up android keyboard through bluetooth?

2017-08-10 Thread bruce
I'm developing a software working on bluetooth barcode sanner. When my barcode sanner connected with my android phone via bluetooth HID protocol, the android keyboard will be hidden. I want to pop up android keyboard by sending some commands through bluetooth HID protocol. What the command

[android-developers] How to call out Gboard virtual keyboard through bluetooth?

2017-08-10 Thread bruce
I use Gboard on my android phone. I'm developing a software working on bluetooth barcode sanner. When my barcode sanner connected with my phone via bluetooth HID protocol, the Gboard virtual keyboard will be hidden. I want to call out Gboard virtual keyboard by sending some commands through

[android-developers] Matrix.orthoM - How to use it

2012-09-14 Thread Steven Bruce
I have a very simple application which draws a triangle at zero on the z axis. I want an orthographics view but for the life of me this function won't work. It just shows a black screen with no triangle. How exactly do you use this function? I did the obvious thing which is:

[android-developers] Re: Total Available memory for Memory Management logic.

2012-04-26 Thread bruce
it if you use mostly small allocations because there is a performance hit with the large heap. Cheers, Bruce On Apr 26, 4:01 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: The thing is that Android OS will allocate the memory according to the needs of a process (up to maximum memory

[android-developers] ClassNotFoundException launching app

2012-04-18 Thread Bruce Xia
Hey, I'm having some weird crash reports from market. I have the full class name in my AndroidManifest.xml and we couldn't reproduce it on any of our phones. My application. We have around 100k users and I'm seeing this report approximately 9/week only. Any idea what's happening?

[android-developers] ClassNotFoundException launching app

2012-04-18 Thread Bruce Xia
Hey, I'm getting some really weird crash reports from market. The crash happens right at luanching app but we have around 100k users, and this report occurs ~9/week only! As you can see following the stack trace I pasted my AndroidManifest file, i have the class name defined. Any idea?

[android-developers] Re: Proguard throws Error 1 with Loaders

2012-03-25 Thread Bruce Rees
FWIW, I had a similar problem today.. a large application which has been working fine with Proguard for a long time started throwing the Dalvik error after I implemented CursorLoaders.. I was able to fix it by setting -optimizationpasses 2 in proguard.cfg, I don't know why this works, I tried

[android-developers] Re: emulator-x86 with hardware virtualization

2012-01-13 Thread Bruce Beare
getting the fix uploaded there. Note: you will also need to load in kvm (on Linux): sudo modprobe kvm sudo modprobe kvm_intel -Bruce On Jan 12, 2:20 pm, Anirudh Sivaraman sk.anir...@gmail.com wrote: Hi I read an earlier thread where it said the Android emulator was now capable of running x86

[android-developers] Re: emulator-x86 with hardware virtualization

2012-01-13 Thread Bruce Beare
not at all sure when the ICS emulator image will be available via the SDK add-on mechanism. On Jan 13, 8:51 am, Anirudh Sivaraman sk.anir...@gmail.com wrote: On Jan 13, 9:52 am, Bruce Beare bbea...@gmail.com wrote: It's actually far faster than an ARM emulation (provided that you are running

Re: [android-developers] App force closes when Bluetooth connection occurs

2011-09-26 Thread Steven Bruce
Android 2.3.3. Kristopher Micinski wrote: On Tue, Sep 20, 2011 at 12:34 PM, Steven Bruce stevebruc...@gmail.com wrote: Hi Kris Yes there is a bunch of stuff in the logcat outpu window. I will try and post a copy of it on here later on. I have a feeling it maybe something to do

Re: [android-developers] App force closes when Bluetooth connection occurs

2011-09-20 Thread Steven Bruce
be an exception thrown, but I spose weirder things have happened. Kris On Mon, Sep 19, 2011 at 6:04 AM, Steven Bruce stevebruc...@gmail.com wrote: Hi I have been following the Bluetooth guide on the Android developer site and have got everything working so far but now I am really stuck. Despite my

[android-developers] Is this a joke??

2011-09-20 Thread Steven Bruce
http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() What is this supposed to do? Looks like Google having a laugh or something?? :p -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Is this a joke??

2011-09-20 Thread Steven Bruce
public static boolean isUserAMonkey() Since: API Level 8 Returns true if the user interface is currently being messed with by a monkey. Steven Bruce wrote: http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() What is this supposed to do? Looks like Google

Re: [android-developers] Is this a joke??

2011-09-20 Thread Steven Bruce
Oh ok then. I'll let them off. lol. Thanks! :) Daniel Drozdzewski wrote: On 20 September 2011 17:42, Steven Bruce stevebruc...@gmail.com wrote: http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() What is this supposed to do? Looks like Google having

[android-developers] App force closes when Bluetooth connection occurs

2011-09-19 Thread Steven Bruce
Hi I have been following the Bluetooth guide on the Android developer site and have got everything working so far but now I am really stuck. Despite my code looking virtually identical to the one in the Bluetooth page it just doesn't work. Is that code wrong or something? I have my two thread,

[android-developers] Threads

2011-09-02 Thread Steven Bruce
I have thee threads in my bluetooth program. Both my AcceptThread and ConnectThread create a newConnectThread from within their Thread class but my program seems to crash at this point. Are you not allowed to start a new thread from within a thread class? -- You received this message because you

[android-developers] Re: Threads

2011-09-02 Thread Steven Bruce
I mean they both start a new thread called 'ConectedThread'. Is this ok or should I not be doing this? On Sep 2, 1:28 pm, Steven Bruce stevebruc...@gmail.com wrote: I have thee threads in my bluetooth program. Both my AcceptThread and ConnectThread create a newConnectThread from within

[android-developers] Re: Threads

2011-09-02 Thread Steven Bruce
in a single run wouldn't you be starting the same thread twice? This may raise an exception. Thanks On Fri, Sep 2, 2011 at 6:07 PM, Steven Bruce stevebruc...@gmail.com wrote: I mean they both start a new thread called 'ConectedThread'. Is this ok or should I not be doing

[android-developers] Re: Threads

2011-09-02 Thread Steven Bruce
, Sep 2, 2011 at 6:07 PM, Steven Bruce stevebruc...@gmail.com wrote: I mean they both start a new thread called 'ConectedThread'. Is this ok or should I not be doing this? On Sep 2, 1:28 pm, Steven Bruce stevebruc...@gmail.com wrote: I have thee threads in my bluetooth program. Both my

[android-developers] unable to update SDK

2011-08-01 Thread Bruce Ferrell
I have a fresh install of opensuse 11.4 and I'm getting thhe following error we I attempt an update: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the

[android-developers] How come extending ListActivity results in a crash

2011-07-13 Thread Steven Bruce
I have changed my Bluetooth class from extends Activity to extends ListActivity. Now everytime I run the program BOOM!! It bombs out! What the hell is going on?? Steve -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Is there a way to read the 'Discoverable' timer countdown

2011-07-12 Thread Steven Bruce
Hi I want to be able to display the seconds left before 'Discoverable Mode' ends. Is there a way to get the counter used by disoverable mode or do you have to perform the count manually? Steve -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Trying to listen for SCAN_MODE_CONNECTABLE_DISCOVERABLE

2011-07-11 Thread Steven Bruce
Hi Im my Bluetooth calss I am trying to see when the device has finished being 'Discoverable' When I listen for the ACTION_FOUND intent I get the extra details by doing this: BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); This gives me information about the

[android-developers] How to use broadcast receiver. It won't pick up the DISCOVERY_STARTED message??

2011-07-08 Thread Steven Bruce
Ok I am totally stuck. I am trying to scan for bluetooth devices but it needs a broadcast receiver and I've never used them before. I set up my receiver correctly in the manifest: receiver android:name=.BluetoothReceiver android:enabled=true intent-filter

[android-developers] Post about Broadcast Receiver

2011-07-08 Thread Steven Bruce
Hi I posted on yours group about a problem I am having with a broadcast receiver. That was about four hours ago and I still haven't seen it appear on the group yet? Is this normal or was it rejected for some reason? Steve -- You received this message because you are subscribed to the Google

[android-developers] How to implement a Broadcast Receiver

2011-07-08 Thread Steven Bruce
Hi I am trying to add a broadcast receiver to my program. In my manifest file I have set up the receiver correctly (I think) in my manifest file like this: receiver android:name=.BluetoothReceiver android:enabled=true intent-filter action

[android-developers] Re: How to implement a Broadcast Receiver

2011-07-08 Thread Steven Bruce
/BluetoothAda... On Fri, Jul 8, 2011 at 6:28 AM, Steven Bruce stevebruc...@gmail.com wrote: Hi I am trying to add a broadcast receiver to my program. In my manifest file I have set up the receiver correctly (I think) in my manifest file like this: receiver android:name=.BluetoothReceiver

[android-developers] logcat issue in emulator

2011-05-25 Thread bruce
Hi when I use logcat in target phone,it's fine. But when I use it in emulator,there are always errors like following. E/QemuSensors( 63) :data_poll: len =-1,errno=9 : Bad file number I search in the internet,by failed to got the result. Can anybody help me ? -- You received this message

[android-developers] Capture keyEvent from view displayed by WindowManager.addView()

2011-04-15 Thread Bruce Xia
Hi, I have a view which basically cover the full screen to capture key input. It works well if I add it to activity, but if I display it from background service using WindowManager.addView, it doesn't work. Another quesiton is why onKeyDown/onKeyUp doesn't work? As you see I have to use

[android-developers] Re: Capture keyEvent from view displayed by WindowManager.addView()

2011-04-15 Thread Bruce Xia
, Bruce Xia xia...@gmail.com wrote: I have a view which basically cover the full screen to capture key input. It works well if I add it to activity, but if I display it from background service using WindowManager.addView, it doesn't work. Thank heavens! That would be a massive security flaw

[android-developers] how can i use an API from full debug build

2011-03-19 Thread Bruce Xia
hi, I want to use PreferenceManager.inflateFromResource() in my application. It's only available in the full build: framework_intermediates-classes-full-debug.jar How can I can use it? Thanks, Bruce -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: how can i use an API from full debug build

2011-03-19 Thread Bruce Xia
]=R.xml.preferences; arglist[2]=null; Object retobj = m.invoke(pm, arglist); return (PreferenceScreen)retobj; } catch(Throwable e){ Log.e(TAG,e.toString()); return null; } } Bruce Xia Founder of Mobisoft

[android-developers] Re: Wifi sleeps... even with lock

2011-03-03 Thread bruce
Grab a screen lock as a work around. Nexus One has some issues with the low-power mode. Unfortunately, from my wireshark traces it basically fails to wakeup for multicast events due to aggressive power saving. Other devices will perform differently. It would be better if they released a patch

[android-developers] Re: Force Close Question

2011-02-01 Thread bruce
have settings and other items that need to use a database, etc. but it is available. See http://developer.android.com/reference/android/app/Application.html. Cheers, Bruce -- http://mtterra.com/quicklogger On Feb 1, 5:31 pm, Scott Deutsch surger...@gmail.com wrote: Thats what I fearedok I

[android-developers] how to install a file under application files folder

2011-01-28 Thread Bruce Xia
, but don't like it. Any ideas appreciated. Thanks, Bruce -- 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

[android-developers] Re: Beginner question about Imageviews and Layouts

2011-01-24 Thread bruce
I've used bitmap overlays. Basically, after calling super.onDraw() I'll do a canvas.drawBitmap(). If you want to use a shape, ShapeDrawable is probably your bet. Here's a link to the info. http://developer.android.com/guide/topics/graphics/2d-graphics.html. Cheers, Bruce On Jan 20, 11:44 am

[android-developers] Re: How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread bruce
) { Uri uri = (Uri) p; /// do something with it. } } Just add android.intent.action.SEND_MULTIPLE to your manifest. Bruce On Dec 22, 11:31 am, Hans-Erik erikswed...@gmail.com wrote: On 22 Dec, 20:17, Mark Murphy mmur...@commonsware.com wrote: ACTION_SEND only supports sending

[android-developers] Re: Static Layout for whole app that must be in all Activity

2010-11-23 Thread bruce
can be included in your activity views with include / tag. Cheers, Bruce On Nov 23, 7:48 am, TreKing treking...@gmail.com wrote: On Tue, Nov 23, 2010 at 4:38 AM, Ganapathy.C cganapa...@gmail.com wrote: But i need a ticker like Marquee in HTML Look into translation animations

[android-developers] Re: is it faster to load a layout in java or xml

2010-11-22 Thread bruce
Seems like there are other things going on if it takes 2 seconds. On orientation change, you can save data in onSaveInstanceState() to be later retrieved in onCreate() which could possibly save some time. Not that I would advocate it but you could cache the layout so it doesn't need inflating

[android-developers] voice recognition -- IVR on Android

2010-11-16 Thread Bruce Xia
? Thanks, Bruce -- 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+unsubscr...@googlegroups.com For more options

[android-developers] Re: Picking two pictures at once

2010-09-06 Thread bruce
You can use ACTION_SEND_MULTIPLE and include a list of images an an ArrayListParcelable and use putParcelableArrayListExtra() to store it. Gallery does this and would be a good reference. This assumes I didn't misunderstand your question. On Sep 5, 9:44 pm, Kumar Bibek coomar@gmail.com

[android-developers] Re: Memory Limit 16 MB per Process or Application?

2010-08-05 Thread bruce
It's per-application and the limit can change so its not always 16. See http://developer.android.com/reference/android/app/ActivityManager.html. Cheers, Bruce On Aug 5, 1:39 am, timyau18 timya...@gmail.com wrote: Hi all, Is android's memory 16MB limit per Process or Application

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-03 Thread bruce
So much to say about Java except that's just talking religion. So back to the original topic. Sometimes just because you are adding in debug code doesn't mean you want a performance degradation. Java has mechanisms for some of this but just for example, tracing. Doesn't matter what you are

[android-developers] Re: Looking for a design tip/advice/doc

2010-08-03 Thread bruce
If you are just doing a few items, it's not going to be a big deal. Same with grabbing data from a database. It's an issue when you have to scroll through lots of data and repopulate views, deal with flings, etc., while maintaining good speed. Sounds like you won't have to deal with this.

[android-developers] Re: unsubscribe

2009-12-15 Thread Bruce Xia
Hi I think the unsubscribe email isn't working. I've sent three emails to unsubscribe but still receiving email. Can you help please? On Tue, Dec 15, 2009 at 2:41 PM, Bruce Xia bruce.xi...@gmail.com wrote: hi please unsubscribe me from this group. -- You received this message because you

Re: [android-developers] Re: J2EE client on Android

2009-12-03 Thread Bruce Xia
the lines of a SOAP or JMS client or such though (which also can be done, not that they *should* be done, but can be). You need to clarify this quite a bit before anybody can really try to help you. On Dec 2, 2:55 am, Bruce Xia bruce.xi...@gmail.com wrote: is there a way to port or implement

[android-developers] J2EE client on Android

2009-12-02 Thread Bruce Xia
is there a way to port or implement a J2EE client on android? Does anybody have example code please? -- 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

[android-developers] Socket connection timeout while disable Wi-Fi

2009-11-05 Thread bruce
Hi Guys My application use socket to connect a remote sever to get data. In my handset, both Wi-Fi and Mobile network data connection are enabled, by default device will choose using Wi-Fi connection. In this case, all network access can process normally However, when I turn off Wi-Fi in system

[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread Bruce Rees
I'll add my vote, I'm in New Zealand and the HTC magic is available thru Vodafone but we can neither buy or sell apps, all enquiries on the market forum seem to go unanswered.. Apple seem to have no problems with itunes so it's hard to imagine what's holding Google up? On Aug 29, 1:19 am, João

[android-developers] Re: What is the best way to implement dynamic textures in OpenGL ES?

2009-07-04 Thread Bruce
of populating a ByteBuffer since the native helper methods can access the Bitmap pixel data directly. Tom 2009/7/2 Bruce Rees baree...@gmail.com Hi All, I have a texture-mapped cube based in part on the Kube API demo and the Textured Cube example from anddev.org,  It is working fine using

[android-developers] What is the best way to implement dynamic textures in OpenGL ES?

2009-07-02 Thread Bruce Rees
Hi All, I have a texture-mapped cube based in part on the Kube API demo and the Textured Cube example from anddev.org, It is working fine using bitmaps loaded from R.drawable.. what I need to do now is to make the texture for each face dynamic (using Bitmaps created in code). I'm having

[android-developers] Deleting Incoming SMS???

2009-02-15 Thread Matt Bruce
I have an SMSReceiver that I built to intercept a particular type of SMS that would run a service. That is all working great, however, I would like for this SMS to not show up in the user's inbox. So ideally i would like to delete the SMS on the time of Interception. I have gone through a ton