Re: [android-developers] Re: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-06 Thread Zsolt Vasvari
If this happens on hardware but not on the emulator, my guess is that this 
is not really a PNG/GIF issue.  I couldn't get Google I/O tickets either, 
so I cannot help.

On Friday, July 6, 2012 11:50:43 PM UTC+8, Josh F. wrote:
>
> I will create the bug report as soon as I can get a development device 
> with this actual build on it as it does not happen in the emulator.  As it 
> stands right now you had to be at Google I/O to get one and tickets sold so 
> fast I was not able to get one.  To test this issue and the fix I have had 
> to rely on my users who were there and have a Galaxy 7, which is not going 
> to work to create a sample project example of the issue required to post an 
> official bug report.  Hopefully in a few weeks I'll get my Galaxy 7 and do 
> just that.
>
> If someone in the community has a device that they would be willing to 
> test with me on, I can send sample files/etc. to create the bug report 
> sooner.
>
> On Friday, July 6, 2012 8:27:14 AM UTC-7, Mark Murphy (a Commons Guy) 
> wrote:
>>
>> > This is a bug in 
>> > Android 4.1 Jelly Bean as released on current devices and I hope that 
>> they 
>> > fix it before full retail devices ship or this thread will get very 
>> busy. 
>>
>> Please feel free to file a bug report on http://b.android.com, with a 
>> sample project demonstrating the issue. 
>>
>> -- 
>> Mark Murphy (a Commons Guy) 
>> http://commonsware.com | http://github.com/commonsguy 
>> http://commonsware.com/blog | http://twitter.com/commonsguy 
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 
>>
>

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

Re: [android-developers] Alaram Manager after 5 min

2012-07-06 Thread TreKing
On Fri, Jul 6, 2012 at 5:21 AM, Rahul Kaushik wrote:

> I need to call AlarmReceiver Call after evry 5 min but it is getting
> caaled after every sec pls tell wt am doing wrong


You are not calculating 5 minutes in milliseconds correctly.

-
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] Transfering image file between two 2 emulators

2012-07-06 Thread ashok chakravarthy
open the fileInputStream on the file that is stored in the sdcard.

http://stackoverflow.com/questions/5298131/android-using-fileinputstream-for-reading-file-from-sdc-reporting-null-pointer

and write the bytes of the file in to the Output stream of the Socket. You
collect the bytes on the other emulator and store in a file.


On Sat, Jul 7, 2012 at 9:59 AM, Akki  wrote:

> I was trying to send an image file between 2 emulators using a TCP socket
> connection.The socket connection has been successfully made and the image
> file is stored on the SD-card of one of the emulators. I want to ask how
> can I convert the image file into byte stream and how on the other side can
> I convert back the bytestream to image format?? I tried to search a lot but
> couldn't find the right function in the API.
>
> Any other ideas for the same are welcomed
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Transfering image file between two 2 emulators

2012-07-06 Thread Akki


I was trying to send an image file between 2 emulators using a TCP socket 
connection.The socket connection has been successfully made and the image 
file is stored on the SD-card of one of the emulators. I want to ask how 
can I convert the image file into byte stream and how on the other side can 
I convert back the bytestream to image format?? I tried to search a lot but 
couldn't find the right function in the API.

Any other ideas for the same are welcomed

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: In App Billing V2: Item not found, but purchase OK

2012-07-06 Thread fiber
This is a bug in the sample Dungeons application in the onClick method for 
the purchase button.

I posted a solution here:
http://stackoverflow.com/a/11371927/625030

The supplied method has a bug in the if {} else if {} statement where it 
causes the mBillingService.requestPurchase to be called twice, when the 
selected item is not a subscription item (mManagedType != 
Managed.SUBSCRIPTION). So the same item will be requested twice, once with 
an item type of "inapp" (which is the valid request) and immediately after 
that with an item type of "subs" (which is incorrect and it shows "item not 
found").

Here is the buggy code:

if (mManagedType != Managed.SUBSCRIPTION &&
!mBillingService.requestPurchase(mSku, 
Consts.ITEM_TYPE_INAPP, mPayloadContents)) {
showDialog(DIALOG_BILLING_NOT_SUPPORTED_ID);
} else if (!mBillingService.requestPurchase(mSku, 
Consts.ITEM_TYPE_SUBSCRIPTION, mPayloadContents)) {
// Note: mManagedType == Managed.SUBSCRIPTION
showDialog(DIALOG_SUBSCRIPTIONS_NOT_SUPPORTED_ID);
}

To fix this, add mManagedType == Managed.SUBSCRIPTION to the else if above.

Here is how the function should look:

@Override
public void onClick(View v) {
if (v == mBuyButton) {
if (Consts.DEBUG) {
Log.d(TAG, "buying: " + mItemName + " sku: " + mSku);
}

if (mManagedType != Managed.SUBSCRIPTION &&
!mBillingService.requestPurchase(mSku, 
Consts.ITEM_TYPE_INAPP, mPayloadContents)) {
showDialog(DIALOG_BILLING_NOT_SUPPORTED_ID);
} else if (mManagedType == Managed.SUBSCRIPTION && 
!mBillingService.requestPurchase(mSku, Consts.ITEM_TYPE_SUBSCRIPTION, 
mPayloadContents)) {
// Note: mManagedType == Managed.SUBSCRIPTION
showDialog(DIALOG_SUBSCRIPTIONS_NOT_SUPPORTED_ID);
}
} else if (v == mEditPayloadButton) {
showPayloadEditDialog();
} else if (v == mEditSubscriptionsButton) {
editSubscriptions();
}
}


On Saturday, 16 June 2012 00:23:02 UTC-4, John wrote:
>
> Have In App Billing V2 incorporated into my code and be able to buy 
> one-time purchase item and yearly subscription item. But when 
> purchasing one-time purchase item, always get the message "Item not found". 
> Is this a Google bug? Any help? Thanks in advance.
>
> -John
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] UPD packets doesn't arrive on a Samsung Galaxy Tab 7.7 but they arrive on a HTC Desire

2012-07-06 Thread Harri Smått
Are you sure 255.255.255.255 is the correct broadcast address you want to
use? It might be a good idea to give other private IP broadcast addresses a
go too. This won't fix your problem with packet "bundling" though.

--
H
On Jul 7, 2012 3:18 AM, "VansFannel" 
wrote:

> I'm developing an Android 3.1 Tablet application. I'm going to use this
> app to listen to UDP packets send by a device which is sending UDP packets
> to 255.255.255.255:8001 every 5 seconds.
>
> Using desktop program Docklight scripting v1.9, I see that this device
> sends a 11 bytes packet every 5 seconds, by my app doesn't receive every
> packet: sometimes it receives one, and sometimes it receives 5 or 6 packets
> at the same time.
>
> This is my Activity: http://pastebin.com/5knkgWkT
>
> UDP Listener Thread: http://pastebin.com/vggdhV9D
>
> AndroidManifest.xml: http://pastebin.com/iM29NBCE
>
> If I send a UDP packet to Tablet's IP, e.g. UDP:192.168.1.135:8001,
> sometimes it receives the packet. And sometimes it receives three or four
> at the same time.
>
> But if I send direct UDP packet to an *HTC Desire 2.2.2 *it receives all
> of them, but my HTC doesn't receive broadcast packets. And I'm using the
> same code.
>
> This how I am receiving UDP broadcast packets (look at the time):
> 07-06 12:08:56.580: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:08:59.655: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:02.410: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:03.230: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:03.435: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:03.745: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:03.945: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:04.460: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:04.770: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:04.975: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:09:46.855: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:06.005: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:06.310: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:06.515: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:06.825: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:07.335: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:07.640: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:07.845: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:10.415: V/UDServerThread(6449): Mensaje recibido.
> 07-06 12:10:17.065: V/UDServerThread(6449): Mensaje recibido.
>
> What am I doing wrong? Maybe I need some custom configuration.
>
> By the way, I am testing it on a Samsung Galaxy Tab 7.7 with Android 3.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-developers@googlegroups.com
> To unsubscribe from this group, 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] Noob question: where to go for new development

2012-07-06 Thread Mark Murphy
On Fri, Jul 6, 2012 at 5:21 PM, Daniel Struve  wrote:
> thanks for the reply. Man, wish there was a faster way.

You could try to get a job at Google.

:-)

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

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

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


Re: [android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-06 Thread Justin Anderson
>
> Well I haven't heard back from anyone from Google...
> Doesn't particularly surprise
> me since it's the week of the 4th of July.
>

Or since it happens to be a week in any given year

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


On Fri, Jul 6, 2012 at 3:15 PM, CVP  wrote:

> Well I haven't heard back from anyone from Google...
> Doesn't particularly surprise me since it's the week of the 4th of July.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Noob question: where to go for new development

2012-07-06 Thread Daniel Struve
thanks for the reply. Man, wish there was a faster way.

Daniel Struve


On Sun, Jul 1, 2012 at 7:14 AM, Mark Murphy  wrote:

> On Fri, Jun 29, 2012 at 4:28 PM, Daniel Struve  wrote:
> > I would love to join in development for the google glasses.  Where to
> start?
>
> Step #1: Wait a year or so for them to be made available to the
> general public, while saving your money along the way, because the
> devices are likely to be rather expensive (developer editions for 2012
> I|O attendees are 1500 USD IIRC).
>
> Step #2: Ask again then.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-06 Thread CVP
Well I haven't heard back from anyone from Google... 
Doesn't particularly surprise me since it's the week of the 4th of July.

>From the Reddit post I got a clue... This most recent version of the app is 
using AdWhirl for ad mediation (as opposed to just admob)... The default 
adview for adwhirl keeps the view visibility as "gone" before an ad is 
displayed. So when it is displayed it shifts the entire layout. I've never 
noticed this because I'm almost always on wifi so I've never seen a 
delay... When I was just using Admob it would just render a black box in 
place of the ad if there wasn't one, or until it was loaded.

I posted a new version of the application that moves the ad placement on 
the dismiss screen to the top away from any buttons. And across all the 
screens that have an ad I force the view to be visible with a minimum 
height of 30dip.

Now I just have to wait for Google to un-suspend the original package so 
everyone can get the update... Hopefully it won't be long especially now 
that they have a new version to evaluate. Still shame on them for giving 
absolutely no warning what so ever... Especially considering that they 
don't mention anything about ad placements in their content agreement.



>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] call a service run into background many time having starting times are different

2012-07-06 Thread TreKing
On Fri, Jul 6, 2012 at 11:19 AM, Aashish kumar wrote:

> can any one told me that  run service  having different 2 starting time???


Your question is not very clear. If you are asking if you can have a
service that starts up at two different times, then, yes, you can.

-
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] help me plz.

2012-07-06 Thread TreKing
First, please use a title that gives even a slight indication of what your
post is about. This will help you get help and will help others find the
topic in the future if they search for it.

On Fri, Jul 6, 2012 at 11:26 AM, Aashish kumar wrote:

> I would like to let my app start up itself in the specified time,even
> it has not been actived in the background.
> Just like a Alarm Clock.
> how should I do?


Look up AlarmManager.

-
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] Android Carousel

2012-07-06 Thread Francisco M. Marzoa Alonso
Ok, forgot my previous message... X-D

On 05/07/12 12:43, Jorge Gil Royo wrote:
> Problem solved.
>
> What happened was that I did not realize the resolution of the mobile screen,
> then the carousel buttons appear, but were covered by other layouts.
>
> Once adjusted the size and position of the buttons of the carousel, the
> buttons are displayed correctly.
>
> Thanks for the help!
>
>

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


Re: [android-developers] Android Carousel

2012-07-06 Thread Francisco M. Marzoa Alonso
May be the emulator and the actual device has different screen sizes?

Regards,

On 04/07/12 14:11, Jorge Gil Royo wrote:
> Using the emulator 4.x working properly.
>
> When I use the phone there is no message in the logcat containing
> information about the carousel.
>
> Is the first time something happens to me so strange.
>
> Thank you!
>
> 2012/7/4 Jorge Gil Royo 
>
>> Usando el emulador 4.x funciona correctamente.
>>
>> Cuando uso el teléfono móvil no aparece ningún mensaje en el LogCat que
>> contenga información acerca del carrusel.
>>
>> Es la primera vez que me sucede algo tan raro.
>>
>> Gracias!
>>
>>
>> 2012/7/2 TreKing 
>>
>>> On Fri, Jun 29, 2012 at 6:26 AM, Jorge Gil Royo wrote:
>>>
 But when I test the application on a mobile phone (Android 4.x) the
 carousel works correctly, but no buttons appear.

>>> And if you test on the 4.X emulator?
>>>
>>>
  Does anyone know why it happens?
 Does anyone know how to fix it?

>>> Your question is extremely vague. How about some screenshots? Anything in
>>> the LogCat that looks useful?
>>>
>>>
>>> -
>>> 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
>>
>>


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] help me plz.

2012-07-06 Thread Francisco M. Marzoa Alonso
AFAIK you need to create a service for that.

Anyway why you not look for something easier for the "first exercise"?

Regards,


On 06/07/12 18:26, Aashish kumar wrote:
> I am making a app similar to a Alarm Clock as the first exercise.
> I would like to let my app start up itself in the specified time,even
> it has not been actived in the background.
> Just like a Alarm Clock.
> 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] Bluetooth chat bug?

2012-07-06 Thread bob
I'm looking at the Bluetooth chat example:

// When discovery finds a device
if (BluetoothDevice.ACTION_FOUND.equals(action)) {
// Get the BluetoothDevice object from the Intent
BluetoothDevice device = 
intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
// If it's already paired, skip it, because it's been 
listed already
if (device.getBondState() != BluetoothDevice.BOND_BONDED) {
mNewDevicesArrayAdapter.add(device.getName() + "\n" + 
device.getAddress());
}
// When discovery is finished, change the Activity title
} 



I think there is a bug here because it assumes device.getName() does not 
return null, when in fact it might.

What do you guys think?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bluetooth crash

2012-07-06 Thread bob
Ok.
I suspect 
android.bluetooth.BluetoothDevice.getName() is returning null sometimes. 
 Don't know when.  Don't know why.

Here's what ACRA says:

java.lang.NullPointerException
at 
android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394)
at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)
at android.widget.AbsListView.obtainView(AbsListView.java:2046)
at 
android.widget.ListView.measureHeightOfChildren(ListView.java:1292)
at android.widget.ListView.onMeasure(ListView.java:1155)
at android.view.View.measure(View.java:13018)
at 
android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:594)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:376)
at android.view.View.measure(View.java:13018)
at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4706)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
at android.view.View.measure(View.java:13018)
at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4706)
at 
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1369)
at 
android.widget.LinearLayout.measureVertical(LinearLayout.java:660)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:553)
at android.view.View.measure(View.java:13018)
at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4706)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
at 
com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2162)
at android.view.View.measure(View.java:13018)
at 
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1084)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2498)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4944)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)


On Friday, July 6, 2012 9:13:20 AM UTC-5, Kristopher Micinski wrote:
>
> Use ACRA for your apps, at the very least, so you have a crash report... 
>
> kris 
>
> On Fri, Jul 6, 2012 at 10:06 AM, bob  wrote: 
> > Any ideas why trying to enumerate a list of discoverable Bluetooth 
> devices 
> > would cause an Android Ice Cream Sandwich device to crash? 
> > 
> > 
> > Unfortunately, all I have is a vague user report. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to android-developers@googlegroups.com 
> > To unsubscribe from this group, 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: OutOfMemoryException

2012-07-06 Thread RichardC
How large are your images (not file size, but width*hight*bits-per-pixel) 
images are uncompressed when loaded so you need to budget your memory on 
the expanded size?
How many do you load the same time?
Do you unload bitmaps that you have finished using?

On Friday, July 6, 2012 5:16:17 PM UTC+1, Android Developer wrote:
>
> Hi,
>
> I am working in a avatar like application that has lots of images more 
> than 1000 where user can change any image at runtime. But its frequently 
> running out of heap space and then crashed.
>
> I checked this. 
> http://developer.android.com/training/displaying-bitmaps/index.html 
>
> But it didnt solve my problem. Even i have worker thread to update the 
> image to UI. 
>
>
> *Stack Trace : 
>
>
> 07-06 21:54:45.707: E/AndroidRuntime(14405): java.lang.OutOfMemoryError
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:483)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:351)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.content.res.Resources.loadDrawable(Resources.java:1935)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.content.res.Resources.getDrawable(Resources.java:664)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.widget.ImageView.resolveUri(ImageView.java:542)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.widget.ImageView.setImageResource(ImageView.java:315)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.os.AsyncTask.finish(AsyncTask.java:602)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.os.AsyncTask.access$600(AsyncTask.java:156)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:615)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.os.Handler.dispatchMessage(Handler.java:99)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.os.Looper.loop(Looper.java:137)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> android.app.ActivityThread.main(ActivityThread.java:4424)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> java.lang.reflect.Method.invokeNative(Native Method)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> java.lang.reflect.Method.invoke(Method.java:511)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> 07-06 21:54:45.707: E/AndroidRuntime(14405): at 
> dalvik.system.NativeStart.main(Native Method)
>
>
> *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] help me plz.

2012-07-06 Thread Aashish kumar
I am making a app similar to a Alarm Clock as the first exercise.
I would like to let my app start up itself in the specified time,even
it has not been actived in the background.
Just like a Alarm Clock.
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] call a service run into background many time having starting times are different

2012-07-06 Thread Aashish kumar
hi,
can any one told me that  run service  having different 2 starting time???

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

Re: [android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-06 Thread Raphael P.F.
Interesting, on Alarm Clock Xtreme Free when you are just about to tap
'dismiss',
it pops up an ad. Pretty sure that qualifies as *"core features of your
application causes users to accidentally click on advertisements". *
*
*
Didn't check your app, though.

On Fri, Jul 6, 2012 at 11:56 AM, FiltrSoft  wrote:

> That is sneaky, though, in his defense, the ads that I have at the bottom
> do not always show up when first initialized, sometimes it takes hitting
> the Activity a second time for them to show.
>
>
> On Thursday, July 5, 2012 11:54:09 PM UTC-4, John Coryat wrote:
>>
>> I just searched
>>
>> Alarm Clock Plus click fraud
>>
>> and found this posting:
>>
>> http://r.bernsteinbear.com/r/**Android/comments/v1htq/alarm_**
>> clock_plus_click_fraud/
>>
>> I would say this could be the part or all of your problem.
>>
>> -John Coryat
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raphael
http://blog.rmontanaro.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] Re: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-06 Thread Josh F.
I will create the bug report as soon as I can get a development device with 
this actual build on it as it does not happen in the emulator.  As it 
stands right now you had to be at Google I/O to get one and tickets sold so 
fast I was not able to get one.  To test this issue and the fix I have had 
to rely on my users who were there and have a Galaxy 7, which is not going 
to work to create a sample project example of the issue required to post an 
official bug report.  Hopefully in a few weeks I'll get my Galaxy 7 and do 
just that.

If someone in the community has a device that they would be willing to test 
with me on, I can send sample files/etc. to create the bug report sooner.

On Friday, July 6, 2012 8:27:14 AM UTC-7, Mark Murphy (a Commons Guy) wrote:
>
> > This is a bug in 
> > Android 4.1 Jelly Bean as released on current devices and I hope that 
> they 
> > fix it before full retail devices ship or this thread will get very 
> busy. 
>
> Please feel free to file a bug report on http://b.android.com, with a 
> sample project demonstrating the issue. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 
>

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

Re: [android-developers] Updating text in a DialogFragment

2012-07-06 Thread Justin Anderson
Please post the relevant code...

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


On Thu, Jul 5, 2012 at 8:08 PM, Raymond Rodgers wrote:

> Hi folks,
> I've been searching for a solution to this problem for the last couple
> hours but haven't turned up a solution. I'm very new to using Fragments,
> but building an app based around the ViewPager in the support library. For
> the most part, I haven't had any problems, but I am running into a
> situation where I'm using a DialogFragment in the hopes of building a
> progress indicator while my app does some things in the background. I have
> an indeterminate progress indicator running in my DialogFragment, and I
> want to update one of two TextViews I have in the dialog as it progresses.
> I'm sending updates from my background service & thread via a Handler that
> is then to update the designated TextView. The problem is, that TextView
> isn't updating. I thought it might be an issue with the static field I
> assign the result of the findViewById() to (thinking that it may not exist
> before the dialog is displayed), so I do a check and secondary
> findViewById() prior to changing the text via TextView.setText().
> Unfortunately, it appears that the TextView field is always null, and so
> the view isn't getting updated.
>
> What am I failing to do? Do I need to do something with
> FragmentTransaction or FragmentManager in order to update this TextView?
>
> Thank you for your assistance!
> Raymond
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com
> To unsubscribe from this group, 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: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-06 Thread Mark Murphy
On Fri, Jul 6, 2012 at 11:01 AM, Josh F.  wrote:
> This is a bug in
> Android 4.1 Jelly Bean as released on current devices and I hope that they
> fix it before full retail devices ship or this thread will get very busy.

Please feel free to file a bug report on http://b.android.com, with a
sample project demonstrating the issue.

-- 
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: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-06 Thread Josh F.
I'm not looking for your sympathy Zsolt, I am pointing out a flaw in the 
release as currently available and recommending other developers take 
action now to avoid it.

Yes, I am very much aware that the SDK has (as far as I know always has) 
stated that the "GIF" is "discouraged", but that does not mean there are 
not correct places to use them (at the very least if you wrote a web 
browser you would need support for them).  In fact, the samples in the SDK 
actually include GIF images (even an animated GIF) and continue to be part 
of the APIDemos sample project in Android 4.1 Jelly Bean.  At least one 
reason is that the packaging system in Android can work better with PNG (it 
optimizes them), and in fact PNG is a better option in most cases if done 
properly.  However, that is not always true, and in our case a GIF image 
had better compression to performance characteristics for some images of 
certain sizes and display requirements as a GIF.

My point is there is a big difference between "discouraged" and 
"deprecated" as well as between "supported" and "not supported".  The 
"discouraged" does not mean "don't use these because we will pull support 
in the future" - that is what "deprecated" means.  It also does not mean 
"don't use these because we don't test them to work" - as that is not what 
"supported" means that they test it to work (otherwise it would say 
something like "available but not supported" or simply "not supported"). 
 "Discouraged" should mean that you need to carefully consider if this is 
the right option for you and weigh the risk and reward for 
your particular need as there may be better alternatives.  If you are going 
to say it is supported, which the line you copied clearly states it is 
supported, then it must be expected to work.  If you are going to stop 
supporting them, then you must mark it at least as deprecated and have it 
in your release notes.  Like I said, it works fine in the emulator and has 
worked for years on every device up to now, and they even continue to 
include it in the samples in the SDK.  This is a bug in Android 4.1 Jelly 
Bean as released on current devices and I hope that they fix it before full 
retail devices ship or this thread will get very busy.

On Thursday, July 5, 2012 9:49:31 PM UTC-7, Zsolt Vasvari wrote:
>
> That has been the recommendation in the Android SDK for at least the last 
> 2 years.  So if you do use GIFs after all this time, can't really feel 
> sorry for you.
>
> This is the exact quote from the doc and the same line has been there 
> since at least 1.1 when I started working with the platform:
>
> " A bitmap image. Android supports bitmap files in a three formats: .png
>  (preferred), .jpg (acceptable), .gif(discouraged). "
>
>
>
> On Thursday, July 5, 2012 11:25:10 PM UTC+8, Josh F. wrote:
>>
>> OK, this will be my last post on this one, but I certainly hope that 
>> Google will fix this in the future as I'm sure I'm not alone here.  We have 
>> moved all images away from GIF and now everything works fine in our game. 
>>  We will be releasing an update with the same once testing is completed. 
>>  So, a note to Android developers: Stop using GIF or risk big problems.
>>
>> On Wednesday, July 4, 2012 7:32:17 AM UTC-7, Josh F. wrote:
>>>
>>> It is definitely nothing to do with WebKit or the browser or similar, 
>>> this is a standard image view in a game trying to load a simple GIF with 
>>> transparency.  An interesting update: After updating to the latest build 
>>> tooks and setting the target SDK all the way up to 16 (for 4.1) the images 
>>> now show as just all black.  Without any word from anyone from 
>>> Google/Android, I'm gong to just go ahead and replace everything with PNG 
>>> files which are all slightly larger than my GIF files which will be a 
>>> memory hit, but I don't see any alternative if I want a fix done this week.
>>>
>>> On Tuesday, July 3, 2012 11:47:04 PM UTC-7, Zsolt Vasvari wrote:

 And we have no idea why you mention Webkit.  

 On Wednesday, July 4, 2012 2:03:29 PM UTC+8, Subramanya Somayaji wrote:
>
> We have no Idea What are the webkit changes,updates in Jeallybean!! 



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

[android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-06 Thread FiltrSoft
That is sneaky, though, in his defense, the ads that I have at the bottom 
do not always show up when first initialized, sometimes it takes hitting 
the Activity a second time for them to show.

On Thursday, July 5, 2012 11:54:09 PM UTC-4, John Coryat wrote:
>
> I just searched
>
> Alarm Clock Plus click fraud
>
> and found this posting:
>
>
> http://r.bernsteinbear.com/r/Android/comments/v1htq/alarm_clock_plus_click_fraud/
>
> I would say this could be the part or all of your problem.
>
> -John Coryat
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Easy and fast String obfuscation?

2012-07-06 Thread b0b


On Friday, 6 July 2012 12:47:03 UTC+2, Fran wrote:
>
> Hi there, 
>
> I am looking for a way to obfuscate some strings in a way that they may 
> be "unobfuscated" later. 
>
> The point is that my app -a casual game- will take some lines from a 
> file on an http server, and I do not want to have it as readable plain 
> text. 
>

Why not sending it over https ? 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize ListPreference (select_dialog_singlechoice) in the Preference screen

2012-07-06 Thread powder366

Hi,

When defining a ListPreference you get a CheckedTextView with 
android:checkMark to a drawable btn_radio (as I understand it).
Im trying to change the look of the radio button, but don't find a solution:

1. Where in android source (line and file) is the radio button defined for 
a ListPreference?
2. Is there a way to change the radio button to another drawable than the 
standard one (I do understand how btn_radio.xml etc. works)?
3. The file select_dialog_singlechoice.xml does not seem to be used?
4. I also haven't found anything in themes.xml and styles.xml, is there 
something there I can use?

Cheers Jonas.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bluetooth crash

2012-07-06 Thread Kristopher Micinski
Use ACRA for your apps, at the very least, so you have a crash report...

kris

On Fri, Jul 6, 2012 at 10:06 AM, bob  wrote:
> Any ideas why trying to enumerate a list of discoverable Bluetooth devices
> would cause an Android Ice Cream Sandwich device to crash?
>
>
> Unfortunately, all I have is a vague user report.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: prevent your app from showing in defautl app selection

2012-07-06 Thread rayk
ah okay thanks.  
 

On Friday, July 6, 2012 9:42:54 AM UTC-4, Mark Murphy (a Commons Guy) wrote:

> On Fri, Jul 6, 2012 at 9:36 AM, rayk  wrote: 
> > If I take out the category LAUNCHER the app will not launch. 
>
> That is not the activity that is appearing in the chooser. It is your 
> third activity. 
>
> > I read the 
> > Intent section but can not see what I need to replace it with to get it 
> to 
> > launch. 
>
> That is not the activity that is appearing in the chooser. It is your 
> third activity. 
>
> >
> >
> >  
> >  /> 
> >  
> >  
> > 
>
> This activity is claiming to handle all Web links, and hence it will 
> appear in various choosers. To fix this, delete the  
> and start up the activity using an explicit Intent from elsewhere in 
> your app (e.g., startActivity(new Intent(this, 
> ItemizedOverlay.class))). Or, tweak the  to be more 
> specific than claiming to handle all HTTP URLs. 
>
> -- 
> 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] Bluetooth crash

2012-07-06 Thread bob
 

Any ideas why trying to enumerate a list of discoverable Bluetooth devices 
would cause an Android Ice Cream Sandwich device to crash?  


Unfortunately, all I have is a vague user report.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Single Database for two application

2012-07-06 Thread Kristopher Micinski
On Fri, Jul 6, 2012 at 7:36 AM, Rajis  wrote:
>> I've googled so much about content provider but i haven't able to land on
>> a single simple example. Everyone shows how to share a data inside an app,
>> not between two apps. Pls try to put up an example or sample code; Will be
>> much useful :) Thnx in advance :)
>
>

In general asking people to post example code isn't likely to get you
as many answers... because nobody has time to write up examples and
test them, etc...

But to use a content provider between two apps you do the exact same
procedure as the within the app, except that your URI for things
changes (to the other app).  You *do* have to be careful: you have to
ensure that the other app is actually *there*, and that it's the
correct version you need.  (I.e., the schemas didn't change or
anything...).

So, to be clear, why do you need to do this?  If you need a relatively
tight coupling between the apps anyway, then they shouldn't be two
separate apps, they should be a single app.

kris

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


[android-developers] Mouse Scroll event on Gallery

2012-07-06 Thread shubh
Hi, like we have mouse scroll event on list view, but how can we have same 
scroll event for gallery view. any one have idea about it.
How can we get scroll event on gallery.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Jelly Bean errors with LVL

2012-07-06 Thread H
Looking at the javadoc on Signature.verify(), it looks like it has fixed 
one bug and introduced another:

"Indicates whether the given signature can be verified using the public key 
or a certificate of the signer. 
This Signature instance is reset to the state of its last initialization 
for verifying and thus can be used to 
 verify another signature of the same signer."

In 4.0 and below, the signature instance wasn't being reset correctly and 
was still valid and simply returned false if you tried to call verify() 
again. Now you have to update() it again before calling the verify() - 
otherwise you get a NullPointer. So I guess they have effectively fixed a 
previous bug and possibly caused a different bug.

I'll see if I can get a text app coded and raise it as a bug - it should 
throw something like a SecurityException instead.

On Thursday, July 5, 2012 2:04:29 PM UTC+1, Nikolay Elenkov wrote:
>
> On Thu, Jul 5, 2012 at 9:55 PM, H  wrote: 
> > Cheers Nikolay - thanks for the quick update, I'll try your suggestion 
> and 
> > see if that cures it. 
> > 
> > Do you know if this has been reported on b.android.com - I've been 
> checking 
> > it as normal but not noticed anything that sounds similar to this..? 
>
> I don't know, haven't checked, but probably not. If you can come up with a 
> simple test case that reproduces this reliably, do report it. (calling 
> verify 
> two/multiple times in a row with the same Signature instance?) 
>
> > 
> > I presume bouncycastle implementation might go completely in a later 
> release 
> > of Android..? 
>
> Probably not, but don't take my word for it. OpenSSL is not without 
> its flaws and 
> re-implementing everything on top of it is a pain. 
>
> > 
> > [ But I haven't downloaded the Jelly Bean image yet as I need to upgrade 
> adt 
> > and that is always a major headache - I might just have to mail an 
> updated 
> > version to some users and ask them to check it works for me. ] 
> > 
>
> If you don't want to change your dev environment, simply create a new 
> Eclipse 
> installation, and use that for testing ADT 20, JB, etc. 
>

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

Re: [android-developers] Re: prevent your app from showing in defautl app selection

2012-07-06 Thread Mark Murphy
On Fri, Jul 6, 2012 at 9:36 AM, rayk  wrote:
> If I take out the category LAUNCHER the app will not launch.

That is not the activity that is appearing in the chooser. It is your
third activity.

> I read the
> Intent section but can not see what I need to replace it with to get it to
> launch.

That is not the activity that is appearing in the chooser. It is your
third activity.

>   
>   
> 
> 
> 
> 
>

This activity is claiming to handle all Web links, and hence it will
appear in various choosers. To fix this, delete the 
and start up the activity using an explicit Intent from elsewhere in
your app (e.g., startActivity(new Intent(this,
ItemizedOverlay.class))). Or, tweak the  to be more
specific than claiming to handle all HTTP URLs.

-- 
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: prevent your app from showing in defautl app selection

2012-07-06 Thread rayk
Here is the manifext file.
 
If I take out the category LAUNCHER the app will not launch.  I read the 
Intent section but can not see what I need to replace it with to get it to 
launch.
 

http://schemas.android.com/apk/res/android";
package="com.darttournament.locator"
android:versionCode="8"
android:versionName="1.8" >













   

   

  




   
  


 
 
On Friday, June 29, 2012 2:08:23 PM UTC-4, Nobu Games wrote:

> Post your manifest file. The only reason why this happens is your app 
> declares itself to be able to handle this kind of intent. You may want to 
> read the following: 
> http://developer.android.com/guide/components/intents-filters.html#ifs
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Easy and fast String obfuscation?

2012-07-06 Thread Pent
Just use a 3rd party base64 library, it's a very small piece of code.

e.g. http://www.source-code.biz/base64coder/java/

Pent

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


Re: [android-developers] When a user uninstall my app, will the content provider be gone with the uninstalling, how about the changes I made to built in content provider?

2012-07-06 Thread Rajis

>
> @Kumar Bibek: Could u pls tel me a way to use(read and write) a content 
> provider of app1 in app2??? i've googled many examples but none found 
> helpfil can u help thnx 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] Android ViewPager invalidate() not working

2012-07-06 Thread arun kumar
Hai all,
I've just started with android development and invalidate the ViewPager is
really bugging me :/

Can someone tell me how can i invalidate the ViewPager while changing the
orientation.

This is what I've tried so far -

@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);

 myPager = (ViewPager) findViewById(R.id.my_pager);
 myPager.setAdapter(adapter);
 myPager.setCurrentScreen(currentPosition, false);
 invalidate();
}
The above code is working fine when attached debugging. But it is not
working on runtime (without debug mode). I have also tried with sleep but
no changes on view.

Can someone explain in detail what is happening here?

Thanks in advance :)
-- 
WITH REGARDS
ARUN KUMAR P D
+91-9994794759

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Single Database for two application

2012-07-06 Thread Rajis

>
> I've googled so much about content provider but i haven't able to land on 
> a single simple example. Everyone shows how to share a data inside an app, 
> not between two apps. Pls try to put up an example or sample code; Will be 
> much useful :) Thnx in advance :)


Rajis 

>   

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Color Picker Preference

2012-07-06 Thread Mark Murphy
On Fri, Jul 6, 2012 at 5:14 AM, Kostya Vasilyev  wrote:
> There is a nice color picker on Google Code called AmbilWarna.
>
> Converting it to a Dialog preference is trivial, start by subclassing :)

I also put together a ColorPreference, based on a ColorMixer widget,
some time ago:

https://github.com/commonsguy/cwac-colormixer

I did not go with the color wheel, as I found that to be infuriating
to use with a finger. I went with the three-SeekBar approach for
mixing RGB values, with a color swatch.

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

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

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


Re: [android-developers] How to get default emergency dialer

2012-07-06 Thread Mark Murphy
On Fri, Jul 6, 2012 at 3:54 AM, dharmendra.sah...@gmail.com
 wrote:
> In my application i want to call emergency number that 911 in USA.

That is only possible if you have the CALL_PRIVILEGED permission,
which in turn is only possible for apps that are pre-installed on the
device or are signed with the signing key of the firmware.

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

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

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


Re: [android-developers] Enable and disable GPS programatcally

2012-07-06 Thread Mark Murphy
On Fri, Jul 6, 2012 at 3:47 AM, dharmendra.sah...@gmail.com
 wrote:
> I want to enable and disable GPS programatically.

Fortunately, this is not supported, for obvious privacy reasons.

> for that we are using

Fortunately, your script kiddie hack has been closed off and does not
work on newer devices.

> Please help me to reslove this issue.

Stop trying to enable and disable GPS. Allow the user to do that using
the Settings app or a device-supplied home screen app widget. You will
notice, for example, that when Google Navigation detects a disabled
GPS, they do not enable it, but instead pop a dialog notifying the
user, and supplying a button to go to the right Settings page to make
the fix.

-- 
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: Easy and fast String obfuscation?

2012-07-06 Thread Francisco M. Marzoa Alonso
Hi,

JFTR, I have find a good implementation of the Rot13 algorithm for Java
that is perfect for my needs with just slights modifications on the
character mapping to add Spanish ones.

And I think it will be easy to implement the same in PHP also. Though
PHP has his own rot13 but it uses just alphabetic characters, so I will
create my own implementation with same char mapping as in the Java class.

Best regards,

On 06/07/12 12:47, Francisco M. Marzoa Alonso wrote:
> Hi there,
>
> I am looking for a way to obfuscate some strings in a way that they may
> be "unobfuscated" later.
>
> The point is that my app -a casual game- will take some lines from a
> file on an http server, and I do not want to have it as readable plain
> text. Please, note that I do not care if a user takes the effort to
> decode and read it. There he will find the solutions to some game levels
> no more, what I want is just to protect users to see the solutions even
> by accident, but if some one wants to cheat, I do not give a damn.
>
> I also like that the result of encoding process is still a readable
> string, so the file may be threat as a text file still and not as a
> binary one.
>
> Also it should be standard or very easy to implement, so I can generate
> compatible encoded strings using PHP also to decode later with Java.
>
> I tried first with Android's Base64 class that seems to be a perfect
> solution, but it requires API Level 8, so 2.1 devices are discarded and
> I do not want that.
>
> I think a XOR encoding may produce binary output at encoding.
>
> MD5 is discarded for obvious reasons: it is not reversible.
>
> Any ideas?
>
> Thanks a lot 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 use offline map in my Application.

2012-07-06 Thread Mark Murphy
On Fri, Jul 6, 2012 at 3:38 AM, Remo  wrote:
> In Android, how to use offline map in my Application.

Step #1: Find a provider of offline maps (e.g., OpenStreetMap)

Step #2: Find an Android library that uses that provider (e.g., OSMDroid)

Step #3: Read the documentation for that library and ask that
library's support group further questions specific to that library and
provider

If you really are asking "how to use offline Google Maps in my
Application", that is not possible with today's edition of the Google
Maps add-on for Android.

-- 
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] Easy and fast String obfuscation?

2012-07-06 Thread Francisco M. Marzoa Alonso
Hi there,

I am looking for a way to obfuscate some strings in a way that they may
be "unobfuscated" later.

The point is that my app -a casual game- will take some lines from a
file on an http server, and I do not want to have it as readable plain
text. Please, note that I do not care if a user takes the effort to
decode and read it. There he will find the solutions to some game levels
no more, what I want is just to protect users to see the solutions even
by accident, but if some one wants to cheat, I do not give a damn.

I also like that the result of encoding process is still a readable
string, so the file may be threat as a text file still and not as a
binary one.

Also it should be standard or very easy to implement, so I can generate
compatible encoded strings using PHP also to decode later with Java.

I tried first with Android's Base64 class that seems to be a perfect
solution, but it requires API Level 8, so 2.1 devices are discarded and
I do not want that.

I think a XOR encoding may produce binary output at encoding.

MD5 is discarded for obvious reasons: it is not reversible.

Any ideas?

Thanks a lot 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] Alaram Manager after 5 min

2012-07-06 Thread Rahul Kaushik
I need to call notification manager after ever 5 min

Main Activity

Calendar cal = Calendar.getInstance();   //for using this you need to
import java.util.Calendar;

// add minutes to the calendar object
//cal.set will set the alarm to trigger exactly at: 21:43, 5 May 2011
//if you want to trigger the alarm after let's say 5 minutes after is
activated you need to put
cal.add(Calendar.MINUTE, 1);
Intent alarmintent = new Intent(getApplicationContext(),
AlarmReciever.class);
alarmintent.putExtra("title","Title of our Notification");
alarmintent.putExtra("note","Description of our  Notification");
int HELLO_ID =1;
PendingIntent sender = PendingIntent.getBroadcast(getApplicationContext(),
HELLO_ID,
alarmintent,PendingIntent.FLAG_UPDATE_CURRENT|  Intent.FILL_IN_DATA);
//VERY IMPORTANT TO SET FLAG_UPDATE_CURRENT... this will send correct
extra's informations to
//AlarmReceiver Class
 //am.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);
am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+ (10 * 1000),
sender);

Manifest.xml


AlarmReciever

package com.mobileconnect; import android.app.Notification; import
android.app.NotificationManager; import android.app.PendingIntent; import
android.content.BroadcastReceiver; import android.content.Context; import
android.content.Intent; import android.content.SharedPreferences; import
android.net.Uri; import android.widget.Toast; public class AlarmReciever
extends BroadcastReceiver { public String username=null; public String
password=null; SharedPreferences mPrefs; String PREFS = "MyPrefs"; Cryption
crypt=new Cryption(); @Override public void onReceive(Context context,
Intent intent) {
Toast.makeText(context.getApplicationContext(),listAvtivity.NotiCountValue
+"Reciver Starts", Toast.LENGTH_LONG).show(); mPrefs
=context.getSharedPreferences(PREFS,0); username =
mPrefs.getString("login", null); password = mPrefs.getString("password",
null); String encryptUsername=crypt.Encrypt(username); String
encryptPassword=crypt.Encrypt(password); String ns =""; ns=
Context.NOTIFICATION_SERVICE; NotificationManager mNotificationManager =
(NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE); int icon =
R.drawable.icon; CharSequence tickerText = "Mobile Connect"; long when =
System.currentTimeMillis()+(5 * 1000); Notification notification = new
Notification(icon, tickerText, when); CharSequence contentTitle = "Mobile
Connect"; CharSequence contentText =listAvtivity.NotiCountValue+ " Unread
FranConnect Notifications."; PendingIntent contentIntent =
PendingIntent.getActivity(context, 0, new Intent(Intent.ACTION_VIEW,
Uri.parse(AndroidLogin.ActualServerUrl.toString()
+"control/authenticate1?wel=" +encryptUsername.trim()+ "&come="
+encryptPassword.trim()+"&url=viewAllNotifications" )),0);
notification.setLatestEventInfo(context, contentTitle, contentText,
contentIntent); mNotificationManager.notify(0, notification);
notification.defaults |= Notification.DEFAULT_SOUND;
//mNotificationManager.notify(id, notification);
Toast.makeText(context.getApplicationContext(),listAvtivity.NotiCountValue
+" Unread FranConnect Notifications.", Toast.LENGTH_LONG).show();
Toast.makeText(context, "Repeating Alarm worked.",
Toast.LENGTH_LONG).show(); } }


I need to call AlarmReceiver Call after evry 5 min but  it is getting
caaled  after every sec  pls tell wt am doing wrong


RK

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Color Picker Preference

2012-07-06 Thread Kostya Vasilyev
There is a nice color picker on Google Code called AmbilWarna.

Converting it to a Dialog preference is trivial, start by subclassing :)
06.07.2012 13:04 пользователь "Alfa" <672008...@student.uksw.edu> написал:

> in dont realy get it. can u explaint more? or a litle sample code maybe.
> because i need color picker.
> thanks.
>
> On Friday, March 12, 2010 11:39:16 PM UTC+7, Yougli wrote:
>>
>> Hi,
>>
>> I've been looking for a way to add a color picker to my application's
>> preferences.
>>
>> I've found the ColorPickerDialog used in the FingerPaint demo of the
>> SDK samples, but I don't know how to use it from a
>> PreferenceActivity...
>>
>> Is there any way to change the ColorPickerDialog to a
>> DialogPreference? Or is there any other color picker available that I
>> could use?
>>
>> I think it's kind of a shame that this feature isn't available in the
>> SDK, especially for a mobile OS focused on touch screen where users
>> usually don't want to bother inputting text to choose colors. But
>> maybe I missed something.
>>
>> Any help appreciated, 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Color Picker Preference

2012-07-06 Thread Alfa
in dont realy get it. can u explaint more? or a litle sample code maybe. 
because i need color picker.
thanks.

On Friday, March 12, 2010 11:39:16 PM UTC+7, Yougli wrote:
>
> Hi,
>
> I've been looking for a way to add a color picker to my application's
> preferences.
>
> I've found the ColorPickerDialog used in the FingerPaint demo of the
> SDK samples, but I don't know how to use it from a
> PreferenceActivity...
>
> Is there any way to change the ColorPickerDialog to a
> DialogPreference? Or is there any other color picker available that I
> could use?
>
> I think it's kind of a shame that this feature isn't available in the
> SDK, especially for a mobile OS focused on touch screen where users
> usually don't want to bother inputting text to choose colors. But
> maybe I missed something.
>
> Any help appreciated, 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] Bitmap.createBitmap to make an immutable copy of subregion, changes bitmap config on 2.2?

2012-07-06 Thread Romain Guy
I just checked the git history and the bug was fixed in Android 3.0.


On Fri, Jul 6, 2012 at 1:33 AM, Olof Hedman  wrote:

> Thanks for confirming.
> Do you know where I can find information on when it was fixed?
> Ideally I'd like to only use the workaround when its needed.
>
> Cheers,
> Olof
>
> On Thursday, July 5, 2012 7:29:49 PM UTC+2, Romain Guy (Google) wrote:
>>
>> It's an unfortunate bug that was fixed in 3.x or 4.x.
>> On Jul 5, 2012 8:05 AM, "Olof Hedman" wrote:
>>
>>> Hi,
>>>
>>> I'm investigating a bug that I've so far only reproduced on a Samsung
>>> i5500 running Android 2.2.
>>>
>>> I'm first creating a bitmap using ALPHA_8 config, like so:
>>>
>>> Bitmap textBmp = Bitmap.createBitmap(textureW, textureH, Bitmap.Config.
>>> ALPHA_8);
>>>
>>> Then I want to make an immutable copy of a subregion, so I use:
>>>
>>> Bitmap textureBmp = Bitmap.createBitmap(textBmp, 0, 0, subW, subH);
>>>
>>> I expect it to return an ALPHA_8 bitmap, and it also does this on my ICS
>>> devices, but on the above phone it suddenly is ARGB_ !
>>>
>>> Is this a known problem? Anything I can do, except creating my bitmap
>>> manually and make a canvas and do a blit?
>>>
>>>
>>> Cheers,
>>>
>>> Olof
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, 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




-- 
Romain Guy
Android framework engineer
romain...@android.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] Single Database for two application

2012-07-06 Thread rambabu mareedu
you can share your database between multiple applications by using
ContentProviders concept in android , search content providers in google
you will find solution
-- 
Regards
Rambabu Mareedu
9581411199

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bitmap.createBitmap to make an immutable copy of subregion, changes bitmap config on 2.2?

2012-07-06 Thread Olof Hedman
Thanks for confirming. 
Do you know where I can find information on when it was fixed?
Ideally I'd like to only use the workaround when its needed.

Cheers,
Olof

On Thursday, July 5, 2012 7:29:49 PM UTC+2, Romain Guy (Google) wrote:
>
> It's an unfortunate bug that was fixed in 3.x or 4.x.
> On Jul 5, 2012 8:05 AM, "Olof Hedman" wrote:
>
>> Hi,
>>
>> I'm investigating a bug that I've so far only reproduced on a Samsung 
>> i5500 running Android 2.2.
>>
>> I'm first creating a bitmap using ALPHA_8 config, like so:
>>
>> Bitmap textBmp = Bitmap.createBitmap(textureW, textureH, Bitmap.Config.
>> ALPHA_8);
>>
>> Then I want to make an immutable copy of a subregion, so I use:
>>
>> Bitmap textureBmp = Bitmap.createBitmap(textBmp, 0, 0, subW, subH);
>>
>> I expect it to return an ALPHA_8 bitmap, and it also does this on my ICS 
>> devices, but on the above phone it suddenly is ARGB_ !
>>
>> Is this a known problem? Anything I can do, except creating my bitmap 
>> manually and make a canvas and do a blit?
>>
>>
>> Cheers,
>>
>> Olof
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] (WTA) use color picker in activity

2012-07-06 Thread Alfa
hi every one, i want to ask about color pikcer. want to select a collor and 
use it to paint my text.
i already read this article http://code.google.com/p/android-color-picker/. 
but i dont get it clearly. 
can someone help me.

thanks.

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

[android-developers] Single Database for two application

2012-07-06 Thread Rajis
Hi All

I have one requirement here,

I have two apps APP1 and APP2. I'm created the SQLite Database Hello.db in 
APP1. I want use the same DB Hello.db in APP2 like creating the table and 
inserting the values. I search more in google but didn't got a correct 
solution. Is it possible. Share your ideas.

Thank you

Rajis 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] WEEK selection of day

2012-07-06 Thread jagadeeshbabu
Hi 

 

Iam doing n task week selection of the day ,how can be possible  to do
this,Any guide lines please 

 

In that calendar done, with previous month and next month done.

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

[android-developers] How to get default emergency dialer

2012-07-06 Thread dharmendra.sah...@gmail.com
Hi All,

In my application i want to call emergency number that 911 in USA.

For that we are using below code.
Its is opening default dialler screen. other than 911 call is going
private void call() {
try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
//Intent callIntent = new 
Intent(LockScreenActivity.this,com.android.phone.EmergencyDialer.class);
callIntent.setData(Uri.parse("tel:"+"911"));
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(callIntent);
 } catch (ActivityNotFoundException activityException) {
Log.e("helloandroid dialing example", "Call failed",
activityException);
}
}

I want to know is there any way to open default emergency dailler screen.


Thanks
Dharmendra 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Adding custom enum states to an ImageButton

2012-07-06 Thread Dianne Hackborn
Then write your own custom Drawable subclass that does what you want.

On Thu, Jul 5, 2012 at 10:04 PM, lianyu li  wrote:

> But sometimes it's really not enough to express states only with booleans,
> actually I have the same issue with Nick, that is "adding custom states in
> a list of enums". Not sure whether Android has plan to add such feature.
>
>
> On Fri, Jul 6, 2012 at 10:18 AM, Dianne Hackborn wrote:
>
>> Yes this must be booleans.  There is no way to express anything else in
>> StateListDrawable.
>>
>>
>> On Thu, Jul 5, 2012 at 6:21 AM, li lianyu  wrote:
>>
>>> It's seems that currently Android doesn't support non-boolean state. You
>>> can verify it by adding another item with non-a state in selector pair. I
>>> assume Android evaluates true/false only by checking whether corresonding
>>> state attribute be in drawableState returned by onCreateDrawableState.
>>>
>>>
>>> On Saturday, January 21, 2012 3:40:41 AM UTC+8, Nick wrote:

 I have searched around and I found good examples on adding custom
 boolean states to a drawable but I am having issues adding a state
 that is a list of enums.  I am sure most of my problems lie within the
 onCreateDrawableState call so I have a few questions.

 1) Is the extraSpace param to onCreateDrawableState the number of
 additional int[] that I would like to add or the size of the int[]? So
 since I am just adding MODE I should just be increasing extraSpace by
 1 and not by MODE.length?
 2) I don't quite understand the mergeDrawableStates method.  If I put
 it in an IF statement I am getting what I expect, but I think I am
 just getting lucky.  I don't feel my IF check is correct.  My initial
 assumption was that I don't do a check and always call
 mergeDrawableStates but then the drawable never changes.  I have seen
 where if the extra state is a boolean then the if statement checks for
 that.  I don't quite know what to do about an enum.
 3) When I do get it working, my ic_button_a is drawn correctly.
 However every time when ic_button_c is getting drawn, ic_button_c is
 resized and stretch to fit the View which includes a background
 graphic that is larger than ic_button_c.  ic_button_a and ic_button_a
 are the same size.

 I have my custom view:
 >>> android:background="@drawable/**ic_button_bg"
 android:src="@drawable/ic_**button"
 android:layout_height="wrap_**content"
 android:layout_width="wrap_**content"/>

 which extends ImageButton.:
 public class CustomView extends ImageButton {

 private static final int[] MODE = {R.attr.mode};
 private int mMode = 1;

 @Override
 public int[] onCreateDrawableState(int extraSpace) {
 final int[] drawableState =
 super.onCreateDrawableState(**extraSpace + 1);
 if (mMode != 0) {
 mergeDrawableStates(**drawableState, MODE);
 }
 return drawableState;
 }

 public void setMode(int mode) {
 mMode = mode;
 refreshDrawableState();
 }
 }

 I am defining my modes here:
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 My @drawable/ic_button is:
 >>> xmlns:android="http://schemas.**android.com/apk/res/android"

 
 xmlns:app="http://schemas.**android.com/apk/res/com.pkg">

 

 
 
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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 "And

[android-developers] Enable and disable GPS programatcally

2012-07-06 Thread dharmendra.sah...@gmail.com
Hi All,

I want to enable and disable GPS programatically.
for that we are using 
private void turnGPSOn(){
String provider = Settings.Secure.getString(getContentResolver(), 
Settings.Secure.LOCATION_PROVIDERS_ALLOWED);

if(!provider.contains("gps")){ //if gps is disabled
final Intent poke = new Intent();
poke.setClassName("com.android.settings", 
"com.android.settings.widget.SettingsAppWidgetProvider"); 
poke.addCategory(Intent.CATEGORY_ALTERNATIVE);
poke.setData(Uri.parse("3")); 
sendBroadcast(poke);
}
}

private void turnGPSOff(){
String provider = Settings.Secure.getString(getContentResolver(), 
Settings.Secure.LOCATION_PROVIDERS_ALLOWED);

if(provider.contains("gps")){ //if gps is enabled
final Intent poke = new Intent();
poke.setClassName("com.android.settings", 
"com.android.settings.widget.SettingsAppWidgetProvider");
poke.addCategory(Intent.CATEGORY_ALTERNATIVE);
poke.setData(Uri.parse("3")); 
sendBroadcast(poke);
}
}

above code that is working fine upto 2.2 but above version it is not 
working.
Please help me to reslove this issue.

I want to in above 2.2 version can we enable and disbale GPS 
programatically or not
Os many developer told we can not enable and disable GPS above 2.2 version


Thanks
Dharmendra

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

[android-developers] How to use offline map in my Application.

2012-07-06 Thread Remo
Hi All,

In Android, how to use offline map in my Application.

Thanks
Remo

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