Re: [android-developers] ViewFlipper
On Wed, Jun 27, 2012 at 12:36 AM, chandur mani chandur.ind...@gmail.comwrote: I have 5 content views in view flipper, here i use to see all 5 content through viewflipperinstance.showNext() and viewflipperinstance.showPrevious(). Here my problem is both next and previous buttons click, it show all 5 content and again start 1st. I need whenever user click next it will up to 5th content and same to previous when user click back it will show up tp 1st content. You can put a check something like this. if(viewflipperinstance.getDisplayedChild()!=0) { viewflipperinstance.showPrevious() } or if(viewflipperinstance.getDisplayedChild()!=(viewflipperinstance.getChildCount()-1) { viewflipperinstance.showNext() } This will help you out. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] NFC game
what kind of tag i need to use for the nfc hunter game .. can u explain me briefly plz On Tue, Jun 26, 2012 at 9:03 PM, Justin Anderson magouyaw...@gmail.comwrote: I'm glad they were helpful... The point of that link was to illustrate that you didn't need to post this question on this list. I was able to point you in the right direction with a simple Google search... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 9:14 AM, Parthi K parthisof...@gmail.com wrote: thanks above links helpful for me On Tue, Jun 26, 2012 at 7:30 PM, Justin Anderson magouyaw...@gmail.comwrote: http://lmgtfy.com/?q=android+nfc+tutorial Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 6:53 AM, iconapp 2010 iconapp2...@gmail.comwrote: Hi Android developers, i m working on NFC hunter game on android, can any one tel me What kind of nfc tag is used in android how i should deploy in android. Brief description about that and if possible any samples for it.. Thank u -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: detect if an app is launched
The platform deliberately does not provide easy mechanisms to do this, because monitoring what the user is doing is not something to encourage. If someone wants to do it for 'bad' reasons, they're not going to be discouraged by a little extra time and extra resource usage of having to poll for it! Not providing an event for this just penalizes devs/users with a 'legitimate' need for the info. You haven't said why you want to do this, but I would discourage you from whatever path you are going down here. Users like to do different things depending on which app they are using (different screen brightness, timeout, turn on/off wifi for Internet etc). Automation apps are reduced to battery-expensive polling to provide this currently. Pent -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Customized Soft keyboard
Have a look at KeyboardViewhttps://developer.android.com/reference/android/inputmethodservice/KeyboardView.html. You define the keyboard using a XML file like this: Keyboard xmlns:android=http://schemas.android.com/apk/res/android; android:keyHeight=50dp android:keyWidth=16.66%p Row Key android:codes=8 android:keyLabel=1 / ... Then, in code, all you need to do is set the keyboard and set a keyboard listener to handle key presses. If you manage to get the right keycodes for all keys, then you only need to implement this part to make it work: protected class KeyboardListener implements OnKeyboardActionListener { @Override public void onKey(int primaryCode, int[] keyCodes) { long eventTime = System.currentTimeMillis(); KeyEvent event = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, primaryCode, 0, 0, 0, 0, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE); getActivity().dispatchKeyEvent(event); } ... } Terça-feira, 26 de Junho de 2012 17:21:38 UTC+1, Harish escreveu: Hello Friends, For my Android tablet application I'm looking a customize keyboard, customize in the sense I have many list view in my application and to filter data in list I need keyboard with just 26 letter and 9 number,(list will only have character or numbers) I see many post where people are trying to develop entire keyboard, however I'm looking for some solution where I can control keys of existing keyboard. I do not wants to enter in complexity of handling input methods or writing some thing complex. I see that in numeric keyboard it's possible to give keys which we wants to show, is there any similar solution where I can just give list of keys I wants to show, appreciate any help -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] checkbook issue ,in expandable list view
Hi All, I am working in an expandable list view by an simple expandable list adapter. Also, I have fixed a database, where I store my data.I managed to display the data in expandable list view. Each child has a textview and a checkbox. Here is what I'm trying to achieve: *1) the checkboxes change states each time i expand an another group. How could I fixed this?for example, when I changed the state to checked for one child , I want to save state for this child . I tried the onSaveInstance () method, but does nothing. 2) how could I handle the checkbox for one child each time? How could I separare the checkbox of a child? I have to use the database ?* help me it's urgent thanks krishna -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
Hi all, I have been developing some OCR(Optical Character Recognition) app.So,i want to process the image and remove the noise on the surface.If anyone knows about image processing,share ur knowledge. Thanks, vijay.k -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android USB host and hidden devices
I am developing an Android application in which I have to communicate to an USB device. I tried to use standart google API in my app, but list of devices is allways empty. Same things if i use USB device info with google api. List of devices searched by google api is empty, lsusb gives following results: Bus 001 Device 001: ID 1d6b:0001 Bus 002 Device 001: ID 1d6b:0002 Bus 003 Device 001: ID 1d6b:0001 Bus 002 Device 002: ID 2226:0014 my device is 2226:0014 log of eclipse: I/USB3G(92): event { 'add', '/devices/platform/sw-ehci.1/usb2/2-1', 'usb', '', 189, 133 } I/USB3G(92): path : '/sys/devices/platform/sw-ehci.1/usb2/2-1' I/USB3G(92): VID :size 5,vid_path '/sys/devices/platform/sw-ehci.1/ usb2/2-1/idVendor',VID '2226 I/USB3G(92): '. I/USB3G(92): PID :size 5,Pid_path '/sys/devices/platform/sw-ehci.1/ usb2/2-1/idProduct',PID '0014 I/USB3G(92): '. I/USB3G(92): cmd=/system/etc/usb_modeswitch.sh /system/etc/ usb_modeswitch.d/2226_0014 , I/USB3G(92): excute ret : 0,err:No such file or directory If i plug in devices like rs232 adapters, bluetooth dongle, nothing happens,and there is no any result from API and lsusb. Prtocol of a device is based on ezusb library. Android v.: 4.0.3 kernel v.: 3.0.8 firmware build: crane_evb-eng 4.0.3 IMLK74k 20120330 Is there are any way to access hidden USB devices via API? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I open my app with power button?
It should be not clear, but how can i open my app with power button? I would add this option so in case of emergency a person can press (for example) three times the power button and my app opens. How can i do this? [I hope it was clear...] -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to create a x509 certificate?
I need similar thing. I have strong busyness requirement - use only built in crypt provider. I need to create both asymmetric key pair and x509 self signed certificate based on it. I've already implemented creating certificate with external Bouncy Castle for test reason, but i need to implement it using only built in Bouncy Castle. How can i do it? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Heap size issue
Hi in my app i am using about 10 MB of memory but in DDMS the total heap size displaying about 33 MB and as my memory usage increases total heap size also increaes and at extreme while my app using about 20 MB of memory but total heap size goes beyond 64 MB and it gives OutOfMemoryError. why is to so while im using only 20 MB and rest is free ? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unable to execute Bluetooth HDP Demo
Hi all, There are NexusS 4.0.4 available, Does anybody use it together with Nonin 9560bt? For me it refuse connection constantly. (but once I was able to read data from the device, cannnot reproduce this result) I logcat: 06-25 16:17:48.117: D/HSSHDP(2103): connectChannel(): app configuration name HSSHDP 06-25 16:17:48.129: W/HSSHDP(2103): prevState 0 -- newState 1 06-25 16:17:48.476: D/BluetoothEventLoop(136): Device property changed: 00:1C:05:00:6C:D8 property: Connected value: true 06-25 16:17:48.859: E/BluetoothEventLoop.cpp(136): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Connection refused (111)) 06-25 16:17:48.859: D/BluetoothEventLoop(136): onHealthDeviceConnectionResult 12 6001 06-25 16:17:48.871: W/HSSHDP(2103): prevState 1 -- newState 0 Any ideas how to use this device? Четвер, 15 грудня 2011 р. 19:30:08 UTC+2 користувач jfernandez написав: Hi all, I'm executing the Bluetooth HDP Demo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone is unable to open the channel connection HDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of the Bluetooth Health Profile API? Any ideas? Thanks. Regards. [1] http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 12-15 16:41:00.034: E/BluetoothService.cpp(147): getChannelApplicationNative 12-15 16:41:00.044: E/bluetooth_common.cpp(147): dbus_func_args_timeout_valist: D-Bus error in Acquire: org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ chan3115 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Mdl is not created) 12-15 16:41:00.074: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6001 12-15 16:41:00.214: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6000 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of Property is: MainChannel Value:/org/bluez/278/hci0/ dev_00_80_25_14_A1_BC/chan3115 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wifi connection issues in android devices
Almost every android phone i tested doesn't show the wireless hotspots created by windows laptops. Initially i had this working through a software called 'connectify' . Through that software it shows the hotspot in android phone . But now that is also not working.. The wifi hotspots are shown as 'not in range' How to make android phone detect and connect all hotspots.? If anyone know a solution please post. our whole roject depends on it.. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] finding which application uses a port on the android device
Hi All, I have an android native application which hosts a web server inside it. I want to know which application makes requests before they are processed by my application. What I have is the port of the calling application. How can I find out which application is using this port? I've tried looking for all processes (cat /proc/net/tcp6), but the application with the port I have is not listed (on a rooted device it is). I need to find a way to find the calling application name on a regular device (not rooted). Any help is highly appriciated. Thanks! Ami. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Simple attribute/style question
I have a custom style that I want to apply to my own implementation of EditText. The following link is a summary of how I am trying to get attributes from my custom style... https://gist.github.com/2972687 My goal is to have the style applied when I instantiate this custom EditText regardless if it is instantiated via code or XML and for some reason, when I try to access the *android:textColor* attribute, it returns a -1. I've tried adding other attributes to my style and accessing them results in a -1 as well. It seems as though I can only access the * android:background* attribute. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problems with talkback in ICS
I'm writing an accessibility app that seems to work ok on gingerbread builds and some ICS builds, but I seem to have problems with ICS samsung phones - particularly the galaxy nexus and s3. As soon as I enable the accessibility service registered for my app it seems to enable talkback for certain apps even though it's not switched on and I'm not doing any TTS. Am I regsitering anything wrong here: AccessibilityServiceInfo localAccessibilityServiceInfo = new AccessibilityServiceInfo(); localAccessibilityServiceInfo.eventTypes = AccessibilityEvent.TYPES_ALL_MASK; localAccessibilityServiceInfo.notificationTimeout = 80L; localAccessibilityServiceInfo.feedbackType = AccessibilityServiceInfo.FEEDBACK_ALL_MASK; setServiceInfo(localAccessibilityServiceInfo); I can't think what I can be doing wrong here. Any suggestions, it's been driving me mad. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unable to execute Bluetooth HDP Demo
Hi Raul, I have been working with NexusS(4.0.4) + Nonin 9560bt several last day buy still have no results(I received result from device only once, cannot reproduce it again). It refuses connection, 06-25 16:17:48.117: D/HSSHDP(2103): connectChannel(): app configuration name HSSHDP 06-25 16:17:48.129: W/HSSHDP(2103): prevState 0 -- newState 1 06-25 16:17:48.476: D/BluetoothEventLoop(136): Device property changed: 00:1C:05:00:6C:D8 property: Connected value: true 06-25 16:17:48.859: E/BluetoothEventLoop.cpp(136): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Connection refused (111)) 06-25 16:17:48.859: D/BluetoothEventLoop(136): onHealthDeviceConnectionResult 12 6001 06-25 16:17:48.871: W/HSSHDP(2103): prevState 1 -- newState 0 Could you please share any solution, please? Пʼятниця, 20 січня 2012 р. 18:00:10 UTC+2 користувач Raul Ruiz написав: Hi all, I have Nonin working with HDP, if someone need help tell me. On 14 ene, 13:07, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi Fernando, I have introduced a change in the implementation of the BluetoothHealthCallback mHealthCallback. Exactly, in its method onHealthChannelStateChange(...). I detected that the state machine during the stablishment of a new HDP connection is: Disconnected- Connecting-Connected. However, you can see that the example is checking the case Disconnected-Connected, but not the case Connecting- Connected. I added this new case Connecting-Connected, and now it works and I'm able to read/write data from/to UA-767PBT-C and a board that emulates several biomedical devices. I hope it help you. Regards. On 14 ene, 12:35, Fernando Almeida reala...@gmail.com wrote: Hi jfernandez... i upgrade my android version to 4.03 and still can't connect... Could you please show me the changes that you made? Thank you On 13 Jan, 10:57, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi again, Well, after upgrading my Android 4.0 to 4.03, and adding some changes to the BluetoothHDPsample, I'm able to connect to the biomedical device, as well as I'm able to read/write data from/to theHDP channel. So, it seems the problem has been fixed in this new Android version. Regards. On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I'm executing theBluetoothHDPDemo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone is unable to open the channel connectionHDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of theBluetoothHealth Profile API? Any ideas? Thanks. Regards. [1] http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 12-15 16:41:00.034: E/BluetoothService.cpp(147): getChannelApplicationNative 12-15 16:41:00.044: E/bluetooth_common.cpp(147): dbus_func_args_timeout_valist: D-Bus error in Acquire: org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ chan3115 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Mdl is not created) 12-15 16:41:00.074: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6001 12-15 16:41:00.214: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6000 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of Property is: MainChannel
[android-developers] Android rs232 on developer board
I've this developer board : S5PV210 QT210 board . Anyone knows how to send and receive data through Rs232 or Uart programming in Eclipse for Android? Thanks :) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: getOrientation() method returns bad results
On Monday, April 23, 2012 10:35:31 AM UTC-7, Lukáš Sztefek wrote: I'm creating 3D Compass application. I'm using getOrientationhttp://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation%28float%5B%5D,%20float%5B%5D%29 method to get orientation (almost same implementation like herehttp://stackoverflow.com/questions/2963705/using-getrotationmatrix-and-getorientation-in-android-2-1). If I place phone on the table it works well, but when top of the phone points to the sky, getOrientation starts giving really bad results. It gives values for Z axis between 0 to 180 degrees in a few real degrees. Is there any way how to suppress this behavior? I created a little videohttp://youtu.be/U1o5TsCKOd0 what describes problem (sorry for bad quality). You can download app herehttp://lukassztefek.cz/android/3DCompass.apk. No permissions needed. Thanks in advance. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Much time taken in data read from socket
I'm using sockets for data transfer from one android phone and PC, it is taking 15 seconds to read about 1 Mb of data. I want to improve its performance. Could anyone suggest any better way to do that? My Code is: InputStream is= socket.getInputStream(); DataInputStream inChannel= new DataInputStream(new BufferedInputStream(in)); ByteArrayOutputStream baos = new ByteArrayOutputStream(); int oneByte; while ((oneByte = inChannel.read()) != -1) { if (oneByte == 0) { break; } baos.write(oneByte); byteCount++; } byte[] inData = baos.toByteArray(); baos.close(); -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Compass Help
Hi Guys I am creating some sample Compass app and I am having some issues on developing the app.Firstly i am not sure whether I am calculating eh values correctly and secondly it seems like a lot of jittering is happening.. I am attaching the source code below.Can you help me on steps I need to perform package net.test.example.compass; import android.app.Activity; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; public class CompassExample4Activity extends Activity implements SensorEventListener{ private SensorManager mSensorManager; CompassView mCompassView; Sensor accelerometer; Sensor magnetometer; float azimut; float[] mGravity; float[] mGeomagnetic; static final float ALPHA = 0.2f; double SmoothFactorCompass = 0.5; double SmoothThresholdCompass = 30.0; double oldCompass = 0.0; int oldCompass2 = 0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mCompassView = new CompassView(this); //this.setRequestedOrientation(0); setContentView(mCompassView); mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); magnetometer = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); } @Override public void onResume() { super.onResume(); mSensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_UI); mSensorManager.registerListener(this, magnetometer, SensorManager.SENSOR_DELAY_UI); } @Override public void onPause() { super.onPause(); mSensorManager.unregisterListener(this); } @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { // TODO Auto-generated method stub } @Override public void onSensorChanged(SensorEvent event) { // TODO Auto-generated method stub if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) mGravity = lowPass(event.values, mGravity); if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) mGeomagnetic = lowPass(event.values, mGeomagnetic); if (mGravity != null mGeomagnetic != null) { float R[] = new float[9]; float I[] = new float[9]; boolean success = SensorManager.getRotationMatrix(R, I, mGravity, mGeomagnetic); // Correct if screen is in Landscape SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_X, SensorManager.AXIS_Z, R); if (success) { float orientation[] = new float[3]; SensorManager.getOrientation(R, orientation); float azimut = orientation[0]; // orientation contains: azimut, pitch and roll //float azimuth = (float) Math.round((Math.toDegrees(orientation[0]))*7)/7; //azimuth = ( azimuth + 360)%360; mCompassView.updateDirection((float)smoothnessFunction(azimut*360/(2*3.14159f))); //mCompassView.updateDirection(azimuth); } } } protected float[] lowPass( float[] input, float[] output ) { if ( output == null ) return input; for ( int i=0; iinput.length; i++ ) { output[i] = output[i] + ALPHA * (input[i] - output[i]); } return output; } public double smoothnessFunction( double newCompass) { if (Math.abs(newCompass - oldCompass) 180) { if (Math.abs(newCompass - oldCompass) SmoothThresholdCompass) { oldCompass = newCompass; } else { oldCompass = oldCompass + SmoothFactorCompass * (newCompass - oldCompass); } } else { if (360.0 - Math.abs(newCompass - oldCompass) SmoothThresholdCompass) { oldCompass = newCompass; } else { if (oldCompass newCompass) { oldCompass = (oldCompass + SmoothFactorCompass * ((360 + newCompass - oldCompass) % 360) + 360) % 360; } else { oldCompass = (oldCompass - SmoothFactorCompass * ((360 - newCompass + oldCompass) % 360) + 360) % 360; } } } return oldCompass; } public int smoothnessFunction2(double newCompass){ if ((int)newCompass % 360 != oldCompass2) { oldCompass2 = (int) newCompass; } return oldCompass2; } } -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can i launch my app using power button?
It should be not clear, I'm sorry. But How can i launch my app using power button? I'd like to add this option so in case of emergency you can press (for example) three times the power button and my app launch. How can i do this? [I hope it was clear...] -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Compass help
Hi Guys, I need your help on developing an android compass application.Here is the source code...I want to know if i am using correct algorithm and sensors for developing the app and secondly I am unable to understand why my compass jitters so much package com.android.compass.example import android.app.Activity; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; public class CompassExample4Activity extends Activity implements SensorEventListener{ private SensorManager mSensorManager; CompassView mCompassView; Sensor accelerometer; Sensor magnetometer; float azimut; float[] mGravity; float[] mGeomagnetic; static final float ALPHA = 0.2f; double SmoothFactorCompass = 0.5; double SmoothThresholdCompass = 30.0; double oldCompass = 0.0; int oldCompass2 = 0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mCompassView = new CompassView(this); //this.setRequestedOrientation(0); setContentView(mCompassView); mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); magnetometer = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); } @Override public void onResume() { super.onResume(); mSensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_UI); mSensorManager.registerListener(this, magnetometer, SensorManager.SENSOR_DELAY_UI); } @Override public void onPause() { super.onPause(); mSensorManager.unregisterListener(this); } @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { // TODO Auto-generated method stub } @Override public void onSensorChanged(SensorEvent event) { // TODO Auto-generated method stub if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) mGravity = lowPass(event.values, mGravity); if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) mGeomagnetic = lowPass(event.values, mGeomagnetic); if (mGravity != null mGeomagnetic != null) { float R[] = new float[9]; float I[] = new float[9]; boolean success = SensorManager.getRotationMatrix(R, I, mGravity, mGeomagnetic); // Correct if screen is in Landscape SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_X, SensorManager.AXIS_Z, R); if (success) { float orientation[] = new float[3]; SensorManager.getOrientation(R, orientation); float azimut = orientation[0]; // orientation contains: azimut, pitch and roll //float azimuth = (float) Math.round((Math.toDegrees(orientation[0]))*7)/7; //azimuth = ( azimuth + 360)%360; mCompassView.updateDirection((float)smoothnessFunction(azimut*360/(2*3.14159f))); //mCompassView.updateDirection(azimuth); } } } protected float[] lowPass( float[] input, float[] output ) { if ( output == null ) return input; for ( int i=0; iinput.length; i++ ) { output[i] = output[i] + ALPHA * (input[i] - output[i]); } return output; } public double smoothnessFunction( double newCompass) { if (Math.abs(newCompass - oldCompass) 180) { if (Math.abs(newCompass - oldCompass) SmoothThresholdCompass) { oldCompass = newCompass; } else { oldCompass = oldCompass + SmoothFactorCompass * (newCompass - oldCompass); } } else { if (360.0 - Math.abs(newCompass - oldCompass) SmoothThresholdCompass) { oldCompass = newCompass; } else { if (oldCompass newCompass) { oldCompass = (oldCompass + SmoothFactorCompass * ((360 + newCompass - oldCompass) % 360) + 360) % 360; } else { oldCompass = (oldCompass - SmoothFactorCompass * ((360 - newCompass + oldCompass) % 360) + 360) % 360; } } } return oldCompass; } public int smoothnessFunction2(double newCompass){ if ((int)newCompass % 360 != oldCompass2) { oldCompass2 = (int) newCompass; } return oldCompass2; } } -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to know about new Android CTS version when it came into the market?
How to know about new Android CTS version when it came into the market? Do we need to subscribe to any mail? If, please let me know... Thanks in advance. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wifi Power consumption optimisation
I want to write an application which will gather data from user and send them to router using wifi for example once in every minute (there will not be plenty of data rather 1kb in every minute but it is critical to send them quite frequently). My question is: How to optimize wifi usage? Should I switch it on and off every time when I'm using it? Or is there some sleeping mode (when wifi is switched off but after switching on it connect to network immediately without searching for ip etc.) Does it depend on android version? Is Android 2.2 ok, or do i need higher version (which one?) Thank you in advance. Adam -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Resolution Problem in Nexus One
I understand what you saying, but how to solve the following scenario: - You developed an application with English (default), German, and Italian languages; - A French user (whom mobile is in french and have many french applications in the phone) installs you application; - Because your application doesn't have French, android chooses the default one, in this case English, right? - So you application is shown in English, but what if the user just don't speak English but speaks Italian? How can he change this without changing his locale settings from French to Italian? Regards, Adrião Neves www.adriaoneves.com On Friday, 23 July 2010 07:03:21 UTC+1, Dianne Hackborn wrote: This has nothing to do with your manifest. You are blowing away the current configuration in the resources with your own you have created that is not initialized. Things aren't going to work when you do that. You could improve that by giving it a properly created Configuration, but I don't want to help with doing that because what you are trying to do is never going to work quite right because you will be fighting with the platform over what configuration is being used in the resources. On Thu, Jul 22, 2010 at 10:57 PM, Engin Arslan enginarsla...@gmail.comwrote: Webnet, As I said in my question I tried following in my androidmanfest.xml but it did not work. supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / I think problem is updating configuration as Dianne said however I do not alternative way of specifiying application language Can anyone suggest me better way? On Jul 21, 2:46 pm, Webnet Android webnet.andr...@gmail.com wrote: On 21 July 2010 13:24, Engin Arslan enginarsla...@gmail.com wrote: any suggestions?? http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] C2DM Registration problem
dear team, i have signed up with the c2dm service for android . but i havent got a confirmation and registration id for the same. Can you please let me know what is the issue in this. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] get data from external file
there is a way to get date from sql by php or something? i mean some function like ajax.. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to upload apk with new version, when previous key store is lost?
Hi, We have been developing Android apps since a while now but unfortunately *we lost our key store which was used to sign a previously uploaded apk*, now we want to upload a new version of existing live app on Google play to do so we need to sign new apk with different key store but Google Play will not accept apk signed with different key store. Is there any way that we could upload new version of app with different key store as we do not want to add separate new app asap for those user which have already installed previous version and they deserve *to have update existing app rather than purchasing brand new app again?* Also if not possible for above statement then: Is there any way to get complete information of key store from previously signed apk so that we could possibly get key store and use it to upload new version of app? Android Support: Please answer on this situation as there could be some way to upload apk with new version and signed with new key store. Thank You -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can i launch my app using power button?
This is not supported, sorry. On Mon, Jun 25, 2012 at 1:45 PM, Andrea Fasciglione andreafa...@gmail.com wrote: It should be not clear, I'm sorry. But How can i launch my app using power button? I'd like to add this option so in case of emergency you can press (for example) three times the power button and my app launch. How can i do this? [I hope it was clear...] -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] VideoView / MediaPlayer: Select audio track
Hello, So far I found nothing on this topic except same question on stackoverflow with no answers http://stackoverflow.com/questions/8789529/android-multiple-audio-tracks-in-a-videoview . Is it possible to select an audio track from multi-language video stream? Regards, Herman Fries -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Massive problem with hebrew in BaseAdapter
Hey guys! i have a list view with a base adapter for custom view. inside this listview i'm trying to add text to my view throw a TextView, and everytime the text is in hebrew, i get a stackoverflow. when the text is in ensligh, i get to see the listview properly.. it's the weirdest thing, it happens only in the adapter.. when i'm trying to set hebrew string to Textview inside activities it works perfect... this is my stacktrace: 06-22 17:01:57.760: E/AndroidRuntime(11946): FATAL EXCEPTION: main 06-22 17:01:57.760: E/AndroidRuntime(11946): java.lang.StackOverflowError 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.lang.StringBuilder.append(StringBuilder.java:312) 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.lang.StringBuilder.append(StringBuilder.java:44) 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.util.Formatter.outputCharSequence(Formatter.java:1114) 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.util.Formatter.doFormat(Formatter.java:1086) 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.util.Formatter.format(Formatter.java:1062) 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.util.Formatter.format(Formatter.java:1031) 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.lang.String.format(String.java:2183) 06-22 17:01:57.760: E/AndroidRuntime(11946):at java.lang.String.format(String.java:2157) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.text.Styled.drawDirectionalRun(Styled.java:266) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.text.Styled.drawText(Styled.java:362) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.text.Layout.drawText(Layout.java:1546) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.text.Layout.draw(Layout.java:380) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.widget.TextView.onDraw(TextView.java:4417) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.View.draw(View.java:6933) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1646) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.widget.AbsListView.dispatchDraw(AbsListView.java:1648) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.widget.ListView.dispatchDraw(ListView.java:3217) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.View.draw(View.java:6936) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.widget.AbsListView.draw(AbsListView.java:3030) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1646) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.View.draw(View.java:6936) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.widget.FrameLayout.draw(FrameLayout.java:357) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1646) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 06-22 17:01:57.760: E/AndroidRuntime(11946):at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 06-22 17:01:57.760: E/AndroidRuntime(11946):at
RE: [android-developers] Re: FFMPEG Android NDK- Images to video
Date: Thu, 21 Jun 2012 23:37:53 -0700 From: porcelli.giuse...@gmail.com To: android-developers@googlegroups.com Subject: [android-developers] Re: FFMPEG Android NDK- Images to video Download FFMPEG and all satellite libs, compile it with NDK and use in in your Android code !!! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Not allowing me to install SDK as java jdk is not being recognized
Good day all, Having an issue with installing the android sdk environment on my virtual machine running windows server 2008 R2. I have had success before running on this edition of windows so I'm not sure why this is giving issues now.The issue is when I boot up the .exe. file, it starts the installation wizard however when it checks for the version of java, it can't find any (even though its been installed) and won't let me proceed. My environment specs are: - Windows server 2008 R2 - Java JDK 6.x Thanks for any help you can give! Steve -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android:onClick throws nullPointerExeption
Hey, guys, i had a really strange problem i was trying to do this tutorial: http://developer.android.com/training/basics/firstapp/index.html , but as soon as i add content to the method that the android:onClick calls, the app breaks and throws a nullPointerExeption. i verify the code 5 times, and it`s exactilly equals to the one on the tutorial. So i ignore this and try to make another project, just to implement the android:onClick, and again the same problem as soon as i add any code to the method that de onClick has the app crash. if anyone can help i`ll be very greatful. thanks... P.S: sorry for any english mistake, it`s not my first language, so please don`t troll about this. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
You probably defined the DisplayMessageActivity outside the original application tag in the manifest file. It should go inside the existing application tag. I made that same mistake the first time going through it. Good Luck. On Sunday, January 1, 2012 6:44:05 PM UTC-7, Vinayak wrote: HI, I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE HELP ME . -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] windowAnimationStyle - ignored in theme?
Is this still not supported? On android 2.3.x my following animation : style name=Anwb.Animation.SlidingRight !-- item name=android:windowEnterAnimation@anim/slide_in_right/item item name=android:windowExitAnimation@anim/right_slide_out/item-- item name=android:activityOpenEnterAnimation@anim/slide_in_right/item item name=android:activityOpenExitAnimation@anim/left_slide_out/item item name=android:activityCloseEnterAnimation@anim/left_slide_in/item item name=android:activityCloseExitAnimation@anim/right_slide_out/item /style Is working but on android 4.0 the android:activityCloseEnterAnimation android:activityCloseExitAnimation I would really want those to work properly and not be force to use coding to do animation stuff in android.. any help would be very much appreciated On Wednesday, 4 February 2009 23:20:15 UTC+1, Dianne Hackborn wrote: Activity transition animations are not supported in the current SDK or the 1.0 or 1.1 platform. These are turned off because we didn't have time to finish the implementation and fix the various bugs that they currently have. Please don't try to use them until they are officially supported. On Wed, Feb 4, 2009 at 7:54 AM, DaRolla netzprofi.ma...@googlemail.comwrote: Hi, I'd like to have some fancy effects on my Activities when entering or exiting. So I tried to use theming. But it seems that it's completly ignored? themes.xml (activated in Manifest) item name=android:windowAnimationStyle@style/Animation.Activity/ item styles.xml style name=Animation parent=android:Animation/ style name=Animation.Activity parent=android:Animation.Activity item name=android:activityOpenEnterAnimation@anim/fade_in/ item item name=android:activityOpenExitAnimation@anim/fade_in/ item item name=android:activityCloseEnterAnimation@anim/fade_in/ item item name=android:activityCloseExitAnimation@anim/fade_in/ item /style fade_in.xml alpha xmlns:android=http://schemas.android.com/apk/res/android; android:fromAlpha=0.0 android:toAlpha=1.0 android:duration=1000 / Greetings, DaRolla -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] new look for the android app developers website
Looks like the android app developers website made a big change. It will take getting used to. Any way to link to the old site/format? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Generating apk on Windows and OSX
We are in development mode and have: Windows XP SP3 to generate apk_w. Mac OSX 11.x. to generate apk_m. Both apk_w and apk_m are identical but with different certificates - an apk install with different certificate requires that previous apk is uninstalled first instead of overwriting. Min API 7 level. apk_w installs on Nexus (Android 4) and HTC (Android 4) but, doesn't install on Galaxy/II (Android 4) or Galaxy/I (Android 2.2). apk_m installs on Nexus (Android 4), Galaxy/II (Android 4), Galaxy/I (Android 2.2) and HTC (Android 4). After apk_m installs successfully on Nexus (Android 4) and Galaxy/I (Android 2.2), apk_w is re-installed on Nexus and Galaxy/I and this time installs successfully. This was repeated multiple times with the same results. Has anyone come across similar bizarre behavior with Windows XP or have a possible answer? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] load .so
Hey guys I have a .so library that somenton have to me and i know the functions names and returns. Do i need to do something before i load the library or just put in libs/armeabi and use System.load(library name) ? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create custom tags in ExifInterface.java class in android?
I want to create my own custom tags inside the ExifInterface.java class in android. Please help me to create custom tags. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] File manager code help
Hey guys, below is my code for my program, it gives me a list of directories and it allows me to click through one directory, however if I try to click through to 2 folders deep it wont let me because of if(K.getAbsoluteFile().isDirectory()==true), and removing this gives me a crash. Can anyone tell me why it wouldn't recognize File K as a directory the second click through in my browse class? package book.BouncySquare; import java.io.File; import java.util.ArrayList; import java.util.List; import android.app.ListActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; public class FileManager extends ListActivity { public File clickedFile = null; private ListString directoryEntries = new ArrayListString(); //private ListString directoryEntries = new ArrayListString(); private File currentDirectory = new File(/); @Override public void onCreate(Bundle icicle) { Log.d(startx, start); super.onCreate(icicle); browseToRoot(); } public void browseToRoot() { Log.d(Browse, browse+currentDirectory.getAbsoluteFile()); browseTo(new File(/)); } private void browseTo(File file) { Log.d(mew, too); if(file.isDirectory()){ Log.d(check, it); fill(file); } } private void browse(String x) { Log.d(created, newfile); final File K=new File(x); Log.d(broke, ass); if(K.getAbsoluteFile().isDirectory()==true){ Log.d(Z+K.getAbsoluteFile(), directory); fill(K.getAbsoluteFile());} else{ Log.d(X+K.getName(), NotADirectoryOrHidden); Log.d(A+K.getAbsoluteFile(), directory); } } private void fill(File files) { File[] meow=null; this.directoryEntries.clear(); meow= files.listFiles(); Log.d(sss, sss); this.directoryEntries.add(getString(R.string.current_dir));// directoryentries is an arraylist that holds our Directories names this.directoryEntries.add(getString(R.string.up_one_level)); for (File file : meow) { this.directoryEntries.add(file.getName()); //fill our string array directoryentries with each files getName, then we pass it to arrayAdapter to populate } ArrayAdapterString directoryList = new ArrayAdapterString(this,R.layout.file_row, this.directoryEntries); //our context,layout, and array of directories is created this.setListAdapter(directoryList); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { String clickedEntry =this.directoryEntries.get((int) id); Log.d(clickedID=+id, clickedPosition=+clickedEntry); browse(clickedEntry); } } -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] programmatically capture audio from a specific channel?
I would like to capture the audio from a specific channel (eg. I have a 3.5mm headset and a Bluetooth headset both connected to an android phone. Right now, it receives audio from both sources when I use AudioSource.MIC and I would like to capture an audio from a bluetooth headset only) is there anyway I can specify the audio channel? How can I programmatically capture audio from a specific channel on Android? My device is the Nexus One, running Android 2.3.7, Bluetooth headset Jabra BT 2035 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dynamic table building - Set Weight of Seekbar so it fills space.
I have extended a table row and add a checkbox and a seekbar to it. I cannot set the seekbar's gravity in code to 1 so that it will fill the rest of the row. Instead it just stays there as a very small object. I dynamically create each row object and add them to a tablelayout. Please help if you can. If it needs to be done in xml that is fine as long as the id's for each can still become dynamic when each row gets built. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Ide
I'm new to android programming. Where i can start from. I have basic in java. Please help me... -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get battery percentage
What is the code to get the battery percentage of the device? I would like to return this as a string in my application. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NullPointerException when using EasyTracker for analytics
No IDEA what is wrong. Only comment that I get it in Emulator only. On real device(s) it works well. Maybe related to SD card space? Tom On Tuesday, June 19, 2012 11:52:29 PM UTC+2, Efi Merdler-Kravitz wrote: Hi Guys, Once in a while an exception is thrown without a real reason from the EasyTracker code when posting events: ava.lang.NullPointerException at com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown Source) at com.google.android.apps.analytics.GoogleAnalyticsTracker.trackEvent(Unknown Source) at com.google.android.apps.analytics.easytracking.GoogleAnalyticsTrackerDelegateImpl.trackEvent(Unknown Source) at com.google.android.apps.analytics.easytracking.EasyTracker$11.run(Unknown Source) at com.google.android.apps.analytics.easytracking.EasyTracker$TrackerThread.run(Unknown Source) Any idea what went wrong ? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need to create loop that will scan barcode until battery of device dies.
I need to create an app that will read a barcode continuously until it drains the battery to the point where the device shuts down. I will need to collect data of the barcode, the barcode type, the time duration it took to scan the barcode, as well as how long the battery lasted. I have never coded in Android before so I could use any help I can get. Thank you! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to make autocompletetextview list border as transparent
Thank you Gaurav On Tuesday, June 19, 2012 2:57:03 PM UTC+2, Gaurav Vashisth wrote: add android:popupBackground=@null to the AutoCompleteTextView On Wednesday, March 21, 2012 1:37:44 PM UTC+5:30, Android Developer wrote: Hi, I have autocompletetextview while tying its shows the list. how to i make the list border as transparent. Code : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical AutoCompleteTextView android:id=@+id/autocomplete_country style=@style/InputBox android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginLeft=5dp/ /LinearLayout ArrayAdapterString adapter = new ArrayAdapterString(this, android.R.layout.simple_dropdown_item_1line, COUNTRIES); i tried with : adapter.setDropDownViewResource(R.color.transparent); Thanks in Advance -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] jsoup parsing,, HELP
for the web page http://www.fridayrelease.com/theater/cinemas/chennai/abirami-cinemas-chennai/1248 any one can give me an idea how can i get all the moview names in the above link inclludin the timings CODE// package in.mobicgoa; import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class SathyamNShow extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.sathyamshow); WebView satNS = (WebView) findViewById(R.id.wbvSathyamNS); satNS.getSettings().setJavaScriptEnabled(true); String data = ; Document doc = null; try { doc = Jsoup.connect(/) .get(); Elements elements = doc.getElementsByClass(three-fourths); for (org.jsoup.nodes.Element element : elements) { data += element.outerHtml(); data += br/; } satNS.loadData(data, text/html, UTF-8); } catch (IOException e) { e.printStackTrace(); } } } -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] I cant start Google Play .... It closed immediately after i pressed it ,,,,
This is a list for Android development via the SDK. For problems with your device, talk with whoever you bought it from. On Sun, Jun 24, 2012 at 3:38 PM, Chee Hao davidremi...@gmail.com wrote: I cant start Google Play It closed immediately after i pressed it -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] new look for the android app developers website
Perhaps somebody has a complete mirror of the old one somewhere, though I am not aware of any. Bear in mind that a new statue appeared at the Googleplex, and today is the first day of the Google I|O conference, meaning that we are probably just a few hours from a new Android SDK release, whose docs will only show up in the new site layout. On Sat, Jun 23, 2012 at 8:55 PM, appdev billium59z...@gmail.com wrote: Looks like the android app developers website made a big change. It will take getting used to. Any way to link to the old site/format? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get battery percentage
You will want an ACTION_BATTERY_CHANGED BroadcastReceiver. See BatteryManager for the names of the broadcast Intent extras: EXTRA_LEVEL and EXTRA_SCALE will combine to give you a percentage. On Tue, Jun 26, 2012 at 10:19 AM, eddieRay eddiespencer...@yahoo.com wrote: What is the code to get the battery percentage of the device? I would like to return this as a string in my application. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
On Wed, Jun 27, 2012 at 10:31 AM, jagruti sangani jugni1sm...@gmail.comwrote: Hi, you can use the thread for periodically checking whether any new application is launch or not.If any found then compare with that and and if it is match then insert data in database or whatever you want to do on that found. Sorry to say, but its not the perfect solution I need, coz I want information to be saved/stored only when any application starts or closes, (say browser app: started 1 time, closed 1 time), which should only be updated on launch or termination of app. The updation should not happen periodically, as it may create problem as well as may be called multiple times on a single time execution of app. Hope, you are getting my idea. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get battery percentage
just go through this link!!! might be it helpful for you!! http://code.google.com/p/krvarma-android-samples/source/browse/trunk/BatteryInfo/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Ide
Android Developer site is the solution of you problem just go through this link!! http://developer.android.com/guide/components/index.html -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android:onClick throws nullPointerExeption
Post the LogCat and relevant code from *your* app. Not the tutorial. On Mon, Jun 25, 2012 at 12:35 AM, CaynanVictor caynan...@gmail.com wrote: Hey, guys, i had a really strange problem i was trying to do this tutorial: http://developer.android.com/training/basics/firstapp/index.html , but as soon as i add content to the method that the android:onClick calls, the app breaks and throws a nullPointerExeption. i verify the code 5 times, and it`s exactilly equals to the one on the tutorial. So i ignore this and try to make another project, just to implement the android:onClick, and again the same problem as soon as i add any code to the method that de onClick has the app crash. if anyone can help i`ll be very greatful. thanks... P.S: sorry for any english mistake, it`s not my first language, so please don`t troll about this. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: new look for the android app developers website
Bear in mind that a new statue appeared at the Googleplex, and today is the first day of the Google I|O conference, meaning that we are probably just a few hours from a new Android SDK release, whose docs will only show up in the new site layout. N! Not another one already! Pent -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android:onClick throws nullPointerExeption
On Mon, Jun 25, 2012 at 12:35 AM, CaynanVictor caynan...@gmail.com wrote: Hey, guys, i had a really strange problem i was trying to do this tutorial: http://developer.android.com/training/basics/firstapp/index.html , but as soon as i add content to the method that the android:onClick calls, the app breaks and throws a nullPointerExeption. i verify the code 5 times, and it`s exactilly equals to the one on the tutorial. Please post your code, so that we may look whats the matter. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] new look for the android app developers website
2012/6/24 appdev billium59z...@gmail.com Looks like the android app developers website made a big change. It will take getting used to. Any way to link to the old site/format? Yeah, I hear you. Grey text on grey background? A body font with very dense letter spacing? Headers with empty space before and after that looks excessive even on a 1200px tall monitor? Here is a stylesheet tweak that makes the redesign usable for its primary purpose - reading the docs. http://wp.me/pSrdQ-n3 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Top Developer?
Top developers now can respond to user comments in Google Play. Don't know of another benefit, besides being a kind of honorific badge among developers. José @Jose_GD https://twitter.com/#%21/Jose_GD http://mobiledevjourney.blogspot.com El martes, 26 de junio de 2012 18:08:19 UTC-3, Robert Nekic escribió: The app I work on has 600,000+ installs, 14,000+ ratings, and a 4.5 average. The app has a higher average than others in our category from Top Developers so I'm not sure what it takes. I'm mostly just curious. I'm not sure it would generate more downloads or anything like that. On Tue, Jun 26, 2012 at 3:46 PM, niko20 nikolatesl...@yahoo.com wrote: No, I have seen developers with apps that have even fewer downloads than my apps, that have Top Developer. It seems completely arbitrary. Also, I've been a dev since April of 2009. So over 3 years. And my paid app has over 62000 downloads currently with a 4.5 rating. And I'm still not a Top Developer. Personally I think that is bull -niko On Saturday, June 23, 2012 2:55:03 AM UTC-5, Harri Smått wrote: On Jun 22, 2012, at 11:34 PM, Robert Nekic wrote: Is there a process for being considered for the Top Developer designation on Google Play? I would guess this happens when your applications get 10+ million downloads or something. Maybe it helps Google Play team to catch your account - plus maybe there's some other criteria too. Nothing too specific I knew about though, just guessing. -- H -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to upload apk with new version, when previous key store is lost?
This isn't possible. You cannot sign two versions with different keys. Neither can you recover a key from a signed apk. It is best to keep several backups of your keys. You'll have to upload a fresh app now. Thanks On Wed, Jun 20, 2012 at 1:35 AM, Rashid rashid.ina...@tkxel.com wrote: Hi, We have been developing Android apps since a while now but unfortunately *we lost our key store which was used to sign a previously uploaded apk*, now we want to upload a new version of existing live app on Google play to do so we need to sign new apk with different key store but Google Play will not accept apk signed with different key store. Is there any way that we could upload new version of app with different key store as we do not want to add separate new app asap for those user which have already installed previous version and they deserve *to have update existing app rather than purchasing brand new app again?* Also if not possible for above statement then: Is there any way to get complete information of key store from previously signed apk so that we could possibly get key store and use it to upload new version of app? Android Support: Please answer on this situation as there could be some way to upload apk with new version and signed with new key store. Thank You -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Not allowing me to install SDK as java jdk is not being recognized
Have you added the JDK to your PATH variable? Thanks On Mon, Jun 25, 2012 at 4:36 PM, Scharlto charlton2...@gmail.com wrote: Good day all, Having an issue with installing the android sdk environment on my virtual machine running windows server 2008 R2. I have had success before running on this edition of windows so I'm not sure why this is giving issues now.The issue is when I boot up the .exe. file, it starts the installation wizard however when it checks for the version of java, it can't find any (even though its been installed) and won't let me proceed. My environment specs are: - Windows server 2008 R2 - Java JDK 6.x Thanks for any help you can give! Steve -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NDEF Message
Hello Shekhar, I am already aware of the fact that a NDEF message can have multiple NDEF records in it and payload data allowed is maximum of 2^32-1 bytes. If I have a payload data of 100 octets which is inside the range of default MIU, in that case should I send the data in one record or in a chunk of records. Which one is preferable and why? You should not bother about record chunks. Devices (or the operating system) are supposed to handle them automatically. So all you do in your app is put the record payload into an NDEF record and the NDEF record into an NDEF message. Suppose a remote device( which is not android ) send the NDEF message in the group of NDEF records then how to extract the payload from it. If a remote device splits the record into multiple chunks, the Android system should join the junks into full records before presenting them to the app. (Although, I have not thested if Android is capable of handling chunked records.) br Michael -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android NFC Options
Hi Alistair, I'm attempting to get into NFC on Android by communicating with a custom PN532 device, however I'm a little confused as to my options and the Android protocol. - NFCIP-1, is it possible to place my device as a target into this mode, for Android to automatically detect and communicate with to load an app Android's foreground NDEF push/beam is based on NFCIP-1 (+ LLCP), so you can exchange NDEF messages between an Android device and the PN532 in peer-to-peer mode. See http://code.google.com/p/ismb-snep-java/ (or the older http://code.google.com/p/ismb-npp-java/ ) for an example of how to communicate with Android apps in peer-to-peer mode. The ACR122U that is used in this examples contains a PN532, so it should be easy to adapt them to your custom PN532 device. - or can this only be done in card emulation mode (i.e. does NFCIP-1 have to be actively triggered)? You mean that you put your PN532 into card emulation mode and use the Android device as a card reader? This is also possible. You could then, for instance, emulate a type 4 NDEF tag or use your custom ISO-DEP based protocol. - What's the easiest to use card emulation mode for the sake of data format simplicity? (get an NDEF file over to the phone as simple and easy as possible that it will automatically act upon)? If you put the PN532 into card emulation mode and emulate a type 4 NDEF tag (see the NFC Forum website for the specification), the phone will recognize it as any other (real) tag. br Michael -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I open my app with power button?
The best way to achieve this would be making your app start at boot. Without modifying the firmware of users phone's there would be no way to having the power button do anything else aside from power the device up. I hope that if i have missed something here then other will pitch in and correct me. Regards, Fred On 25 June 2012 18:36, Andrea Fasciglione andreafa...@gmail.com wrote: It should be not clear, but how can i open my app with power button? I would add this option so in case of emergency a person can press (for example) three times the power button and my app opens. How can i do this? [I hope it was clear...] -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis now available in Google Play -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: getOrientation() method returns bad results
I suggest that you read this : http://en.wikipedia.org/wiki/Gimbal_lock Although android devices use a electronic equivalent, the same principles apply. Regards, Fred On 26 June 2012 00:50, axesh ajmera ajmeraax...@gmail.com wrote: On Monday, April 23, 2012 10:35:31 AM UTC-7, Lukáš Sztefek wrote: I'm creating 3D Compass application. I'm using getOrientationhttp://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation%28float%5B%5D,%20float%5B%5D%29 method to get orientation (almost same implementation like herehttp://stackoverflow.com/questions/2963705/using-getrotationmatrix-and-getorientation-in-android-2-1). If I place phone on the table it works well, but when top of the phone points to the sky, getOrientation starts giving really bad results. It gives values for Z axis between 0 to 180 degrees in a few real degrees. Is there any way how to suppress this behavior? I created a little videohttp://youtu.be/U1o5TsCKOd0 what describes problem (sorry for bad quality). You can download app herehttp://lukassztefek.cz/android/3DCompass.apk. No permissions needed. Thanks in advance. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis now available in Google Play -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] finding which application uses a port on the android device
I am unsure if i understand you question, it may be that programs communicating with a server do not need to identify themselves to a server, they merely send/receive data. While some programs, such as browsers do identify themselves, this is not always true. I would suggest that you practice with a normal server setup, and once you have a method that works you can begin to port that method for your app. Regards, Fred On 24 June 2012 16:51, Ami Turgman ami.turg...@gmail.com wrote: Hi All, I have an android native application which hosts a web server inside it. I want to know which application makes requests before they are processed by my application. What I have is the port of the calling application. How can I find out which application is using this port? I've tried looking for all processes (cat /proc/net/tcp6), but the application with the port I have is not listed (on a rooted device it is). I need to find a way to find the calling application name on a regular device (not rooted). Any help is highly appriciated. Thanks! Ami. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis now available in Google Play -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: does NFC in gingerbread support card simulate?
Hi Shailen, I see that you created the NFCTagInfo App, available on the market. This app is, by far, the best Tag reader, because of all the little information it can give us, for example the HEX/ASCII values of the sectors. Thanks! Anyway, I just wanted to point out that it is possible to simulate an NFC Tag with card emulation. I was able to turn on card emulation on my Samsung Nexus S phone which sports a PN65 (=PN544+SmartMX) chip. The emulated card was a MIFARE 4K, which is a Type 4 NFC Tag. Using another Nexus S and the NXP TagWriter app, I was able to write a plain text message on the card-emulated Nexus S. First of all, you are partly right: The embedded secure element can be enabled with the latest device firmware (or is usually enabled by default to allow Google Wallet to work). Second, you are certainly wrong with MIFARE 4K beeing a Type 4 NFC tag! MIFARE 4K (and so does MIFARE 1K) use a proprietary protocol that is not specified as part of the NFC Forum's NDEF tag specifications. Still, once the embedded secure element is enabled for card emulation the MIFARE 4K area is readable and writable with the default keys. So it could probably be used with *some* NFC devices as NFC tag. Remember, however, that not all NFC devices support MIFARE 1K/4K. Also, this only allows external access to the MIFARE area. Internal access, i.e. through an app on the same phone, is still not easily doable. (It can be done with firmware modifications and it can be done through components installed as part of Google Wallet.) That said, full card-emulation is possible on the Nexus S!! I certainly would not call this *full* card emulation. Especially as you cannot modify the card content from within the phone. br Michael -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
First,please turn your caps lock off, second post your code and we can take a look (that does not mean you will get any answer, but we will look). Regards, Fred On 24 June 2012 01:39, bradleyclare bradleycl...@gmail.com wrote: You probably defined the DisplayMessageActivity outside the original application tag in the manifest file. It should go inside the existing application tag. I made that same mistake the first time going through it. Good Luck. On Sunday, January 1, 2012 6:44:05 PM UTC-7, Vinayak wrote: HI, I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE HELP ME . -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis now available in Google Play -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need to create loop that will scan barcode until battery of device dies.
Start here: http://www.coreservlets.com/android-tutorial/ Regards, Fred On 25 June 2012 13:23, eddieRay eddiespencer...@yahoo.com wrote: I need to create an app that will read a barcode continuously until it drains the battery to the point where the device shuts down. I will need to collect data of the barcode, the barcode type, the time duration it took to scan the barcode, as well as how long the battery lasted. I have never coded in Android before so I could use any help I can get. Thank you! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis now available in Google Play -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HID iCLASS
As far as I understand it, HID iClass does not use all ISO 15693 layers and is, thus, not compatible to the Nexus S's NFC hardware. br Michael -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] NFC game
The question is too vague, we need much more information in order to be able to advise you. e.g. What environment is the game going to be played in, indoors or outdoors? What surface types will you be mounting the tags on? How much data do you need to encode onto the tags? etc. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
Sorry to say, but its not the perfect solution I need, coz I want information to be saved/stored only when any application starts or closes, (say browser app: started 1 time, closed 1 time), which should only be updated on launch or termination of app. The updation should not happen periodically, as it may create problem as well as may be called multiple times on a single time execution of app. Hope, you are getting my idea. And, as multiple have mentioned, this will *not* be possible... kris -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Top Developer?
On Wed, Jun 27, 2012 at 7:27 AM, Jose_GD jose.gonzale...@gmail.com wrote: Top developers now can respond to user comments in Google Play. Don't know of another benefit, besides being a kind of honorific badge among developers. But, would people who are top developers really *need* to respond to comments? ... Maybe, but not nearly as much as the smaller ones, I would think.. kris -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Access ANDROID console by application
Hi I am working with ANDROID ICS in Beaglebone. I'm running my executable(*.exe) file in android console by typing as below mentioned ./vcsSimpleStart -ms4. Now my beaglebone connecting with my windows machine so i can do it in android console(hyper terminal) easier. I want to do this in application how can i access android console and how to execute the above mentioned command by .apk application system(./vcsSimpleStart -ms4) is't possible.? if its not can any one help me.? Thanks in advance -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I open my app with power button?
You cannot do this under the current API, as there is no way to catch the power button. (Or home button, or ..., etc...) kris On Mon, Jun 25, 2012 at 1:36 PM, Andrea Fasciglione andreafa...@gmail.com wrote: It should be not clear, but how can i open my app with power button? I would add this option so in case of emergency a person can press (for example) three times the power button and my app opens. How can i do this? [I hope it was clear...] -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help converting iPhone app to Android
The only problem is already having gone down the phonegap route, it's a little too late to learn a new system and rebuild from scratch. You live and learn though.. I was never expecting amazing performance, but its fairly simple app and its offered for free so I'm not massively concerned about the performance at the moment (although those links much appreciated - thanks TreKing!). My main concern is just getting it to work on OS 3 and over. On 2.3 it works, not great but acceptable for the moment. On anything higher it stalls at Waiting for HOME ('android.process.acore') to be launched... On Friday, June 22, 2012 5:48:36 PM UTC+1, Kristopher Micinski wrote: On Fri, Jun 22, 2012 at 11:59 AM, Nobu Games dev.nobu.ga...@gmail.com wrote: I'm pretty opinionated about that topic because I had to create these fake web apps running on phones for almost a year at my old workplace. And it simply didn't really grow on me :-) I'm just saying, it's not like it's not possible, and it's definitely a route worth pursuing within the platforms. This is the general story of browsers on desktops, they were slow, they got good JITs, and then they were better... kris -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help converting iPhone app to Android
I'm also getting this in the console but not really knowing what it means! [2012-06-27 14:16:43 - ddmlib] An established connection was aborted by the software in your host machine java.io.IOException: An established connection was aborted by the software in your host machine at sun.nio.ch.SocketDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(Unknown Source) at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.write(Unknown Source) at sun.nio.ch.SocketChannelImpl.write(Unknown Source) at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) at com.android.ddmlib.Client.sendAndConsume(Client.java:575) at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348) at com.android.ddmlib.Client.requestAllocationStatus(Client.java:421) at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:837) at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:805) at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:765) at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:652) at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:44) at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:580) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
And, as multiple have mentioned, this will *not* be possible... Ok Kris, so does that mean, there is no other way to do what I want? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
As we said, you can poll it, but it's not recommended. Why do you need to do this? kris On Wed, Jun 27, 2012 at 9:21 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: And, as multiple have mentioned, this will *not* be possible... Ok Kris, so does that mean, there is no other way to do what I want? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
On Wed, Jun 27, 2012 at 7:01 PM, Kristopher Micinski krismicin...@gmail.com wrote: As we said, you can poll it, but it's not recommended. Why do you need to do this? Let me clarify you about my requirement. I actually want to monitor all the apps stored in the device, and retrieve their information (like how many times app is opened or closed. All that process of maintaining the record will start, when I first time install my app (which will show me details of other apps). For this reason, I wanted that as soon as any device app (system's app as well as user's apps), is launched or closed, the database should be updated like --- *App A started: 2 times and stopped 1 time total usage: 15 hrs, App B started 3 times stopped: 3 times, total usage: 7 hrs* And in my own application, I can retrieve that information. I wish, my problem is somewhat clear to you. Thanks n Regards, NSR -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
On Wed, Jun 27, 2012 at 9:44 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Wed, Jun 27, 2012 at 7:01 PM, Kristopher Micinski krismicin...@gmail.com wrote: As we said, you can poll it, but it's not recommended. Why do you need to do this? Let me clarify you about my requirement. I actually want to monitor all the apps stored in the device, and retrieve their information (like how many times app is opened or closed. All that process of maintaining the record will start, when I first time install my app (which will show me details of other apps). For this reason, I wanted that as soon as any device app (system's app as well as user's apps), is launched or closed, the database should be updated like --- App A started: 2 times and stopped 1 time total usage: 15 hrs, App B started 3 times stopped: 3 times, total usage: 7 hrs And in my own application, I can retrieve that information. I wish, my problem is somewhat clear to you. But *why* do you want to do this. To display it to the user? kris -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
But *why* do you want to do this. To display it to the user? Yes, to display it to the user. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hide softKeypad from EditText is disabling copy,paste options.
Hi, I want to hide SoftkeyPad from My EditText so i have used below code It hiding Softkey successfully. but it also hiding copy,paste option from Editor (on Android sdk 4.0.3) I want Copy,Paste option to be enable but softkeypad need to hide aways. |MyEditor.setInputType(InputType.TYPE_NULL); | With above code showing copy.paste option in devices with AdroidSdk 2.3 but with devices AdroidSdk 4.0.3 copy,paste options not showing. My Requirement is: 1) Always hide softkey pad for EditText on ontouch 2) Copy,Paste Option need to be shown on pressing it. editText.setInputType(InputType.TYPE_NULL); any help thanks. Thanks, Santhosh -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
On Wed, Jun 27, 2012 at 9:49 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: But *why* do you want to do this. To display it to the user? Yes, to display it to the user. Then, yes, your only option is to use polling.. kris -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
All right, I got my answer. Thanks all for directing me. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewFlipper
Well this is not related to your queation Have you noticed that while flipping through the views ViewFlipper leaks a lot of memory. On Wed, Jun 27, 2012 at 12:05 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Wed, Jun 27, 2012 at 12:36 AM, chandur mani chandur.ind...@gmail.comwrote: I have 5 content views in view flipper, here i use to see all 5 content through viewflipperinstance.showNext() and viewflipperinstance.showPrevious(). Here my problem is both next and previous buttons click, it show all 5 content and again start 1st. I need whenever user click next it will up to 5th content and same to previous when user click back it will show up tp 1st content. You can put a check something like this. if(viewflipperinstance.getDisplayedChild()!=0) { viewflipperinstance.showPrevious() } or if(viewflipperinstance.getDisplayedChild()!=(viewflipperinstance.getChildCount()-1) { viewflipperinstance.showNext() } This will help you out. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] free pdf download links about android programming
Mention any free pdf download link about android programming which is easy to learn,simple to the beginners.. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
Let me clarify you about my requirement. I actually want to monitor all the apps stored in the device, and retrieve their information (like how many times app is opened or closed. All that process of maintaining the record will start, when I first time install my app (which will show me details of other apps). For this reason, I wanted that as soon as any device app (system's app as well as user's apps), is launched or closed, the database should be updated like --- *App A started: 2 times and stopped 1 time total usage: 15 hrs, App B started 3 times stopped: 3 times, total usage: 7 hrs* And in my own application, I can retrieve that information. I wish, my problem is somewhat clear to you. You almost just want to grab the output of dumpsys usagestats but that's restricted to apps with the android.system.DUMP permission installed in /system/app. (I'm guessing that this level of data collection is not evil as Google has the DUMP permission in their proprietary Google Services Framework and Google Account Manager, but I'm not sure why it's discouraged for app developers but ok for google..) I think the DUMP permission changes between Dangerous and SystemOrSignature depending on what Android version you are looking at so you might have to be pre-installed on the device to do it (root/build your own ROM.) If you don't want to poll, you could try a blocking read on logcat -s -v time ActivityManager and parse for the start intents (but you'd still have to go look for application exit in the RunningAppInfo, but you could only do that on ActivityManager messages so you'd only be doing it when the ActivityManager is changing applications.) You'd need the android.permission.READ_LOGS permission to do that. Neither of these are SDK supported, and both cost you an extra process, but the logcat process is pretty light weight, and the dumpsys would only need to be run once at reporting time. In theory the user would is alerted on application installation that you are requesting the dangerous permissions, so you might want to be clear about why you need them in your application description. In practice the de -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to create a x509 certificate?
You can't create a certificate with the built in Bouncy Castle library. Unfortunately, you can't include the Bouncy Castle JAR in your android app because of a naming conflict. All hope is not lost. Find and use the Spongy Castle JAR. This is identical to Bouncy Castle but with a different package name. You'll be able to create your certificates with this library. Simon On Mon, Jun 25, 2012 at 7:15 AM, Anton Dyachenko amdjache...@gmail.comwrote: I need similar thing. I have strong busyness requirement - use only built in crypt provider. I need to create both asymmetric key pair and x509 self signed certificate based on it. I've already implemented creating certificate with external Bouncy Castle for test reason, but i need to implement it using only built in Bouncy Castle. How can i do it? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Not allowing me to install SDK as java jdk is not being recognized
Did you install the 64-bit version of the JDK? I recall an error some time back where it didn't properly detect the 64-bit JDK. I thought they had fixed this, but maybe not. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 27, 2012 at 5:48 AM, Raghav Sood raghavs...@gmail.com wrote: Have you added the JDK to your PATH variable? Thanks On Mon, Jun 25, 2012 at 4:36 PM, Scharlto charlton2...@gmail.com wrote: Good day all, Having an issue with installing the android sdk environment on my virtual machine running windows server 2008 R2. I have had success before running on this edition of windows so I'm not sure why this is giving issues now.The issue is when I boot up the .exe. file, it starts the installation wizard however when it checks for the version of java, it can't find any (even though its been installed) and won't let me proceed. My environment specs are: - Windows server 2008 R2 - Java JDK 6.x Thanks for any help you can give! Steve -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Compass help
You have compass application already in android sample code.Have a look on that On Sun, Jun 24, 2012 at 2:52 AM, axesh ajmera ajmeraax...@gmail.com wrote: Hi Guys, I need your help on developing an android compass application.Here is the source code...I want to know if i am using correct algorithm and sensors for developing the app and secondly I am unable to understand why my compass jitters so much package com.android.compass.example import android.app.Activity; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; public class CompassExample4Activity extends Activity implements SensorEventListener{ private SensorManager mSensorManager; CompassView mCompassView; Sensor accelerometer; Sensor magnetometer; float azimut; float[] mGravity; float[] mGeomagnetic; static final float ALPHA = 0.2f; double SmoothFactorCompass = 0.5; double SmoothThresholdCompass = 30.0; double oldCompass = 0.0; int oldCompass2 = 0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mCompassView = new CompassView(this); //this.setRequestedOrientation(0); setContentView(mCompassView); mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); magnetometer = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); } @Override public void onResume() { super.onResume(); mSensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_UI); mSensorManager.registerListener(this, magnetometer, SensorManager.SENSOR_DELAY_UI); } @Override public void onPause() { super.onPause(); mSensorManager.unregisterListener(this); } @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { // TODO Auto-generated method stub } @Override public void onSensorChanged(SensorEvent event) { // TODO Auto-generated method stub if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) mGravity = lowPass(event.values, mGravity); if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) mGeomagnetic = lowPass(event.values, mGeomagnetic); if (mGravity != null mGeomagnetic != null) { float R[] = new float[9]; float I[] = new float[9]; boolean success = SensorManager.getRotationMatrix(R, I, mGravity, mGeomagnetic); // Correct if screen is in Landscape SensorManager.remapCoordinateSystem(R, SensorManager.AXIS_X, SensorManager.AXIS_Z, R); if (success) { float orientation[] = new float[3]; SensorManager.getOrientation(R, orientation); float azimut = orientation[0]; // orientation contains: azimut, pitch and roll //float azimuth = (float) Math.round((Math.toDegrees(orientation[0]))*7)/7; //azimuth = ( azimuth + 360)%360; mCompassView.updateDirection((float)smoothnessFunction(azimut*360/(2*3.14159f))); //mCompassView.updateDirection(azimuth); } } } protected float[] lowPass( float[] input, float[] output ) { if ( output == null ) return input; for ( int i=0; iinput.length; i++ ) { output[i] = output[i] + ALPHA * (input[i] - output[i]); } return output; } public double smoothnessFunction( double newCompass) { if (Math.abs(newCompass - oldCompass) 180) { if (Math.abs(newCompass - oldCompass) SmoothThresholdCompass) { oldCompass = newCompass; } else { oldCompass = oldCompass + SmoothFactorCompass * (newCompass - oldCompass); } } else { if (360.0 - Math.abs(newCompass - oldCompass) SmoothThresholdCompass) { oldCompass = newCompass; } else { if (oldCompass newCompass) { oldCompass = (oldCompass + SmoothFactorCompass * ((360 + newCompass - oldCompass) % 360) + 360) % 360; } else { oldCompass = (oldCompass - SmoothFactorCompass * ((360 - newCompass + oldCompass) % 360) + 360) % 360; } } } return oldCompass; } public int smoothnessFunction2(double newCompass){ if ((int)newCompass % 360 != oldCompass2) { oldCompass2 = (int) newCompass; } return oldCompass2; } } -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send
[android-developers]
Hi all, I have been developing some OCR(Optical Character Recognition) app.So,i want to process the image and remove the noise on the surface.If anyone knows about image processing,share ur knowledge. Thanks, vijay.k -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers]
I have been developing some OCR(Optical Character Recognition) app.So,i want to process the image and remove the noise on the surface.If anyone knows about image processing,share ur knowledge. This doesn't have anything to do with Android. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 27, 2012 at 9:18 AM, Vijay Krishnan vijay.vijay...@gmail.comwrote: Hi all, I have been developing some OCR(Optical Character Recognition) app.So,i want to process the image and remove the noise on the surface.If anyone knows about image processing,share ur knowledge. Thanks, vijay.k -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] leadbolt advertising
http://leadbolt.com/developers_signup.php?ref=10038893 -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: leaked window again
It looks to me as if one of those dialogs is being created when the context is null, or at least invalid. That's kind of what I was thinking too... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 5:00 PM, G. Blake Meike blake.me...@gmail.comwrote: It looks to me as if one of those dialogs is being created when the context is null, or at least invalid. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Not allowing me to install SDK as java jdk is not being recognized
When you get to the screen where it tells you that it cannot detect the Java SDK try this: - click the [Back] button - click the [Next] button This sometimes works to clear the problem. On Monday, June 25, 2012 12:06:05 PM UTC+1, Scharlto wrote: Good day all, Having an issue with installing the android sdk environment on my virtual machine running windows server 2008 R2. I have had success before running on this edition of windows so I'm not sure why this is giving issues now.The issue is when I boot up the .exe. file, it starts the installation wizard however when it checks for the version of java, it can't find any (even though its been installed) and won't let me proceed. My environment specs are: - Windows server 2008 R2 - Java JDK 6.x Thanks for any help you can give! Steve -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Querying for system capabilities
On Wed, Jun 27, 2012 at 11:40 AM, Simon Giddings mr.s.giddi...@gmail.com wrote: In my activity I need to be able to query if the following services are available : phone call email internet browsing This is to ensure that I only provide these options when they exist on the device. For example, phone calls are not normally available on a tablet. Can this be done ? That depends on what you mean. These are not services -- they are applications. And, more importantly, they have activities which represent the user interface. So, if you want to know if, say, an ACTION_DIAL Intent on a tel: Uri will work, create an Intent for it and call resolveActivity() on PackageManager. If it returns null, you know that a startActivity() call will fail on that same Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Need to create loop that will scan barcode until battery of device dies.
http://developer.android.com/guide/components/activities.html http://code.google.com/p/zxing/wiki/ScanningViaIntent http://developer.android.com/training/monitoring-device-state/battery-monitoring.html -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Forgot Unlock Pattern
Hi, I have Nexus S running ICS. I have pattern lock and have forgot my pattern. I've used up all the attempts and I'm not connected to the internet on my phone so recovering by logging into gmail doesnt work. Can anyone help me?? Thanks -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en