[android-developers] Android efficiency for huge amount of SQLlite DB records?

2012-08-10 Thread chainz roid
Hello

I'm working with android ICS, and i planned to use  SQLlite as my app back 
end. my SQLlite DB have more than 1lakhs  record in table.
Android will support this much huge amount of records.?, its efficient to 
process or it will lag .?

Thanks in advance. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Alert Dialog Box -Wifi

2012-08-10 Thread TreKing
On Fri, Aug 10, 2012 at 12:53 AM, Meena Rengarajan
meenasoft...@gmail.comwrote:

 When i click Yes button , it automatically should enable WiFi by
 progeammatically and if i click No then aopplication must be closed. What
 should i do here . Please can anyone help me?


http://lmgtfy.com/?q=android+turn+on+wifi+programatically

http://lmgtfy.com/?q=android+close+application

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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] Can a folder be created using instrumentation context instead of target context?

2012-08-10 Thread Dianne Hackborn
Not generally, when the instrumentation is running in the target process,
it is running under that uid.  You could do something like put a service or
content provider (or receiver) in your instrumentation apk that you can
interact with from the instrumentation code running in the app being tested.

On Thu, Aug 9, 2012 at 11:15 AM, dnkoutso dnkou...@gmail.com wrote:

 I am writing instrumentation tests for my app and want to create a
 temporary folder to store some files. However, I dont want to do that in
 the targetContext but rather in the test context.

 In other words:
 File dir = getInstrumentation().*getTargetContext()*.getDir(directory,
 MODE_WORLD_READABLE);  // Works, but this creates the folder in the target
 app.

 File dir = getInstrumentation().*getContext()*.getDir(directory,
 MODE_WORLD_READABLE);  // Does not work, the exists() returns false.

 Thoughts?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: All Android in app subscriptions were mysteriously automatically canceled

2012-08-10 Thread fibercode
Trevor,

Thank you for your prompt response and the explanation. At least now we 
know that we are not living in some alternate reality and stopped pinching 
ourselves in disbelief.

But, we still have all of our customers subscriptions canceled. None of 
those were restored back to active. Now when we query the Google API server 
to see if the subscriptions are still active we get false.

For example:
We queried Google order number: 574480490664998 and got the following JSON 
response:

{
 kind: androidpublisher#subscriptionPurchase,
 initiationTimestampMsec: 1342064134000,
 validUntilTimestampMsec: 1344749703290,
 autoRenewing: false
}

That order should have been restored to autoRenewing: true!

Please let me know if we are missing something?

Our customers have not had any termination of service, since our servers 
are correctly keeping track of the expiration date of their subscriptions.
But that is not the point. The main thing is that they would have to now 
manually go and purchase the same subscription they did subscribe to before 
(the one they did not unsubscribe from).
I think that is a horrible way to treat them.

I do not want to sound harsh, but we are trying to run a business not 
play high school games.

Any help is greatly appreciated!

Thank you.


On Thursday, 9 August 2012 21:29:30 UTC-4, Trevor Johns wrote:

 fibercode,
 A number of in-app billing subscriptions were erroneously marked as 
 canceled this morning due to an issue on our servers. Most of the affected 
 subscriptions have already been restored by our engineers, and users did 
 not loose access to content during this time. We will be sending a followup 
 email soon to those affected explaining what happened.

 There were a small minority of users who's subscription auto-renewal dates 
 occurred before we we were able to restore the subscription, and 
 accordingly were not renewed. These users can choose to re-subscribe using 
 the standard in-app billing mechanism within your app (they will appear as 
 a standard expired subscription to your app).

 The HTTP Android Developer API would have still returned the correct 
 expiration time for all subscriptions, so users continued to receive all 
 content they had paid for.

 We sincerely apologize the inconvenience this has caused, and our team 
 will be taking steps to ensure similar incidents do not occur in the future.

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 12:03:23 PM UTC-7, fibercode wrote:

 One of our Android applications has supported in app billing for a while 
 now.

 A little over two weeks ago we published an update that supports the 
 newly released by Google in app subscriptions.

 Everything was fine until this morning when mysteriously all the 
 subscriptions purchased by our customers were canceled automatically! 
 We got up this morning, checked our emails and our test accounts had the 
 subscriptions canceled even though we had not done that. This obviously 
 raised a lot of red flags so we started checking our customers' 
 subscriptions and it seems that they were all canceled !!! We were even 
 contacted by several of our customers who thought that we canceled their 
 subscriptions.

 The new subscription purchases done today (August 9th) are not being 
 canceled but we can no longer trust how long that will last.

 The only conclusion we could come to is that Google canceled the 
 subscriptions (either on purpose or accidentally).
 Most likely this looks like a bug on the Google side, but we need some 
 help to narrow this down.

 Thank you.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Non sticky service gets recreated (indefinetly?)

2012-08-10 Thread Johan Appelgren
Still occupies some amount of memory though, and the service's onCreate 
might not be cheap. 

Anyways, I guess this is one of those little undocumented things you just 
have to learn. Do not rely on START_NOT_STICKY if you both start and bind 
to a service if you don't want the service to stay around forever as a 
cached process after you've unbound it. 

On Thursday, August 9, 2012 7:15:09 PM UTC+2, Dianne Hackborn wrote:

 Binding to a service can only make that service's process as important as 
 the process of the client binding to it.  If the client process is in the 
 background, it can't bring the service up beyond the background, so it 
 doesn't count as a running process but a cached process.

 On Thu, Aug 9, 2012 at 3:09 AM, Johan Appelgren 
 johan.a...@gmail.comjavascript:
  wrote:

 Ok, thanks. But shouldn't it (non-sticky service with no active 
 connections, nothing is bound to it) show up in the Running Services view 
 when it has been restarted? Or is that only for sticky services?


 On Thursday, August 9, 2012 8:35:50 AM UTC+2, Dianne Hackborn wrote:

 Binding and starting are completely orthogonal things.  You bind to a 
 service to establish a persistent connection to it.  You start a service to 
 have it run for some undefined amount of time separately from the caller. 
  A service needs to remain created as long as it is being asked to do 
 either of these things.

 If you don't want it to stay created, either don't bind to it when you 
 don't want it around, or don't use BIND_AUTO_CREATE so you aren't forcing 
 it to remain created while bound to it.

 On Wed, Aug 8, 2012 at 10:46 PM, Johan Appelgren 
 johan.a...@gmail.comwrote:

 So START_NOT_STICKY has no effect once I've bound to it even if I 
 unbind? I must explicitly use stopService if the service has ever been 
 bound to even if there are no more connection? 


 On Thursday, August 9, 2012 2:54:41 AM UTC+2, Dianne Hackborn wrote:

 If you bind to it with BIND_AUTO_CREATE, you are saying you want the 
 service to be created as long as you are bound to it.

 From the documentation:

 A service can be both started and have connections bound to it. In 
 such a case, the system will keep the service running as long as either 
 it 
 is started or there are one or more connections to it with the 
 Context.BIND_AUTO_CREATE flag.

 http://developer.android.com/**r**eference/android/app/Service.**h**
 tml http://developer.android.com/reference/android/app/Service.html

 On Wed, Aug 8, 2012 at 1:52 PM, Johan Appelgren 
 johan.a...@gmail.comwrote:

 If I have a simple service that returns START_NOT_STICKY in 
 onStartCommand and I both start it explicitly (startService) and bind to 
 it 
 (bindService) in onCreate of my activity the service gets recreated 
 after 
 it has been killed over and over again. I unbind the service in onPause 
 of 
 my activity. 

 Logcat shows that the service is scheduled for restart and is 
 restarted over and over again. The service is not shown as running after 
 it's been recreated in Settings - Apps - Running. 

 08-08 21:57:25.081 D/ExampleActivity(23715): onPause
 08-08 22:11:44.480 W/ActivityManager(  306): Scheduling restart of 
 crashed service com.example.service/.**MainServi**ce in 5000 ms
  08-08 22:11:49.519 I/ActivityManager(  306): Start proc 
 com.example.strangeservice for service com.example.service/.**
 MainServi**ce
 08-08 22:11:49.597 D/ExampleService(24079): onCreate
  08-08 22:27:38.551 I/ActivityManager(  306): No longer want 
 com.example.service (pid 24079): hidden #16
 08-08 22:27:38.574 W/ActivityManager(  306): Scheduling restart of 
 crashed service com.example.service/.**MainServi**ce in 5000ms
 08-08 22:27:43.629 I/ActivityManager(  306): Start proc 
 com.example.strangeservice for service com.example.service/.**
 MainServi**ce: pid=24401 uid=10101 gids={1028}
 08-08 22:27:43.785 D/ExampleService(24401): onCreate
 08-08 22:49:59.871 I/ActivityManager(  306): Process 
 com.example.service (pid 24401) has died.
 08-08 22:49:59.871 W/ActivityManager(  306): Scheduling restart of 
 crashed service com.example.service/.**MainServi**ce in 5000ms
 08-08 22:50:04.934 I/ActivityManager(  306): Start proc 
 com.example.strangeservice for service com.example.service/.**
 MainServi**ce: pid=24857 uid=10101 gids={1028}
 08-08 22:50:05.051 D/ExampleService(24857): onCreate

 I thought START_NOT_STICKY meant that once it gets killed by Android 
 it wont be restarted unless I explicitly start it again. Or does binding 
 to 
 a service override that and make the service sticky?

 I've been testing this on a Galaxy Nexus with stock Android 4.1.1.

  -- 
 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+**unsubscribe**@googlegroups.com
 For more options, visit this group at
 

Re: [android-developers] Alert Dialog Box

2012-08-10 Thread dEEPESH PPM
Hi,


On Fri, Aug 10, 2012 at 11:18 AM, Meena Rengarajan
meenasoft...@gmail.comwrote:

 How to Enable Wifi automatically in Android 2.2 in an alert box ? If i
 click Yes button then it should be enable and if i click no then
 application must be closed. Can anyone tell me this how should i do ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android efficiency for huge amount of SQLlite DB records?

2012-08-10 Thread Zsolt Vasvari
Please use Roman numbers.

The limit appears to be related to the dataset returned by query.  Once it 
reaches a certain size (don't remember what it is), moving the cursor 
becomes prohibitively slow.





On Friday, August 10, 2012 2:09:29 PM UTC+8, chainz roid wrote:

 Hello

 I'm working with android ICS, and i planned to use  SQLlite as my app back 
 end. my SQLlite DB have more than 1lakhs  record in table.
 Android will support this much huge amount of records.?, its efficient to 
 process or it will lag .?

 Thanks in advance. 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to use apache commons in my android application

2012-08-10 Thread Zsolt Vasvari


 If you want some JAR out of the vast set of Apache Commons projects, you
 are welcome to try it: put it in libs/, tell Eclipse about it, and hope
 it works.


It does --- I use a few Apache Commons libraries in my app.


-- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 Android Training in Germany, 18-22 January 2010: http://bignerdranch.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

Re: [android-developers] Alert Dialog Box

2012-08-10 Thread dEEPESH PPM
Hi,
   Try this code;
In yes button click
 WifiManager wifiManager =
(WifiManager)this.context.getSystemService(Context.WIFI_SERVICE);
  wifiManager.setWifiEnabled(status); status =true or false
Regards


On Fri, Aug 10, 2012 at 11:18 AM, Meena Rengarajan
meenasoft...@gmail.com wrote:

 How to Enable Wifi automatically in Android 2.2 in an alert box ? If i click 
 Yes button then it should be enable and if i click no then application must 
 be closed. Can anyone tell me this how should i do ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: install font with apk

2012-08-10 Thread andu

Oh, After a long time,  I have seen Ethiopic font which come with Android 
4.0 OS. I am very much happy to see this.

Andu

On Monday, February 7, 2011 5:08:22 PM UTC+3, Brill Pappin wrote:

 I just last night came across a good article on the subject. 
 http://mobile.tutsplus.com/tutorials/android/customize-android-fonts/ 

 In my case it was of limited value because I wanted a Style to load 
 that font, which I haven't figured out how to do (but also havent put 
 enough time into figuring out. 

 - Brill Pappin 

 On Feb 7, 3:01 am, andu alemf...@yahoo.com wrote: 
  How are you all? 
  
  I have tried to develop soft-keyboard for Android phone. The soft- 
  keyboard is for Ethiopic script (Amharic language, Ethiopian 
  language). The keyboard works well both in emulator and actual device. 
  But I would like to keep the Amharic font file within the apk file so 
  that the font will be installed together with the soft-keyboard apk 
  file. 
  
  Is there any means that I can install the font file together with the 
  apk file? 
  
  Thank you in advance 
  
  andu

-- 
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 set last visible item fully visible in listview

2012-08-10 Thread 王志鹏
Thanks for the reply!

The height of each item in the listview can change, i.e., after one button
is clicked.

And when this happens, we need the last item on screen fully visible.

Thanks for the reply again!

On Fri, Aug 10, 2012 at 1:53 PM, Justin Anderson magouyaw...@gmail.comwrote:

 What?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, Aug 9, 2012 at 3:55 AM, 王志鹏 wangzh...@gmail.com wrote:

 Dear everyone,


 In our application, we have a listview, and the height of each item can
 change.

 My question is, is it possible to make the last visible item on screen
 completely visible?

 Best wishes,

 Zhipeng Wang

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android efficiency for huge amount of SQLlite DB records?

2012-08-10 Thread chainz roid
Thanks Mr.zsolt Vasvari. your answer help me to think new way to develop my 
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

[android-developers] Service for external server communication

2012-08-10 Thread chainz roid
Hello

I'm working with android ICS AOSP. i want to create a simple service for 
check the server whether its alive or not. I need help for following process


   1. Create simple service  for check the server whether its alive or not.
   2. I've to add in AOSP ( Frameworks/base/services/java/com/android/) 
   How to add the service *.JAVA file into this and how to invoke the file.
   3. I need to call the service from different application for check the 
   server whether its alive or not reachable.

 What are the steps i've to do for it, I'm new to android service.

*Note: I don't want to create the service in application, i want to create 
and use the service like android service ( Ex; vibrator service, mount 
service, battery service)*

 Can any one help me to do this..?

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] Re: Service for external server communication

2012-08-10 Thread RichardC
Wrong group, try one of:
http://source.android.com/community/index.html 

On Friday, August 10, 2012 9:34:31 AM UTC+1, chainz roid wrote:

 Hello

 I'm working with android ICS AOSP. i want to create a simple service for 
 check the server whether its alive or not. I need help for following process


1. Create simple service  for check the server whether its alive or 
not.
2. I've to add in AOSP ( 
Frameworks/base/services/java/com/android/) How to add the service 
*.JAVA file into this and how to invoke the file.
3. I need to call the service from different application for check the 
server whether its alive or not reachable.

  What are the steps i've to do for it, I'm new to android service.

 *Note: I don't want to create the service in application, i want to 
 create and use the service like android service ( Ex; vibrator service, 
 mount service, battery service)*

  Can any one help me to do this..?

 Thanks in advance.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to connect to MySQL db

2012-08-10 Thread Fabien R
On 03/08/2012 17:05, Andrey Shloma wrote:
 Now i user mysql-connector-java-5.1.21-bin.jar library
 And try next code:
   
This is not the way to connect to database on android.
You have to send http requests to a web service.
-
Fabien

-- 
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] List of Available Wifi Devices

2012-08-10 Thread Meena Rengarajan
Here , i wanna display list of Available Wifi devices ..
This is my code please anyone help me , i do not understand what mistake is 
here ?

Please anybody help me here , i wanna display list of Available Wifi 
devices, i am very new to this Technology ..

wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
   if (wifi.isWifiEnabled() == false)
   {
   Toast.makeText(getApplicationContext(), wifi is 
disabled..making it enabled, Toast.LENGTH_LONG).show();
   wifi.setWifiEnabled(true);
   }   
   String[] str1 = null;
ArrayAdapterStringadapter=new 
ArrayAdapterString(this,android.R.layout.simple_list_item_1,android.R.id.text1,str1);
lv.setAdapter(adapter);
   //lv.setAdapter(this.adapter);
   WifiInfo info = wifi.getConnectionInfo();
textStatus.append(\n\nWiFi Status:  + info.toString());
// wifiConfig=new WifiConfiguration(); 
// wifiConfig.status=WifiConfiguration.Status.ENABLED;
 boolean b=wifi.isWifiEnabled();
 if(b){
 wifi.setWifiEnabled(false);
 Toast.makeText(getApplicationContext(), Yes, Toast.LENGTH_SHORT).show();
 }
 
 else{
 wifi.setWifiEnabled(true);
 Toast.makeText(getApplicationContext(), No, Toast.LENGTH_SHORT).show();
 }
 
 
 
 wifi.startScan();
 ListScanResult results = wifi.getScanResults();
 for (ScanResult result : results) {
Toast.makeText(this, result.SSID +   + 
result.level,Toast.LENGTH_SHORT).show();
 ListWifiConfiguration configs = wifi.getConfiguredNetworks();
for (WifiConfiguration config : configs) {
textStatus.append(\n\n + config.toString());
}
 
if (receiver == null)
//receiver= new WiFiScanReceiver(this);

registerReceiver(receiver, new IntentFilter(
WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
Log.d(TAG, onCreate());
}
}

-- 
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] My developer account has been canceled., Anybody knows the reason???

2012-08-10 Thread julious raj
Hi Developers,
 I am an Android application developer and i have created a developer 
account before several months.,
i have planned and developed an application to publish in my account.,
But Google team blocked my account before a week., and I have asked the 
reason.,
But i am not getting a exact reason from them., I've not violated any of 
the terms i think., and also i am always getting a same response from them.,
I think it is a system generated message., If anybody knows please reply me 
why this happens.,

I got the message as below.,


Thank you for your note.

Your Google Play Publisher account has been suspended due to prior
violations of our terms of service by an associated account. You may view
these terms here:

http://www.android.com/us/developer-distribution-agreement.html#agreement
http://www.android.com/market/terms/developer-content-policy.html

Please note that Google Play Publisher suspensions are associated with
developers, and may span multiple account registrations and related Google
services.

Please do not attempt to register a new developer account. Any subsequent
registrations without an explicit reinstatement will be closed and your
developer account fee not refunded.

We will not be reinstating your account and we are unable to provide
further details regarding this issue. We recommend your utilizing an
alternative application distribution system and payment method for future
orders.

Regards,
The Google Play Team

-- 
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] MAX Repeat count of windowEnterAnimation

2012-08-10 Thread danaimset
Thanks a lot, Dianne!

I believe it can be done by using the following method if you need to 
provide some animation to PopupWindow:
http://developer.android.com/intl/ru/reference/android/widget/PopupWindow.html#update(android.view.View,
 
int, int, int, int) 

But in that case a programmer should implement its own animation cycle.


пятница, 10 августа 2012 г., 6:11:46 UTC+3 пользователь Dianne Hackborn 
написал:

 The window manager limits the duration of animations, I believe to 10 
 seconds or so.

 Don't do this.  It is not right to have a window animation that runs 
 indefinitely.

 On Thu, Aug 9, 2012 at 3:03 PM, danaimset dana...@gmail.com javascript:
  wrote:

 Hi Guys!

 I've face with problems with windowEnterAnimation.
 I'm trying to animate popup window over the view for infinite. But it 
 seems that windowEnterAnimation has limitation of repeat count.


 https://lh4.googleusercontent.com/-6Dx_kkoUFkg/UCQzPlhdp1I/ECI/LuyFiRy9R2M/s1600/launcher.png


 I'm using the following animation:

 ?xml version=1.0 encoding=utf-8?
 set xmlns:android=http://schemas.android.com/apk/res/android; 

 translate
 android:duration=500
 android:fromYDelta=0
 android:interpolator=@android:anim/bounce_interpolator
 android:repeatCount=infinite
 android:repeatMode=reverse
 android:toYDelta=-20 /

 /set

 And the following animation style for the popup window:

 style name=AnimationPopup
 item name=@android:windowEnterAnimation@anim/jump_up/item
 item name=@android:windowExitAnimation@anim/alpha/item
 /style

 The animation is repeated only 10 times but not infinitely :(

 Maybe somebody could give some advice how this problem could be solved ?

 Thanks.

 Best Wishes,
 Dan.


  -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com javascript:

 Note: please don't send private questions to me, as I don't have time to 
 provide private support, and so won't reply to such e-mails.  All such 
 questions should be posted on public forums, where I and others can see and 
 answer them.

 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Listview in Wifi

2012-08-10 Thread Meena Rengarajan
Here, this is my code, How do i wanna put all the strings which is 
scanned and how do i wanna use Array adapter then how do i wanna get all 
the values from list ?
Can anyone help me here please ?

wifi.startScan();
 int length = 10;
 
String[] str1 =new String[length];
 ListScanResult results = wifi.getScanResults();
 for(int i=0;iresults.size();i++){
 ScanResult result = (ScanResult)results[i];
 str1[i] = result.SSID;
 }
 ArrayAdapterStringadapter=new 
ArrayAdapterString(this,android.R.layout.simple_list_item_1,android.R.id.text1,str1);
 lv.setAdapter(adapter);
// for (ScanResult result : results) {
 
//Toast.makeText(this, result.SSID +   + 
result.level,Toast.LENGTH_SHORT).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: Is there any way to know a view's height and width before it is really shown on screen?

2012-08-10 Thread Doug
I've always wanted to be able to attach an onSizeChanged listener to an 
arbitrary view to make this easy, but that doesn't seem to be in the cards 
for Android.  You have to wrap your arbitrary view inside another custom 
container and have that container pay attention to onSizeChange to be able 
to respond to that arbitrary view's actual size being known.

Doug

On Thursday, August 2, 2012 7:21:25 AM UTC-7, Fang wrote:

 Hi Android Developers,

 As a request of a function in my app, I need to know a view's height and 
 width before it's really shown on screen. 
 Here I want to know whether it is possible? If yes, then how about the 
 performance? Thanks in advance.

 Regards,
 Fang


-- 
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] My developer account has been canceled., Anybody knows the reason???

2012-08-10 Thread Fabien R
On 10/08/2012 11:58, julious raj wrote:
 Hi Developers,
  I am an Android application developer and i have created a developer 
 account before several months.,
 i have planned and developed an application to publish in my account.,
 But Google team blocked my account before a week., and I have asked the 
 reason.,
   
Which app did you publish ?

-- 
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] Database getting blank in android

2012-08-10 Thread Abhi
Thanks Pedro for your reply.
 I had already put all the checks to open or close the database . The thing 
is that this issue is occuring not so often and also it is occuring in 
Samsung gi5800 phone. If i intentionally left the app opened for few hours 
then it won't come. I just want to confirm that whether this error is in my 
code or it is the issue with this phone.

On Wednesday, August 8, 2012 2:15:15 PM UTC-7, Pedro Cortez wrote:

 Did you close de SQLiteDatabase db? Sometimes in my app when i didnt close 
 my db, my app gave me some exception. 
 I put this funcion on my activities

 @Override
 protected void onDestroy() {
  super.onDestroy();
 dao.cleanup();
 }

 public void cleanup() {
if (this.db != null) {
this.db.close();
this.db = null;
}
  }

 I hope i could help u


 On Wed, Aug 8, 2012 at 7:44 AM, Abhi 
 abhishe...@intersoftprofessional.comjavascript:
  wrote:

 Hello,

 I am developing an app. It is working fine but if i left the app open for 
 few hours the database gets blank sometimes(1 out of 5). I tried hard to 
 track the issue but couldn't found any. I am using Sqlite database. Please 
 help me as soon as possible.

 Thanks
 Abhi

 -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 att,
 Pedro Cortez

  

-- 
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 to MySQL db

2012-08-10 Thread Walaa Mahmoud
I think you have to connect MySQL via PHP as backend  with HTTP requests
and JSON parameters to send and receive  data from/to database.

On Fri, Aug 10, 2012 at 10:41 AM, Fabien R theedge...@free.fr wrote:

 On 03/08/2012 17:05, Andrey Shloma wrote:
  Now i user mysql-connector-java-5.1.21-bin.jar library
  And try next code:
 
 This is not the way to connect to database on android.
 You have to send http requests to a web service.
 -
 Fabien

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android efficiency for huge amount of SQLlite DB records?

2012-08-10 Thread lbendlin
10 lines should be manageable. Make sure you optimize the indexes for 
your most frequent queries, don't forget to vacuum, and use transactions 
whenever possible.

Nothing of this is really related to Android, though.

On Friday, August 10, 2012 3:53:09 AM UTC-4, chainz roid wrote:

 Thanks Mr.zsolt Vasvari. your answer help me to think new way to develop 
 my 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

[android-developers] Samsung Galaxy SII (ICS 4.0.4) freezes when using OpengGL ES 2.0

2012-08-10 Thread BorisB
Hi all, 

Samsung Galaxy SII (ICS 4.0.4) freezes when I run my application that use 
OpengGL ES 2.0. 
Only thing that I can do is to reset the phone,
Application is mostly written in NDK and there's also software rendering 
mode (no OpenGL) witch runs without problems. 
Also, the app worked with all Gingerbreads  and ICS up to 4.0.3.

The log trace is completely useless and I'm basically poking around to find 
where the problem is. 

The things I've tried so far;
- turn and and off VBO usage
- turn various shaders on and off 
  
Any help is most appreciated.

Boris

-- 
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 detect alarm clock ringing or other apps using speaker?

2012-08-10 Thread Necati TUFAN


I solved my problem for default alarm application:

public static final String ALARM_ALERT_ACTION = 
com.android.deskclock.ALARM_ALERT;
public static final String ALARM_SNOOZE_ACTION = 
com.android.deskclock.ALARM_SNOOZE;
public static final String ALARM_DISMISS_ACTION = 
com.android.deskclock.ALARM_DISMISS;
public static final String ALARM_DONE_ACTION = 
com.android.deskclock.ALARM_DONE;

private BroadcastReceiver mReceiver = new BroadcastReceiver() 
{
@Override
public void onReceive(Context context, Intent intent) 
{
  String action = intent.getAction();
  if (action.equals(StaticFields.ALARM_ALERT_ACTION) || 
action.equals(StaticFields.ALARM_DISMISS_ACTION) || 
action.equals(StaticFields.ALARM_SNOOZE_ACTION) || 
action.equals(StaticFields.ALARM_DONE_ACTION)) 
  {
  // for play/pause mediaplayer
  playPause();
  }
}
};


@Override
public void onCreate(Bundle savedInstanceState) 
{
IntentFilter filter = new IntentFilter(StaticFields.ALARM_ALERT_ACTION);
filter.addAction(StaticFields.ALARM_DISMISS_ACTION);
filter.addAction(StaticFields.ALARM_SNOOZE_ACTION);
filter.addAction(StaticFields.ALARM_DONE_ACTION);
registerReceiver(mReceiver, filter);
}


On Tuesday, August 7, 2012 1:39:02 PM UTC+3, Necati TUFAN wrote:

 I am developing a music app. I want to detect  other apps using 
 speaker or alarm ringing for play/pause my apps' music.

 For phone call i use PhoneStateListener. I tryed 
 OnAudioFocusChangeListener for to detect other audios. But didn't work. 

 I wondering how to solve this problem.


-- 
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] hosting web services (php+mysql)

2012-08-10 Thread giles ian
Hi All,

I will be creating a (php + mysql) server, which will expose few web
services for android app,

Where can i host this for free or may be paid as well.

Is app engine as option.

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] ListView sorting

2012-08-10 Thread Wolfgang
Thanks for the reply. I figured it out. I sorted in the ArrayAdapter.

-- 
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] Update Activity after GCM message

2012-08-10 Thread Wolfgang
Hey guys,
 
I have a activity called GetList. This class contains a listview whose data 
comes from my server. My server sends a message through GCM and the phone 
receives it and displays the message. I am trying to get the app to refresh 
the listview when a message is received. However the onMessage() is in the 
class GCMIntentService and GetList is a seperate class. I tried using a 
static method in GetList, but this won't work because the listview is not 
static and I would like to avoid making everything in the class static. Any 
thoughts on how I can accomplish this?
 
Thanks,
 
-W

-- 
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: Samsung Galaxy SII (ICS 4.0.4) freezes when using OpengGL ES 2.0

2012-08-10 Thread goodG
With *log* you mean *adb logcat* ?

If the system says nothing special through the log, you probably have a big 
problem with your source code.

Il giorno venerdì 10 agosto 2012 15:43:44 UTC+2, BorisB ha scritto:

 Hi all, 

 Samsung Galaxy SII (ICS 4.0.4) freezes when I run my application that use 
 OpengGL ES 2.0. 
 Only thing that I can do is to reset the phone,
 Application is mostly written in NDK and there's also software rendering 
 mode (no OpenGL) witch runs without problems. 
 Also, the app worked with all Gingerbreads  and ICS up to 4.0.3.

 The log trace is completely useless and I'm basically poking around to 
 find where the problem is. 

 The things I've tried so far;
 - turn and and off VBO usage
 - turn various shaders on and off 
   
 Any help is most appreciated.

 Boris


-- 
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] Nexus 7 not visible to adb over usb (WIndows 7 x64, up to date Jelly Bean sdk)

2012-08-10 Thread mkh
Trying to force feed myself Windows to build character, and the seemly 
trivial thing of plugging in a Nexus 7 to a Dell xps 15z Tand debugging a 
hello world app on it from Eclipse Juno with the latest ADT plugin has me 
stumped.

Developer options were turned on, and USB debugging enabled.

The device just does not show up, not in Eclipse, or in adb devices.

The first time I had not installed the USB driver from the sdk. In this 
case the Nexus 7 shows up in the WIndows devices under Portable Devices 
and a filesystem can be browsed from Windows.

Next I installed the google USB driver. Now the Nexus 7 shows up in the 
Windows devices as Android Phone/Android composite ADB interface, and 
at that point I thought I was moments away from looking at Hello World 
and moving on to something interesting, but wait, there's more, adb 
remained blind to the Nexus7.

Any ideas, or suggestions for debugging this problem would be 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

[android-developers] Re: Nexus 7 not visible to adb over usb (WIndows 7 x64, up to date Jelly Bean sdk)

2012-08-10 Thread goodG
http://support.asus.com/download/ModelList.aspx?SLanguage=enkeyword=nexus%207type=1

my personal advice is just to avoid programming on Windows, it's a 
nightmare.

Il giorno venerdì 10 agosto 2012 17:39:08 UTC+2, mkh ha scritto:

 Trying to force feed myself Windows to build character, and the seemly 
 trivial thing of plugging in a Nexus 7 to a Dell xps 15z Tand debugging a 
 hello world app on it from Eclipse Juno with the latest ADT plugin has me 
 stumped.

 Developer options were turned on, and USB debugging enabled.

 The device just does not show up, not in Eclipse, or in adb devices.

 The first time I had not installed the USB driver from the sdk. In this 
 case the Nexus 7 shows up in the WIndows devices under Portable Devices 
 and a filesystem can be browsed from Windows.

 Next I installed the google USB driver. Now the Nexus 7 shows up in the 
 Windows devices as Android Phone/Android composite ADB interface, and 
 at that point I thought I was moments away from looking at Hello World 
 and moving on to something interesting, but wait, there's more, adb 
 remained blind to the Nexus7.

 Any ideas, or suggestions for debugging this problem would be 
 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

[android-developers] Re: Update Activity after GCM message

2012-08-10 Thread dnkoutso
You could use 
the 
http://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html
 
to fire a local broadcast (only to your process, unlike the normal 
Broadcast). If you are using the message as a send-to-sync type then just 
pass in an boolean extra.

You could also make your activity bind to your GCMIntentService and then 
use a listener interface to subscribe to it. Once a message arrives then 
loop through all the listeners and invoke them. Remember to unbind() once 
the activity is dead.

On Friday, August 10, 2012 8:15:45 AM UTC-7, Wolfgang wrote:

 Hey guys,
  
 I have a activity called GetList. This class contains a listview whose 
 data comes from my server. My server sends a message through GCM and the 
 phone receives it and displays the message. I am trying to get the app to 
 refresh the listview when a message is received. However the onMessage() is 
 in the class GCMIntentService and GetList is a seperate class. I tried 
 using a static method in GetList, but this won't work because the listview 
 is not static and I would like to avoid making everything in the class 
 static. Any thoughts on how I can accomplish this?
  
 Thanks,
  
 -W


-- 
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] Can a folder be created using instrumentation context instead of target context?

2012-08-10 Thread dnkoutso
Thanks Dianne, this helps.

On Thursday, August 9, 2012 11:34:25 PM UTC-7, Dianne Hackborn wrote:

 Not generally, when the instrumentation is running in the target process, 
 it is running under that uid.  You could do something like put a service or 
 content provider (or receiver) in your instrumentation apk that you can 
 interact with from the instrumentation code running in the app being tested.

 On Thu, Aug 9, 2012 at 11:15 AM, dnkoutso dnko...@gmail.com javascript:
  wrote:

 I am writing instrumentation tests for my app and want to create a 
 temporary folder to store some files. However, I dont want to do that in 
 the targetContext but rather in the test context.

 In other words:
 File dir = getInstrumentation().*getTargetContext()*.getDir(directory, 
 MODE_WORLD_READABLE);  // Works, but this creates the folder in the target 
 app.

 File dir = getInstrumentation().*getContext()*.getDir(directory, 
 MODE_WORLD_READABLE);  // Does not work, the exists() returns false.

 Thoughts?

 -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com javascript:

 Note: please don't send private questions to me, as I don't have time to 
 provide private support, and so won't reply to such e-mails.  All such 
 questions should be posted on public forums, where I and others can see and 
 answer them.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] RenderScript 'bugs'

2012-08-10 Thread Harri Smått
Hi All,

I'm facing problems with RenderScript on ADT20 and ADT21 preview 1 (I was 
hoping ADT21 fixed many of the RenderScript bugs).  E.g following code does not 
work with color4.rgb, which changes color values to zeros only;

void root(uchar4* v_color) {
float4 color4 = rsUnpackColor(*v_color);

// Does not work ;
// float3 color = color4.rgb;

// Works ok
float3 color;
color.r = color4.r;
color.g = color4.g;
color.b = color4.b; 

// Store color value back to allocation.
color = clamp(color, 0.0f, 1.0f);
*v_color = rsPackColorTo(color);
}

Am I only one struggling with current state of RenderScript or should I be 
pointing towards Samsung instead (I'm running these scripts on SGS2 4.04)?

--
H

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How can I check the value of wtf_is_fatal?

2012-08-10 Thread Shri
I want to check if Log.wtf will result in program termination. I want to 
use that property to enable expensive asserts in my program. How can I 
check for this? I used the following code but it throws 
SettingNotFoundException.

  int wtfIsFatal = 
android.provider.Settings.Secure.getInt(getContentResolver(), 
wtf_is_fatal);

I tried adding android.permission.WRITE_SECURE_SETTINGS to my 
AndroidManifest.xml but that does not help. I had set wtf_is_fatal as such:

adb root
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
 insert into secure (name, value) values ('wtf_is_fatal', 1);
 select * from secure;
...
60|wtf_is_fatal|1
...

Thanks,
Shri

-- 
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] Handling Redirects in Android WebView

2012-08-10 Thread farble1670
yeah, but how do tell if it's a redirect?

On Monday, March 12, 2012 4:14:29 AM UTC-7, Mark Murphy (a Commons Guy) 
wrote:

 Redirects are handled via a WebViewClient and
 shouldOverrideUrlLoading(), as are clicks on ordinary links.

 On Sun, Mar 11, 2012 at 3:54 AM, Rao nidle...@gmail.com javascript: 
 wrote:
  Hi,
 
  I am developing a android application, Within the application I am
  trying to Load a URL using WEBVIEW. Afer i submit the data in the
  opened webpage, it gets redirected to some other URL. My requirement
  is to get the complete Redirected URL within my android application.
 
  I didnt see any events/ API methods which can be used to notify URL
  Redirect.
 
  Are there any way to listen for URL redirects within my application
  and then retrieve the URL.
 
  Thanks
  Rao
 
  --
  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.comjavascript:
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com javascript:
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 -- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.7 Available!



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Update Activity after GCM message

2012-08-10 Thread Wolfgang
Thanks. The LocalBroadcastManager worked perfectly!
 
-W

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How can I check the value of wtf_is_fatal?

2012-08-10 Thread Dianne Hackborn
Why do you want to do this?  If you want to log an error that doesn't cause
your app to crash, use Log.w().  I generally recommend if you have a fatal
error, using Log.e() (though it is your responsibility to crash or whatever
the fatal error behavior is after that).

If you don't want the behavior of Log.wtf() (which is partly that it can
optional crash your app based on the setting), then don't use it.  The only
reason to use it that I can think of is because you want the behavior it
provides.  Is there some other reason you want to call that specific method?

On Fri, Aug 10, 2012 at 11:13 AM, Shri shri.bo...@gmail.com wrote:

 I want to check if Log.wtf will result in program termination. I want to
 use that property to enable expensive asserts in my program. How can I
 check for this? I used the following code but it throws
 SettingNotFoundException.

   int wtfIsFatal =
 android.provider.Settings.Secure.getInt(getContentResolver(),
 wtf_is_fatal);

 I tried adding android.permission.WRITE_SECURE_SETTINGS to my
 AndroidManifest.xml but that does not help. I had set wtf_is_fatal as such:

 adb root
 adb shell
 sqlite3 /data/data/com.android.providers.settings/databases/settings.db
  insert into secure (name, value) values ('wtf_is_fatal', 1);
  select * from secure;
 ...
 60|wtf_is_fatal|1
 ...

 Thanks,
 Shri

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] MAX Repeat count of windowEnterAnimation

2012-08-10 Thread Dianne Hackborn
No the window will only execute an animation when it goes through the
corresponding transition -- enter animations exit when the window is shown,
exit when it is hidden, etc.

On Fri, Aug 10, 2012 at 4:17 AM, danaimset danaim...@gmail.com wrote:

 Thanks a lot, Dianne!

 I believe it can be done by using the following method if you need to
 provide some animation to PopupWindow:
 http://developer.android.com/intl/ru/reference/android/widget/PopupWindow.html#update(android.view.View,
 int, int, int, int)

 But in that case a programmer should implement its own animation cycle.


 пятница, 10 августа 2012 г., 6:11:46 UTC+3 пользователь Dianne Hackborn
 написал:

 The window manager limits the duration of animations, I believe to 10
 seconds or so.

 Don't do this.  It is not right to have a window animation that runs
 indefinitely.

 On Thu, Aug 9, 2012 at 3:03 PM, danaimset dana...@gmail.com wrote:

  Hi Guys!

 I've face with problems with windowEnterAnimation.
 I'm trying to animate popup window over the view for infinite. But it
 seems that windowEnterAnimation has limitation of repeat count.


 https://lh4.googleusercontent.com/-6Dx_kkoUFkg/UCQzPlhdp1I/ECI/LuyFiRy9R2M/s1600/launcher.png


 I'm using the following animation:

 ?xml version=1.0 encoding=utf-8?
 set 
 xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
 

 translate
 android:duration=500
 android:fromYDelta=0
 android:interpolator=@**android:anim/bounce_**interpolator
 android:repeatCount=infinite
 android:repeatMode=reverse
 android:toYDelta=-20 /

 /set

 And the following animation style for the popup window:

 style name=AnimationPopup
 item name=@android:**windowEnterAnimation@anim/**
 jump_up/item
 item name=@android:**windowExitAnimation@anim/**alpha/item
 /style

 The animation is repeated only 10 times but not infinitely :(

 Maybe somebody could give some advice how this problem could be solved ?

 Thanks.

 Best Wishes,
 Dan.


  --
 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=enhttp://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hac...@android.com


 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

   --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Non sticky service gets recreated (indefinetly?)

2012-08-10 Thread Dianne Hackborn
On Fri, Aug 10, 2012 at 12:17 AM, Johan Appelgren johan.appelg...@gmail.com
 wrote:

 Still occupies some amount of memory though, and the service's onCreate
 might not be cheap.


I'm not sure what this means...?  If you are concerned about the service
having too much overhead because you have bound to it and it doesn't need
to run just while bound, don't use BIND_AUTO_CREATE.


 Anyways, I guess this is one of those little undocumented things you just
 have to learn. Do not rely on START_NOT_STICKY if you both start and bind
 to a service if you don't want the service to stay around forever as a
 cached process after you've unbound it.


Honestly I think it is pretty fully documented.  But maybe we have a
misunderstanding -- once you unbind from the service, the fact that you had
previously bound to it has no further impact on how it is handled, and if
its process is killed after that it will not be restarted.

As long as you are bound to it with BIND_AUTO_CREATE, the system will try
to keep it created and if the process is killed while you remain bound to
it then it will try to restart it.

As long as the service is in the started state, the system will try to keep
it created/started, and if the process is killed then it will be restarted
if it is not sticky.

The decision about whether to restart the service is if either of those
conditions result in it wanting to restart it.

Again starting and binding are orthogonal to each other.  You just have to
know how each works individually, and what happens in the service is based
on whether either of them drive it to need to be created.  As I think is
covered pretty fully in the documentation.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How can I check the value of wtf_is_fatal?

2012-08-10 Thread Shri Borde
I want to use wtf_is_fatal==1 as the gate for my expensive asserts since
the people who will set wtf_is_fatal (the dev team) will also be ok with
the slight slowdown caused by expensive asserts. Strictly speaking, these
should be two independent settings, but I was hoping to piggyback off of
wtf_is_fatal==1 so the devs do not have to worry about setting two
different bits. If I can not access wtf_is_fatal, I will probably add a
separate property.

On Fri, Aug 10, 2012 at 11:32 AM, Dianne Hackborn hack...@android.comwrote:

 Why do you want to do this?  If you want to log an error that doesn't
 cause your app to crash, use Log.w().  I generally recommend if you have a
 fatal error, using Log.e() (though it is your responsibility to crash or
 whatever the fatal error behavior is after that).

 If you don't want the behavior of Log.wtf() (which is partly that it can
 optional crash your app based on the setting), then don't use it.  The only
 reason to use it that I can think of is because you want the behavior it
 provides.  Is there some other reason you want to call that specific method?


 On Fri, Aug 10, 2012 at 11:13 AM, Shri shri.bo...@gmail.com wrote:

 I want to check if Log.wtf will result in program termination. I want to
 use that property to enable expensive asserts in my program. How can I
 check for this? I used the following code but it throws
 SettingNotFoundException.

   int wtfIsFatal =
 android.provider.Settings.Secure.getInt(getContentResolver(),
 wtf_is_fatal);

 I tried adding android.permission.WRITE_SECURE_SETTINGS to my
 AndroidManifest.xml but that does not help. I had set wtf_is_fatal as such:

 adb root
 adb shell
 sqlite3 /data/data/com.android.providers.settings/databases/settings.db
  insert into secure (name, value) values ('wtf_is_fatal', 1);
  select * from secure;
 ...
 60|wtf_is_fatal|1
 ...

 Thanks,
 Shri

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Non sticky service gets recreated (indefinetly?)

2012-08-10 Thread Kostya Vasilyev
2012/8/10 Dianne Hackborn hack...@android.com


 As long as the service is in the started state, the system will try to
 keep it created/started, and if the process is killed then it will be
 restarted if it is not sticky.


Is that a typo?

Was that supposed to be Restarted if it *is* sticky?

-- K

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: All Android in app subscriptions were mysteriously automatically canceled

2012-08-10 Thread Trevor Johns
fibercode,
Can you let me know if you're still seeing this? I just confirmed with our 
engineering team that everything should be back to normal. If anything 
still looks off, let me know and I'll have them take a closer look.

(It's possible there was some caching delays with the Developer API, which 
might explain why you were still seeing non-renewing subscriptions.)

-- 
Trevor Johns
Google Developer Programs, Android
http://developer.android.com

On Thursday, August 9, 2012 11:38:03 PM UTC-7, fibercode wrote:

 Trevor,

 Thank you for your prompt response and the explanation. At least now we 
 know that we are not living in some alternate reality and stopped pinching 
 ourselves in disbelief.

 But, we still have all of our customers subscriptions canceled. None of 
 those were restored back to active. Now when we query the Google API server 
 to see if the subscriptions are still active we get false.

 For example:
 We queried Google order number: 574480490664998 and got the following 
 JSON response:

 {
  kind: androidpublisher#subscriptionPurchase,
  initiationTimestampMsec: 1342064134000,
  validUntilTimestampMsec: 1344749703290,
  autoRenewing: false
 }

 That order should have been restored to autoRenewing: true!

 Please let me know if we are missing something?

 Our customers have not had any termination of service, since our servers 
 are correctly keeping track of the expiration date of their subscriptions.
 But that is not the point. The main thing is that they would have to now 
 manually go and purchase the same subscription they did subscribe to before 
 (the one they did not unsubscribe from).
 I think that is a horrible way to treat them.

 I do not want to sound harsh, but we are trying to run a business not 
 play high school games.

 Any help is greatly appreciated!

 Thank you.


 On Thursday, 9 August 2012 21:29:30 UTC-4, Trevor Johns wrote:

 fibercode,
 A number of in-app billing subscriptions were erroneously marked as 
 canceled this morning due to an issue on our servers. Most of the affected 
 subscriptions have already been restored by our engineers, and users did 
 not loose access to content during this time. We will be sending a followup 
 email soon to those affected explaining what happened.

 There were a small minority of users who's subscription auto-renewal 
 dates occurred before we we were able to restore the subscription, and 
 accordingly were not renewed. These users can choose to re-subscribe using 
 the standard in-app billing mechanism within your app (they will appear as 
 a standard expired subscription to your app).

 The HTTP Android Developer API would have still returned the correct 
 expiration time for all subscriptions, so users continued to receive all 
 content they had paid for.

 We sincerely apologize the inconvenience this has caused, and our team 
 will be taking steps to ensure similar incidents do not occur in the future.

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 12:03:23 PM UTC-7, fibercode wrote:

 One of our Android applications has supported in app billing for a while 
 now.

 A little over two weeks ago we published an update that supports the 
 newly released by Google in app subscriptions.

 Everything was fine until this morning when mysteriously all the 
 subscriptions purchased by our customers were canceled automatically! 
 We got up this morning, checked our emails and our test accounts had the 
 subscriptions canceled even though we had not done that. This obviously 
 raised a lot of red flags so we started checking our customers' 
 subscriptions and it seems that they were all canceled !!! We were even 
 contacted by several of our customers who thought that we canceled their 
 subscriptions.

 The new subscription purchases done today (August 9th) are not being 
 canceled but we can no longer trust how long that will last.

 The only conclusion we could come to is that Google canceled the 
 subscriptions (either on purpose or accidentally).
 Most likely this looks like a bug on the Google side, but we need some 
 help to narrow this down.

 Thank you.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Listview in Wifi

2012-08-10 Thread TreKing
On Fri, Aug 10, 2012 at 6:39 AM, Meena Rengarajan meenasoft...@gmail.comwrote:

 How do i wanna put all the strings which is scanned and how do i wanna use
 Array adapter then how do i wanna get all the values from list ?


How you wanna do anything is really up to you.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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: UnsatisfiedLinkError, but only on Nexus 7

2012-08-10 Thread rmtew
On Tuesday, August 7, 2012 3:27:21 PM UTC+12, rmtew wrote:

 I have an application which has worked for a user up till now.  But with 
 the last release, they're getting crashes.  Looking at their submitted 
 stack trace, it is a simple UnsatisfiedLinkError where the loadLibrary call 
 fails to find the shared library.  I provide binaries for x86, armeabi and 
 armeabi-v7a as of the last release.

 I've tested the last release on:
 - An x86 emulator (API level 10).
 - An armeabi emulator (API level 10).
 - An armeabi-v7a emulator (API level 16).

 Due to the way I get limited error information from users, all I have is 
 the stacktrace.  I don't have a Nexus 7 and cannot afford one, even if they 
 were available in  my country (maybe they are for all I know).  I have no 
 way to contact the user.


Never mind.. got this email today..

Dear Google Play developer,
 We have identified one or more of your applications as being affected by a 
 recent issue in Google Play that prevents some users from launching your 
 app. To resolve the issue, *you need to publish an update as soon as 
 possible. This will cause your users to receive an update, which will fix 
 the issue.
 *The underlying cause was an error in the Google Play update logic that 
 resulted in native libraries being incorrectly installed during updates of 
 affected applications for users running Android 4.1 (Jellybean), who 
 installed an update of your application between August 1 to August 5. This 
 affects a small minority of applications, specifically non-forward-locked 
 paid applications that use the NDK and native libraries.
 *No change to your application is required. Simply increment your 
 versionCode in your Android manifest file, generate a new APK, and publish 
 it through Google Play.
 *We apologize for the inconvenience this has caused you and your users. 
 The underlying cause has now been rectified, and steps have been taken to 
 ensure similar issues don't arise in the future.
 Sincerely,
 The Google Play team

-- 
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] Handling Redirects in Android WebView

2012-08-10 Thread Mark Murphy
On Fri, Aug 10, 2012 at 2:31 PM, farble1670 jeffrey.blatt...@gmail.com wrote:
 yeah, but how do tell if it's a redirect?

Unless you can tell by examining the URL, probably you can't tell if
it is a redirect.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.0 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] hosting web services (php+mysql)

2012-08-10 Thread TreKing
On Fri, Aug 10, 2012 at 9:31 AM, giles ian gilesian@gmail.com wrote:

 Where can i host this for free or may be paid as well.


That has nothing to do with this list. Use Google.


 Is app engine as option.


If that is a question, then sure, App Engine is as option.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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: Listview in Wifi

2012-08-10 Thread bob
 

adapter.add(Sample WAP);

On Friday, August 10, 2012 6:39:48 AM UTC-5, Meena Rengarajan wrote:

 Here, this is my code, How do i wanna put all the strings which is 
 scanned and how do i wanna use Array adapter then how do i wanna get all 
 the values from list ?
 Can anyone help me here please ?

 wifi.startScan();
  int length = 10;
  
 String[] str1 =new String[length];
  ListScanResult results = wifi.getScanResults();
  for(int i=0;iresults.size();i++){
  ScanResult result = (ScanResult)results[i];
  str1[i] = result.SSID;
  }
  ArrayAdapterStringadapter=new 
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,android.R.id.text1,str1);
  lv.setAdapter(adapter);
 // for (ScanResult result : results) {
  
 //Toast.makeText(this, result.SSID +   + 
 result.level,Toast.LENGTH_SHORT).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: hosting web services (php+mysql)

2012-08-10 Thread bob
Maybe Verve Hosting?  I used to use them.


On Friday, August 10, 2012 9:31:48 AM UTC-5, giles ian wrote:

 Hi All,

 I will be creating a (php + mysql) server, which will expose few web 
 services for android app,

 Where can i host this for free or may be paid as well.

 Is app engine as option.

 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] Non sticky service gets recreated (indefinetly?)

2012-08-10 Thread Johan Appelgren
You're right that I'm not understanding something here, most likely it is 
something really obvious too. :(

As I wrote, my understanding of what you describe is not the behavior I'm 
seeing with my test app on my Galaxy Nexus with Android 4.1.1 nor the 4.1.1 
emulator image. After I've unbound from the service, in my test I do this 
in the activity's onPause, when the app process is killed, it and the 
service is restarted. Then after that the process and service is killed and 
restarted every now and then, without starting the activity or any calls to 
startService or bindService made by any code in my test app. It starts 
quicker if I start a couple of different games to put some memory pressure 
on the system.

Not even stopping the cached process in the Cached processes list stops it, 
it is restarted a little while after. Only going to the Downloaded list and 
pressing the Force stop button stops the stop/restart cycle. 

Perhaps someone could look at my dummy app code and point out what I'm 
doing wrong. If someone does, I'm sorry for most likely wasting your time. 

public class MainActivity extends Activity {

@SuppressWarnings(unused)
private int[] mDummyData = new int[3 * 1024 * 1024];
 private final String TAG = MainActivity;
 private boolean mBound;
private boolean mCalledBind;
private boolean mStarted;
private final ServiceConnection mConnection = new ServiceConnection() {

@Override
public void onServiceConnected(ComponentName className, IBinder 
service) {
Log.d(TAG, onServiceConnected);
mBound = true;
}

@Override
public void onServiceDisconnected(ComponentName arg0) {
Log.d(TAG, onServiceDisconnected);
}
};

public MainActivity(){
Log.d(TAG, ctor);
}

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Intent intent = new Intent(this, MainService.class);

Log.d(TAG, onCreate);

if (!mStarted) {
Log.d(TAG, startService);
startService(intent);
mStarted = true;
}

if (!mBound  !mCalledBind) {
Log.d(TAG, bindService);
bindService(intent, mConnection, BIND_AUTO_CREATE);
mCalledBind = true;
}
}

@Override
protected void onPause() {
Log.d(TAG, onPause);

if (mBound) {
Log.d(TAG, unbindService);
unbindService(mConnection);
mBound = false;
mCalledBind = false;
}

super.onPause();
}

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

super.onDestroy();
}
}

public class MainService extends Service {

@SuppressWarnings(unused)
private int[] mDummyData = new int[1024*1024];
 private static final String TAG = MainService;
private final IBinder mBinder = new LocalBinder();
 public class LocalBinder extends Binder {
MainService getService() {
return MainService.this;
}
}
 @Override
public IBinder onBind(Intent arg0) {
Log.d(TAG, onBind);
return mBinder;
}

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(TAG, onStartCommand);
return START_NOT_STICKY;
}
 @Override
public void onCreate() {
Log.d(TAG, onCreate);
super.onCreate();
}
}

On Friday, August 10, 2012 8:39:46 PM UTC+2, Dianne Hackborn wrote:

 On Fri, Aug 10, 2012 at 12:17 AM, Johan Appelgren 
 johan.a...@gmail.comjavascript:
  wrote:

 Still occupies some amount of memory though, and the service's onCreate 
 might not be cheap. 


 I'm not sure what this means...?  If you are concerned about the service 
 having too much overhead because you have bound to it and it doesn't need 
 to run just while bound, don't use BIND_AUTO_CREATE.
  

 Anyways, I guess this is one of those little undocumented things you just 
 have to learn. Do not rely on START_NOT_STICKY if you both start and bind 
 to a service if you don't want the service to stay around forever as a 
 cached process after you've unbound it. 


 Honestly I think it is pretty fully documented.  But maybe we have a 
 misunderstanding -- once you unbind from the service, the fact that you had 
 previously bound to it has no further impact on how it is handled, and if 
 its process is killed after that it will not be restarted.

 As long as you are bound to it with BIND_AUTO_CREATE, the system will try 
 to keep it created and if the process is killed while you remain bound to 
 it then it will try to restart it.

 As long as the service is in the started state, the system will try to 
 keep it created/started, and if the process is killed then it will be 
 restarted if it is not sticky.

 The decision about whether to restart the service is if either of those 
 conditions result in it wanting to restart it.

 Again starting and binding are orthogonal to each other.  You just 

[android-developers] bitmap font ok?

2012-08-10 Thread bob
 

Okay.  So, it is illegal to put Arial.ttf in my Android App without paying 
a lot of licensing fees to the Arial people.

Is it ok to use a Bitmap Font generator with Arial and put the resulting 
PNG bitmap file in my Android 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

[android-developers] how best to move canvas dimensions to tablet proportions. Functions I could use...

2012-08-10 Thread james pruett
I have an app that looks fine on an HTC-G1, but is all misaligned on a tablet.
Q: What functions should I use to find screen size, so I can get rid
of the hard numbers you see below.
For example, 347 is 50% in the X direction...
Thanks for any leads!
-cellurl


public class View extends SurfaceView implements SurfaceHolder.Callback {

class Thread extends Thread implements OnJetEventListener {}

  public Thread(SurfaceHolder surfaceHolder, Context context,
Handler handler) {}

   c = mSurfaceHolder.lockCanvas(null);
// synchronized (mSurfaceHolder) {
doDraw(c);
}

private void doNeedleAnimation2nd(Canvas canvas) {

float px= 347;  //this is the center for R.drawable.needle
float py= 33;
canvas.translate(-110, 245);//this is the pivot for
R.drawable.background_a
}

-- 
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: List of Available Wifi Devices

2012-08-10 Thread bob
startScan () returns immediately. The availability of the results is made 
known later by means of an asynchronous event sent on completion of the 
scan.


So, you either need to wait 10 seconds or so after startScan or wait till 
you get the event that the scan has completed.

IOW, you are calling wifi.getScanResults() before it has time to find 
anything.



On Friday, August 10, 2012 3:53:39 AM UTC-5, Meena Rengarajan wrote:

 Here , i wanna display list of Available Wifi devices ..
 This is my code please anyone help me , i do not understand what mistake 
 is here ?

 Please anybody help me here , i wanna display list of Available Wifi 
 devices, i am very new to this Technology ..

 wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
if (wifi.isWifiEnabled() == false)
{
Toast.makeText(getApplicationContext(), wifi is 
 disabled..making it enabled, Toast.LENGTH_LONG).show();
wifi.setWifiEnabled(true);
}   
String[] str1 = null;
 ArrayAdapterStringadapter=new 
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,android.R.id.text1,str1);
 lv.setAdapter(adapter);
//lv.setAdapter(this.adapter);
WifiInfo info = wifi.getConnectionInfo();
 textStatus.append(\n\nWiFi Status:  + info.toString());
 // wifiConfig=new WifiConfiguration(); 
 // wifiConfig.status=WifiConfiguration.Status.ENABLED;
  boolean b=wifi.isWifiEnabled();
  if(b){
  wifi.setWifiEnabled(false);
  Toast.makeText(getApplicationContext(), Yes, Toast.LENGTH_SHORT).show();
  }
  
  else{
  wifi.setWifiEnabled(true);
  Toast.makeText(getApplicationContext(), No, Toast.LENGTH_SHORT).show();
  }
  
  
  
  wifi.startScan();
  ListScanResult results = wifi.getScanResults();
  for (ScanResult result : results) {
 Toast.makeText(this, result.SSID +   + 
 result.level,Toast.LENGTH_SHORT).show();
  ListWifiConfiguration configs = wifi.getConfiguredNetworks();
 for (WifiConfiguration config : configs) {
 textStatus.append(\n\n + config.toString());
 }
  
 if (receiver == null)
 //receiver= new WiFiScanReceiver(this);

 registerReceiver(receiver, new IntentFilter(
 WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
 Log.d(TAG, onCreate());
 }
 }


-- 
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 best to move canvas dimensions to tablet proportions. Functions I could use...

2012-08-10 Thread bob
Display display = ((WindowManager) 
getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
int width = display.getWidth();  
int height = display.getHeight();


On Friday, August 10, 2012 4:34:12 PM UTC-5, cellurl wrote:

 I have an app that looks fine on an HTC-G1, but is all misaligned on a 
 tablet. 
 Q: What functions should I use to find screen size, so I can get rid 
 of the hard numbers you see below. 
 For example, 347 is 50% in the X direction... 
 Thanks for any leads! 
 -cellurl 


 public class View extends SurfaceView implements SurfaceHolder.Callback { 

 class Thread extends Thread implements OnJetEventListener {} 

   public Thread(SurfaceHolder surfaceHolder, Context context, 
 Handler handler) {} 

c = mSurfaceHolder.lockCanvas(null); 
 // synchronized (mSurfaceHolder) { 
 doDraw(c); 
 } 

 private void doNeedleAnimation2nd(Canvas canvas) { 

 float px= 347;  //this is the center for R.drawable.needle 
 float py= 33; 
 canvas.translate(-110, 245);//this is the pivot for 
 R.drawable.background_a 
 } 


-- 
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: Wifi State

2012-08-10 Thread bob
 

// To use this WifiManager method, AndroidManifest.xml must have the 
following permission:

// uses-permission android:name=android.permission.ACCESS_WIFI_STATE/

WifiManager wifiManager = (WifiManager) getSystemService(Context.
WIFI_SERVICE);

 if (!wifiManager.isWifiEnabled()) wifiManager.setWifiEnabled(true);

On Thursday, August 9, 2012 11:31:57 PM UTC-5, Meena Rengarajan wrote:

 When i click button, Wifi should be in ON state by programmatically , if 
 it is not connected (ON state) then Alert Dialog box must appear by saying 
 , Are you wanted to enable Wifi/ Disable like OK or Cancel. If i 
 click Ok then Wifi should be connected (ON ) state , if i click cancel 
 then application should be closed.

 Can anyone help me here please ? I am very new to this technology .. 


-- 
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: [ASK] drawbitmap not draw entire bitmap

2012-08-10 Thread bob
Remove this line:

super.onDraw(canvas);



On Thursday, August 9, 2012 10:48:39 PM UTC-5, hendra uswandy wrote:

 Hi,

 i create customImageView Class that using for gridview

 in ondraw(Canvas canvas) method
 drawbitmap not draw entire bitmap ( just 5pixel from top image )

 this is my customimageview class

 public class CustomView extends ImageView {

 private Bitmap thumbs;
 private String name;

 public CustomView(Context context, AttributeSet attrs) {
 super(context, attrs);
 }

 @Override
 protected void onDraw(Canvas canvas) {
 Paint paint = new Paint();
 
 canvas.drawBitmap(thumbs, 0, 0, paint);
 canvas.drawText(x, 0, 0, paint);
 super.onDraw(canvas);
 }

 public void setImg(Bitmap bm) {
 this.thumbs = bm;
 }

 }

 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: All Android in app subscriptions were mysteriously automatically canceled

2012-08-10 Thread fibercode
Trevor,

I did do a few queries to the Developer API servers and all of the 
subscriptions I checked seem to be back to normal and are correctly flagged 
with autoRenewing: true.

There seems to be still one outstanding issue. If a customer that had 
purchased a subscription finds our application on the Google Play store 
(both online an the Play Store app on a device) it is till showing as being 
canceled. At the same time if they check their Google Wallet account under 
Subscriptions it says Active and also the Developer API replies back 
with autoRenewing: true.

So, for example, Google order number: 574480490664998 shows the following:

1. wallet.google.com shows the subscription as Active
2. Querying the Developer API servers returns autoRenewing: true
3. play.google.com and the Play Store app show the subscription as 
Canceled

Things look like are getting better but still not completely back to normal.

Thank you.
 

On Friday, 10 August 2012 16:22:07 UTC-4, Trevor Johns wrote:

 fibercode,
 Can you let me know if you're still seeing this? I just confirmed with our 
 engineering team that everything should be back to normal. If anything 
 still looks off, let me know and I'll have them take a closer look.

 (It's possible there was some caching delays with the Developer API, which 
 might explain why you were still seeing non-renewing subscriptions.)

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 11:38:03 PM UTC-7, fibercode wrote:

 Trevor,

 Thank you for your prompt response and the explanation. At least now we 
 know that we are not living in some alternate reality and stopped pinching 
 ourselves in disbelief.

 But, we still have all of our customers subscriptions canceled. None of 
 those were restored back to active. Now when we query the Google API server 
 to see if the subscriptions are still active we get false.

 For example:
 We queried Google order number: 574480490664998 and got the following 
 JSON response:

 {
  kind: androidpublisher#subscriptionPurchase,
  initiationTimestampMsec: 1342064134000,
  validUntilTimestampMsec: 1344749703290,
  autoRenewing: false
 }

 That order should have been restored to autoRenewing: true!

 Please let me know if we are missing something?

 Our customers have not had any termination of service, since our servers 
 are correctly keeping track of the expiration date of their subscriptions.
 But that is not the point. The main thing is that they would have to now 
 manually go and purchase the same subscription they did subscribe to before 
 (the one they did not unsubscribe from).
 I think that is a horrible way to treat them.

 I do not want to sound harsh, but we are trying to run a business not 
 play high school games.

 Any help is greatly appreciated!

 Thank you.


 On Thursday, 9 August 2012 21:29:30 UTC-4, Trevor Johns wrote:

 fibercode,
 A number of in-app billing subscriptions were erroneously marked as 
 canceled this morning due to an issue on our servers. Most of the affected 
 subscriptions have already been restored by our engineers, and users did 
 not loose access to content during this time. We will be sending a followup 
 email soon to those affected explaining what happened.

 There were a small minority of users who's subscription auto-renewal 
 dates occurred before we we were able to restore the subscription, and 
 accordingly were not renewed. These users can choose to re-subscribe using 
 the standard in-app billing mechanism within your app (they will appear as 
 a standard expired subscription to your app).

 The HTTP Android Developer API would have still returned the correct 
 expiration time for all subscriptions, so users continued to receive all 
 content they had paid for.

 We sincerely apologize the inconvenience this has caused, and our team 
 will be taking steps to ensure similar incidents do not occur in the future.

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 12:03:23 PM UTC-7, fibercode wrote:

 One of our Android applications has supported in app billing for a 
 while now.

 A little over two weeks ago we published an update that supports the 
 newly released by Google in app subscriptions.

 Everything was fine until this morning when mysteriously all the 
 subscriptions purchased by our customers were canceled automatically! 
 We got up this morning, checked our emails and our test accounts had the 
 subscriptions canceled even though we had not done that. This obviously 
 raised a lot of red flags so we started checking our customers' 
 subscriptions and it seems that they were all canceled !!! We were even 
 contacted by several of our customers who thought that we canceled their 
 subscriptions.

 The new subscription purchases done today (August 9th) are not being 
 canceled but we can no longer trust how long that will last.

 The only conclusion we could 

[android-developers] Re: ADB and Mountain Lion Issues

2012-08-10 Thread bob
I have the Galaxy Tab 10.1, and it doesn't give me any trouble.  Are you 
sure it gives you trouble?

Also, are you on Macbook Air or Pro?  I'm on Pro.


On Thursday, August 9, 2012 9:32:47 PM UTC-5, Dave Smith wrote:

 Galaxy Tab 10.1, Nexus 7, Droid 2, Droid Intercept;  I'm fairly confident 
 it's not device/manufacturer specific.  Wondering if there's a USB cache I 
 can clear...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Alert Dialog Box

2012-08-10 Thread bob
 

 final WifiManager wifiManager = (WifiManager) this

  .getSystemService(Context.WIFI_SERVICE);


 AlertDialog.Builder builder = new AlertDialog.Builder(this);

 builder.setMessage(Enable Wifi?)

  .setCancelable(false)

  .setPositiveButton(Yes,

   new DialogInterface.OnClickListener() {

   public void onClick(DialogInterface dialog, int id) {

wifiManager.setWifiEnabled(true);

   }

   })

  .setNegativeButton(No, new DialogInterface.OnClickListener() {

  public void onClick(DialogInterface dialog, int id) {

   dialog.cancel();

   finish();

  }

  });

 AlertDialog alertDialog = builder.create();

 alertDialog.show();

On Friday, August 10, 2012 12:48:11 AM UTC-5, Meena Rengarajan wrote:

 How to Enable Wifi automatically in Android 2.2 in an alert box ? If i 
 click Yes button then it should be enable and if i click no then 
 application must be closed. Can anyone tell me this how should i do ?


-- 
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: ADB and Mountain Lion Issues

2012-08-10 Thread Dave Smith
Macbook Pro, and it definitely does.  Symptoms are the same regardless of 
device.

On Friday, August 10, 2012 4:02:33 PM UTC-6, bob wrote:

 I have the Galaxy Tab 10.1, and it doesn't give me any trouble.  Are you 
 sure it gives you trouble?

 Also, are you on Macbook Air or Pro?  I'm on Pro.


-- 
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: All Android in app subscriptions were mysteriously automatically canceled

2012-08-10 Thread fibercode
Update to my last post.

It seems that the online play.google.com store is now showing the correct 
Active status for the subscriptions.
The Google Store app on the devices is still showing Canceled.

As you suggested all this could be due to some caching or data replication 
issues.

However, please do not consider this issue fixed until everything 
falls completely back into place.

Thank you.

On Friday, 10 August 2012 18:02:32 UTC-4, fibercode wrote:

 Trevor,

 I did do a few queries to the Developer API servers and all of the 
 subscriptions I checked seem to be back to normal and are correctly flagged 
 with autoRenewing: true.

 There seems to be still one outstanding issue. If a customer that had 
 purchased a subscription finds our application on the Google Play store 
 (both online an the Play Store app on a device) it is till showing as being 
 canceled. At the same time if they check their Google Wallet account under 
 Subscriptions it says Active and also the Developer API replies back 
 with autoRenewing: true.

 So, for example, Google order number: 574480490664998 shows the following:

 1. wallet.google.com shows the subscription as Active
 2. Querying the Developer API servers returns autoRenewing: true
 3. play.google.com and the Play Store app show the subscription as 
 Canceled

 Things look like are getting better but still not completely back to 
 normal.

 Thank you.
  

 On Friday, 10 August 2012 16:22:07 UTC-4, Trevor Johns wrote:

 fibercode,
 Can you let me know if you're still seeing this? I just confirmed with 
 our engineering team that everything should be back to normal. If anything 
 still looks off, let me know and I'll have them take a closer look.

 (It's possible there was some caching delays with the Developer API, 
 which might explain why you were still seeing non-renewing subscriptions.)

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 11:38:03 PM UTC-7, fibercode wrote:

 Trevor,

 Thank you for your prompt response and the explanation. At least now we 
 know that we are not living in some alternate reality and stopped pinching 
 ourselves in disbelief.

 But, we still have all of our customers subscriptions canceled. None of 
 those were restored back to active. Now when we query the Google API server 
 to see if the subscriptions are still active we get false.

 For example:
 We queried Google order number: 574480490664998 and got the following 
 JSON response:

 {
  kind: androidpublisher#subscriptionPurchase,
  initiationTimestampMsec: 1342064134000,
  validUntilTimestampMsec: 1344749703290,
  autoRenewing: false
 }

 That order should have been restored to autoRenewing: true!

 Please let me know if we are missing something?

 Our customers have not had any termination of service, since our servers 
 are correctly keeping track of the expiration date of their subscriptions.
 But that is not the point. The main thing is that they would have to now 
 manually go and purchase the same subscription they did subscribe to before 
 (the one they did not unsubscribe from).
 I think that is a horrible way to treat them.

 I do not want to sound harsh, but we are trying to run a business not 
 play high school games.

 Any help is greatly appreciated!

 Thank you.


 On Thursday, 9 August 2012 21:29:30 UTC-4, Trevor Johns wrote:

 fibercode,
 A number of in-app billing subscriptions were erroneously marked as 
 canceled this morning due to an issue on our servers. Most of the affected 
 subscriptions have already been restored by our engineers, and users did 
 not loose access to content during this time. We will be sending a 
 followup 
 email soon to those affected explaining what happened.

 There were a small minority of users who's subscription auto-renewal 
 dates occurred before we we were able to restore the subscription, and 
 accordingly were not renewed. These users can choose to re-subscribe using 
 the standard in-app billing mechanism within your app (they will appear as 
 a standard expired subscription to your app).

 The HTTP Android Developer API would have still returned the correct 
 expiration time for all subscriptions, so users continued to receive all 
 content they had paid for.

 We sincerely apologize the inconvenience this has caused, and our team 
 will be taking steps to ensure similar incidents do not occur in the 
 future.

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 12:03:23 PM UTC-7, fibercode wrote:

 One of our Android applications has supported in app billing for a 
 while now.

 A little over two weeks ago we published an update that supports the 
 newly released by Google in app subscriptions.

 Everything was fine until this morning when mysteriously all the 
 subscriptions purchased by our customers were canceled automatically! 
 We got up this morning, checked our emails and our test 

[android-developers] Physical Keyboard can not be disabled on Android 4.1.1

2012-08-10 Thread fan zhang
Hi:

I upgraded my XOOM (Wingray) to Android 4.1.1 recently. However, I could
not disable external BT keyboard with Jelly Bean.


This is 100% reproduced.

1. Add a BT keyboard to XOOM
2. start browser app
3. Touch search text box
4. Touch input method icon in status bar
5. Disable Physical key
6. Touch search text box
7.  Touch input method icon in status bar
8.  Found that Physical keyboard is still enabled.  ( In Android
4.0.3, Physical keyboard is disabled now)
9. Could not use soft keyboard with BT keyboard is connected.

I did not experience this issue with Android 4.0.3.

Did you experience same problem?

How to resolve this problem?


Thanks,

Fan

-- 
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] Physical Keyboard can not be disabled on Android 4.1.1

2012-08-10 Thread Mark Murphy
This list is for developing applications with the Android SDK. Please
consult your device manufacturer for technical support with your
device.

On Fri, Aug 10, 2012 at 7:22 PM, fan zhang fzhang...@gmail.com wrote:
 Hi:

 I upgraded my XOOM (Wingray) to Android 4.1.1 recently. However, I could not
 disable external BT keyboard with Jelly Bean.


 This is 100% reproduced.

 1. Add a BT keyboard to XOOM
 2. start browser app
 3. Touch search text box
 4. Touch input method icon in status bar
 5. Disable Physical key
 6. Touch search text box
 7.  Touch input method icon in status bar
 8.  Found that Physical keyboard is still enabled.  ( In Android 4.0.3,
 Physical keyboard is disabled now)
 9. Could not use soft keyboard with BT keyboard is connected.

 I did not experience this issue with Android 4.0.3.

 Did you experience same problem?

 How to resolve this problem?


 Thanks,

 Fan

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.0 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Physical Keyboard can not be disabled on Android 4.1.1

2012-08-10 Thread fan zhang
This is not a device specific issue.

All Android tablet devices should experience same problem.

Thanks,

Fan

On Fri, Aug 10, 2012 at 4:29 PM, Mark Murphy mmur...@commonsware.comwrote:

 This list is for developing applications with the Android SDK. Please
 consult your device manufacturer for technical support with your
 device.

 On Fri, Aug 10, 2012 at 7:22 PM, fan zhang fzhang...@gmail.com wrote:
  Hi:
 
  I upgraded my XOOM (Wingray) to Android 4.1.1 recently. However, I could
 not
  disable external BT keyboard with Jelly Bean.
 
 
  This is 100% reproduced.
 
  1. Add a BT keyboard to XOOM
  2. start browser app
  3. Touch search text box
  4. Touch input method icon in status bar
  5. Disable Physical key
  6. Touch search text box
  7.  Touch input method icon in status bar
  8.  Found that Physical keyboard is still enabled.  ( In Android 4.0.3,
  Physical keyboard is disabled now)
  9. Could not use soft keyboard with BT keyboard is connected.
 
  I did not experience this issue with Android 4.0.3.
 
  Did you experience same problem?
 
  How to resolve this problem?
 
 
  Thanks,
 
  Fan
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 4.0 Available!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Physical Keyboard can not be disabled on Android 4.1.1

2012-08-10 Thread Mark Murphy
On Fri, Aug 10, 2012 at 7:58 PM, fan zhang fzhang...@gmail.com wrote:
 This is not a device specific issue.

 All Android tablet devices should experience same problem.

That's nice, but that still has absolutely nothing to do with this list.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.0 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: bitmap font ok?

2012-08-10 Thread Nobu Games
It's not (just) the .ttf file which is protected and needs to be licensed. 
It is the actual typeface / appearance / design for which you have to pay. 
What you are trying to do wouldn't solve your problem either. As an example 
an excerpt from the license text 
http://www.myfonts.com/viewlicense.php?lid=1444of myfonts.com:

3. Embedding Font Software and Representations of Typeface and Typographic 
 Designs and Ornaments. You may embed the Font Software only into an 
 electronic document that (i) is not a Commercial Product, (ii) is 
 distributed in a secure format that does not permit the extraction of the 
 embedded Font Software, and (iii) in the case where a recipient of an 
 electronic document is able to Use the Font Software for editing, only if 
 the recipient of such document is within your Licensed Unit. 

 *You may embed* static graphic images into an electronic document, 
 including a Commercial Product, (for example, a “gif”) with a 
 representation of a typeface and typographic design or ornament created 
 with the Font Software as long as such images are not used as a replacement 
 for Font Software, i.e. *as long as the representations do not correspond 
 to individual glyphs* of the Font Software and may not be individually 
 addressed by the document to render such designs and ornaments.

I bet that a similar (if not the same) license applies also to Arial.

How about browsing Google Web Fonts http://www.google.com/webfonts/? Most 
licenses there are pretty friendly for your use case.
 



On Friday, August 10, 2012 4:29:10 PM UTC-5, bob wrote:

 Okay.  So, it is illegal to put Arial.ttf in my Android App without paying 
 a lot of licensing fees to the Arial people.

 Is it ok to use a Bitmap Font generator with Arial and put the resulting 
 PNG bitmap file in my Android 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

Re: [android-developers] How to dynamically change row layout of list view on click event

2012-08-10 Thread Justin Anderson
To do something like that you are going to have to write a custom
adapter...  When the listview item is clicked you then set the clicked
status on the adapter for the clicked item, call notifyDataSetChanged() and
let the getView() method handle the change...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Aug 9, 2012 at 1:46 AM, Jovish P android.f...@gmail.com wrote:

 We are using list view in our app with one simple row layout.
 But on click of list view we want to change the row layout of
 tht particular item . is it possible to do ? wht is the best approach ?
 Ho to add listeners to view inside the row layout?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: how best to move canvas dimensions to tablet proportions. Functions I could use...

2012-08-10 Thread Justin Anderson
Don't hardcode any values...  With a little imagination and research you
should be able to achieve what you want without detecting the screen size
either...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 10, 2012 at 3:43 PM, bob b...@coolfone.comze.com wrote:

 Display display = ((WindowManager)
 getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
 int width = display.getWidth();
 int height = display.getHeight();


 On Friday, August 10, 2012 4:34:12 PM UTC-5, cellurl wrote:

 I have an app that looks fine on an HTC-G1, but is all misaligned on a
 tablet.
 Q: What functions should I use to find screen size, so I can get rid
 of the hard numbers you see below.
 For example, 347 is 50% in the X direction...
 Thanks for any leads!
 -cellurl


 public class View extends SurfaceView implements SurfaceHolder.Callback {

 class Thread extends Thread implements OnJetEventListener {}

   public Thread(SurfaceHolder surfaceHolder, Context context,
 Handler handler) {}

c = mSurfaceHolder.lockCanvas(**null);
 // synchronized (mSurfaceHolder) {
 doDraw(c);
 }

 private void doNeedleAnimation2nd(Canvas canvas) {

 float px= 347;  //this is the center for R.drawable.needle
 float py= 33;
 canvas.translate(-110, 245);//this is the pivot for
 R.drawable.background_a
 }

  --
 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] Dynamic creation of table and showing it on dialog box

2012-08-10 Thread Justin Anderson
Great... then do it.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Aug 8, 2012 at 1:14 AM, Krishna Mahadik
krishna.maha...@gmail.comwrote:

 Hi People,

 I am want to generate a table dynamically at runtime and show it in
 a dialog box.

 Help and guidance needed.

 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

-- 
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] Error in App

2012-08-10 Thread Justin Anderson

 08-08 19:40:40.513: E/AndroidRuntime(692): Caused by:
 java.lang.NullPointerException
 08-08 19:40:40.513: E/AndroidRuntime(692): at android.content.
 ContextWrapper.unregisterReceiver(ContextWrapper.java:378)
 08-08 19:40:40.513: E/AndroidRuntime(692): at
 ir.smspeik.sms.GetResponse.init(GetResponse.java:34)


I would try looking at line 34 of your GetResponse class... Something is
null there.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Aug 8, 2012 at 2:05 PM, Ehsan Sadeghi esade...@gmail.com wrote:

 08-08 19:40:40.513: E/AndroidRuntime(692): Caused by:
 java.lang.NullPointerException
 08-08 19:40:40.513: E/AndroidRuntime(692): at
 android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:378)
 08-08 19:40:40.513: E/AndroidRuntime(692): at
 ir.smspeik.sms.GetResponse.init(GetResponse.java:34)


-- 
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] Fixing the lack of the unit % and the lack of the unit em for a Layout for a View

2012-08-10 Thread goodG
I don't get the reason why but in Android this 2 units seems to be not 
available when creating a new layout

http://developer.android.com/guide/topics/resources/more-resources.html#Dimension

There is a workaround for this ? At least for the percentage that is really 
helpful when dealing with a big number of possible aspect ratio and 
resolutions.

-- 
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 use apache thrift with android????

2012-08-10 Thread adroidanky


thanks riderj..the application is error free now but client is not 
communicating with server the client code is attached plz if u give a 
simple android client code which can communicate with thrift enabled 
serverpl help me to get overcome this problem..

-- 
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.test.a;

import java.util.List;

import getsearch.Getsearch;
import getsearch.Urlget;
import mainservice.Mainservice;

import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransport;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class NewthriftActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
	//this code is used to cretae an client
	try{
TTransport transport = new TSocket(107.20.177.28, );
transport.open();
	//TProtocol protocol = new  TBinaryProtocol(transport);
//Mainservice.Client client = new Mainservice.Client(protocol);
//upto this line is common code for client need not to touch

//below call any API using client object created above
//like I have call add API which take some input and return output
/*System.out.println(client);
   Getsearch g=new Getsearch();
  g.rows=5;
   g.text=india;
   g.page=Integer.toString(2);
  
  // System.out.println(client.get_search(g));
	//System.out.println(The Sum is: +sum);
	
	//close client socket
   ListUrlget a=client.get_search(g);
   Urlget b=a.get(0);
  String ak= b.getName();
   */
   Toast.makeText(getBaseContext(), ak, Toast.LENGTH_LONG).show();
	//transport.close();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}

[android-developers] Creating multiselect ListView in android

2012-08-10 Thread kalandar
Hi guys this my code for creating multiselect list view in android , check 
out this , this may helpful for some situation. 

*
http://kalandarandroid.blogspot.in/2012/08/creating-multiselect-listview-in-android.html
*http://kalandarandroid.blogspot.in/2012/08/creating-multiselect-listview-in-android.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dynamic creation of table and showing it on dialog box

2012-08-10 Thread TreKing
On Wed, Aug 8, 2012 at 2:14 AM, Krishna Mahadik
krishna.maha...@gmail.comwrote:

 Help and guidance needed.


http://developer.android.com/guide/index.html
http://www.google.com

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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