Re: [android-developers] Usb permission issue in the Kiosk mode (Android COSU)

2018-05-16 Thread Tom Rutchik
Is USB debugging turned on?  That might have something to do with it since
you claim you have granted all permissions.

On Wed, May 16, 2018, 06:22 Siroj Rahmatxo'jayev 
wrote:

> I am trying to connect external barcode scanner (HID) to the Android
> application which is in Kiosk mode(Android COSU). A system dialog should be
> displayed to ask for the permissions in order to access the barcode from
> usb.  However, In kiosk mode, when startLockTask() turn on, permission
> dialog not shown. When I try use it, I bring Security exception...
> For resolve I grand all runtime permissions progmaticaly with
> DevicePolicyManager.setPermissionGrantState and
> DevicePolicyManager.setPermissionPolicy(adminComponentName,PERMISSION_POLICY_AUTO_GRANT);.
> It work for all runtime permissions but not work for usb permission.
> Please, help me with this issue.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/adc0b5f1-faa3-44ac-8f21-d3d214f86cfc%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAGvJgdJyRUrM9KZS9csmHdyjzUKchEFjbOKwLUNJcedr-LnRaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Check if service is running or not

2018-05-08 Thread Tom Rutchik
A comment about the statement:
-
We deliberately don't have an API to check whether a service is 
running because, nearly without fail, when you want to do something 
like that you end up with race conditions in your code. 

The problem is that if the service is already running and you issue a call 
to bind to that service, I didn't get a callback to my ServiceConnection 
onServiceConnected method.  In my case, I was using a semaphore to indicate 
that the service was actually connected before making a call on that 
service.  Since it's not called, the semaphore is not released and code 
doing the semaphore acquire will not proceed. That's an example of why one 
sometimes one might want to check if the service is already running. I 
don't know the developer's team rationale, but it's probably bad form that 
sometimes you don't get a callback to the onServiceConnected when you issue 
a call to bind to a service; even if that service was already running.  I 
used the semaphore because, without it I noticed a race condition between 
using the service and the service actual being available from the time 
after I issued a call to bind to that service.  So you solve one problem 
but create another.  Something to think about.


On Thursday, December 27, 2007 at 8:20:57 PM UTC-8, hackbod wrote:

> On Dec 26, 8:48 pm, "ho...@helloandroid.com"  
> wrote: 
> > You could track the state of the service using some kind of persistant 
> > variable (ie., preferences or sql lite) that you can set on onCreate() 
> > and onDestroy() in your service, or you could try to see if you can 
> > see the process running using something like this:
> http://davanum.wordpress.com/2007/12/18/android-task-manager-primitiv... 
>
> It would be best to not depend on knowing the name of the process that 
> your service is running in.  You can bind to a service without causing 
> it to start; by doing so, you will be told as the service is created 
> and destroyed. 
>
> If your client and server code is part of the same .apk and you are 
> binding to the service with a concrete Intent (one that specifies the 
> exact service class), then you can simply have your service set a 
> global variable when it is running that your client can check. 
>
> We deliberately don't have an API to check whether a service is 
> running because, nearly without fail, when you want to do something 
> like that you end up with race conditions in your code. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d3de0c03-af76-4b16-8f30-f64d71893316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Best way to develop apps without Android studio

2017-01-17 Thread Tom Masterson
I am Visually-impaired and it appears that at least under Linux 
android-studio is inaccessible.  That being the case what is the best 
suggestion for working with android apps especially if I want to work with 
the samples which are done in sudio?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c6995865-6d39-4f7d-b0cb-93ee6b31c70c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Unable to add Android to Eclipse Helios

2016-10-20 Thread Tom Magaro


I am trying to add android to eclipse neon and keep getting the following 
errors. The Tracer for OpenGL ES was the first one I tried by itself.  I 
have tried both all six development and one at a time to no avail.
Your original request has been modified.

  "Tracer for OpenGL ES" will be ignored because it is already installed.
Cannot complete the install because of a conflicting dependency.
  Software being installed: Android Traceview 23.0.7.2120684 
(com.android.ide.eclipse.traceview.feature.feature.group 23.0.7.2120684)
  Software currently installed: Eclipse IDE for Java EE Developers 
1.3.0.20100617-0521 (epp.package.jee 1.3.0.20100617-0521)
  Only one of the following can be installed at once: 
Core Runtime 3.10.0.v20140318-2214 (org.eclipse.core.runtime 
3.10.0.v20140318-2214)
Core Runtime 3.6.0.v20100505 (org.eclipse.core.runtime 3.6.0.v20100505)
Core Runtime 3.8.0.v20120912-155025 (org.eclipse.core.runtime 
3.8.0.v20120912-155025)
Core Runtime 3.8.0.v20120521-2346 (org.eclipse.core.runtime 
3.8.0.v20120521-2346)
Core Runtime 3.11.0.v20150405-1723 (org.eclipse.core.runtime 
3.11.0.v20150405-1723)
org.eclipse.core.runtime 3.3.100.v20070530
  Cannot satisfy dependency:
From: Android Traceview 23.0.7.2120684 
(com.android.ide.eclipse.traceview.feature.feature.group 23.0.7.2120684)
To: org.eclipse.core.runtime 3.7.0
  Cannot satisfy dependency:
From: Eclipse IDE for Java EE Developers 1.3.0.20100617-0521 
(epp.package.jee 1.3.0.20100617-0521)
To: org.eclipse.epp.package.jee.feature.feature.group 
[1.3.0.20100617-0521]
  Cannot satisfy dependency:
From: Java EE IDE Feature 1.3.0.20100617-0521 
(org.eclipse.epp.package.jee.feature.feature.group 1.3.0.20100617-0521)
To: org.eclipse.platform.feature.group 
[3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY]
  Cannot satisfy dependency:
From: Eclipse Platform 
3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY 
(org.eclipse.platform.feature.group 
3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY)
To: org.eclipse.rcp.feature.group 
[3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS]
  Cannot satisfy dependency:
From: Eclipse RCP 3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS 
(org.eclipse.rcp.feature.group 3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS)
To: org.eclipse.core.runtime [3.6.0.v20100505]

Any help with this is greatly appreciated

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8cfe38a7-381f-471f-b524-7775207862b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Tourist App (Android Studio) - Fragments and Navigation drawer

2016-07-09 Thread Tom Lear
Hi,

I'm trying to make a tourist app for a particular area, I'm not 100% 
familiar with Android studio. How would I go about putting Google's sample 
"xyz attractions" into separate drawers or fragments. So for example in my 
app, I would have beaches/ restaurants/ cafes in different 'pages' which 
are selected from a menu.

I've made an app with a navigation drawer but I'm not sure how to implement 
XYZ attractions into this.

All help would be greatly appreciated as I'm only 16.

Thanks.

* https://github.com/googlesamples/android-XYZTouristAttractions

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c62ac529-324c-4d78-b9cc-42b363b45ca8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Installation crashes on Galaxy Note when SQLCipher is used

2016-06-17 Thread Tom Stol
simple reason: ARM64 (which the Galaxy Note 5 uses) is currently not 
supported by Cipher (
https://discuss.zetetic.net/t/sqlcipher-for-android-native-library-support/1440
)

On Friday, June 17, 2016 at 6:45:01 PM UTC+7, Tom Stol wrote:
>
> We are using an encrypted SQLCipher database in our Android app (internal 
> memory, not on SD card), compiled in (SDK23) and we are facing issues with 
> the app crashing IMMEDIATELY when "installation" starts when we install it 
> on our Galaxy Note 5 (running Android 6.0.2).
>
>
> On other devices (Sony Xperia S, running Android 4.1.2, Sony Z5, running 
> Android 6) NO problems - apk installs and app runs. We only see this on our 
> Galaxy Note 5. When we use the same database without Cipher (also in 
> internal memory, not on SD card) then it ALSO works on the Galaxy Note 5. 
> So, this issue is Cipher related and as we only see it on the Galaxy.
>
>
> This is quite an urgent issues for us and we could not figure over several 
> days what the issues is.
>
>
> Can anyone offer some advice?
>
>
> THANKS a MILLION !!!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/351f7491-28b6-46a1-b882-27c56c0964c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Installation crashes on Galaxy Note when SQLCipher is used

2016-06-17 Thread Tom Stol


We are using an encrypted SQLCipher database in our Android app (internal 
memory, not on SD card), compiled in (SDK23) and we are facing issues with 
the app crashing IMMEDIATELY when "installation" starts when we install it 
on our Galaxy Note 5 (running Android 6.0.2).


On other devices (Sony Xperia S, running Android 4.1.2, Sony Z5, running 
Android 6) NO problems - apk installs and app runs. We only see this on our 
Galaxy Note 5. When we use the same database without Cipher (also in 
internal memory, not on SD card) then it ALSO works on the Galaxy Note 5. 
So, this issue is Cipher related and as we only see it on the Galaxy.


This is quite an urgent issues for us and we could not figure over several 
days what the issues is.


Can anyone offer some advice?


THANKS a MILLION !!!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c6e3c7bd-de3f-4b7d-a57a-5a30b34f401f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] navigation bar size (soft buttons) size

2016-05-08 Thread Tom Teysen
Hi,

Is the navigation bar with the soft buttons always 48dp heigh on android 6, 
5 or 4.4 in portrait mode or does the size differ.
If so, what are the sizes then? In px or dp.

Thanks in advance!



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b1bee527-8bc4-4a9e-9209-c7ce864a9d4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?

2016-04-30 Thread Tom
I have found the same issue with Vista and adb. Sometimes I have been able 
to resolve this by disable debug then clearing all authorised from the 
android device then re-enabling debug. I wonder if it is something to do 
with the key pairs on Windows ?

On Sunday, April 24, 2016 at 11:30:54 PM UTC+10, Mark Hansen wrote:
>
> I've asked this on Stack Overflow, but so far no solution: 
> http://stackoverflow.com/questions/36816530/why-does-adb-devices-show-unauthorized-with-no-allow-prompt-on-the-device
>
> I've installed Android Studio 2.0 on my Windows 7 PC. This included the 
> Android SDK. I've done Android development on this PC before using Eclipse 
> + ADT and an earlier version of Android Studio, which worked (at that 
> time). I've uninstalled the old version of Android Studio and installed the 
> new (current) version. Also, based on the prerequisites for Android Studio, 
> I've installed Java J2SE 1.8.0 update 92 (JDK).
>
> Now, when I attempt to connect to my phone (Samsung Galaxy S6) via USB, 
> 'adb devices' shows 'unauthorized' and I never receive a prompt on the 
> phone to allow USB debugging.
>
> I have USB configuration set to MTP and when I plug the phone into the USB 
> cable, I get the auto-play prompt on the PC and I'm able to see device in 
> Windows/Explorer and browse its directories, etc.
>
> I've uninstalled the OEM USB drivers for my device and re-installed them. 
> I've turned USB Debugging off/on. I've Revoked USB debugging authorization 
> under developer options on the phone, I've run 'adb kill-server' and 'adb 
> start-server'. I've tried different USB cables and ports. I've restarted 
> both the computer and the phone. I've verified there is only one instance 
> of 'adb.exe' on the PC and that it is in the location identified by 
> ANDROID_SDK_HOME ($ANDROID_SDK_HOME/platform-tools/adb.exe).
>
> There was a directory named .android in my $HOME directory which contained 
> a lot of keys and configuration files, etc., so I uninstalled Android 
> Studio again and manually moved that directory out of the way and then 
> re-installed, but this didn't help.
>
> I'm wondering if there is a setting on the PC (or phone) which tells adb 
> that we don't need to prompt to allow USB debugging which needs to be 
> cleared?
>
> Can someone please help me?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e18f2066-c3c3-4d19-8a97-20efb5a825f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google says to use new "instance id" to id devices - but this is a poor solution...

2016-02-01 Thread Tom
The Google developer's blog today published:

Marshmallow and User Data
http://android-developers.blogspot.ca/2016/02/marshmallow-and-user-data.html

Which describes the rather extrodinary step of completely blocking access 
to bluetooth & wifi MAC addresses - which some developers' use to ID 
devices - without any deprecation period (unless I'm missing something).

They say to use the new GCM device ID instead.  I took a look at that 
device ID when it was announced at I/O 15 and found it to be a poor 
solution because it gets retrieved from Google's servers when your app 
requests it.

In my unscientific testing, under ideal circumstances, this takes 1-3 
seconds if the device is online, and 0.5 - 1.0 seconds if off-line 
(presumably this is how long it waits before giving up and generating a 
random ID).  

Google is suggesting we use this as our device identifier, which is 
typically the first thing you send to your server, ie. it will probably be 
used as the key to the entity that represents the device.

Adding several seconds to the time it takes to get some initial data from 
the server is obviously not an option, so now we must generate a temporary 
ID to send the server until we get the device's actual ID.  In other words, 
greater complexity.

Am I missing something?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/098f7daf-7c5d-4fb6-ad34-26cf11cd9548%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Fingerprint Scanner Help

2016-01-27 Thread Tom Becker
 

Hello all,


I'm working for a company that wants to look into the potential behind the 
fingerprint scanning hardware on Android phones. We've been looking into 
the current API Android has available and it does not have the 
functionality that we're looking for. I'm in search of a phone number that 
I can use to contact somebody from Google directly and discuss the possible 
applications we'd like to explore. I appreciate any input.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b59ab1cb-a129-4a70-bc30-457ac40910a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: What services provide AccessibilityService with KeyEvents

2014-07-25 Thread Tom
After some digging, I've found that 
com.android.server.accessibility.AccessibiliityManagerService is where 
KeyEvents are sent, and the AccessibilityInputFilter class is what handles 
the KeyEvent filtering. It doesn't appear that Accessibility itself is 
handling these events, so it's likely that the service providing these 
events simply does not pass along certain events,

On Sunday, July 13, 2014 10:05:14 AM UTC-4, Tom wrote:
>
> Android API 18 introduced the onKey method AccessibilityService along 
> with the necessary flags to enable filtering KeyEvents. What system 
> service/ method deals with the delivery of these events, and *is it 
> possible to register for key events when the screen is off*?
>
> I've noticed that hardware button events are not passed to 
> AccessibilityService when the screen is off, which I'm guessing has to do 
> with the dangers of overriding this behavior and preventing the device from 
> unlocking. However, I'm interested in handling hardware buttons for the 
> camera/ volume/ events other than the power button. Is this possible at 
> present, or is such a feature being considered? If not, perhaps 
> AccessibilityServiceInfo could include a list of KeyEvents the service 
> wants to register for when the screen is off and have the service only send 
> those?
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Why does RemoteController require an app to have a NotificationListenerService?

2014-07-15 Thread Tom
In API 19 Android added the RemoteController classes to it's API for 
allowing apps to control media playback. Oddly however is this: 
"Registration requires the RemoteController.OnClientUpdateListener 

 
listener to be one of the enabled notification listeners (see 
NotificationListenerService 

)."
Why does RemoteController have this requirements and/ or why is the 
MEDIA_MEDIA_CONTENT_CONTROL permission declared with a danger level of 
systemOrSingature? Perhaps I am missing something, but is a malicious 
music-control app really a problem enough to warrant the inconvenience and 
more importantly the confusion most users will experience seeing "This 
music widget needs to monitor notifications" type alerts?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] What services provide AccessibilityService with KeyEvents

2014-07-13 Thread Tom
Thanks, I thought to look into AccessibilityManagerService, I just couldn't 
find anywhere where it was invoking the onKey/ onKeyEvent methods in the 
IAccessibility stubs.
My issue isn't with receiving events, I get all events expected and am able 
to override their behaviors. I want to know where the KeyEvents are being 
passed to the AccessibilityService and if there's a way to receive these 
events while the screen is off.

On Sunday, July 13, 2014 11:21:54 AM UTC-5, Peter Teoh wrote:
>
>
>
>
> On Sun, Jul 13, 2014 at 10:05 PM, Tom > 
> wrote:
>
>> Android API 18 introduced the onKey method AccessibilityService along 
>> with the necessary flags to enable filtering KeyEvents. What system 
>> service/ method deals with the delivery of these events, and *is it 
>> possible to register for key events when the screen is off*?
>>
>> I've noticed that hardware button events are not passed to 
>> AccessibilityService when the screen is off, which I'm guessing has to do 
>> with the dangers of overriding this behavior and preventing the device from 
>> unlocking. However, I'm interested in handling hardware buttons for the 
>> camera/ volume/ events other than the power button. Is this possible at 
>> present, or is such a feature being considered? If not, perhaps 
>> AccessibilityServiceInfo could include a list of KeyEvents the service 
>> wants to register for when the screen is off and have the service only send 
>> those?
>>  
>> -- 
>
>
>
> In  framework/base/services/java/com/android/server/SystemServer.java:
>
>   CountryDetectorService countryDetector = null;
> TextServicesManagerService tsms = null;
>
> // Bring up services needed for UI.
> if (factoryTest != SystemServer.FACTORY_TEST_LOW_LEVEL) {
> try {
> Slog.i(TAG, "Input Method Service");
> imm = new InputMethodManagerService(context);
> ServiceManager.addService(Context.INPUT_METHOD_SERVICE, 
> imm);
> } catch (Throwable e) {
> reportWtf("starting Input Manager Service", e);
> }
>
> try {
> Slog.i(TAG, "Accessibility Manager");
> ServiceManager.addService(Context.ACCESSIBILITY_SERVICE,
> new AccessibilityManagerService(context));
> } catch (Throwable e) {
> reportWtf("starting Accessibility Manager", e);
> }
> }
>
> try {
> wm.displayReady();
> } catch (Throwable e) {
> reportWtf("making display ready", e);
> }
>  
>
> From above you can see that the AccessibilityManagerService comes in after 
> the InputMethod service is started.   So my guess is that it should be 
> possible to register for the key event after that?   Not sure.
>
> https://developer.android.com/training/keyboard-input/commands.html
> http://stackoverflow.com/questions/5665832/android-register-keyboard-action
>  

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] What services provide AccessibilityService with KeyEvents

2014-07-13 Thread Tom
Android API 18 introduced the onKey method AccessibilityService along with 
the necessary flags to enable filtering KeyEvents. What system service/ 
method deals with the delivery of these events, and *is it possible to 
register for key events when the screen is off*?

I've noticed that hardware button events are not passed to 
AccessibilityService when the screen is off, which I'm guessing has to do 
with the dangers of overriding this behavior and preventing the device from 
unlocking. However, I'm interested in handling hardware buttons for the 
camera/ volume/ events other than the power button. Is this possible at 
present, or is such a feature being considered? If not, perhaps 
AccessibilityServiceInfo could include a list of KeyEvents the service 
wants to register for when the screen is off and have the service only send 
those?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to optimize image polling on the network for a gridview inside a view pager

2014-02-18 Thread Tom Yu
I am creating a security app that displays pages of security footage as a 
gridview of images. I am polling the network for updates to the footage and 
if so, I'll update the backing object and call 
'adapter.notifyDataSetChanged()'.

You can imaging that the data set changes quite frequently. As such, user 
interaction will suffer like swiping between pages and scrolling through a 
page. 

I am using a FragmentPagerAdapter.

I want to get this as smooth as nice to use as possible. Any insight or 
suggestions on how to solve this problem is greatly appreciated.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Changes in the 2013 version of GCM

2014-02-05 Thread Tom
I'm migrating my app's GCM support to the 2013 version, and I'm confused by 
some things.

The docs are very inconsistent and don't properly distinguish between the 
versions, so let me see if I have this right - this is now the 3rd version 
- in 2011 Google introduced C2DM, in 2012 they changed it to GCM, and in 
2013 we got GCM version 2.

In GCM1 the app responded to GCM admin intents, e.g. register, unregister, 
and error.

In GCM2 the app is in control.  It detects when the app is updated, 
requests a new reg ID, and stores it, etc..  It's broadcast receiver is 
used to receive GCM messages but the old GCM admin messages are ignored.

This seems very brittle compared to GCM1 so I wonder if I'm missing 
something:  it is hard-coded into the app that *the RegID will always and 
only change when the app version changes*.  

Am I correct in my understanding?  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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Dalvik vs ART

2013-11-15 Thread Tom
As I understand one of the feature of ART is to remove the usage of a VM, 
which means no more bytecode, which means binaries, which means ability to 
use a new language ???

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] TextUtils and DateUtils Stubed ?

2013-10-31 Thread Tom
Hi folks,

I noticed that TextUtils and DateUtils are stubbed in the SDK (all theirs 
methods return a RuntimeException with the label "Stub!"). So they can't be 
part of any junit execution which actually makes me really sad...

Is there a good reason for that ??

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] How to trigger USB plug-in events without physically touching plug

2013-09-18 Thread Tom
 

I have an app (Android version 4.0+) that communicates with a USB host 
device (IOIO OTG board). Communication requires that the adb daemon is 
running on the Android, but for unknown reasons the adb daemon sometimes 
terminates, and communication fails. A reboot of the Android device fixes 
the problem, but I do not want to incur the time overhead of a reboot. I've 
discovered that communication can be restored without reboot using the 
following procedure:

   1. 
   
   Restart adb daemon through console session as root:
   
   start adbd
   2. 
   
   Unplug and plug the USB cable 
   
My app can detect communication failure and programatically execute step 1, 
but step 2 is a problem: my application must run autonomously without a 
human present, so I need some way to programmatically trigger the events 
associated with step 2 without physical contact. Does anyone know how to do 
this? (I presume rooted phone is required, but an unrooted method would be 
better.)

Thanks, Tom

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] License for Google Volley

2013-05-16 Thread Tom Opgenorth
I caught the steaming video for Google Volley yesterday.  Seems
impressive. Forgive the silly question, but what are the Terms of
Service / licensed used for Volley?
--
http://www.opgenorth.net

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] open street maps with native android apps

2013-05-01 Thread Tom Opgenorth
Give OSMDroid - https://code.google.com/p/osmdroid/. I've had luck
with it in the past.

On Tue, Apr 30, 2013 at 12:28 PM, Gink Labrev  wrote:
> How to use open street maps with native android apps ?
> There are a lot of applications in this link, but any information about used
> components.
>
> http://wiki.openstreetmap.org/wiki/Android
>
> Regards,
>   Gink
>
> --
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
http://www.opgenorth.net

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: How to get Wifi Access Point data + MTU on the Wifi interface

2013-03-21 Thread tom
I was able to get the NetworkInterface by parsing the file 
"/proc/net/wireless" and get the correct interface name ( it is different 
on diffrent devices) and then get the network interface object then use it 
for the MTU so problem 2 is solved , Does anyone have an idea for problem 
1? 

On Thursday, March 21, 2013 5:26:50 PM UTC+2, tom wrote:
>
> HI ,
>
> I have an APP that get some information from the AP that i am connected to 
> such as SSID . BSSID , IP . Name ,  etc ...
> I am trying to get this information from it:
>
> 1.When my APP is loaded it check if its connectd to WIFI or not and if SO 
> i want to know if i am connected to 5G or 2.4G access point , 
> i couldn't find any way to retrieve this info from WifiInfo , OR connection 
> Manager  , the only point that i can see this info is from the 
> wifi.ScanResult 
> :
> public 
> intfrequency<http://developer.android.com/reference/android/net/wifi/ScanResult.html#frequency>The
>  
> frequency in MHz of the channel over which the client is communicating with 
> the access point.My question is how can i get this info only by running 
> my app and get it from the connected AP ?
>
> 2.What is the best way to get my WIFI interface to get the MTU ? , how do 
> i know what is my WIFI interface  in any specific HW (there 
> are different names on each device?)
>
> Thanks,
> Tom
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How to get Wifi Access Point data + MTU on the Wifi interface

2013-03-21 Thread tom
HI ,

I have an APP that get some information from the AP that i am connected to 
such as SSID . BSSID , IP . Name ,  etc ...
I am trying to get this information from it:

1.When my APP is loaded it check if its connectd to WIFI or not and if SO i 
want to know if i am connected to 5G or 2.4G access point , i couldn't find 
any way to retrieve this info from WifiInfo , OR connection Manager  , the 
only point that i can see this info is from the wifi.ScanResult :
public 
intfrequency<http://developer.android.com/reference/android/net/wifi/ScanResult.html#frequency>The
 
frequency in MHz of the channel over which the client is communicating with 
the access point.My question is how can i get this info only by running my 
app and get it from the connected AP ?

2.What is the best way to get my WIFI interface to get the MTU ? , how do i 
know what is my WIFI interface  in any specific HW (there 
are different names on each device?)

Thanks,
Tom

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get "Connection Refused" after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-15 Thread tom lee
Thanks for the info. I have now fully grasped the usage of UUIDs in an app.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get "Connection Refused" after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-14 Thread tom lee
>
> The UUID just says what port the Bluetooth Server is on.  I could have a
> server running on Bluetooth port 1.
>

Does this imply there's a way to specify different Bluetooth ports, if the
port(s) exists? I have never heard of Bluetooth using ports like TCP. If
you're just making an example, then please disregard this and above.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get "Connection Refused" after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-13 Thread tom lee
After extensive researching on the Bluetooth Chat example, it all comes
down to using pre-determined UUIDs to connect to another device, the 1-to-1
way. However, that doesn't make it useful.

I need to not rely on pre-determined UUIDs, so that I'm able to connect
multiple devices together with Bluetooth, without having to generate as
much UUIDs as possible.

Have you ever tried doing non-deterministic UUID generation for Bluetooth
connections, using UUID.randomUUID() or similar methods?

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get "Connection Refused" after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-08 Thread tom lee
I just tried. The connection is still refused. I don't think the result was
affected by the timeout, since the timeout error was reported in the Logcat
after the connection was reported to be refused first.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Android new accounttype without AuthenticatorActivity

2013-01-31 Thread Tom
Hi guys,

I write an app which should use an own account for contacts. 
I found a lot of examples in the internet but not that what I want.
And the SampleSyncAdapter from the samples doesn't help me so much.

What I want is a something like

AccountManager _accountMgr = AccountManager.get(context);
Account [] accounts = _accountMgr.getAccounts();
final Account account = new Account(accounts[0].name, "com.myapplication");
mAccountManager.addAccountExplicitly(account, null, null);

What I don't want is a new account where I have to input a username and a 
password.

The issue is, that my app reads the contacts and in the moment I'm using a 
sqllite database where I store
the contactid and further information to this ID which my app needs and which I 
can't store in the normal contacts.
Normally no problem. But what happened if someone needs a new smartphone. 
Contacts you can export and import in your new phone.
But during the import the contactid could change. Then my app can't link the 
contactid which I stored in my SQLLite-database to the
right contact in the new smartphone.
My idea was, to create an new account for my app (like "WhatsApp" is doing 
that) and storing there my additonal contactinformation.
This account I can export and import it to a new smartphone.

That's right, or? But for that I don't need an AuthenticatorActivity with 
username and password.
I only need a new account.

How can I solve that.
Thanks for any help

BR
Tom




-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: AppWidgets: Reusing RemoteViews instance leaks memory?

2013-01-24 Thread Tom
Thank you so much! These needs to be added to Android's documentation 
somewhere because it took many hours to come to this realization myself!
I thought I was being smart by preserving my RemoteView's instance, but in 
reality I was keeping hard-references to Bitmaps.
As a text clock widget updated by the minute, soon enough memory becomes a 
problem that way.

Tom

On Thursday, May 21, 2009 5:03:26 PM UTC-4, Michael Elsdörfer wrote:
>
> I'm writing a widget. Currently, I'm have a simple ImageView, and 
> calling RemoteViews.setImageViewBitmap(). I'm using a service to do 
> the updates. 
>
> I thought it might be a good idea to reuse an existing RemoteViews 
> instance, so I'm only querying it the first time around, and 
> subsequently simply call setImageViewBitmap() with the new image. 
>
> This works well initially, but after some time I first start getting 
> "!!! FAILED BINDER TRANSACTION !!!" errors, and later, an OutOfMemory 
> exception. 
>
> Simply creating a new RemoveViews instance every time works flawlessy 
> on the other hand. I'm just curios why that would be, any ideas?

-- 
-- 
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] Google map with airballoon image...

2013-01-17 Thread tom
Hi,

 I have created google map using android and set zoom control also..
 Now i try to create a air balloons on top of the countries but i don't 
have any idea. 
 So if you know please share with 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

Re: [android-developers] Distributing google-play-services.jar

2013-01-14 Thread Tom Opgenorth
Thanks a bunch - section 3.3 seems to answer my question (i.e. a 3rd
party can't distribute the JAR file).

On Mon, Jan 14, 2013 at 8:56 AM, Mark Murphy  wrote:
> You will need to delete the Google Play Services entry in your SDK
> Manager and reinstall it to see the license agreement. On a quick
> scan, it appears to be the same as what you now have to agree to in
> order to download the SDK in the first place.
>
> On Mon, Jan 14, 2013 at 10:49 AM, Tom Opgenorth  wrote:
>> Hi all,
>>
>> My Google-fu is failing me at the moment.  I'm wondering what the
>> license is surrounding the google-play-services.jar. I can't seem to
>> find a link to the license anywhere.
>>
>> What I'm wondering is: Can a 3rd party distribute this JAR file to
>> users? Would a 3rd party have to acquire a license from Google to
>> distribute this JAR?
>>
>> --
>> http://www.opgenorth.net
>>
>> --
>> 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
>
> Localized Android Question-and-Answer Sites: http://www.andglobe.com
>
> --
> 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



-- 
http://www.opgenorth.net

-- 
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] Distributing google-play-services.jar

2013-01-14 Thread Tom Opgenorth
Hi all,

My Google-fu is failing me at the moment.  I'm wondering what the
license is surrounding the google-play-services.jar. I can't seem to
find a link to the license anywhere.

What I'm wondering is: Can a 3rd party distribute this JAR file to
users? Would a 3rd party have to acquire a license from Google to
distribute this JAR?

--
http://www.opgenorth.net

-- 
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 regarding talking tom application

2013-01-09 Thread tom
Hi,

I didn't understood your  process clearly.. without code...

I hope this link is help for your solution..
http://stackoverflow.com/questions/11844914/get-the-frequency-of-an-audio-file-in-every-1-4-seconds-in-android

Thanks

On Wednesday, January 9, 2013 4:37:27 PM UTC+5:30, Parvathy Chandran wrote:
>
> Hi..
> Thanks a lot. But this was not what i wanted :(. 
> Let me try to explain it all over again.
> Any audio signal when sampled will have the amplitude values at discrete 
> instants.
> ie, if x(t) is the continuous signal, x(n) is the discrete one.
> Let us say x(0)=1, x(1)=2, x(2)= 3 etc etc.
> So my question is how to obtain these discrete values from the audio file 
> which is being read from the sdcard.
> 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

Re: [android-developers] Re: Help regarding talking tom application

2013-01-09 Thread tom
Hi,

I didn't used  MFcc Features so far... So i searched linked about that 
issue

I think this link will be useful to you...

http://stackoverflow.com/questions/10799786/mfcc-data-format-to-train-hmm

Thanks



On Wednesday, January 9, 2013 3:56:27 PM UTC+5:30, Parvathy Chandran wrote:
>
> hi,
> I hope you know about wavread command in Matlab. I want to obtain the 
> similar functionality
> Thanks
>
> On Wed, Jan 9, 2013 at 3:48 PM, Parvathy Chandran 
> 
> > wrote:
>
>> hi..
>> I hope you know about MFCC features. Suppose we want to extract those 
>> features from an audio clip, we need to obtain the sample values in an 
>> array rite? Am I making it clear?
>>
>>
>> On Wed, Jan 9, 2013 at 3:36 PM, tom >wrote:
>>
>>> Hi,
>>>
>>> can you explain clearly "*Why we need the sample values in a float 
>>> array rite?*" ?
>>> And you could stored your files in sdcard..
>>>
>>> Thanks
>>>
>>>
>>> On Monday, November 12, 2012 12:54:51 PM UTC+5:30, santosh kumar wrote:
>>>>
>>>> Hello All,
>>>>   I want to develop an application similar to talking tom, 
>>>> does anyone have source code for that application or any link pls share.
>>>>   Thanks in advance for any help related to this type of 
>>>> application.
>>>>
>>>> Thanks & Regards,
>>>> Santosh Kumar
>>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to 
>>> android-d...@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: Help regarding talking tom application

2013-01-09 Thread tom
Hi,

can you explain clearly "*Why we need the sample values in a float array 
rite?*" ?
And you could stored your files in sdcard..

Thanks

On Monday, November 12, 2012 12:54:51 PM UTC+5:30, santosh kumar wrote:
>
> Hello All,
>   I want to develop an application similar to talking tom, 
> does anyone have source code for that application or any link pls share.
>   Thanks in advance for any help related to this type of 
> application.
>
> Thanks & Regards,
> Santosh Kumar
>

-- 
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] why couldn't create webservice using android?

2013-01-09 Thread tom
Hi,

*why couldn't create webservice  using android?* 
if that any reason. if you know that reason...please share with me..

Thanks,
Tom

-- 
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: Help regarding talking tom application

2013-01-09 Thread tom
Hi 
u need store the recorded files into sdcard.

On Monday, November 12, 2012 12:54:51 PM UTC+5:30, santosh kumar wrote:
>
> Hello All,
>   I want to develop an application similar to talking tom, 
> does anyone have source code for that application or any link pls share.
>   Thanks in advance for any help related to this type of 
> application.
>
> Thanks & Regards,
> Santosh Kumar
>

-- 
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 get data from choice_mode_multiple

2013-01-09 Thread tom
 Hi 
I did get the values from selected contact details used check boxes.

But i used custom adapter for this to done.

I think that will easy to get the details... Try to that way because that 
will easy get a child from listview..


On Wednesday, January 9, 2013 12:17:09 AM UTC+5:30, prudhvi wrote:
>
> i am new to android.. i was able to read the contacts in listview with 
> checkboxes. I want to get the selected contacts data and have to send a 
> message(sms) to selected contacts
>
> but don't know how to proceed further
>
> can anyone help me with that
>
> thanks in advance
>
> here is my code to read contacts
>
> public class MainActivity extends Activity {
> public ArrayList itemChecked = null;ArrayAdapter 
> myAdapterInstance;SimpleCursorAdapter adapter;String[] projection = new 
> String[] { Phone._ID, Phone.DISPLAY_NAME,
> Phone.NUMBER };private static final Uri CONTACTS_URI = 
> ContactsContract.Contacts.CONTENT_URI;@Overridepublic void onCreate(Bundle 
> savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
> ADD = (Button) findViewById(R.id.button1);
> cancel = (Button) findViewById(R.id.button1);
> final Cursor cursor = managedQuery(Phone.CONTENT_URI, projection, null,
> null, Phone.DISPLAY_NAME + " ASC");
> final ListView lv = (ListView) findViewById(R.id.listView2);
> adapter = new SimpleCursorAdapter(this, 
> R.layout.contactslist,  cursor,
> new String[] { "display_name", Phone.NUMBER, "_id" }, 
>   new int[] { 
> R.id.textView11, R.id.textView12, R.id.checkBox1 } 
>
> );
>
> lv.setAdapter(adapter);
> lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
> }
> @Overrideprotected void onDestroy() {
> super.onDestroy();
>
>
> how do i get the selected contacts to some cursor or adapter..?
>
>  style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:13.63636302947998px;vertical-align:baseline;backgrou...
> Show 
> original

-- 
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 app to show an jpg image stored in emulator, through an android app

2013-01-08 Thread tom
   Are u asked about to store the image in mobile gallary?

On Tuesday, January 8, 2013 6:04:53 PM UTC+5:30, yashika wrote:
>
> Hi, 
> i m fresher plz help me how to craete an app which shows portion of a jpeg 
> image which is stored in emulator or mobile.
> and how to store a image in emulator.
> pls help me.
> thanks 
> yashika
>
>

-- 
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] Shared preference usage

2013-01-07 Thread tom
Hi,

I have clear explanation of "What is the difference between shared 
preference and other variable?" and  "why we are using the shared 
preference?".

"What is the usage of that?"


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: Hi bros

2013-01-07 Thread tom
Hi,

I hope this is useful for u... try this...

list.setOnItemClickListener(new OnItemClickListener() {

public void onItemClick(AdapterView arg0, View arg1,
int position, long arg3) {
Object o = list.getItemAtPosition(position);
String pos = o.toString();
Toast.makeText(TasksActivity.this,"I am clicked on Item Number is:"+pos, 
Toast.LENGTH_SHORT)
.show();

}
});

On Saturday, January 5, 2013 12:19:33 PM UTC+5:30, sree wrote:
>
>
> Hi friends,
> See The above attachment image.In that i implemented CustomListView and 
> text are retrive from SOAP webservices.
> But When i click on ListView,i cant get any response.
> Why 
> suggest me,What is the problem.
>
> list.setOnItemClickListener(this);
> @Override
> public void onItemClick(AdapterView arg0, View arg1, int position, 
> long arg3) {
> 
> Toast.makeText(TasksActivity.this,"I am clicked on Item Number 
> is:"+position,3000).show();
> 
> }
>

-- 
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: Hi bros

2013-01-07 Thread tom
Hi,

Use this code i hope this is work...

list.setOnItemClickListener(new OnItemClickListener() {

public void onItemClick(AdapterView arg0, View arg1,
int position, long arg3) {
Object o = list.getItemAtPosition(position);
String pos = o.toString();
Toast.makeText(TasksActivity.this,"I am clicked on Item Number is:"+pos, 
Toast.LENGTH_SHORT)
.show();

Thanks,

}
});

On Saturday, January 5, 2013 12:19:33 PM UTC+5:30, sree wrote:
>
>
> Hi friends,
> See The above attachment image.In that i implemented CustomListView and 
> text are retrive from SOAP webservices.
> But When i click on ListView,i cant get any response.
> Why 
> suggest me,What is the problem.
>
> list.setOnItemClickListener(this);
> @Override
> public void onItemClick(AdapterView arg0, View arg1, int position, 
> long arg3) {
> 
> Toast.makeText(TasksActivity.this,"I am clicked on Item Number 
> is:"+position,3000).show();
> 
> }
>

-- 
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] BluetoothAdapter.getDefaultAdapter() in a non-UI thread

2012-12-07 Thread Tom
It is a known bug:
http://code.google.com/p/android/issues/detail?id=16587

I'm encountering this bug on GB, but not on 4.1.  I think I wasn't getting 
it on 4.0 either.

Tom

On Wednesday, September 5, 2012 1:28:04 PM UTC-4, MagouyaWare wrote:
>
> Does anyone *really* know what this means?
>>
>> 09-05 10:22:05.518: E/AndroidRuntime(13117): java.lang.RuntimeException: 
>> Can't create handler inside thread that has not called Looper.prepare()
>> 09-05 10:22:05.518: E/AndroidRuntime(13117): at 
>> android.os.Handler.(Handler.java:121)
>> 09-05 10:22:05.518: E/AndroidRuntime(13117): at 
>> android.bluetooth.BluetoothAdapter$2.(BluetoothAdapter.java:1541)
>> 09-05 10:22:05.518: E/AndroidRuntime(13117): at 
>> android.bluetooth.BluetoothAdapter.(BluetoothAdapter.java:1541)
>> 09-05 10:22:05.518: E/AndroidRuntime(13117): at 
>> android.bluetooth.BluetoothAdapter.getDefaultAdapter(BluetoothAdapter.java:543)
>> 09-05 10:22:05.518: E/AndroidRuntime(13117): at 
>> com.blue_reader.Reader_Thread.run(Reader_Thread.java:31)
>>
>
>
> It *really *means that whatever you are doing you cannot do on a non-ui 
> thread...
>
>
> http://lmgtfy.com/?q=java.lang.RuntimeException%3A+Can%27t+create+handler+inside+thread+that+has+not+called+Looper.prepare()
>
> I got it from calling BluetoothAdapter.getDefaultAdapter(); in a non-UI 
>> thread.
>>
>
> Then you *really* can't call that method from a non-ui thread...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Wed, Sep 5, 2012 at 11:17 AM, bob 
> > wrote:
>
>> ava.lang.RuntimeException: Can't create handler inside thread that has 
>> not called Looper.prepare()
>
>
>

-- 
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 send and receive the datas from webserver to client server using htttpurlconnection?

2012-12-05 Thread Tom
Hi,

 if know anyone answer this question "How to send and receive the datas 
from webserver to client server using htttpurlconnection?". please 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

[android-developers] How to send and receive the datas from webserver to client server using htttpurlconnection?

2012-12-04 Thread Tom
Hi,

 if know anyone answer this question "How to send and receive the datas 
from webserver to client server using htttpurlconnection?". please 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

[android-developers] How to create program on server side code java and client side code in android?

2012-11-28 Thread Tom
Hi,
How to create program on server side code java and client side code in 
android?

Does any one know the sample application or any link to refer this 
concept please share with me..

Thanks,
Tamilarasi.S
  

-- 
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 connect server into client

2012-11-27 Thread Tom
Thanks for ur reply. but  i have used different ip and port that 
connection. But that is worked first time correctly more than one time i 
ran the same port that is not working on that time. how to configure the 
same port will run more than one time..

 if u know that pls reply me...

On Tuesday, 27 November 2012 14:26:20 UTC+5:30, Mulsaniya Bhadresh wrote:
>
> you have to changet the http port because it is already used by some 
> server or application 
>
> and on client side testing u have to use 10.0.0.2 instead of localhost 
>

-- 
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 connect the server connection from client?

2012-11-16 Thread Tom
Hi,

I could run the server code successfully using same localhost ip and port.
and i am using reuse method for socket in server side.
but i run the client program it displays "*Connection Refused error".*
*if any one know that solution pls share with 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

[android-developers] What are the things to need develop the own walkie talkie or two way radio app in android

2012-10-30 Thread Tom
Hi,

If any body knows that pls share with me... This is urgent

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

Re: [android-developers] how to create voice chat program using sip in android?

2012-10-29 Thread Tom
Hi,

I have download one sample application using Csipsimple but the app 
required domain .
So how to create domain for sip..
And please tell me more details about that

On Sunday, 28 October 2012 11:09:03 UTC+5:30, dragon fire wrote:
>
> Use Csipsimple which is a open source project
>
> On Fri, Oct 26, 2012 at 3:53 PM, Tom >wrote:
>
>> Hi,
>>
>> if anybody knows to create voice chat program using sip in android.pleas 
>> share with 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-d...@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] how to create voice chat program using sip in android?

2012-10-26 Thread Tom
Hi,

if anybody knows to create voice chat program using sip in android.pleas 
share with 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

[android-developers] how to send and receive the voice message from one android device to another

2012-10-24 Thread Tom
Hi,

I am recording and play the audio. But i don't know how to send this voice 
message from one android device to another.

If any body know this concept. please 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

[android-developers] hi, if u know the reason please help me.....:)

2012-10-22 Thread Tom
Hi,

I am attached the using code for record and play the audio above. 

My Problem is..

My audio is save  music player after closing the emulator 
I don't know the reason...
But i need the recorded voice immediately play after recording

so any know reason or know how to solve the problem?Please 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=enpackage com.varma.samples.audiorecorder;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioRecord;
import android.media.AudioTrack;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

@SuppressLint("SdCardPath")
public class RecorderActivity extends Activity {
	private static final int RECORDER_SAMPLERATE = 8000;
	private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO;
	private static final int RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
	private AudioRecord recorder = null;
	private AudioTrack audioTrack=null;
	private Thread recordingThread = null;
	private Thread playingThread = null;
	private boolean isRecording = false;
	private boolean isPlaying = false;
	String filePath;
	short sData[];
	byte bData[];
	private File outfile = null;
	@Override
	public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.main);
	setButtonHandlers();
	enableButtons(false);
	enableButtonsplay(false);
	

	int bufferSize = AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE,
	RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING);

	System.out.println("BUFFER SIZE VALUE IS " + bufferSize);

	}
	private void enableButtonsplay(boolean isPlaying) {
		enableButton(R.id.play, !isPlaying);
	enableButton(R.id.btnplaystop, isPlaying);
		
	}
	private void setButtonHandlers()
	{
	((Button) findViewById(R.id.btnStart)).setOnClickListener(btnClick);
	((Button) findViewById(R.id.btnStoprecord)).setOnClickListener(btnClick);
	((Button) findViewById(R.id.play)).setOnClickListener(btnClick);
	((Button) findViewById(R.id.btnplaystop)).setOnClickListener(btnClick);
	}

	private void enableButton(int id, boolean isEnable) {
	((Button) findViewById(id)).setEnabled(isEnable);
	}

	private void enableButtons(boolean isRecording) {
	enableButton(R.id.btnStart, !isRecording);
	enableButton(R.id.btnStoprecord, isRecording);
	
	}
	

	int BufferElements2Rec = 1024; // want to play 2048 (2K) since 2 bytes we use only 1024
	int BytesPerElement = 2; // 2 bytes in 16bit format

	private void startRecording() {

	recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
	RECORDER_SAMPLERATE, RECORDER_CHANNELS,
	RECORDER_AUDIO_ENCODING, BufferElements2Rec*BytesPerElement);

	recorder.startRecording();
	isRecording = true;
	/*//filePath = Environment.getExternalStorageDirectory()
		+ "/Record/test_" + System.currentTimeMillis() + ".3gp";;
		System.out.println("filePath: "+filePath);
*/		recordingThread = new Thread(new Runnable() {

		public void run() {

	writeAudioDataToFile();

	}
	}, "AudioRecorder Thread");
	recordingThread.start();
	}

	private byte[] short2byte(short[] sData)
	{
	int shortArrsize= sData.length;
	byte[] bytes = new byte[shortArrsize*2];

	for (int i=0; i < shortArrsize; i++)
	{
	bytes[i*2] = (byte) (sData[i] & 0x00FF);
	bytes[(i*2)+1] = (byte) (sData[i] >> 8);
	sData[i] = 0;
	}
	return bytes;

	 }

	 
	private void writeAudioDataToFile() {
	// Write the output audio in byte
		  File sd = Environment.getExternalStorageDirectory();
	
	sd.mkdir();
try {
outfile=File.createTempFile("file", ".amr",sd);
			} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
			}
	short sData[] = new short[BufferElements2Rec];

	FileOutputStream os = null;
	try {
	os = new FileOutputStream(outfile);
	} catch (FileNotFoundException e) {
	e.printStackTrace();
	}

	while (isRecording) {
	// gets the voice output from microp

[android-developers] how to make the phone number to be auto formatted to 123-123-1234 this format

2012-10-19 Thread Tom
Hi,

i need help for this code. if you know about it please help me

*how to make the phone number to be auto formatted to 123-123-1234 this 
format*
*on  ontextchangelistener of edittext..*
*
*
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: Media Volume

2012-10-18 Thread Tom
Hi, 

if u know about the record and play the voice in android please share with 
me
Thanks

On Wednesday, 17 October 2012 20:00:05 UTC+5:30, chi wrote:
>
> Hi, everyone!
>
> Does anybody know how android measures its media volume? I am working on a 
> project right now that is dependent on the volume, in decibels, of the 
> sound I'm playing.
>
> I'm using Audio Manager's setStreamVolume, which measures the volume in 
> integer from 0-15. Can anybody tell me the decibel equivalent of these 
> integers? Or is there any other way I can manipulate the volume and know 
> its value in decibels?
>
> 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] how create voice chatting app in android

2012-10-18 Thread Tom
Hi,


if know about how create voice chatting app in android? please share with 
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

[android-developers] How to record and play the voice through the android app?

2012-10-18 Thread Tom
Hi,

How to record and play the voice through the android app?
 
if any body know that concept plase share with me

Regards,
Tamilarasi

-- 
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 communicate between two android devices using audio?

2012-10-16 Thread Tom
Hi,

If any one know how to communicate between two android devices using audio 
please tell me


Thanks,
Tom

-- 
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 capitalized the text after reenter the text in android

2012-10-15 Thread Tom
Hi ,
I am using android:inputType="textCapSentences"  but fist time its comes 
correctly  for typing the sentence but after deleting and reentering the 
text. that will be display in small letter. if know that reason  are 
solution pls share with me

Thanks,
Tom

-- 
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 play recorded audio ? using AudioTrack

2012-10-14 Thread Tom
Hi,

I am using AudioRecord class for record the audio in sdcard but it has no 
play.Because in the time of playing it has display sorry the audio cannot 
be palyed 

So how to play the video after recording the sdcard. I think i will 
use AudioTrack.But i don't know clearly about that. if any body know that 
 pls share with me.

This is urgent. Thanks in advance

Thanks,
Tom

-- 
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] Disconnect from a WiFi Direct Group

2012-10-12 Thread Zachariah Tom


Hi,

I want to disconnect from a wifi direct group after establishing a 
connection. I just want to move out silently without interrupting other 
clients that are already in connection with the Group owner.

I use *manager.Connect()* method to establish a connection. But didnt see 
any methods to disconnect. Only other option i saw is *manager.removeGroup()
*, but I guess this will remove the entire group and interrupt the existing 
network connection.

Inside the device settings. once connected I can disconnect by clicking it 
again. I want to achieve the same via code.


I am using Samsung Nexus with JellyBean 4.1.1

How can I do this properly?

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] how to send and receive packets using voice calling?

2012-10-11 Thread Tom
Hi,

if u know the details about how to send and receive packets using voice 
calling. please share with 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 store recorded audio files in sdcard using android

2012-10-10 Thread Tom
Hi,

Any body knows how to store recorded audio files in sdcard using android 
pls share with me..

Thanks,
Tom

-- 
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 store recorded audio files in sdcard using android

2012-10-10 Thread Tom
Hi,

Any body knows how to store recorded audio files in sdcard using android 
pls share with me..

Thanks,
Tom

-- 
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: AsyncTask in Android 4.0

2012-10-10 Thread tom
I like this change. And have used a custom AsyncTask taken from API10 with 
the following changes for awhile now.

   private static final int CORE_POOL_SIZE = 1;

private static final int MAXIMUM_POOL_SIZE = 1;


ps. hope this is the correct way to get the serial execution on API<11.


-- 
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 a voice recorder using android

2012-10-09 Thread Tom
Hi,

How to create a  voice recorder using android .if anybody knows .Please 
share with me this very urgent.

Thanks,
Tom

-- 
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 a wlakie talkie application using android?

2012-10-09 Thread Tom
Hi,

I am try to create walkie talkie app using android. but i couldn't store 
the recorded files in sdcard.
 
 And also i need a networking information like how to send and receive the 
voice message between one mobile to another.

Please tell me the details. Because this is very urgent .

Thanks,
Tom

-- 
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: Ksoap Android to .Net web service Timeout

2012-10-09 Thread Tom

Hi ,

U check the  webservice response is null or not.
   if response is null u print any meassages. and  best way to use try 
catch block 
   That is used to read the exception.

Thanks,
Tom

On Tuesday, 9 October 2012 15:31:54 UTC+5:30, Spike wrote:
>
> Hi guys,
>
> I am not able to handle exception generated by timeout. The application is 
> crashing. Any idea or logic for the same.
>
> Thanks in advance..
>
> Thanks & Regards,
> Krishna V. Mahadik
>
> -- 
> -- 
> . \\\///
> .   /\
> .   | \\   // |
> . ( | (.) (.) |)
> --o00o--(_)--o00o-
>
> "Yesterday is not ours to recover, but
> tomorrow is ours to win or to lose."
>
> ---ooo0---
> .   (   )   0ooo
> .\ (  (   )
> . \_) ) /
> .(_/
>  

-- 
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: Google has received a subpoena seeking information related to Android applications

2012-10-01 Thread Tom
I just spoke to a representative who said "Google should not have sent 
those emails." I just said I received an email and she immediately knew 
what I was referring to, no reference number needed. She told me to forget 
it was sent, and that the FBI will contact me directly if there is any 
issue pertaining to my account specifically (someone uploading one of my 
applications illegally to another application market).

Hope that clears things up for people, I feel bad for the representatives 
at that number who must be receiving tons of calls. Anyway, nothing to 
worry about (at least for now).

On Monday, October 1, 2012 7:14:18 PM UTC-4, Lew wrote:
>
> For more information
> about the subpoena, you may wish to contact the Federal Bureau of
> Investigation -- Atlanta Field Office at (404) 679-9000, reference #
> 2011R00320/FBI/ORKIN.
>
> On Monday, October 1, 2012 3:50:20 PM UTC-7, Streets Of Boston wrote:
>>
>> Got the same e-mail. Asked the same question on 'android-discuss' :-)
>> I'm curious what this is all about? BlueStack? Aliyun/Acer?
>>
>> On Monday, October 1, 2012 6:45:39 PM UTC-4, Andrei wrote:
>>>
>>> I received this email
>>> But i am not interested and want my account to be excluded
>>> What do i need to do?
>>> Thanks
>>>
>>> Google has received a subpoena seeking information related to Android
>>> applications that may have been made available on alternative markets
>>> without the consent of the developer. The subpoena seeks information
>>> about those Android applications, including contact information for the
>>> developers of the applications. Our records show that your Android
>>> developer account will be included in the information Google will provide
>>> in response to this subpoena.
>>>
>>> Google is not in a position to provide you with legal advice or discuss
>>> the substance of the process in our possession. For more information
>>> about the subpoena, you may wish to contact the Federal Bureau of
>>> Investigation -- Atlanta Field Office at (404) 679-9000, reference #
>>> 2011R00320/FBI/ORKIN.
>>>
>>

-- 
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: Hardware reccomendations: Next development laptop

2012-09-30 Thread Tom
I'm due for a new laptop too and have been thinking about this.  

Eclipse + ADT are pretty much all I need besides web browser.  I have been 
using Win 7 on a Dell Latitude and have found Eclipse+ADT to be slow and 
buggy.  I would like a better experience.

It is my unscientific impression that Google devs use Apple laptops (would 
love to see some stats).

I don't mean to be negative - I think the ADT devs are very good at 
engaging in the ADT issues tracker - but I think most of their testing is 
done ad-hoc by the devs, so, if they are using Apple then that is where the 
testing is happening.

It seems a shame to pay such a premium, and I'm not really an Apple fan, 
but if it works better for Android dev then I guess that is the right 
answer.

Tom

On Sunday, September 30, 2012 12:42:46 AM UTC-4, Nathan wrote:
>
> Since the hardware would primarily be used for developing Android, I think 
> this is on topic.  
>
> My three year old Vista laptop does do well at complex builds in Eclipse, 
> I'd just like to do more than one per day. ;)
>
> What do you recommend for my next development laptop?
>
> I really don't enjoy hardware shopping any more than car shopping. .  
>
> I have a vague idea that I want plenty of processor speed, plenty of 
> memory, Solid State drive, and  probably 15 inch screen. I do have a 17 
> inch screen now, and that was largely because I didn't even have an 
> external monitor. Now it is docked to an external monitor most of the time, 
> and is just too bulky when I actually do lug it somewhere. 
>
> This would probably gain me an hour of productivity every day, so I can 
> afford to sink a 1-2,000 or maybe more. 
>
> I did have the idea of maybe getting a MacBook Pro, since it could do iOS 
> development if I dabbled on the dark side, could possibly run Windows if I 
> did some development on that side. Then again, getting a Windows Laptop  
> and a Mac mini could also solve that problem. 
>
> I haven't really gotten into Linux for a personal computer, though I do 
> have a remote server running Debian now. 
>
> Nathan
>

-- 
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] Difference between Connect and createGroup in wifi direct

2012-09-29 Thread Zachariah Tom
Hi,
I am trying to create a network group with wifi direct. I have come across 
two methods

1. public void connect 
(WifiP2pManager.Channel
 c, 
WifiP2pConfig
 config, 
WifiP2pManager.ActionListener
 listener)

Start a p2p connection to a device with the specified configuration.

2.  public void createGroup 
(WifiP2pManager.Channel
 c, 
WifiP2pManager.ActionListener
 listener)

Create a p2p group with the current device as the group owner. This 
essentially creates an access point that can accept connections from legacy 
clients as well as other p2p devices.


whats the basic difference two? Do I need to *call connect on every device 
to add them to the group*? Or whether *createGroup() will automatically 
establish a network* with available peers and* for every new peer I have to 
call connect()* to add it to the group?
 How can I properly create a group? How does the concept pf group works?

Thanks for your 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] Display shapefile as a layer on my google map android ?

2012-09-25 Thread Tom Cohen
I'm looking for a way to store my shapefile in a website and then to 
display it as a layer on my google map in android. 
I guess i should convert my .shp file to a kml file - how do i do it ? and 
where can i store my kml and then use it as a layer on my google map in my 
own android app ?

Thanks in advance.. Tom.

-- 
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] ICS Android Notification disappears after about 5 seconds

2012-09-25 Thread Tom Bostelmann
For some reason, the notification that I create is disappearing in
about 5 seconds without any action on my part.  I can see it appear
(with a message in the title bar).  Then, when I pull down the message
bar, I see the notification in the list for about 5 seconds and then
it just disappears!  Non of the documentation addresses this behavior
so I'm not sure where to go with this.

Here's a couple examples of code that I've tried (all result in the
same behavior described):

Notification.Builder setupGoogleActBuilder = new
Notification.Builder( context );
 
setupGoogleActBuilder.setSmallIcon( R.drawable.notification_gear );
 
setupGoogleActBuilder.setTicker( context.getResources().getString( 
R.string.notification_setup_google_title ) );
 
setupGoogleActBuilder.setContentTitle( context.getResources().getString( 
R.string.notification_setup_google_title ) );
 
setupGoogleActBuilder.setContentText( context.getResources().getString( 
R.string.notification_setup_google_body ) );
Intent googleAccountIntent = new Intent();
 
googleAccountIntent.setAction( "android.settings.ADD_ACCOUNT_SETTINGS" );
PendingIntent googleAccountPendingIntent =
PendingIntent.getActivity( context, 0, googleAccountIntent, 0 );
 
setupGoogleActBuilder.setContentIntent( googleAccountPendingIntent );
setupGoogleActBuilder.setAutoCancel( true );
notification = setupGoogleActBuilder.getNotification();


...as well as the deprecated version:


notification = new Notification(
R.drawable.notification_gear,
 
context.getResources().getString(R.string.notification_setup_google_title),
System.currentTimeMillis());
notification.flags |= Notification.FLAG_AUTO_CANCEL;
Intent googleAccountIntent = new Intent();
 
googleAccountIntent.setAction( "android.settings.ADD_ACCOUNT_SETTINGS" );
PendingIntent googleAccountPendingIntent =
PendingIntent.getActivity( context, 0, googleAccountIntent, 0 );
notification.setLatestEventInfo(
context,
 
context.getResources().getString( R.string.notification_setup_google_title ),
 
context.getResources().getString( R.string.notification_setup_google_body ),
googleAccountPendingIntent);


I should note that:

1.) This is a SetupWizard application so it's sending the notification
during the initial startup after a factory reset:


  







2.) We've seen this occur only in Ice Cream Sandwich devices - it has
functioned correctly in the other android versions (Jelly Bean, and
prior to ICS) - the notification does not disappear.

Thanks in advance for your 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] Re: OnPreviewFrame on Galaxy Nexus

2012-09-19 Thread tom
this is a known issue with some one. OnPreviewFrame will not start until a 
valid surface is given

On Friday, August 31, 2012 10:01:33 AM UTC+2, cpares wrote:
>
> Hello!
>
> Do you know if OnPreviewFrame (as of Android 4.0.3) is correctly 
> implemented in Samsung Galaxy Nexus? I have programmed some code that works 
> perfectly on a Galaxy S3, but in the Nexus, the byte[] buffer, which comes 
> with the call to OnPreviewFrame and should have the YUV data, has 0s in all 
> the Y channel, and -128 in U and V (that is, plain green, if I'm correct).
>
> getPreviewFormat() is returning a 17 as expected, meaning that the preview 
> mode is actually NV21 (the same as the S3 on which it works).
>
> I know there are some hardware-dependent issues with raw camera data, so 
> maybe that is the explanation? I have been searching but I have found 
> nothing related.
>
> Thank you for your time!
>

-- 
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] Where to find the definition/description of Android's SMS_RECEIVED or similiar thing?

2012-09-17 Thread Tom Xue
My meaning is that I cannot find any document/javadoc of "SMS_RECEIVED" or 
"android.provider.Telephony.SMS_RECEIVED"
even on Android developer site 
http://developer.android.com/reference/packages.html. Is this strange?

But now I find it in the source code below: 
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String SMS_RECEIVED_ACTION =
"android.provider.Telephony.SMS_RECEIVED";
which is in file: 
~/android-sdks/sources/android-16/android/provider/Telephony.java
And for the whole file Telephony.java, it is marked with @hide (as below). 
That should be the reason why I cannot find SMS_RECEIVED via javadoc.
/**
 * The Telephony provider contains data related to phone operation.
 *
 * @hide
 */

However, thank you for your help!

BR,
Tom


在 2012年9月17日星期一UTC+8上午12时01分49秒,Kristopher Micinski写道:
>
> I don't think I understand you. 
>
> It sounds like you want to know: how do I know when I need permission? 
>  Generally the API for stuff will tell you.  For example, to catch the 
> SMS_RECEIVED permission you need a permission to receive texts, 
> RECEIVE_SMS.  If the API doesn't tell you when you need the 
> permission, that's a bug in the documentation.  However, in all 
> honesty, not having a permission should be pretty obvious when you 
> test the app, if you don't have it the app crashes, you look at the 
> error log, and then you include the permission. 
>
> kris 
>
> On Sun, Sep 16, 2012 at 10:41 AM, tomLinux > 
> wrote: 
> > Thank you very much for your reply! 
> > The Manifest page is helpful! With it I can find the definition of 
> > CHANGE_NETWORK_STATE. 
> > But still for the 1st item, even the short term "SMS_RECEIVED", I cannot 
> > find official document of it. 
> > That makes me confused. So how could people write program by using it? 
> How 
> > do they know its purpose and usage? 
> > 
> > BR, 
> > Tom 
> > 
> > 
> > 
> > 
> > On Thursday, September 13, 2012 5:19:04 AM UTC+8, Kristopher Micinski 
> wrote: 
> >> 
> >> are you asking how these permissions can be used in Android? 
> >> 
> >> You can see a brief description here: 
> >> 
> >> http://developer.android.com/reference/android/Manifest.permission.html 
> >> 
> >> Unfortunately I don't think there's a clear mapping from APIs to 
> >> permission usage anywhere right now, there is an old research project 
> >> here: 
> >> 
> >> http://www.android-permissions.org/ 
> >> 
> >> The goal of that project is to try to ascertain which permissions go 
> >> with which APIs, though at this point the document is fairly old 
> >> (android 2.2 I believe!) and the static analysis hasn't been redone 
> >> for Android 4. 
> >> 
> >> If you have specific questions you can probably find out on a case by 
> >> case basis.  (I believe the static analysis is actually simple enough 
> >> to do, we've recreated some of it in our work, though nothing 
> >> substantial enough to post publicly..) 
> >> 
> >> kris 
> >> 
> >> On Tue, Sep 11, 2012 at 11:33 PM, tomLinux  wrote: 
> >> > I don't know where I can find the definition or detailed description 
> of 
> >> > SMS_RECEIVED, which could be set as below: 
> >> > 
> >> >  
> >> > 
> >> > I searched it on website 
> >> > http://developer.android.com/reference/packages.html, but no result. 
> >> > Thanks! 
> >> > 
> >> > And also this one: 
> >> > 
> >> >  >> > android:name="android.permission.CHANGE_NETWORK_STATE"> 
> >> > 
> >> > This kind of usage is in AndroidManifest.xml file. And what confuses 
> me 
> >> > is 
> >> > that how do I know them? Where to find them? I can find them only 
> from 
> >> > other 
> >> > guys' projects? No official douments at all? 
> >> > 
> >> > -- 
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "Android Developers" group. 
> >> > To post to this group, send email to android-d...@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-d...@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] Recording High Frequencies ,can not working well in htc one x,nexus on .

2012-09-05 Thread tom tang
I need to record frequencies above 20kHz. My program can work well in 
almost devices,but it can not work well in htc one x,nexus on .
ts like the phone has a low pass filter that eliminates these  frequencies ,
Anybody knows how can I fixed this bug?? TKS!!

-- 
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] Using Acclerometer Data for Position - Removing Gravity

2012-09-05 Thread Tom
Hello!
I know that there has been much discussion about usefully 
interpreting acceleration data. The phone I'm testing on doesn't have a 
gyroscope, so can't do sensor fusion and can't output linear acceleration. 
As my (measuring) app would only need to measure acceleration in the 
y-direction, I wondered if I could use a gravity resultant vector to 
approximate y-movement. Therefore as a test I took the 3 accelerometer 
readings and combined them into a resultant vector, which i hoped would 
have magnitude 9.81. It doesn't. With the phone lying on the table it gives 
about 8.5, but this changes in different orientations. Ideally it would be 
at 9.81 whenever the device was stationary.
Am I missing something, or are the sensors just too noisy/not accurate 
enough? Should I just give up on this as nobody seems to have been able to 
make a device track position yet? I don't have a device to test linear 
acceleration on, but am guessing that it's still really not good enough.

Cheers,
Tom

-- 
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: Jelly Bean, READ_LOGS and 'Application Lockers'

2012-08-27 Thread Tom
I think my explanation of DeviceAdministrators was poor, I didn't mean to 
suggest that they can enable themselves. I dislike how DAs are 
un-installable until disabled but I do agree that it makes it more 
difficult to do malicious things this way. Pop-up permissions could also 
work, like in iOS (since that's where Android is headed). Why not prompt 
the user "this app wants to do X, allow/ disallow". I know it's a pain but 
it then it doesn't break existing apps the same way absolute removal does. 
It's the same way with Accessibility, it's a pain for users to have to 
enable but at least that way good apps can do things like monitor 
notifications while bad ones might seem suspicious and never get a chance 
to do real harm.

If that doesn't work I would have honestly suggested removing 
KILL_BACKGROUND_PROCESSES<http://developer.android.com/reference/android/Manifest.permission.html#KILL_BACKGROUND_PROCESSES>long
 before removing the ActivityManager APIs. Task-killers aside, I can't 
think of any good uses for that permission. By removing it, don't you also 
remove the ability for apps to kill Settings and prevent the preventing of 
un-installation?

Anyway, I think I'll start reading into OpenGL. Cross-platform, plus I 
could build live wallpapers with it (I think), which seems like a much 
safer development strategy than personalization apps that may or may not be 
permitted to exist in the future.

BTW, it took until my app broke to know about the 
SET_ACTIVITY_WATCHER<http://developer.android.com/reference/android/Manifest.permission.html#SET_ACTIVITY_WATCHER>thing.
 Is there some "official" blog or something I can read to know when 
and why large changes like this might occur in advance? I'm wondering about 
other permissions too, like 
SYSTEM_ALERT_WINDOW<http://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW>?
 
That could also be quite dangerous in the wrong hands, but also quite 
useful too (another one I use).

Tom

On Monday, August 27, 2012 7:09:50 AM UTC-4, Mark Murphy (a Commons Guy) 
wrote:
>
> On Sun, Aug 26, 2012 at 10:33 PM, Tom > 
> wrote: 
> > So it's really a situation of a few bad apples ruining the whole bunch. 
> I 
> > don't like them apples. 
>
> Yup. And to the extent we can figure out ways to better filter the bad 
> apples, without saying we cannot have any apples, the better off we 
> are. 
>
> Though, in retrospect, a better choice of fruit might be in order... :-) 
>
> > DeviceAdministrators are un-installable until 
> > they are disabled, and what's to stop an app from doing just that? 
>
> Apps cannot enable or disable device administrators automatically. The 
> device administrator path involves additional steps and warning 
> prompts, to make it less likely that someone will set one up 
> accidentally. So, for an app locker, it will make some sense why the 
> app might need this capability; for some hacked version of Angry 
> Birds, users will hopefully think twice. Again, it's just one idea for 
> how to filter bad apples without avoiding apples entirely. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in NYC: http://marakana.com/training/android/ 
>

-- 
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: Jelly Bean, READ_LOGS and 'Application Lockers'

2012-08-26 Thread Tom


> You presume that the polling option will be maintained in future 
> releases in its current incarnation. I would not make that assumption. 
>

Why should I not make *that *assumption? Those are *public *APIs in 
ActivityManager and the polling part could be done 100 different ways 
(Threads, Handler, TimerTasks, etc.) I guess I forget that Google has 
removed public APIs in the past so there is nothing stopping them from 
doing that again. 
 

> You mean, besides the security and privacy reasons? For example, I've 
> been personally reporting apps that use crap like this to prevent 
> themselves from being uninstalled. The ability for any app to find out 
> about the foreground, come to the foreground itself, then kill the 
> background process, has always been seriously scary, even though 
> knowledge of what is in the foreground has legit uses. 
>

So it's really a situation of a few bad apples ruining the whole bunch. I 
don't like them apples. 

Some users lose out, from lost (or less-efficient) functionality. Some 
> users gain, from lost (or weakened) malware. Google, in their 
> estimation, and given plans for upcoming releases, presumably believes 
> that what they have done is a net gain. You, of course, are welcome to 
> disagree. 
>
 
That's a fair point, but honestly at the current moment they just made 
malware less efficient. I have serious doubts that Google curbed an 
epidemic because of this.

You are welcome to contribute changes via the AOSP for a more 
> controlled means of providing this sort of app-locker capability, such 
> as via an extension to the device admin APIs. Of course, I wish that 
> this contribution process would be substantially easier (and more 
> likely to succeed) than it is. 
>
> You are welcome to add app-locker capabilities to your favorite ROM 
> mod, if the AOSP option is not working. 
>
> You are welcome to make a complete fork of Android, if you so choose. 
>
> You are also welcome to brainstorm other ways where app lockers can 
> exist while the same techniques cannot be used for nefarious purposes. 
> Personally, I think that's impossible -- the device admin approach at 
> least makes it a whole lot less likely that a user will accidentally 
> run into problems. But I have certainly been wrong before. 
>
> Google's decision to make the Play Store be non-curated (i.e., no 
> up-front manual inspection of apps, a la the iOS App Store and the 
> Amazon AppStore for Android) means that Google is going to have to 
> continue to tighten the screws to help prevent malware from doing the 
> "mal" part. Yes, these changes will result in some fallout with some 
> legit apps. And, one hopes that if they do remove the polling option 
> that they turn around and expose something else that enables the legit 
> apps while helping slow down the malware (e.g., making this 
> information available via device admin APIs). 
>

Unfortunately, from my perspective this only worsens fragmentation (not to 
beat a dead horse). At the end of the day, hackers will find a way around 
this (polling still works). DeviceAdministrators are un-installable until 
they are disabled, and what's to stop an app from doing just that? Once 
enabled, they listen for the opening of that Activity and force close it? I 
would have preferred something along the lines of notifying developers "we 
will remove this API X and replace it with API Y in the next version" 
similar to the READ_EXTERNAL_STORAGE permission. Too late for that.

I would like to contribute to AOSP but I really don't have the time. I 
honestly don't even know how, but I've heard from other developers that 
you'll get nowhere fast offering "enhancements". I just don't need to waste 
my time with that. Also, I develop applications even if they go a bit 
outside the SDK. AOSP is great but it powers a small percent of devices 
right now. Custom ROMs are FAR fewer. I don't target root users, I target 
the average user. My goal is to bring the personalization features of 
custom ROMs via applications to REAL Android devices. Unfortunately, I'm 
coming to terms with the fact that I either need to work a heck of a lot 
harder, or move on. To Google's pleasure I'm definitely leaning toward the 
later.

Tom
 

> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in NYC: http://marakana.com/training/android/ 
>

-- 
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: Jelly Bean, READ_LOGS and 'Application Lockers'

2012-08-26 Thread Tom
For what it's worth, there were a few interesting APIs that could 
accomplish this effect much better.

IActivityWatcher (no longer exists in Jelly Bean), available 1.5 - 4.0 and 
never required a permission
IProcessObserver (now guarded by the SET_ACTIVITY_WATCHER permission in 
Jelly Bean), available 3.0 - 4.0 and never required a permission
IActivityController (always required SET_ACTIVITY_WATCHER permission which 
is only available to system apps)

The last is perfect because you can return a boolean and the OS will allow/ 
deny an app from opening. Unlike "App Lockers" which simply kill the app 
AFTER they open, this stops it before then.

Unfortunately, as of Android 4.1 Jelly Bean NONE of these are available for 
use with third-party applications (unless of course on rooted devices and 
installed in /system/app). The removal of these was more upsetting to me 
because at the end of the day they provide NO security benefit. If I REALLY 
want to know when the top app changes I will just poll every 100ms. These 
simply made it more efficient for me, no need to poll!

I'm curious why those APIs are now enforced with a permission? I suppose 
there is the argument of "no good use," but honestly is there a "bad use?" 
If the platform doesn't provide these features in the same version it was 
removed, users lose out.

Oh well, what's done is done I'm just curious for some rationale. I guess 
Android is showing signs of maturation and going the way of iOS: becoming 
less hacker-friendly and a beautiful but closed garden. It was only a 
matter of time.

Tom

On Thursday, July 26, 2012 3:41:56 PM UTC-4, Bryan Ashby wrote:
>
> Now that READ_LOGS permission is not available to applications in Jelly 
> Bean (API 16), what are developers of "Application Locker" type apps to do? 
> These are populate applications among parents who would like to prevent 
> their kids from accessing various apps (generally password protected) but 
> the implementation of such applications has required a "hack" of reading 
> logcat to determine when/what Activity has been launched or brought into 
> focus.
>
> Surely Google is not saying "You cannot have these apps"? Is an official 
> API (perhaps in the Device Admin realm) planned? Is there a work around 
> besides polling the top level activity (not really reasonable).
>
> Google please advise!
>

-- 
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: backend for app?

2012-07-19 Thread Tom / HyperBees
Dave,

It really depends on what you want, there are some very good platforms like 
StackMob (my favourite) or Parse where you can set up your API in minutes.
If you are looking for a backend for a game, we're working on a solution 
for gaming. 

Cheers,

Tom

On Thursday, 12 July 2012 20:50:39 UTC+1, dave wrote:
>
> is there a better backend for apps?
> i know php and mysql. should i just go with what i know?
>

-- 
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: Google Earth 6.2 on Android emulator

2012-06-12 Thread Tom Davis
Log text is attached.

-- 
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=enD/dalvikvm(  376): GC_CONCURRENT freed 231K, 6% free 6692K/7047K, paused 
14ms+4ms
D/dalvikvm(   83): GC_EXPLICIT freed 207K, 13% free 9507K/10887K, paused 
11ms+11ms
D/dalvikvm(  199): GC_CONCURRENT freed 557K, 9% free 6809K/7431K, paused 
13ms+7ms
D/ExchangeService(  392): Received deviceId from Email app: android1339219053480
D/ExchangeService(  392): Reconciling accounts...
D/ExchangeService(  392): !!! EAS ExchangeService, onStartCommand, startingUp =
true, running = false
D/Eas Debug(  392): Logging:
D/dalvikvm(  199): GC_CONCURRENT freed 383K, 8% free 6881K/7431K, paused 5ms+6ms
I/GTalkService/c(  199): [AndroidEndpoint@1091402232] connect: acct=100, sta
te=CONNECTING
I/ActivityManager(   83): Start proc com.google.android.apps.maps:LocationFriend
Service for broadcast com.google.android.apps.maps/com.google.googlenav.friend.r
eporting.LocationReportingIntentReceiver: pid=513 uid=10024 gids={3003, 1015}
D/GpsLocationProvider(   83): NTP server returned: 1339452027175 (Mon Jun 11 22:
00:27 GMT+00:00 2012) reference: 181772 certainty: 74 system time offset: 1482
D/dalvikvm(  513): GC_CONCURRENT freed 176K, 4% free 6803K/7047K, paused 
10ms+5ms
D/dalvikvm(  513): GC_CONCURRENT freed 194K, 5% free 7111K/7431K, paused 
4ms+10ms
D/ConnectivityService(   83): handleInetConditionHoldEnd: net=0, condition=0, pu
blished condition=0
I/System.out(  513): VectorGlobalState: Server:https://mobilemaps.clients.google
.com/glm/mmap Type:3
D/dalvikvm(  234): GC_CONCURRENT freed 176K, 5% free 6813K/7111K, paused 5ms+4ms
I/ActivityManager(   83): START {flg=0x1004 cmp=com.google.android.gsf/.upda
te.SystemUpdateInstallDialog} from pid 199
I/ActivityManager(   83): START {flg=0x1004 cmp=com.google.android.gsf/.upda
te.SystemUpdateDownloadDialog} from pid 199
V/SystemUpdateService(  199): onPostExecute: false
W/ActivityManager(   83): Activity pause timeout for ActivityRecord{412208a0 com
.android.launcher/com.android.launcher2.Launcher}
I/Process (   83): Sending signal. PID: 176 SIG: 3
I/dalvikvm(  176): threadid=3: reacting to signal 3
I/dalvikvm(  176): Wrote stack traces to '/data/anr/traces.txt'
I/CalendarProvider2(  408): Sending notification intent: Intent { act=android.in
tent.action.PROVIDER_CHANGED dat=content://com.android.calendar }
W/ContentResolver(  408): Failed to get type for: content://com.android.calendar
 (Unknown URL content://com.android.calendar)
D/dalvikvm(  408): GC_CONCURRENT freed 318K, 7% free 6609K/7047K, paused 
5ms+39ms
W/NetworkManagementSocketTagger(   83): setKernelCountSet(10017, 1) failed with 
errno -2
D/dalvikvm(   83): GC_CONCURRENT freed 637K, 12% free 9633K/10887K, paused 
33ms+15ms
I/Process (   83): Sending signal. PID: 199 SIG: 3
I/dalvikvm(  199): threadid=3: reacting to signal 3
I/dalvikvm(  199): Wrote stack traces to '/data/anr/traces.txt'
I/Process (   83): Sending signal. PID: 176 SIG: 3
I/dalvikvm(  176): threadid=3: reacting to signal 3
I/dalvikvm(  176): Wrote stack traces to '/data/anr/traces.txt'
I//system/bin/fsck_msdos(   31): ** Phase 2 - Check Cluster Chains
I/Process (   83): Sending signal. PID: 176 SIG: 3
I/dalvikvm(  176): threadid=3: reacting to signal 3
I/dalvikvm(  176): Wrote stack traces to '/data/anr/traces.txt'
I//system/bin/fsck_msdos(   31): ** Phase 3 - Checking Directories
I//system/bin/fsck_msdos(   31): ** Phase 4 - Checking for Lost Files
I//system/bin/fsck_msdos(   31): 29 files, 4177626 free (2088813 clusters)
I/Process (   83): Sending signal. PID: 176 SIG: 3
I/dalvikvm(  176): threadid=3: reacting to signal 3
I/dalvikvm(  176): Wrote stack traces to '/data/anr/traces.txt'
I/Process (   83): Sending signal. PID: 176 SIG: 3
I/dalvikvm(  176): threadid=3: reacting to signal 3
I/dalvikvm(  176): Wrote stack traces to '/data/anr/traces.txt'
D/dalvikvm(  176): GC_CONCURRENT freed 295K, 6% free 7301K/7687K, paused 
10ms+32ms
D/Launcher.Model(  176): Reload apps on config change. curr_mcc:310 prevmcc:0
I/Process (   83): Sending signal. PID: 176 SIG: 3
I/dalvikvm(  176): threadid=3: reacting to signal 3
D/gralloc_goldfish(  176): Emulator without GPU emulation detected.
I/dalvikvm(  176): Wrote stack traces to '/data/anr/traces.txt'
I/Process (   83): Sending signal. PID: 176 SIG: 3
I/dalvikvm(  176): threadid=3: reacting to signal 3
I/dalvikvm(  176): Wrote stack traces to '/data/anr/traces.txt'
W/NetworkManagementSocketTagger(   83): setKernelCountSet(10017, 0) failed with 
errno -2
I/Vold(   31): Filesystem check completed OK
I/Vold(   31): Device /dev/block/vold/179:0, target /mnt/sdcard mounted @ /m
nt/secure/staging
D/Vold(   31): Volume

[android-developers] Google Earth 6.2 on Android emulator

2012-06-12 Thread Tom Davis
I am trying to run Earth 6.2 on the emulator with Android 4.0.3. I am not 
creating an Android app, I am not a Java programmer, and I do not use 
Eclipse. I have installed, uninstalled, and re-installed the APK from a 
variety of sources, and I have deleted and re-created the AVD many times. 
All installations were successful and yield the same result: 
"Unfortunately, Earth has stopped." Android 3.2 and 2.3.3 also fail to run 
Earth. I can usually catch a glimpse of the globe after the error dialog 
appears, and I think the emulator may be taunting me. I am grateful for 
suggestions.

-- 
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] Issue with SystemService addSystemService?

2012-04-16 Thread Tom
Out of curiosity I've tried creating a separate process with UID 0
(root) for rooted devices. This works our just fine, sort of like how
Input2.jar or the like are executed by the Android OS.

My issue is, in that process if I create a reference to an IBinder by
making my own AIDL and extending the stub than call addSystemService
with my own, unique name how can I communicate to this process? In
another process I call getSystemService and the reference to the
IBinder is obtained just fine, but my problem arises when I try to
call any of its methods. I get a StackOverflowError.

So my question is two-part:

- Is is possible to use SystemService without your process actually
being a Service using Android's APIs?
- If it is not possible, how can Parcelable objects be passed to and
from separate process so that an app can leverage private/ system APIs
using root?

Tom

-- 
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] Declaring fragments in XML

2012-04-15 Thread Tom Opgenorth
Hello all,

When adding a fragment to an  XML layout file, it seems that one can
use either the class attribute or the android:name attribute to
declare the fragment class, i.e. both  :
 or  seem to work.

Is there any difference between the two?  Which attribute should a
fellow prefer: class or android:name?


-- 
http://www.opgenorth.net

-- 
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] Recording AAC-ADTS in ICS

2012-04-11 Thread Tom Uhl
ICS is supposed to support encoding AAC-ADTS. I can use
setAudioEncoder(MediaRecorder.AudioEncoder.AAC) to set the audio
codec, but how do I tell the MediaRecorder to use the ADTS packaging
format? It seems like there needs to be a
"setOutputFormat(MediaRecorder.OutputFormat.ADTS_RAW)".

Tom

-- 
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: ProgressBar Dialog and Back button crashes pp

2012-04-11 Thread Tom
I think I have a problem in my "final Handler handler = new Handler" -
method.

My progressbar declaration is :
progDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);

But the handler dismis the dialog only when:

   int total = msg.getData().getInt("total");
   progDialog.setProgress(total);
   if (total <= 0){
dismissDialog(0);
   progThread.setState(ProgressbarThread.DONE);
   }

But I have no "total".
So I have no condition to call dismissDialog, or?
Does someone has an idea, how i can handle this?

On 10 Apr., 15:51, Justin Anderson  wrote:
> Use adb and logcat to find out the cause of the problem and then fix it.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
>
>
> On Mon, Apr 9, 2012 at 2:59 AM, Tom  wrote:
> > Hello,
>
> > I've implemented an example of showDialog in my SourceCode. This works
> > normally really good. But my  problem is, if you press the Back-Button
> > during the Progressbar dialog is showing.
> > The App crashes. If I write a Log in the Handler method ( "final
> > Handler handler = new Handler() ") I see the the App is finished but
> > the handler method still in a loop.
> > Does someone has a tip or a example what I can do?
>
> > Cheers
>
> > Tom
>
> > import android.app.AlertDialog;
> > import android.app.Dialog;
> > import android.app.ProgressDialog;
> > import android.content.Intent;
> > import android.content.SharedPreferences;
> > import android.database.Cursor;
> > import android.graphics.Bitmap;
> > import android.graphics.BitmapFactory;
> > import android.graphics.Canvas;
> > import android.graphics.Paint;
> > import android.graphics.Paint.Style;
> > import android.graphics.Point;
> > import android.graphics.RectF;
> > import android.location.Location;
> > import android.location.LocationListener;
> > import android.net.Uri;
> > import android.os.Bundle;
> > import android.os.Handler;
> > import android.os.Message;
> > import android.preference.PreferenceManager;
> > import android.util.Log;
> > import android.view.KeyEvent;
> > import android.view.Menu;
> > import android.view.MenuItem;
> > import android.view.Window;
> > import android.widget.Toast;
>
> > import com.google.android.maps.GeoPoint;
> > import com.google.android.maps.MapActivity;
> > import com.google.android.maps.MapController;
> > import com.google.android.maps.MapView;
> > import com.google.android.maps.MyLocationOverlay;
> > import com.google.android.maps.Overlay;
>
> > import de.tektom.geoformel.common.ProgressbarThread;
>
> > /**
> >  * Zeigt Google Maps in einer MapActivity an.
> >  * 
> >  * Im Emulator zum Beispiel die Koordinaten mit 
> >  * geo fix 7.1 51 300 
> >  * setzen um etwas zu sehen.
> >  *
> >  * @author David Müller, Arno Becker, 2010 visionera gmbh
> >  */
> > public class KarteAnzeigenActivity extends MapActivity implements
> > LocationListener {
> >        private MapController map_Controller;
> >        private MapView map_View;
> >        private MyLocationOverlay mMyLocationOverlay ;
> >        private GeoKontaktOverlay mMapViewOverlay;
> >        private ProgressbarThread progThread;
> >        private ProgressDialog progDialog;
>
> >        private float mlatitude;
> >        private float mlongitude;
> >         /** Kuerzel fuers Logging. */
> >         private static final String TAG =
> > KarteAnzeigenActivity.class.getSimpleName();
>
> >         @Override
> >          public void onCreate(Bundle savedInstanceState) {
> >                 try
> >                 {
> >                 requestWindowFeature(Window.FEATURE_LEFT_ICON);
> >                         super.onCreate(savedInstanceState);
> >                         setContentView(R.layout.mapkarte);
>
> > setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,R.drawable.icon);
>
> >                                 showDialog(0);
>
> >                                 if(getIntent().hasExtra("latitude") ==
> > true)
> >                                        mlatitude =
> > getIntent().getExtras().getFloat("latitude");
> >                                 if(getIntent().hasExtra("longitude") ==
> > true)
> >                                        mlongitude =
> > getIntent().getExtras().getFloat("longitude");
>
> >                     

[android-developers] ProgressBar Dialog and Back button crashes pp

2012-04-10 Thread Tom
Hello,

I've implemented an example of showDialog in my SourceCode. This works
normally really good. But my  problem is, if you press the Back-Button
during the Progressbar dialog is showing.
The App crashes. If I write a Log in the Handler method ( "final
Handler handler = new Handler() ") I see the the App is finished but
the handler method still in a loop.
Does someone has a tip or a example what I can do?

Cheers

Tom

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Point;
import android.graphics.RectF;
import android.location.Location;
import android.location.LocationListener;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.widget.Toast;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.MyLocationOverlay;
import com.google.android.maps.Overlay;

import de.tektom.geoformel.common.ProgressbarThread;



/**
 * Zeigt Google Maps in einer MapActivity an.
 * 
 * Im Emulator zum Beispiel die Koordinaten mit 
 * geo fix 7.1 51 300 
 * setzen um etwas zu sehen.
 *
 * @author David Müller, Arno Becker, 2010 visionera gmbh
 */
public class KarteAnzeigenActivity extends MapActivity implements
LocationListener {
private MapController map_Controller;
private MapView map_View;
private MyLocationOverlay mMyLocationOverlay ;
private GeoKontaktOverlay mMapViewOverlay;
private ProgressbarThread progThread;
private ProgressDialog progDialog;

private float mlatitude;
private float mlongitude;
 /** Kuerzel fuers Logging. */
 private static final String TAG =
KarteAnzeigenActivity.class.getSimpleName();


 @Override
  public void onCreate(Bundle savedInstanceState) {
 try
 {
 requestWindowFeature(Window.FEATURE_LEFT_ICON);
 super.onCreate(savedInstanceState);
 setContentView(R.layout.mapkarte);

setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,R.drawable.icon);

 showDialog(0);

 if(getIntent().hasExtra("latitude") == true)
mlatitude = 
getIntent().getExtras().getFloat("latitude");
 if(getIntent().hasExtra("longitude") == true)
mlongitude = 
getIntent().getExtras().getFloat("longitude");


 initMapView();

 // fuege der MapView das Overlay fuer die
 // empfangene Position hinzu
 initGCFormelOverlay();

 // Zeige die eigene Position mit Hilfe
 // des Overlays aus der Google Api
 initMyLocationOverlay();
// create an overlay that shows our current location

 }
 catch (Exception ex)
 {
 Log.i(TAG, ex.getMessage());
 Toast.makeText(this,"UI problem in " + TAG + "-" +
ex.getMessage(),Toast.LENGTH_LONG).show();

 }
  }

public void onLocationChanged(Location location) {
mlatitude = (int) (location.getLatitude());
mlongitude = (int) (location.getLongitude());
}

public void onStatusChanged(String provider, int status, Bundle
extras) {
// TODO Auto-generated method stub

}

public void onProviderEnabled(String provider) {
Toast.makeText(this, "Enabled new provider " + provider,
Toast.LENGTH_SHORT).show();
}

public void onProviderDisabled(String provider) {
Toast.makeText(this, "Disenabled provider " + provider,
Toast.LENGTH_SHORT).show();
}



  @Override
  protected boolean isLocationDisplayed() {
r

[android-developers] App crashs when cancelling progresbar

2012-04-10 Thread Tom
Hi,

if I start my app I load GoogleMaps. During loading the map I'm
showing a progressbar. If the loading is complete everything works
fine but if I'm pressing the Back-Button during loading file the app
crashes. Seems to be a memory problem. Could someone help me?

Tom

public class KarteAnzeigenActivity extends MapActivity implements
LocationListener {
private MapController map_Controller;
private MapView map_View;
private MyLocationOverlay mMyLocationOverlay ;
private GeoKontaktOverlay mMapViewOverlay;
private Progressbar progThread;
private ProgressDialog progDialog;

private float mlatitude;
private float mlongitude;
 /** Kuerzel fuers Logging. */
 private static final String TAG =
KarteAnzeigenActivity.class.getSimpleName();


 @Override
  public void onCreate(Bundle savedInstanceState) {
 try
 {
 requestWindowFeature(Window.FEATURE_LEFT_ICON);
 super.onCreate(savedInstanceState);
 setContentView(R.layout.mapkarte);

setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,R.drawable.icon);

 showDialog(0);

 if(getIntent().hasExtra("latitude") == true)
mlatitude = 
getIntent().getExtras().getFloat("latitude");
 if(getIntent().hasExtra("longitude") == true)
mlongitude = 
getIntent().getExtras().getFloat("longitude");


 initMapView();

 // fuege der MapView das Overlay fuer die
 // empfangene Position hinzu
 initGCFormelOverlay();

 // Zeige die eigene Position mit Hilfe
 // des Overlays aus der Google Api
 initMyLocationOverlay();
// create an overlay that shows our current location

 }
 catch (Exception ex)
 {
 Log.i(TAG, ex.getMessage());
 Toast.makeText(this,"UI problem in " + TAG + "-" +
ex.getMessage(),Toast.LENGTH_LONG).show();

 }
  }


   // Method to create a progress bar dialog of either spinner or
horizontal type
   @Override
   protected Dialog onCreateDialog(int id) {
switch(id) {
   case 0:  // Spinner
   progDialog = new ProgressDialog(this);
 
progDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
   progDialog.setMessage("Loading...");
   progThread = new Progressbar(handler);
   progThread.start();
   return progDialog;
default:
   return null;
   }
   }

   // Handler on the main (UI) thread that will receive messages
from the
   // second thread and update the progress.

   final Handler handler = new Handler() {
   public void handleMessage(Message msg) {
   // Get the current value of the variable total from the
message data
   // and update the progress bar.
   if(progDialog != null)
   {
   int total = msg.getData().getInt("total");
   progDialog.setProgress(total);
   if (total <= 0){
   progDialog.dismiss();
   progThread.setState(Progressbar.DONE);
   }
   }
   }



  @Override
  protected void onDestroy() {
Log.d(TAG, "onDestroy() aufgerufen...");

super.onDestroy();
if( this.progThread != null)
this.progThread.destroy();
if (this.progDialog != null) {
progDialog.dismiss();
}
  }

-- 
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] Please comment on my app's design...

2012-03-06 Thread Tom
On Tuesday, March 6, 2012 2:10:46 PM UTC-5, Mark Murphy (a Commons Guy) 
wrote:
>
> On Tue, Mar 6, 2012 at 2:01 PM, Tom 
> > On Tuesday, March 6, 2012 1:50:42 PM UTC-5, Mark Murphy (a Commons Guy)
> > wrote:
> >>
> >> Oh, I understood that completely. Again, your statement that "this
> >> seems to be the 'normal' thing to do" is highly debatable. It's not
> >> that you *can't* do it, it's that you don't gain a lot while losing
> >> some amount of flexibility. In truth, the flexibility tends to be more
> >> of an issue with library projects than normal app projects.
> >
> > I assume you mean this (losing some amount of flexibility) in comparison 
> to
> > putting that logic into the service.
>
> Actually, at that point in the reply, I meant in comparison to a
> simple singleton:
>
> "A custom Application is frequently indistinguishable from a simple
> singleton, and there can only be one Application class."
>
> All else being equal, given a choice between "there can only be one"
> and "you can have as many as you need", choose the latter, because
> there may be some reason later on where you have no choice but to
> employ the "there can only be one" solution for some other problem.
>
> At the end of the day, an Application or a singleton is simply a hunk
> of heap space. A service has a bit of magic: it waves a flag in front
> of Android, saying "Yoo, hoo! Mr. OS! We're doing something here, and
> we'd prefer it if you didn't nuke our process! M'kay?". That
> flag-waving works for a bit, though not indefinitely. Random hunks of
> heap space wave no such flags. Hence, if you have a process you would
> like to have hang around for a few minutes, you need a service in
> there someplace.
>
> And, of course, both an Application *and* a singleton suffer from the
> same problem: they are prone to causing memory leaks, which could
> eventually lead to an OutOfMemoryError, if you run out of heap space.
>
Okay, I think I will use a singleton, which will be managed by the service. 
 The service itself will be minimal - in case I introduce the option for it 
to be running all the time - but will instantiate the singleton as 
necessary.  The app and the appWidget will communicate with the service via 
intents and bindings.

Thanks again,
Tom

 

> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
>

-- 
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] Please comment on my app's design...

2012-03-06 Thread Tom
Yikes, I'm quite surprised to see that my Google e-mail (which is my 
personal e-mail) gets published when someone hits reply to my post.   
Doesn't look like there is any way around this (other then switching to a 
different google account).  Also, I just searched for Google Groups Help 
Groups to get some advice on this and found that those have all been shut 
down.  I'm rather puzzled by both of these moves - hope Groups isn't one of 
the services that Google plans to shut down.

-- 
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] Please comment on my app's design...

2012-03-06 Thread Tom
On Tuesday, March 6, 2012 1:50:42 PM UTC-5, Mark Murphy (a Commons Guy) 
wrote:
>
> Oh, I understood that completely. Again, your statement that "this
> seems to be the 'normal' thing to do" is highly debatable. It's not
> that you *can't* do it, it's that you don't gain a lot while losing
> some amount of flexibility. In truth, the flexibility tends to be more
> of an issue with library projects than normal app projects.
>
I assume you mean this (losing some amount of flexibility) in comparison to 
putting that logic into the service.
Tom
 

> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
>

-- 
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] Please comment on my app's design...

2012-03-06 Thread Tom
On Tuesday, March 6, 2012 12:48:04 PM UTC-5, Mark Murphy (a Commons Guy) 
wrote:
>
> On Tue, Mar 6, 2012 at 12:35 PM, Tom wrote:
> > The service exists to receive screen state broadcasts even when the app
> > isn't running (receivers for screen state must be in code -  they can't 
> be
> > in the app's manifest)
>
> Everlasting services, like you are trying to achieve, are an
> anti-pattern in Android. While you are correct that it is technically
> required to achieve your ends, IMHO that means your ends are flawed.
> What is magic about the screen being on or off?
>
> Android and/or the user will nuke your service eventually; depending
> on everlasting services is risky.
>
When the screen is turned on the device needs a network connection.  If the 
device doesn't have a connection then my app remotely sets up tethering.

I acknowledge your concerns but I thought this could be a useful feature, 
so I figured I might allow this as an option (off, by default) at some 
point in the app's future.

What really bothered me was the idea that providing this feature would 
require me to list the BOOT_COMPLETED broadcast receiver in my manifest 
even when the option was not enabled.  I really needed a solution for that 
before I could add this option - so thank you for telling me how to resolve 
that  problem (via setComponentEnabledSetting).
 

> > At
> > system startup it might exit immediately depending on user preferences.
>
> Consider disabling your BOOT_COMPLETED BroadcastReceiver if you will
> not be using it, via PackageManager and setComponentEnabledSetting().
> This will speed up the boot process by not calling your logic if you
> do not intend to do anything.
>
> > For example, even if my app
> > verifies that the service is running it won't know whether it is running 
> in
> > the same or in a different process.
>
> They better be in the same process. Using multiple processes
> simultaneously is another anti-pattern, except in fairly specific
> situations, and you have to go out of your way to cause them to be
> separate processes.
>
I wouldn't use multiple processes on purpose - I thought that I had no 
control over that and it would happen if the service was started 
independently of the app.  From what you are saying I take it that I was 
wrong: if my service is already running when the user launches my app the 
system will launch the app into the same process as the service.
 

> > I'm putting it the state & logic in my Application class both because 
> this
> > seems to be the 'normal' thing to do
>
> That's highly debatable. A custom Application is frequently
> indistinguishable from a simple singleton, and there can only be one
> Application class.
>
I mean that my state & logic would be in an Application derived class, 
declared in my manifest, as described in this popular post on SO:
http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables
 

> > If the service or appWidget become active they will broadcast custom 
> intents
> > to signal the application (and launch it if necessary).  The tricky part 
> is
> > that I need to ensure that the Application remains in memory until it has
> > completed the action requested by the service or appWidget.  It will
> > probably take 10-30 seconds for the Application to process a request -
> > mostly waiting on intents or on network communications.
>
> Any logic you want to run should be in the service. The service is the
> marker to say "yo, I'm doing something here". As a marker, it works
> for a while, but not indefinitely.
>
> > It is my understanding that an application with no activities is a prime
> > candidate to be killed by the system
>
> Correct.
>
> > so I will bind it to the service to
> > keep it from being killed.  When it finishes the requested processing it
> > will unbind so the system can kill it.
>
> It would be simpler for the logic that you want to have running in the
> background simply be in the service.
>
Okay, I guess that is what I wanted to know.  I've started the app with 
everything in the Application derived class and that has worked well with 
the activities and fragments that I've created so far, but I was worried 
that the need to execute my logic independent of the app's user interface 
might dictate a different design.  I'm glad I asked before going much 
further.

Thank's for your advice Mark - much appreciated.
Tom
 

> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/t

[android-developers] Please comment on my app's design...

2012-03-06 Thread Tom
I'm new to Android development and I'm uncertain of the design I've planned 
for my app...

I want to have an appWidget, a service, and a normal app with a few 
activities and fragments, all of which depend on a single instance of state 
& logic.

The service exists to receive screen state broadcasts even when the app 
isn't running (receivers for screen state must be in code -  they can't be 
in the app's manifest), and to assist the appWidget.   The service can be 
started from the app, from the appWidget, or by the system at startup.  At 
system startup it might exit immediately depending on user preferences.  

I note that it is possible to have direct memory communication between 
these components, but I guess this isn't recommended.  For example, even if 
my app verifies that the service is running it won't know whether it is 
running in the same or in a different process.

Here's an example of interactions between the components.  When the screen 
is turned on, the service starts by turning on the device's wifi adapter. 
 If the appWidget is visible it will need to reflect this (it has a status 
display).  If the user now launches the app it must know about and show the 
progress of the actions started by the service.  So, the components must be 
fairly independent (any or all could be running), but tightly coupled 
around a single instance of state & logic which I have decided to put into 
my Application derived class.

I'm putting it the state & logic in my Application class both because this 
seems to be the 'normal' thing to do, and because it has its most 
complicated interactions with the activities (versus the appWidget or 
service).  I considered putting the main state & logic into the service, 
but I think this would result in complicated interactions between the 
activities and the service.   As well, I want to keep the service as small 
as possible in case the user chooses to have it running all the time.

If the service or appWidget become active they will broadcast custom 
intents to signal the application (and launch it if necessary).  The tricky 
part is that I need to ensure that the Application remains in memory until 
it has completed the action requested by the service or appWidget.  It will 
probably take 10-30 seconds for the Application to process a request - 
mostly waiting on intents or on network communications.

It is my understanding that an application with no activities is a prime 
candidate to be killed by the system, so I will bind it to the service to 
keep it from being killed.  When it finishes the requested processing it 
will unbind so the system can kill it.  I might need to look into some 
other tricks to ensure that the app doesn't get killed while processing 
requests.

Does this design make sense?  Thanks for any suggestions.

-- 
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] unable to respond to intent in an activity

2012-03-04 Thread Tom Ratajczak
On Sun, Mar 4, 2012 at 10:19 PM, Mark Murphy wrote:

> On Sun, Mar 4, 2012 at 4:13 PM, Tom Ratajczak 
> wrote:
> > I see the difference now, so this explains why the battery power intent
> was
> > received. But I still don't know how to receive the intent that was sent
> > with startActivity. Thanks for your help.
>
> Step #1: Implement an Activity.
>
> Step #2: Set up the  in the manifest to respond to the
> Intent you want. E.g.,
>
>  
>
>
>
>  
>
> Step #3: Have a beer.
>

Wait with the beer for a moment:) This is what I am already doing and the
activity is selected as one of many, but how do i process the geo:45.0,34.0
that the originating activity sends with startActivity(). This is the
missing part here. Activity is selected based on filters but how does it
know what number to dial.


> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> 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] unable to respond to intent in an activity

2012-03-04 Thread Tom Ratajczak
On Sun, Mar 4, 2012 at 8:18 PM, Mark Murphy  wrote:

> On Sun, Mar 4, 2012 at 10:45 AM, Tom Ratajczak 
> wrote:
> > My application is to respond to the following intent
> >
> >Intent i = new Intent(Intent.ACTION_VIEW,  Uri.parse("geo:
> > 45.0,34.0"));
> >
> > Filtering in the manifest is setup correctly and user is presented
> > with choice, but once the choice is made the activity does not respond
> > in
> >
> >receiver = new BroadcastReceiver() {
> >public void onReceive(Context context, Intent intent) {
> >Log.d("intent", "Received intent " + intent);
> >}
> >};
> >
> > even though it was presumably set up correctly
> >
> >IntentFilter intentFilter = new IntentFilter();
> >intentFilter.addDataScheme("geo");
> >intentFilter.addAction(Intent.ACTION_VIEW);
> >registerReceiver(receiver, intentFilter);
> >
> > The same setup does respond to battery power change but for some
> > reason fails here. Any help is greatly appreciated.
>
> ACTION_VIEW is an activity action. It is used with startActivity(). It
> is not used with sendBroadcast().


I see the difference now, so this explains why the battery power intent was
received. But I still don't know how to receive the intent that was sent
with startActivity. Thanks for your 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] unable to respond to intent in an activity

2012-03-04 Thread Tom Ratajczak
My application is to respond to the following intent

   Intent i = new Intent(Intent.ACTION_VIEW,  Uri.parse("geo:
45.0,34.0"));

Filtering in the manifest is setup correctly and user is presented
with choice, but once the choice is made the activity does not respond
in

   receiver = new BroadcastReceiver() {
   public void onReceive(Context context, Intent intent) {
   Log.d("intent", "Received intent " + intent);
   }
   };

even though it was presumably set up correctly

   IntentFilter intentFilter = new IntentFilter();
   intentFilter.addDataScheme("geo");
   intentFilter.addAction(Intent.ACTION_VIEW);
   registerReceiver(receiver, intentFilter);

The same setup does respond to battery power change but for some
reason fails here. Any help is greatly appreciated.

Regards, Tom

-- 
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] keyboard dismissing issue

2012-02-16 Thread Tom Wang
Dear,

I add this parameter in manifest but it 's still can't work.
By the way,i develope on ICS 4.0.3.Thank you.

2012/2/16 Ratheesh Valamchuzhy 

> add
>  android:windowSoftInputMode="stateHidden" to the activity tag in manifest
> file
>
> --
> 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] keyboard dismissing issue

2012-02-16 Thread Tom Wang
I mean when i use  requestWindowFeature(Window.FEATURE_NO_TITLE)  this
method,the actionbar is disappear:(
i think android:windowSoftInputMode="stateHidden" this parameter is not
solution for this questition.

2012/2/16 Ratheesh Valamchuzhy 

> add
>  android:windowSoftInputMode="stateHidden" to the activity tag in manifest
> file
>
> --
> 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

  1   2   3   4   5   >