[android-developers] Multi touch zoom in or out

2011-03-14 Thread leela
Hi all..

i want to show images on the screen..

which would zoom in/out on multi touch(pinch,spread). ImageView
does't support multi touch..

is there any view which can capable of all these features or do we
need implement?

can please suggest me..


Thanks  Regards
--
Leela Krishna.

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


Re: [android-developers] Re: Problem with GridView

2011-03-14 Thread leela kissnaa
Hi,
i thought starting new Activity will take more time than what i am doing..(I
may wrong)

to show images what is the action tag to intent which i going to fire..
can you send me some sample code links which can help me to show images more
effectively (Multi touch zoom included..)

On Fri, Mar 11, 2011 at 8:28 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Rather than removing everything and changing the layout params to make it
 full screen, why not just create a second activity that is designed to
 display the fullscreen image?

 Then when the user clicks the image you don't have to remove any images
 from the layout... you can just fire off an intent to view the image.

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


 On Fri, Mar 11, 2011 at 5:47 AM, leela kissnaa 
 morampudile...@gmail.comwrote:

 topLayout.removeAllViews();


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




-- 
Thanks  Regards,
Leela Krishna m

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

2011-03-14 Thread hmdmph
Hi , i have created a Widget that get data from internet periodically.
Here i Used the Timer. before connect to internet i am checking the
connection. but there is  problem.There MUST be internet connection
before i add the widget . of if internet connection lost while widget
is working then it never update though connection is re established.


//-- Here is the method i Used to check internet
connectivity in widget
-

private  boolean checkNetwork(Context c){

connMgr =
(ConnectivityManager)c.getSystemService(Context.CONNECTIVITY_SERVICE);

if(connMgr!=null){
network_info = connMgr.getActiveNetworkInfo();
}

if(network_info != null 
network_info.isConnectedOrConnecting()) {
Log.i(info,network ok);
return true;
}else{
Log.i(info,no network);
return false;
}

}

//---

and this part is on onUpdate() method

if(checkNetwork(context)){
  Timer timer = new Timer();
  timer.scheduleAtFixedRate(new MyTime(context, appWidgetManager), 1,
12);
}else{
  err = No Internet Access;
}

//--

pls help

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


[android-developers] Re: Multi touch zoom in or out

2011-03-14 Thread varun
ImageView supports multi touch. In-fact every view supports multi
touch it maybe the problem with harware.

any how what you need to do is you need to implement on touch
listener. there  you have to read actions ACTION_POINTER_UP and
ACTION_POINTER_DOWN for multi touch. read something about these and
you will figure it out.

--Varun

On Mar 14, 10:58 am, leela morampudile...@gmail.com wrote:
 Hi all..

 i want to show images on the screen..

 which would zoom in/out on multi touch(pinch,spread). ImageView
 does't support multi touch..

 is there any view which can capable of all these features or do we
 need implement?

 can please suggest me..

 Thanks  Regards
 --
 Leela Krishna.

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


Re: [android-developers] Re: Multi touch zoom in or out

2011-03-14 Thread leela kissnaa
Hi Varun,

Thanks for replay..
Is ImageView supports multi touch ?
In my device WebView is working on multitouch. But not for ImageVIew.(my
device supports multitouch)

Can you please suggest me here..

if i implement OnTouchListener i need to handle every thing. It is getting
more complicate my project.



On Mon, Mar 14, 2011 at 12:14 PM, varun varun.narise...@gmail.com wrote:

 ImageView supports multi touch. In-fact every view supports multi
 touch it maybe the problem with harware.

 any how what you need to do is you need to implement on touch
 listener. there  you have to read actions ACTION_POINTER_UP and
 ACTION_POINTER_DOWN for multi touch. read something about these and
 you will figure it out.

 --Varun

 On Mar 14, 10:58 am, leela morampudile...@gmail.com wrote:
  Hi all..
 
  i want to show images on the screen..
 
  which would zoom in/out on multi touch(pinch,spread). ImageView
  does't support multi touch..
 
  is there any view which can capable of all these features or do we
  need implement?
 
  can please suggest me..
 
  Thanks  Regards
  --
  Leela Krishna.

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




-- 
Thanks  Regards,
Leela Krishna

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

Re: [android-developers] Re: why does open DataBase Error

2011-03-14 Thread CaryWang
No,Database is error,but can query select data.My program is implements
onUpgrade method



2011/3/11 Uniser unise...@gmail.com

 May be you have not the file:///data/data/package-name/databases/abc
 or your db's version is not 1and your class have not implementation
 onUpgrade

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




-- 
Cary

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

2011-03-14 Thread marten
Hello,

I'm writing a CardDAV implementation for Android and came across some
problem when trying to connect to the OSX/Darwin CardDAV server.
The default setup for this server is to advertise BASIC and DIGEST
authentication. The default algorithm for DIGEST authentication is set
to md5.
Without changing the defaults I can not login to the server. I always
get the following error in the logs:

E/estTargetAuthentication( 2749): Authentication error: Unhandled
algorithm md5 requested

If I change md5 to MD5 in the server's configuration I can login
to the server.
In my opinion Android is right and it should be MD5 instead of
md5. Nevertheless, is there any way to make Android's HTTP
implementation more tolerant? Can I register md5 as an
implementation of MD5 somehow?
I don't want to ask all OS X users to change the defaults ...
especially since OS X users are used to that it just works ;-) .

cheers

Marten

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ANR keyDispatchingTimedOut on android/com.android.internal.app.RingtonePickerActivity

2011-03-14 Thread Sven
well, i call the RingtonePicker in my preferences in xml

RingtonePreference android:key=@string/
preference_trigger1_notification_sound_key

android:title=@string/preference_trigger_notification_sound_title
android:summary=@string/
preference_trigger_notification_sound_summary
android:showDefault=true
android:showSilent=true

android:defaultValue=content://settings/system/notification_sound
android:ringtoneType=all /

more then the above stack i dont have. can it be that at the time it
happens the system had a general overload and my app was just used in
the wrong moment?


On Mar 13, 10:14 pm, Dianne Hackborn hack...@android.com wrote:
 It is just the stacks of all of the Dalvik threads in your process at the
 time of the ANR.  The ANR happens because the main thread of the process is
 not responding to messages, so generally you look at the main (first) thread
 in the list and see what it is doing.



 On Sun, Mar 13, 2011 at 4:03 AM, San Zhang dahua007...@gmail.com wrote:
  Today, I got a ANR error, too. I want to know how to read this error
  message.

  2011/3/1 Sven sirdarthna...@googlemail.com

  Hello!

  Today I got a error report in my market account for my application. It
  is listed under Freeze.
  I use the RingtonePicker in my preferences. Any chance I can do
  something on this error?
  Whats the reason for this?

  Following the stack trace:

  v1.5.3
  Mar 1, 2011 7:34:38 AM
  OTHER
  DALVIK THREADS:
  main prio=5 tid=1 NATIVE
   | group=main sCount=1 dsCount=0 s=N obj=0x40020ba0 self=0xcdd0
   | sysTid=24486 nice=0 sched=0/0 cgrp=unknown handle=-1345025984
   at android.graphics.Canvas.native_drawRect(Native Method)
   at android.graphics.Canvas.drawRect(Canvas.java:870)
   at android.view.View.draw(View.java:6866)
   at android.widget.AbsListView.draw(AbsListView.java:2257)
   at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
   at android.view.View.draw(View.java:6743)
   at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
   at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
   at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
   at android.view.View.draw(View.java:6743)
   at android.widget.FrameLayout.draw(FrameLayout.java:352)
   at com.android.internal.policy.impl.PhoneWindow
  $DecorView.draw(PhoneWindow.java:1846)
   at android.view.ViewRoot.draw(ViewRoot.java:1407)
   at android.view.ViewRoot.performTraversals(ViewRoot.java:1163)
   at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:123)
   at android.app.ActivityThread.main(ActivityThread.java:4627)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:521)
   at com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:860)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
   at dalvik.system.NativeStart.main(Native Method)

  Binder Thread #2 prio=5 tid=6 NATIVE
   | group=main sCount=1 dsCount=0 s=N obj=0x44a4ee80 self=0x126178
   | sysTid=24491 nice=0 sched=0/0 cgrp=unknown handle=1234816
   at dalvik.system.NativeStart.run(Native Method)

  Binder Thread #1 prio=5 tid=5 NATIVE
   | group=main sCount=1 dsCount=0 s=N obj=0x44a4e840 self=0x139220
   | sysTid=24490 nice=0 sched=0/0 cgrp=unknown handle=1239728
   at dalvik.system.NativeStart.run(Native Method)

  Compiler daemon prio=5 tid=4 VMWAIT
   | group=system sCount=1 dsCount=0 s=N obj=0x44a482a0 self=0x12e938
   | sysTid=24489 nice=0 sched=0/0 cgrp=unknown handle=1183528
   at dalvik.system.NativeStart.run(Native Method)

  Signal Catcher daemon prio=5 tid=3 RUNNABLE
   | group=system sCount=0 dsCount=0 s=N obj=0x44a481e8 self=0x125dd8
   | sysTid=24488 nice=0 sched=0/0 cgrp=unknown handle=1203608
   at dalvik.system.NativeStart.run(Native Method)

  HeapWorker daemon prio=5 tid=2 VMWAIT
   | group=system sCount=1 dsCount=0 s=N obj=0x43347ce8 self=0x126938
   | sysTid=24487 nice=0 sched=0/0 cgrp=unknown handle=1206520
   at dalvik.system.NativeStart.run(Native Method)

  Thanks for your help!

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

   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, 

[android-developers] Re: Background Service

2011-03-14 Thread Jonathan Foley

What you are after is the WebView method addJavaScriptInterface:

http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object,
java.lang.String)

As the name implies, this creates an interface between Javascript in
the webpage and your Java code. You''ll need to use that to have your
JS return values to your Java object.

If the computations you refer to are long-running then do them in an
AsyncTask in the Activity hosting the WebView. You'll inject the
values back into the loaded webpage using JS. You can pass javascript
code to loadUrl() and it will execute. For for instance you can
generate from JS code that modified the elements you want after the
computation completed.

Jonathan

On Mar 13, 8:44 pm, perumal316 perumal...@gmail.com wrote:
 Hi TreKing,

 I already have my own webview application that will load a custom
 webpage. I need to get user inputs from the data field in the webpage
 to do some computation and insert back the result into the webpage.

 I am thinking of writing a background service and couple it with this
 application. But I am not sure how to do the interaction with the
 webpage. Getting and inserting into the data field.

 Is this possible to be done through a background service?

 Regards,
 Perumal

 On Mar 14, 9:34 am, TreKing treking...@gmail.com wrote:







  On Sun, Mar 13, 2011 at 8:25 PM, perumal316 perumal...@gmail.com wrote:
   I want it to become active when my another application is started.

  Any idea how do I detect the activation of another application?

  You don't detect another application. You start your service from your
  Activity.

   Should I package the application and service together?

  A Service has to be packaged with *some* application - particularly the one
  that is going to be starting it. So yeah.

  --- 
  ­--
  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] Bluetooth Adapter.EXTRA DISCOVERABLE not obeyed

2011-03-14 Thread Zeljko Devcic
I have observed issue with setting up discoverable time. Namely, I am
using following intent to start Bluetooth and request observability of
max allowed 300 seconds:

Intent activateBTIntent = new
Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
activateBTIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
300);
startActivityForResult(activateBTIntent,
TURN_BLUETOOTH_ON_INTENT);

In the intent result I get 300, meaning my request is accepted. But,
in fact device does not stay observable for that long. I go to
Bluetooth settings and monitor status. Discoverable is checked and
starts countdown from 300, but when it reaches 180, Discoverable is
unchecked and my device is not visible any more. So, even if I set max
allowed value, I get default 120 seconds discoverability. Can anyone
put more light on this? Thanks a lot.

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

2011-03-14 Thread leela
Hi,

I want my image will be zoom-able  on multi touch..

my device supports multi touch for WebView

So please tell me how to make my ImageView also supports multitouch..

please suggests me..

Thanks  Regards
--
Leela Krishna

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


[android-developers] Message Dialog appears, The market billing service is not available, Dungeons Sample

2011-03-14 Thread muhammad mahmood
Hi
Currently i am going to implement In-app Billing for android app.
Before it i am trying to run sample Dungeons. Each time when i run
this sample, it shows dialog with tilte Can't make purchase
and body messageThe market billing service is not available at this
time. You can continue to use this app but you won't be able to make
purchases.

Android market version on my device is 2.3.4.

How to make working this sample successfully.

Kind Regards,
Muhammad Rashid

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] No targets listed while using the SDK built from Android 2.3 source code

2011-03-14 Thread lee dallas
Hi all,

I am facing a strange problem while using the SDK built from Android
2.3 source code. When using ./android list targets, there was no
targets shown.

And I tested the SDK downloaded from official website, no problem at
all. And I replaced the sdkmanager.jar and sdklib.jar in tools/lib/
with the downloaded  ones I can get the targets. So I suspect the
Android 2.3 source code for sdkmanager.jar and sdklib.jar have some
problems.

These are steps how  I build the SDK:
. build/envsetup.sh
lunch sdk-eng
make PRODUCT-sdk-sdk

I use these same steps to build SDK from Android 2.2, there was no
problem at all.

Anyone has faced the same problem?

Thank you, and waiting for your reply.

BR,
Dallas

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

2011-03-14 Thread perumal316
Hi All,

Currently for Android I can copy/paste by long pressing on the field
and choosing copy/paste respectively.

I want to do this automatically. Meaning upon clicking a button, can
simulate the long press and copy/paste programatically.

Is this possible?

Thanks In Advance,
Perumal

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

2011-03-14 Thread yogendra G
Hi All,

I Get My Screen opened full screen whenever i start a project every time so
how can i get it small screen by default when ever i open my projct.

Regards,
Yogendra G

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

[android-developers] Get activity theme from network and apply it programmatically

2011-03-14 Thread Premier
I want to download themes.xml from network because i need dinamically
change application theme.
So after application starts, download file themes.xml from network,
saves it locally and apply to current activity.

How i can do this?

Thank you.

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


[android-developers] Dialog doesn't show in a ListActivity

2011-03-14 Thread Daniel Rindt
Dear reader,

my code is pasted here http://rifers.org/paste/show/1254.
The problem is that the dialog showContextDialog() is not displayed. The
dialog code is directly used from android examples. I played a lot
around put that code directly in onResume and so on - no efforts.

I'm thankful for all hints to solve that problem.

Thanks for reading
Daniel


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

2011-03-14 Thread appel
http://lmgtfy.com/?q=android+copy+text+programmatically

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

2011-03-14 Thread perumal316
Which device are you using?

On Mar 14, 4:30 pm, yogendra G yogi2...@gmail.com wrote:
 Hi All,

 I Get My Screen opened full screen whenever i start a project every time so
 how can i get it small screen by default when ever i open my projct.

 Regards,
 Yogendra G

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

2011-03-14 Thread yogendra G
Hi,
In My emultor am getting tht problem wenever i open with eclipse and run a
pgm am getting tht problem...

Regards,
Yogendra G

On Mon, Mar 14, 2011 at 2:04 PM, perumal316 perumal...@gmail.com wrote:

 Which device are you using?

 On Mar 14, 4:30 pm, yogendra G yogi2...@gmail.com wrote:
  Hi All,
 
  I Get My Screen opened full screen whenever i start a project every time
 so
  how can i get it small screen by default when ever i open my projct.
 
  Regards,
  Yogendra G

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

2011-03-14 Thread hwit
Anyone?

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

2011-03-14 Thread Romain Guy
It's not clear what your problem is? You can draw a Path and apply an
xfermode while drawing it.

On Mon, Mar 14, 2011 at 1:50 AM, Menion menion.as...@gmail.com wrote:

 Hmm, looks that no one have answer. Is problem that my question is not
 understandable or here is no simple solution?

 On Mar 13, 1:19 pm, Menion menion.as...@gmail.com wrote:
  Hi,
I have one path object (for example recorded track). I'm drawing it
  on canvas. When I set semi-transparent color to paint object, whole
  path is colored like this.
 
   This is correct. Imagine that you was walking on some rectangle area
  from one side to another, few times you were on same place. And want
  to draw this path in same way you're drawing single lines, so you can
  see places where you were more then once darker then others (because
  line is draw there more then once).
 
   Anyway path object draw all areas with same color and because it's
  only one object, Xfermode PorterDuffXfermode(PorterDuff.Mode.DARKEN)
  have no effect on it. I hope you understand what I want.
 
   And I don't want to use only drawing single lines, because track
  width should be for example 100px. Nice example is herehttp://
 locus.asamm.cz/data/1300018457960.png. This is created with
  drawing single lines and I want to all path to be connected together
  but with darker places on place where I walk more then one. Do you
  have any tip for this or only to separate path into more pieces?
 
thanks guys!

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

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

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

[android-developers] Re: Working with Monkey

2011-03-14 Thread Kanishka Dutta
Can any1 please guide me how to use the script file to run with Monkey? I 
have a script file which resides in sdcard/script.txt
in the Android Filesystem folder.
I am using the following command:-

adb shell monkey -p com.cooliris.media--setup scriptfile -f /sdcard/script.txt 
10

But nothing happens actually.
The script doesn't run and the cooliris.media i.e., the Gallery doesnt open 
up.

Please help.

Regards,
Kanishka Dutta

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

2011-03-14 Thread perumal316
You may want to try specifying in the AndroidManifest.xml file.

See:
http://developer.android.com/guide/practices/screens_support.html

Hope it helps.

Regards,
Perumal

On Mar 14, 4:55 pm, yogendra G yogi2...@gmail.com wrote:
 Hi,
 In My emultor am getting tht problem wenever i open with eclipse and run a
 pgm am getting tht problem...

 Regards,
 Yogendra G



 On Mon, Mar 14, 2011 at 2:04 PM, perumal316 perumal...@gmail.com wrote:
  Which device are you using?

  On Mar 14, 4:30 pm, yogendra G yogi2...@gmail.com wrote:
   Hi All,

   I Get My Screen opened full screen whenever i start a project every time
  so
   how can i get it small screen by default when ever i open my projct.

   Regards,
   Yogendra G

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

 - Show quoted text -

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

2011-03-14 Thread Menion
Hmm, looks that no one have answer. Is problem that my question is not
understandable or here is no simple solution?

On Mar 13, 1:19 pm, Menion menion.as...@gmail.com wrote:
 Hi,
   I have one path object (for example recorded track). I'm drawing it
 on canvas. When I set semi-transparent color to paint object, whole
 path is colored like this.

  This is correct. Imagine that you was walking on some rectangle area
 from one side to another, few times you were on same place. And want
 to draw this path in same way you're drawing single lines, so you can
 see places where you were more then once darker then others (because
 line is draw there more then once).

  Anyway path object draw all areas with same color and because it's
 only one object, Xfermode PorterDuffXfermode(PorterDuff.Mode.DARKEN)
 have no effect on it. I hope you understand what I want.

  And I don't want to use only drawing single lines, because track
 width should be for example 100px. Nice example is 
 herehttp://locus.asamm.cz/data/1300018457960.png. This is created with
 drawing single lines and I want to all path to be connected together
 but with darker places on place where I walk more then one. Do you
 have any tip for this or only to separate path into more pieces?

   thanks guys!

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

2011-03-14 Thread perumal316
Hi Appel,

Actually I have Googled this previously but could not find anything
useful. My application is a Webview that will load a custom URL.

In WebView I need to copy out some data from the data field do
computation and insert back the results into the field. Currently the
only way is for the user to long press on the field then choose copy
all or paste but I want to automate this.

There are additional button below the webview. By clicking in the
button I want to copy/paste the data in the WebView.

Any idea how do this?

Thanks In Advance,
Perumal

On Mar 14, 4:38 pm, appel johan.appelg...@gmail.com wrote:
 http://lmgtfy.com/?q=android+copy+text+programmatically

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

2011-03-14 Thread Menion
Hmm, looks that no one have answer. Is problem that my question is not
understandable or here is no simple solution?

On Mar 13, 1:19 pm, Menion menion.as...@gmail.com wrote:
 Hi,
   I have one path object (for example recorded track). I'm drawing it
 on canvas. When I set semi-transparent color to paint object, whole
 path is colored like this.

  This is correct. Imagine that you was walking on some rectangle area
 from one side to another, few times you were on same place. And want
 to draw this path in same way you're drawing single lines, so you can
 see places where you were more then once darker then others (because
 line is draw there more then once).

  Anyway path object draw all areas with same color and because it's
 only one object, Xfermode PorterDuffXfermode(PorterDuff.Mode.DARKEN)
 have no effect on it. I hope you understand what I want.

  And I don't want to use only drawing single lines, because track
 width should be for example 100px. Nice example is 
 herehttp://locus.asamm.cz/data/1300018457960.png. This is created with
 drawing single lines and I want to all path to be connected together
 but with darker places on place where I walk more then one. Do you
 have any tip for this or only to separate path into more pieces?

   thanks guys!

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

2011-03-14 Thread Doug
My install % gapped up by 4% again and is almost fully restored to 
normal.  Sales and rank are doing better this week since this number has 
improved for me over the past week.  Hoping you'll get a similar boost...

Doug

On Friday, March 11, 2011 3:52:00 PM UTC-8, Zsolt Vasvari wrote:

 I finally got a response from Google that they are looking into the 
 problem, but no change in the install %. 



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

2011-03-14 Thread appel
And how was I supposed to know you wanted to do this from a WebView? :) 

Afaik there's no way to manipulate the DOM within a WebView directly with 
java code. If you don't need the original value of the form field you could 
load javascript into the page that changes the field for you. 

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

[android-developers] Public Key

2011-03-14 Thread Nymann
Hallo

Is there anyway to get access to the certificate/public key that I
have signed the android application with inside the android code.I
would like to use the key for crypting information ?

Per

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

2011-03-14 Thread Marcin Orlowski
On 14 March 2011 11:03, Nymann per.nymann.joergen...@gmail.com wrote:

 Is there anyway to get access to the certificate/public key that I
 have signed the android application with inside the android code.I
 would like to use the key for crypting information ?

No. But you can add it to your app as any other raw resource and
access later. But, doing that would be *extremely stupid*. And if you
are going to use crypto in your app, then maybe choose symetric
algorithm? Using pkey based encryption and releasing pkey later on is
definitely no-no-no-way to go.

-- 
Regards,
Marcin Orlowski

Tray Agenda - http://bit.ly/trayagenda

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SQLite attach database not working in Honeycomb

2011-03-14 Thread Mark Carter
My app makes extensive use of this:

sqldb.execSQL(ATTACH DATABASE ? AS mydb, new String[] { dbFile.getPath() 
});

where the dbFile is stored on External Storage.

The Honeycomb emulator confirms the File.exists() but when I query the 
database, it's as if the database hasn't been attached at all.

Also SQLiteDatabase.getAttachedDbs() only returns main, :memory: - 
i.e. a single-item list.

The code works fine in 1.5 through to 2.3.

And I'm not the only one experiencing this: 
http://stackoverflow.com/questions/5108964/attached-databases-in-honeycomb

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

2011-03-14 Thread perumal316
Is it possible to use KeyEvent API? There are KeyEvent for Long_Press
etc. See: http://developer.android.com/reference/android/view/KeyEvent.html

Possible to use this for copy/paste?

Regards,
Perumal

On Mar 14, 5:50 pm, appel johan.appelg...@gmail.com wrote:
 And how was I supposed to know you wanted to do this from a WebView? :)

 Afaik there's no way to manipulate the DOM within a WebView directly with
 java code. If you don't need the original value of the form field you could
 load javascript into the page that changes the field for you.

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


[android-developers] Screen Sizes and Densities

2011-03-14 Thread William Ferguson
Is there any better data on the ratio of screen sizes and densities
than
  http://developer.android.com/resources/dashboard/screens.html
which was last updated on 2 August 2010?

William

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

2011-03-14 Thread monty
Hi All
My issue is simple.I want to use one set of images which can be
used on mobile as well as tablets.I have a image of size 690 by 400 .i
want to use this image and resize it programmatically and have this
resized image displayed on mobiles.
   Could anyone please give an idea on how to accomplish this?This is
bcoz if i use different set of images it will increase the size of
apk.

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

2011-03-14 Thread monty
Hi All
I am developing a project which includes downloading video from
server,so obviously i am using Wifi.Now if suddenly the Wifi
connection is lost due to some reason and ater again resumed,how do i
listen for this event.I mean is its possible to programmatically
enable a Wifi if its disabled?I have done that for Airplane mode but
not finding for Wifi.

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

2011-03-14 Thread Kostya Vasilyev

14.03.2011 13:52, monty пишет:

Hi All
 I am developing a project which includes downloading video from
server,so obviously i am using Wifi.Now if suddenly the Wifi
connection is lost due to some reason and ater again resumed,how do i
listen for this event.


There are broadcast actions both here:

http://developer.android.com/reference/android/net/ConnectivityManager.html

and here

http://developer.android.com/reference/android/net/wifi/WifiManager.html


I mean is its possible to programmatically
enable a Wifi if its disabled?I have done that for Airplane mode but
not finding for Wifi.


WifiManager.setWifiEnabled(true)

--
Kostya Vasilyev -- http://kmansoft.wordpress.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


[android-developers] Open AOSP apps in eclipse

2011-03-14 Thread Tanco
Hi, I need to edit the original Android Apps from packages
in terms make my own distro..
I want to make changes to the In Call screen etc..
I understand that for doing this I will have to build everything from
source,
however I need to edit the source and to do so I need to open it as an
eclipse project,
When I did I saw that there are
1. missing imports which are hidden in the SDK (or missing)
2. hidden parameters within the classes..
I don't want to use reflection since the whole code is here and
available, but how do you build a platform development kit.. od
PDK ?:)

Can any one help?

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


[android-developers] drag and drop view in android?

2011-03-14 Thread Hitendrasinh Gohil
hi,

i have one listview.
i  want reordering of the list row by drag and drop.
means if i drag first row and drop at 5th position the view should be
updated.

thankx.

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

2011-03-14 Thread DanH
Why stupid?  A private key scheme isn't secure unless you use a
public key exchange to pass the private key.  And if data only needs
to flow up there's no point in establishing the private key.  (Though
one can end-run the whole issue and use SSL.)

On Mar 14, 5:10 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 14 March 2011 11:03, Nymann per.nymann.joergen...@gmail.com wrote:

  Is there anyway to get access to the certificate/public key that I
  have signed the android application with inside the android code.I
  would like to use the key for crypting information ?

 No. But you can add it to your app as any other raw resource and
 access later. But, doing that would be *extremely stupid*. And if you
 are going to use crypto in your app, then maybe choose symetric
 algorithm? Using pkey based encryption and releasing pkey later on is
 definitely no-no-no-way to go.

 --
 Regards,
 Marcin Orlowski

 Tray Agenda -http://bit.ly/trayagenda

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

2011-03-14 Thread J
Try Bitmap.createBitmap()

On 14 mar, 11:49, monty neilm30s...@gmail.com wrote:
 Hi All
     My issue is simple.I want to use one set of images which can be
 used on mobile as well as tablets.I have a image of size 690 by 400 .i
 want to use this image and resize it programmatically and have this
 resized image displayed on mobiles.
    Could anyone please give an idea on how to accomplish this?This is
 bcoz if i use different set of images it will increase the size of
 apk.

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

2011-03-14 Thread Menion
As I expect, wrong description. Sorry

Once more. On this screenshot is what I'll describe
http://locus.asamm.cz/data/screenshot02.png

1. I have one Path object with a complex path (as I walked and
recorded path with GPS).

2. I draw this one Path object on canvas with
c.drawPath(path, paint);

where paint is Stroke, semi-transparent blue, width variable (now cca
50px)

3. I also draw second time same Path object with simple slim black
color, 1px width, to see exact way I walked.

You can on screenshot see, that all places have same blue color, even
when on same place is path more then once. Clear? Xfer as I tested
have no influence on this. It only works when I for example separate
whole path object into more path objects, then color overlay work and
on places where is more then one line, blue is darker. But it's really
weird solution, manually separate path on straight lines.

Is there anything I'm missing? Thank you for time to read this!



On Mar 14, 10:10 am, Romain Guy romain...@android.com wrote:
 It's not clear what your problem is? You can draw a Path and apply an
 xfermode while drawing it.



 On Mon, Mar 14, 2011 at 1:50 AM, Menion menion.as...@gmail.com wrote:
  Hmm, looks that no one have answer. Is problem that my question is not
  understandable or here is no simple solution?

  On Mar 13, 1:19 pm, Menion menion.as...@gmail.com wrote:
   Hi,
     I have one path object (for example recorded track). I'm drawing it
   on canvas. When I set semi-transparent color to paint object, whole
   path is colored like this.

    This is correct. Imagine that you was walking on some rectangle area
   from one side to another, few times you were on same place. And want
   to draw this path in same way you're drawing single lines, so you can
   see places where you were more then once darker then others (because
   line is draw there more then once).

    Anyway path object draw all areas with same color and because it's
   only one object, Xfermode PorterDuffXfermode(PorterDuff.Mode.DARKEN)
   have no effect on it. I hope you understand what I want.

    And I don't want to use only drawing single lines, because track
   width should be for example 100px. Nice example is herehttp://
  locus.asamm.cz/data/1300018457960.png. This is created with
   drawing single lines and I want to all path to be connected together
   but with darker places on place where I walk more then one. Do you
   have any tip for this or only to separate path into more pieces?

     thanks guys!

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

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

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


[android-developers] GL_INVALID_OPERATION (1282) after glDrawElements using Vertex Buffer Objects (VBO)

2011-03-14 Thread noriato
Hi,
I'm working on a game using VBO for model rendering. Everything works
fine, except when I lose context and reload all the models and
textures I get a GL_INVALID_OPERATION error after calling
glDrawElements with my VBO.
Actually I have to lose context two times. Restoring after the first
time works fine.
This actually led me to assumtion that there's some kind of internal
out-of-memory error or alike.
But I don't get an GL_OUT_OF_MEMORY error but a GL_INVALID_OPERATION
error instead.

I tried both, actually using glGenTextures/glDeleteTextures and
glGenBuffers/glDeleteBuffers as well as just increasing the buffer ids
manually for each new buffer/texture. Both with the same result.

Any ideas?
Thanks
Peter

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

2011-03-14 Thread Daniel Rindt
Hello,

created an avd with google-api's API Level 9. My application uses GPS
when i simulate via GPX File the AndroidRuntime crashes. Here is the
stack:
=== 8 ===
D/dalvikvm( 1188): GC_EXTERNAL_ALLOC freed 104K, 51% free 2678K/5447K,
external 2094K/2137K, paused 68ms
D/GPSRecorder( 1188): Track MyTrack001 created, Id: 2
I/DEBUG   (   31): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   31): Build fingerprint:
'generic/google_sdk/generic:2.3/GRH55/79397:eng/test-keys'
I/DEBUG   (   31): pid: 899, tid: 992   system_server 
I/DEBUG   (   31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr

I/DEBUG   (   31):  r0   r1 40549dd8  r2 41adfcbc  r3 46b9bd64
I/DEBUG   (   31):  r4 012e  r5   r6 40549dd8  r7 41adfcbc
I/DEBUG   (   31):  r8 84301321  r9 84302240  10 0010  fp 0001
I/DEBUG   (   31):  ip 82f0e7d4  sp 46b9bd50  lr 82f0ab37  pc 82f07d0e
cpsr 0030
I/DEBUG   (   31):  #00  pc
7d0e  /system/lib/libandroid_servers.so
I/DEBUG   (   31):  #01  pc
ab32  /system/lib/libandroid_servers.so
I/DEBUG   (   31):  #02  pc
1414  /system/lib/hw/gps.goldfish.so
I/DEBUG   (   31):  #03  pc 00011a7c  /system/lib/libc.so
I/DEBUG   (   31):  #04  pc 00011640  /system/lib/libc.so
I/DEBUG   (   31): 
I/DEBUG   (   31): code around pc:
I/DEBUG   (   31): 82f07cec ab04b082 9301cb04 6f646804 b00247a0 
I/DEBUG   (   31): 82f07cfc bc08bc10 4718b002 b510b40c ab04b082 
I/DEBUG   (   31): 82f07d0c 6804cb04 34f89301 47a06824 bc10b002 
I/DEBUG   (   31): 82f07d1c b002bc08 46c04718 b510b40c ab04b082 
I/DEBUG   (   31): 82f07d2c 9301cb04 34986804 47a06824 bc10b002 
I/DEBUG   (   31): 
I/DEBUG   (   31): code around lr:
I/DEBUG   (   31): 82f0ab14 91099008 f7fb6aa0 900aeb14 1c3a910b 
I/DEBUG   (   31): 82f0ab24 6b646b23 930c1c28 1c31940d f7fd9b0f 
I/DEBUG   (   31): 82f0ab34 4906f8e7 44791c28 f7ff3150 b011fe1d 
I/DEBUG   (   31): 82f0ab44 46c0bdf0 454c 42c8 0786 
I/DEBUG   (   31): 82f0ab54 f7fbb510 bd10ec7c 4802b510 f7fb4478 
I/DEBUG   (   31): 
I/DEBUG   (   31): stack:
I/DEBUG   (   31): 46b9bd10  46b9be43  
I/DEBUG   (   31): 46b9bd14  46b9be49  
I/DEBUG   (   31): 46b9bd18  46b9be4a  
I/DEBUG   (   31): 46b9bd1c  46b9be53  
I/DEBUG   (   31): 46b9bd20  ab90  [heap]
I/DEBUG   (   31): 46b9bd24  81d48bd3  /system/lib/libdvm.so
I/DEBUG   (   31): 46b9bd28  ab90  [heap]
I/DEBUG   (   31): 46b9bd2c  46b9bd5c  
I/DEBUG   (   31): 46b9bd30  00010004  [heap]
I/DEBUG   (   31): 46b9bd34  81d3761b  /system/lib/libdvm.so
I/DEBUG   (   31): 46b9bd38  46b9be63  
I/DEBUG   (   31): 46b9bd3c  46b9be64  
I/DEBUG   (   31): 46b9bd40  46b9be65  
I/DEBUG   (   31): 46b9bd44  46b9be00  
I/DEBUG   (   31): 46b9bd48  df002777  
I/DEBUG   (   31): 46b9bd4c  e3a070ad  
I/DEBUG   (   31): #00 46b9bd50    
I/DEBUG   (   31): 46b9bd54
8053bf25  /system/lib/libandroid_runtime.so
I/DEBUG   (   31): 46b9bd58  012e  
I/DEBUG   (   31): 46b9bd5c
82f0ab37  /system/lib/libandroid_servers.so
I/DEBUG   (   31): 46b9bd60
41adfcbc  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   (   31): 46b9bd64  0003  
I/DEBUG   (   31): #01 46b9bd68  f6a93f29  
I/DEBUG   (   31): 46b9bd6c  c043f2e9  
I/DEBUG   (   31): 46b9bd70  b9858095  
I/DEBUG   (   31): 46b9bd74  4066004a  /dev/ashmem/dalvik-heap
(deleted)
I/DEBUG   (   31): 46b9bd78    
I/DEBUG   (   31): 46b9bd7c    
I/DEBUG   (   31): 46b9bd80    
I/DEBUG   (   31): 46b9bd84    
I/DEBUG   (   31): 46b9bd88    
I/DEBUG   (   31): 46b9bd8c    
I/DEBUG   (   31): 46b9bd90    
I/DEBUG   (   31): 46b9bd94    
I/DEBUG   (   31): 46b9bd98  b13c4340  
I/DEBUG   (   31): 46b9bd9c  012e  
I/DEBUG   (   31): 46b9bda0  46b9be56  
I/DEBUG   (   31): 46b9bda4  0003  
I/DEBUG   (   31): 46b9bda8  afd4d5c8  
I/DEBUG   (   31): 46b9bdac  46b9bde8  
I/DEBUG   (   31): 46b9bdb0  46b9be90  
I/DEBUG   (   31): 46b9bdb4
84302240  /system/lib/hw/gps.goldfish.so
I/DEBUG   (   31): 46b9bdb8    
I/DEBUG   (   31): 46b9bdbc
84301417  /system/lib/hw/gps.goldfish.so
I/ActivityManager(  899): Process android.process.media (pid 1055) has
died.
D/AndroidRuntime( 1231): 
D/AndroidRuntime( 1231):  AndroidRuntime START
com.android.internal.os.RuntimeInit 
D/AndroidRuntime( 1231): CheckJNI is ON
D/AndroidRuntime( 1231): Calling main entry com.android.commands.pm.Pm
I/ActivityManager(  899): Process com.android.email (pid 1108) has died.
I/ActivityManager(  899): Low Memory: No more background processes.
D/AndroidRuntime( 1231): Shutting down VM
D/dalvikvm( 1231): GC_CONCURRENT freed 177K, 71% free 297K/1024K,
external 0K/0K, paused 2ms+2ms
D/dalvikvm( 1231): Debugger has detached; object registry had 1 entries
I/AndroidRuntime( 1231): NOTE: attach of 

[android-developers] Re: Dynamically Resize Images for different Android devices

2011-03-14 Thread Menion
I'm using something like this ...

public static Bitmap resizeBitmap(Bitmap draw, int newWidth) {
if (draw == null || newWidth = 0 || draw.getWidth() == newWidth)
return draw;

int newHeight = (int) (newWidth * draw.getHeight() /
draw.getWidth());
return Bitmap.createScaledBitmap(draw, newWidth, newHeight, true);
}

On Mar 14, 11:49 am, monty neilm30s...@gmail.com wrote:
 Hi All
     My issue is simple.I want to use one set of images which can be
 used on mobile as well as tablets.I have a image of size 690 by 400 .i
 want to use this image and resize it programmatically and have this
 resized image displayed on mobiles.
    Could anyone please give an idea on how to accomplish this?This is
 bcoz if i use different set of images it will increase the size of
 apk.

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

2011-03-14 Thread TreKing
On Sun, Mar 13, 2011 at 11:12 PM, gjs garyjamessi...@gmail.com wrote:

 Be interested if they do eventually provide an explanation  whether the
 install % jumps back to before.


My money's on no and no.

-
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] Re: Background Service

2011-03-14 Thread TreKing
On Sun, Mar 13, 2011 at 10:44 PM, perumal316 perumal...@gmail.com wrote:

 Is this possible to be done through a background service?


I don't think a Service is what you want in this case. See Jonathan's post.

-
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] What more does my game need(space bike)

2011-03-14 Thread TreKing
On Sun, Mar 13, 2011 at 11:55 PM, brian purgert brianpurge...@gmail.comwrote:

 what does my game need to make it better/more fun


Can't find your app on N1 with 2.3.3, but don't the reviews have any useful
suggestions?

-
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] Message Dialog appears, The market billing service is not available, Dungeons Sample

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 2:29 AM, muhammad mahmood 
muhammad.rash...@gmail.com wrote:

 How to make working this sample successfully.


You don't:
http://groups.google.com/group/android-developers/browse_thread/thread/318e43185f556724/613a3e55e72a4d72

-
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] Multi touch zooms for ImageView

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 2:46 AM, leela morampudile...@gmail.com wrote:

 So please tell me how to make my ImageView also supports multitouch..


Please tell us what you have done so far and where exactly you're stuck.

-
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] Get activity theme from network and apply it programmatically

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 3:34 AM, Premier a.grum...@gmail.com wrote:

 How i can do this?


1 - download file themes.xml from network
2 - saves it locally
3 - apply to current activity.

-
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] Dialog doesn't show in a ListActivity

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 3:37 AM, Daniel Rindt
daniel.ri...@googlemail.comwrote:

 The problem is that the dialog showContextDialog() is not displayed.


Well, a dialog is not going to be displayed if you don't tell the system to
display it, which is done with the show() method.


 The dialog code is directly used from android examples.


Can you post the examples you got that from? Because that's wrong in so many
ways.


 I'm thankful for all hints to solve that problem.


1 - Never use getApplicationContext() - it's utterly pointless and just does
not work with dialogs.
2 - Call show() on the Dialog you create to actually show it.

-
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] drag and drop view in android?

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 5:59 AM, Hitendrasinh Gohil 
hitendra.virtuei...@gmail.com wrote:

 i  want reordering of the list row by drag and drop.
 means if i drag first row and drop at 5th position the view should
 be updated.


http://tinyurl.com/6eqvtp9

-
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] Re: Public Key

2011-03-14 Thread Marcin Orlowski
On 14 March 2011 12:22, DanH danhi...@ieee.org wrote:
 Why stupid?

I wondered if stupid is not too strong, but after a thought - no, it
is not silly, nor unwise. It's stupid. If you embeed pkey in the
app it's like you publish it widely. What the point of your encryption
then? And by doing so, you shows you most likely got no clue of what
you are doing nor any basic knowledge of crypto you are going to use.
Publishing pkey kills whole encryption as anyone can decode your data
after pkey is obtained and, what even worse, prepare new encrypted
data and you won't be able to tell it's legitimate or not. Therefore
in the above scenario pkey based encription is pointless. Any symetric
cipher would do that much easier and the data will be equally safe.

  A private key scheme isn't secure unless you use a public key exchange to 
 pass the private key.

That's correct, but if you want it automated the you have to embeed
password too. Also, since pkey is private, adding it to raw assets is
also of no benefit. Assuming embeeding pkey makes any sense (which it
does not), then you just shoot yourself in head twice - you released
pkey for all the data encrypted by app and you released pkey for app
itself. Anyone with some spare time can now create fake app and sign
with your key and if good social skills are used some people would
install it as upgrade. So they are now compromised and you failed
again :)
-- 
Regards,
Marcin Orlowski

Tray Agenda - http://bit.ly/trayagenda

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

2011-03-14 Thread ko5tik


On Mar 12, 10:01 pm, Dianne Hackborn hack...@android.com wrote:
 You'll need to cache this stuff yourself.  I really recommend avoiding
 reflection though for any performance critical things -- even if there is no
 time required for the class/methods lookup, you will still tend to spam a
 lot of temporary objects.  If you are going to use reflection, plan to spend
 a good amount of time optimizing that code to get it to perform well.

As I develop convention-based databinding, reflection is really
necessary.
Can we hope that reflection caching will be implemented in future
versions of davlik?

regards,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Get activity theme from network and apply it programmatically

2011-03-14 Thread Alessio Grumiro
How i can perform task 3?

Thank you


2011/3/14 TreKing treking...@gmail.com

 On Mon, Mar 14, 2011 at 3:34 AM, Premier a.grum...@gmail.com wrote:

 How i can do this?


 1 - download file themes.xml from network
 2 - saves it locally
 3 - apply to current activity.


 -
 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

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

2011-03-14 Thread leela kissnaa
Hi all,

Actually i have done for scaling image on multi touch...
but the thing is after scaling if image is scaled more than screen size.. i
need to scroll that image vertically and horizontally..but on horizontal
fling i have another requirement to show next screen..
i will show my code here please suggest me the best way to achieve this



public class FadeInOutImage extends Activity implements OnTouchListener {
Animation myFadeInAnimation;
Animation myFadeOutAnimation;
ImageView imageOne, imageTwo;
boolean flag = false;

Bitmap bitmap1, bitmap2;
float scaleWidth, scaleHeight;
Matrix matrix;
// private static final Float[] floatScale = { 0.5F, 1F, 1.5F, 2F, 2.5F, 3F,
// 3.5F, 4F, 4.5F, 5F };
private float curScale = 1F;
public float zoom = 1F;
float oldDist = 0.0F;
int avflag = 0;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fullimage);

 imageOne = (ImageView) findViewById(R.id.fullImage1);
bitmap1 = BitmapFactory.decodeResource(getResources(),
R.drawable.sample_1);
int width = bitmap1.getWidth();
int height = bitmap1.getHeight();
System.out.println(width and height.. + width +  x  + height);
int newWidth = 640;
int newHeight = 480;

scaleWidth = ((float) newWidth) / width;
scaleHeight = ((float) newHeight) / height;
matrix = new Matrix();
matrix.postScale(scaleWidth, scaleHeight);
// Bitmap resizedBitmap = Bitmap.createBitmap(bitmap1, 0, 0, width,
// height, matrix, true);
// BitmapDrawable bmd = new BitmapDrawable(resizedBitmap);

imageOne.setImageBitmap(bitmap1);
imageOne.setOnTouchListener(this);
imageTwo = (ImageView) findViewById(R.id.fullImage2);
imageTwo.setOnTouchListener(this);
myFadeInAnimation = AnimationUtils.loadAnimation(this,
R.anim.fadeinfile);
myFadeOutAnimation = AnimationUtils
.loadAnimation(this, R.anim.fade_out);

// Animation mySome = AnimationUtils.loadAnimation(this,
// R.anim.slide_right);
// imageTwo.setAnimation(myFadeOutAnimation);
// // imageTwo.startAnimation(myFadeInAnimation);
// imageTwo.setAnimation(myFadeInAnimation);
// imageOne.setAnimation(myFadeInAnimation);
// imageOne.setAnimation(myFadeOutAnimation);
// imageOne.setAnimation(mySome);

Button bn = (Button) findViewById(R.id.press);
bn.setVisibility(4);
imageOne.setClickable(true);

}

void SetImageMatrix() {
Matrix mtrx = new Matrix();
curScale = (float) (zoom + 0.2);
mtrx.postScale(curScale, curScale);
// mtrx.postScale(scaleWidth, scaleHeight);
imageOne.setImageMatrix(mtrx);
imageOne.setScaleType(ScaleType.MATRIX);
imageOne.invalidate();
}

private void drawMatrix() {

if (zoom  1)
zoom = 1;
if (zoom = 4)
zoom = 4;
// SetImageMatrix();
System.out.println( zoom iz   + zoom);
Matrix matrix = new Matrix();
curScale = zoom;
;
matrix.postScale(curScale, curScale);
int width = bitmap1.getWidth();
int height = bitmap1.getHeight();
Bitmap resizedBitmap = Bitmap.createBitmap(bitmap1, 0, 0, width,
height, matrix, true);
imageOne.setImageBitmap(resizedBitmap);

}

@Override
public boolean onTouch(View v, MotionEvent event) {
return dumpEvent(event);
// return false;
}

/** Show an event in the LogCat view, for debugging */
private boolean dumpEvent(MotionEvent event) {
String names[] = { DOWN , UP , MOVE , CANCEL , OUTSIDE ,
  POINTER_DOWN , POINTER_UP , 7? , 8? , 9? };
   StringBuilder sb = new StringBuilder();
   int action = event.getAction();
   int actionCode = action  MotionEvent.ACTION_MASK;
   sb.append(event ACTION_ ).append(names[actionCode]);
   if (actionCode == MotionEvent.ACTION_POINTER_DOWN
 || actionCode == MotionEvent.ACTION_POINTER_UP) {
  sb.append((pid  ).append(
  action  MotionEvent.ACTION_POINTER_ID_SHIFT);
  sb.append() );
   }
   sb.append([ );
   for (int i = 0; i  event.getPointerCount(); i++) {
  sb.append(# ).append(i);
  sb.append((pid  ).append(event.getPointerId(i));
  sb.append()= ).append((int) event.getX(i));
  sb.append(, ).append((int) event.getY(i));
  if (i + 1  event.getPointerCount())
 sb.append(; );
   }
   sb.append(] );
   Log.d(Ping..., sb.toString());
float currDist = spacing(event);
if (event.getPointerCount() = 2) {
// if (3  Math.abs(oldDist - currDist)) {

if (currDist  oldDist) {
drawMatrix();
zoom -= 0.2;
} else if (currDist  oldDist) {

drawMatrix();
zoom += 0.2;
}
oldDist = currDist;
// }
return false;
}

return false;

}

private float spacing(MotionEvent event) {

float x = event.getX(0) - event.getX(1);
float y = event.getY(0) - event.getY(1);
return FloatMath.sqrt(x * x + y * y);
}

}


please help me..
this code in activity.##


@Override
public boolean onTouch(View v, MotionEvent event) {
if (imageGesture.onTouchEvent(event)) {
return true;
}
 return false;
}

 class MyGestureDetector extends SimpleOnGestureListener {


@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
float velocityY) {
try {
if (Math.abs(e1.getY() - e2.getY())  SWIPE_MAX_OFF_PATH) {

[android-developers] Locate Zoom Controls (x,y) in MapView?

2011-03-14 Thread mcmatom
Hi all,

I apologize in advance for my ignorance.  I am a seasoned SW developer but 
new to Android.  I am developing my first Android application (MapActivity) 
for a friend of mine and have managed to fight my way through a myriad of 
problems handling gestures, not the least of which was* onTap(GeoPoint p, 
MapView mapView)* used to capture a non marker tap in the ItemizedOverlay 
intercepting every gesture available.  I settled on using *
OnSingleTapConfirmed* from DoubleTapListener and handling the 
marker/non-marker tap logic from there.  I have still one issue remaining I 
cannot seem to solve.  *OnSingleTapConfirmed *apparently is handled before 
the built in Zoom Controls, so when I tap in the space where the zoom 
controls are hidden, I get the non-marker tap behavior which is not what I 
want.

I figured I could simply do a hit test on the zoom control rectangle and if 
I get a hit, simply bail out of *OnSingleTapConfirmed* with a FALSE return 
value and let the built in logic take it from there.  I am able to get the 
rectangle for the zoom controls using  the MapView's *
getZoomButtonsController()* and then calling *getZoomControls()* from 
there.  I then call *getHitRect* to get the target touch area.  *The problem 
I am having is determining where the Zoom Control's starting x,y position is 
relative to the MapView.*  Once I can determine that, I can apply the offset 
to my hit rectangle and simply do a contains check.

It may be very simple and likely is and I can't see it (I've been looking at 
this too long and think I can't see the forest for the trees), but I'm 
spinning my wheels at this point.

Does anyone know how to find the built in zoom control's starting x,y 
position relative to the MapView?  If there is a simpler solution to 
ensuring the ZoomControls will still function properly when handling tap 
gestures, I am open to suggestions.  I appreciate any advice anyone would be 
willing to offer.

Thanks in advance.

Tom McManus

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

2011-03-14 Thread Brad Stintson
Thanks.

I created foreign key, but when I try to insert values using m application
it throws
*android.database.sqlite.SQLiteConstraintException: error code*
* 19: constraint failed.*
*
*
But if I insert values manually usiing console, then values are inserted
properly. Why is it so?


**2011/3/13 Kostya Vasilyev kmans...@gmail.com

  SQLite has foreign key support starting with version 3.6.19.

 http://www.sqlite.org/foreignkeys.html

 Some versions of Android have SQLite versions earlier than that - someone
 posted a breakdown recently, check the list archives.

 For earlier versions, it works pretty well to do something like:

 CREATE TABLE 
 .
 ref_id_value INTEGER NOT NULL REFERENCES the_other_table (_id)


 For transactions, check SQLiteDatabase docs:


 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction()

 The above gives the usual pattern for using transactions.

 -- Kostya

 13.03.2011 13:16, Brad Stintson пишет:

 How to use transaction and how to implement the concept of foreign key?

 2011/3/13 Kostya Vasilyev kmans...@gmail.com

 Multiple inserts, one at a time. Preferably using a transaction.
 13.03.2011 12:58 пользователь Brad Stintson geek.bin...@gmail.com
 написал:

  How to insert multiple tables which have few fields in common?
 
   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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



 --
 Kostya Vasilyev -- http://kmansoft.wordpress.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


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

2011-03-14 Thread kajal patil
Hi All,
  I have developed an android application.But i did not get how to
display some string in .java file on console in android project while
running.I used system.out.println(string) but it did not worked.Please
kindly suggest the solution.
Thank you.

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

[android-developers] Re: Public Key

2011-03-14 Thread Alessandro Pellizzari
Il Mon, 14 Mar 2011 13:54:48 +0100, Marcin Orlowski ha scritto:

 I wondered if stupid is not too strong, but after a thought - no, it
 is not silly, nor unwise. It's stupid. If you embeed pkey in the
 app it's like you publish it widely. What the point of your encryption
 then?

I am sorry... what do you mean by pkey? PUBLIC key or PRIVATE key?

It is stupid to give away your private key, but your public key should be 
widely spread.

So what's the problem with embedding the public key in the app? The only 
one who could read the encrypted message would be you, so it could be 
used to encrypt or sign messages sent by the app to its creator, and 
nothing else, but it would not be stupid, IMHO.

Bye.


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

2011-03-14 Thread Kostya Vasilyev
Most likely, it means you didn't specify a value for the foreign key 
when inserting into the child table (ref_id_value in the snippet below).


-- Kostya

14.03.2011 16:27, Brad Stintson пишет:

Thanks.

I created foreign key, but when I try to insert values using m 
application it throws

/android.database.sqlite.SQLiteConstraintException: error code/
/ 19: constraint failed./
/
/
But if I insert values manually usiing console, then values are 
inserted properly. Why is it so?



2011/3/13 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com

SQLite has foreign key support starting with version 3.6.19.

http://www.sqlite.org/foreignkeys.html

Some versions of Android have SQLite versions earlier than that -
someone posted a breakdown recently, check the list archives.

For earlier versions, it works pretty well to do something like:

CREATE TABLE 
.
ref_id_value INTEGER NOT NULL REFERENCES the_other_table (_id)


For transactions, check SQLiteDatabase docs:


http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction()

http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction%28%29

The above gives the usual pattern for using transactions.

-- Kostya

13.03.2011 13:16, Brad Stintson пишет:

How to use transaction and how to implement the concept of
foreign key?

2011/3/13 Kostya Vasilyev kmans...@gmail.com
mailto:kmans...@gmail.com

Multiple inserts, one at a time. Preferably using a transaction.

13.03.2011 12:58 пользователь Brad Stintson
geek.bin...@gmail.com mailto:geek.bin...@gmail.com написал:

 How to insert multiple tables which have few fields in common?

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



-- 
Kostya Vasilyev --http://kmansoft.wordpress.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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@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 



--
Kostya Vasilyev -- http://kmansoft.wordpress.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] Get activity theme from network and apply it programmatically

2011-03-14 Thread TreKing
2011/3/14 TreKing treking...@gmail.com

  On Mon, Mar 14, 2011 at 8:31 AM, Alessio Grumiro a.grum...@gmail.comwrote:

 Are you joking?


 No.


 Android compiles resource in res/values/.


 Correct.


 If you download a file from network, i don't know how you can use it like
 a resource file.


 True, you can't. You'd have to write your own parser, I would think.


 If you have an example, please give me.


 I does not, sorry.



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



On Mon, Mar 14, 2011 at 8:36 AM, Alessio Grumiro a.grum...@gmail.com
 wrote:

 Problem was not the parser, but how i can apply styles at runtime?


Moving discussion back to the group.

I'd look at the source to see how the platform does it.

-
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] Dialog doesn't show in a ListActivity

2011-03-14 Thread Daniel Rindt
Am Montag, den 14.03.2011, 07:44 -0500 schrieb TreKing:
 Well, a dialog is not going to be displayed if you don't tell the
 system to display it, which is done with the show() method.   
 Can you post the examples you got that from? Because that's wrong in
 so many ways.   
http://developer.android.com/guide/topics/ui/dialogs.html#AlertDialog
Its the Paragraph Adding a list.

 1 - Never use getApplicationContext() - it's utterly pointless and
 just does not work with dialogs.
How then obtain the Context to display it?

  2 - Call show() on the Dialog you create to actually show it.
In the docs i found:
AlertDialog.Builder.create();
also shows the Dialog.

Thanks
Daniel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Dialog doesn't show in a ListActivity

2011-03-14 Thread Mark Murphy
On Mon, Mar 14, 2011 at 9:43 AM, Daniel Rindt
daniel.ri...@googlemail.com wrote:
 1 - Never use getApplicationContext() - it's utterly pointless and
 just does not work with dialogs.
 How then obtain the Context to display it?

Your activity *is* a Context.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-03-14 Thread Clément Plantier
Could someone else try? Thanks.

On Mar 11, 11:03 am, Clément Plantier clemplant...@gmail.com wrote:
 Hi,

 I have a dialog that use the window flag FLAG_BLUR_BEHIND to have a
 blur effect behind the dialog. It works fine with older versions of
 SDK, but with Honeycomb everything is black behind my dialog.

 To reproduce:
 
 Dialog dialog = new Dialog(context);
 dialog.setTitle(Test);
 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
 dialog.show();
 

 Am I doing something wrong?

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


[android-developers] HTTP Live Streaming Library for pre 3.0

2011-03-14 Thread Tony Farag


All,
I'm looking for a library or 3rd party SDK that will allow me to
support HTTP live streaming on a mobile phone.  Unfortunately,
Honeycombs implementation is only for the tablets right now.

Does anybody know of any libraries/sdk's that support this to stream a
m3u8 file.

Any help would be greatly appreciated.

Thanks,

Tony

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Toggle button with more states that two

2011-03-14 Thread Duskox
Thanks for your suggestions. What I want to do is a button that will
have an off state and then a repeat all state and repeat single state.
Like in any mp3 player where you can loop the whole playlist, single
song or no loop.

I'll check spinner out and then if that is not what I want go to
create a subclass.

Thanks,
D.

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

2011-03-14 Thread Mark Murphy
On Mon, Mar 14, 2011 at 9:51 AM, Tina tina...@gmail.com wrote:
 Our customers send us the request to support internet access via USB.
 I know that some tablet (f. ex. WowPad, AL-10 etc) supports such
 functionality, but have no idea how this option could be reached from
 API.

There is no support for this in the Android SDK, sorry.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-03-14 Thread anil kukreti
Hi Shawn

Are you behind corporate firewall ?

I also get these issues. But not when I 'm outside corporate firewall.





On Thu, Mar 10, 2011 at 4:16 PM, Shawn Brown big.coffee.lo...@gmail.comwrote:

 Why do I keep seeing this error

 E/CheckinTask(  243): Checkin failed:
 https://android.clients.google.com/checkin (request #0)
 E/CheckinTask(  243): java.net.UnknownHostException:
 android.clients.google.com
 E/CheckinTask(  243):   at
 java.net.InetAddress.lookupHostByName(InetAddress.java:506)
 E/CheckinTask(  243):   at
 java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
 E/CheckinTask(  243):   at
 java.net.InetAddress.getAllByName(InetAddress.java:256)
 E/CheckinTask(  243):   at

 org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
 E/CheckinTask(  243):   at

 org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
 E/CheckinTask(  243):   at

 org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
 E/CheckinTask(  243):   at

 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
 E/CheckinTask(  243):   at

 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
 E/CheckinTask(  243):   at

 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
 E/CheckinTask(  243):   at
 android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:248)
 E/CheckinTask(  243):   at

 com.google.android.common.http.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:203)
 E/CheckinTask(  243):   at

 com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:245)
 E/CheckinTask(  243):   at

 com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:313)
 E/CheckinTask(  243):   at

 com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:254)
 E/CheckinTask(  243):   at

 com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:150)
 E/CheckinTask(  243):   at

 com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:221)
 E/CheckinTask(  243):   at

 com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:214)
 E/CheckinTask(  243):   at android.os.AsyncTask$2.call(AsyncTask.java:185)
 E/CheckinTask(  243):   at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
 E/CheckinTask(  243):   at
 java.util.concurrent.FutureTask.run(FutureTask.java:138)
 E/CheckinTask(  243):   at

 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
 E/CheckinTask(  243):   at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
 E/CheckinTask(  243):   at java.lang.Thread.run(Thread.java:1019)

 How can I fix it?

 Youtube won't work.
 Markey won't work.
 gmail won't work.

 Then suddenly they work.

 I don't get it.  It's just too dodgy.



 Shawn

 NexusOne
 2.3.3
 using wifi

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




-- 
Thanks for Cooperating!
 Anil Kukreti

We are not here for making a history.
We are here for making a future. !
09717125554
09312646623
Linked In : http://in.linkedin.com/in/anilkukreti
Blog : http://androidosbeginning.blogspot.com/
Skype Id : anil.kleward

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Dialog doesn't show in a ListActivity

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 8:43 AM, Daniel Rindt
daniel.ri...@googlemail.comwrote:

   2 - Call show() on the Dialog you create to actually show it.
 In the docs i found:
 AlertDialog.Builder.create();
 also shows the Dialog.


Where? In the docs I found:
http://developer.android.com/reference/android/app/AlertDialog.Builder.html#create()
http://developer.android.com/reference/android/app/AlertDialog.Builder.html#create()
http://developer.android.com/reference/android/app/AlertDialog.Builder.html#create()

 Creates a 
 AlertDialoghttp://developer.android.com/reference/android/app/AlertDialog.html
  with
 the arguments supplied to this builder. *It does not 
 show()http://developer.android.com/reference/android/app/Dialog.html#show() 
 the
 dialog.* This allows the user to do any extra processing before displaying
 the dialog. *Use 
 show()http://developer.android.com/reference/android/app/AlertDialog.Builder.html#show()
  if
 you don't have any other processing to do and want this to be created and
 displayed.*

-
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] About Android Application

2011-03-14 Thread TreKing
On Mon, Mar 14, 2011 at 8:38 AM, kajal patil patil.kaja...@gmail.comwrote:

 Please kindly suggest the solution.


http://developer.android.com/guide/developing/debugging/debugging-log.html

-
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: How to share data among different devices

2011-03-14 Thread ez
Thanks for replying.

Google should come up with an easy solution. Tablet will flood the
market this year. Users want to use the apps with the same setting and
preferences among the their phone and tablets.

Thanks
Eric

On Mar 13, 10:55 am, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Mar 13, 2011 at 11:41 AM, ez qzh...@gmail.com wrote:
  I am looking for out of box solution from Google.

 There is none. The closest thing is BackupEngine, but that is not a
 sync solution.

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

 Android 3.0 Programming Books:http://commonsware.com/books

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

2011-03-14 Thread Tina
Hi, Mark!

Yes, I know that it is no support for this in the Android SDK. But,
devices exist and some application could use go to the internet via
PC.

I think that it means that firmware providers supports this
functionality somehow.
The question is: may be someone knows how it was done?

Tina


On 14 мар, 16:54, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Mar 14, 2011 at 9:51 AM, Tina tina...@gmail.com wrote:
  Our customers send us the request to support internet access via USB.
  I know that some tablet (f. ex. WowPad, AL-10 etc) supports such
  functionality, but have no idea how this option could be reached from
  API.

 There is no support for this in the Android SDK, sorry.

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

 Android Training in Oslo:http://bit.ly/fjBo24

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

2011-03-14 Thread Chetan Singh Bisht
yes i am working with primitive data types...i have an integer array
and two string arrays(no object arrays as such)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Dialog doesn't show in a ListActivity

2011-03-14 Thread Daniel Rindt
Am Montag, den 14.03.2011, 08:53 -0500 schrieb TreKing:
 Creates a AlertDialog with the arguments supplied to this builder. It
 does not show() the dialog. This allows the user to do any extra
 processing before displaying the dialog. Use show() if you don't have
 any other processing to do and want this to be created and displayed.
Yes thanks for open up my eyes. :)

Daniel

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

2011-03-14 Thread Mark Murphy
On Mon, Mar 14, 2011 at 10:10 AM, Tina tina...@gmail.com wrote:
 Yes, I know that it is no support for this in the Android SDK. But,
 devices exist and some application could use go to the internet via
 PC.

 I think that it means that firmware providers supports this
 functionality somehow.
 The question is: may be someone knows how it was done?

This list is for the Android SDK. Either speak to the manufacturers in
question, or perhaps inquire on one of the Google Groups listed on
http://source.android.com.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-03-14 Thread Tina
Hi, all.
Our customers send us the request to support internet access via USB.
I know that some tablet (f. ex. WowPad, AL-10 etc) supports such
functionality, but have no idea how this option could be reached from
API.
Now I use HttpPost and HttpGet classes but they does not work throught
PC.

Thanks,
Tina

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

2011-03-14 Thread David Williams

Ok,

I think I have been able to resolve this now :) Took a look at the 
notepad demo and that helped a lot.


One other question, once I have my database and I start to create tables 
for it and programatically start to populate these tables with data, is 
there any way (any tool) that I can take a look at the table contents so 
I can check that my code is populating the data in my tables as I'd 
expect?  Obviously I can use my app to display information, but was 
curious if there was any other way to view the data.


TIA.


David Williams
Check out our WebOS mobile phone app for the Palm Pre and Pixi:
http://www.dtw-consulting.com/GolfCaddie Golf Caddie 
http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum 
http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ 
http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc.




On 3/13/2011 8:46 PM, David Williams wrote:

All,

I am trying to create an SQLite DB but for some reason it's not working.
My logic performs the following.

db.openDatabase(GlobalVars.DATABASE_NAME, null, 0);

This simply tries to open my DB.  If the DB doesn't exist it will 
throw an exception, which I can check, but I would suspect that if the 
DB can't be opened it doesn't exist, therefore my assumption then is 
that this is a new install of my app and I need to create my DB.  So, 
in my exception I am doing the following:


db.openOrCreateDatabase(GlobalVars.DATABASE_NAME, null);

I'd expect the above command to create the database regardless, but it 
isn't.  The exception I am getting for both of the above commands is: 
*unable to open database file. *I am surprised am I getting this in 
the second exception as I would expect it to create the DB.


DATABASE_NAME = golfcaddie.db

What am I doing wrong?


--


David Williams
Check out our WebOS mobile phone app for the Palm Pre and Pixi:
http://www.dtw-consulting.com/GolfCaddie Golf Caddie 
http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum 
http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ 
http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, 
Inc.



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

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-14 Thread Brad Stintson
I assigned pre-defined  value for foregin key. The thing that happens is
that on first time use of that key, an entry is created in database. But if
I use that value for second time then value is not updated in database

 My database table strings are as follows


private static final String DATABASE_PROFILE=
create table profile (_id integer primary key autoincrement, 
+ pro_name TEXT not null,
+ password TEXT not null
+ );;

private static final String DATABASE_EVENT =
create table event
 + (_id integer primary key autoincrement, 
 + pro_id INTEGER, 
 + title TEXT not null, 
+ priority TEXT not null,
+ priority_pos INTEGER not null,
+ status TEXT not null,
+ status_pos INTEGER not null,
+ from_date TEXT not null,
+ from_time TEXT not null,
+ FOREIGN KEY(pro_id) REFERENCES profile(_id)  
+);;



2011/3/14 Kostya Vasilyev kmans...@gmail.com

  Most likely, it means you didn't specify a value for the foreign key when
 inserting into the child table (ref_id_value in the snippet below).

 -- Kostya

 14.03.2011 16:27, Brad Stintson пишет:

 Thanks.

  I created foreign key, but when I try to insert values using m
 application it throws
 *android.database.sqlite.SQLiteConstraintException: error code*
  * 19: constraint failed.*
 *
 *
 But if I insert values manually usiing console, then values are inserted
 properly. Why is it so?


  2011/3/13 Kostya Vasilyev kmans...@gmail.com

  SQLite has foreign key support starting with version 3.6.19.

 http://www.sqlite.org/foreignkeys.html

 Some versions of Android have SQLite versions earlier than that - someone
 posted a breakdown recently, check the list archives.

 For earlier versions, it works pretty well to do something like:

 CREATE TABLE 
 .
 ref_id_value INTEGER NOT NULL REFERENCES the_other_table (_id)


 For transactions, check SQLiteDatabase docs:


 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction()

 The above gives the usual pattern for using transactions.

 -- Kostya

 13.03.2011 13:16, Brad Stintson пишет:

 How to use transaction and how to implement the concept of foreign key?

 2011/3/13 Kostya Vasilyev kmans...@gmail.com

 Multiple inserts, one at a time. Preferably using a transaction.
 13.03.2011 12:58 пользователь Brad Stintson geek.bin...@gmail.com
 написал:

  How to insert multiple tables which have few fields in common?
 
   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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



   --
 Kostya Vasilyev -- http://kmansoft.wordpress.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


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



 --
 Kostya Vasilyev -- http://kmansoft.wordpress.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


-- 
You received this message because you are subscribed to the Google

[android-developers] Re: Getting internet from PC via USB

2011-03-14 Thread Tina
Thank you for your answer again.
I will post same question to the source group. But, the question is
about Android SDK.
May be someone has expirience or information which part of stardart
SDK supports on these devices. I am not going to write device-specific
code, but if I could solve the problem by using another standard
function it will be very good.
Unfortunately I have not such device and could not make tests by
myself.
Tina

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Locate Zoom Controls (x,y) in MapView?

2011-03-14 Thread mcmatom
UPDATE:  I have managed to get this working, but it still has a hacky feel 
to me since it is completely reliant on the placement of the zoom controls 
forever being at the bottom of the screen.  I am open to any suggestions on 
how to handle this more appropriately.  For anyone interested, the code 
snippet placed into *OnSingleTapUpConfirmed* follows:
   
ZoomButtonsController zBC = mView.getZoomButtonsController();
View zcView = zBC.getZoomControls();

int iMapHeight = mView.getHeight();

Rect zoomHit = new Rect();
zcView.getHitRect(zoomHit);

zoomHit.top = iMapHeight - zcView.getHeight();
zoomHit.bottom = iMapHeight;

RectF rectFloat = new RectF(zoomHit);
if (rectFloat.contains(e.getX(),e.getY())) {
return false;
}

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

2011-03-14 Thread Marcin Orlowski
On 14 March 2011 15:40, Tina tina...@gmail.com wrote:

 May be someone has expirience or information which part of stardart
 SDK supports on these devices. I am not going to write device-specific
 code, but if I could solve the problem by using another standard
 function it will be very good.
 Unfortunately I have not such device and could not make tests by
 myself.

There're apps to offer such feature, like PDANet for example. May be
much cheaper to simply buy it instead of developing own solution with
no experience in that field.

-- 
Regards,
Marcin Orlowski

Tray Agenda - http://bit.ly/trayagenda

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

2011-03-14 Thread Marcin Orlowski
On 14 March 2011 14:42, Alessandro Pellizzari a...@amiran.it wrote:
 Il Mon, 14 Mar 2011 13:54:48 +0100, Marcin Orlowski ha scritto:

 I wondered if stupid is not too strong, but after a thought - no, it
 is not silly, nor unwise. It's stupid. If you embeed pkey in the
 app it's like you publish it widely. What the point of your encryption
 then?

 I am sorry... what do you mean by pkey? PUBLIC key or PRIVATE key?

Private key of course. Sorry for not making it clear


-- 
Regards,
Marcin Orlowski

Tray Agenda - http://bit.ly/trayagenda

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

2011-03-14 Thread yogendra G
Hi All,

Am Getting problem in deployment of my app to my device(Motorola Droid 2) so
plz any 1 help me in dis resolving me...am getting in ADB interface pbm...

Regard,
Yogendra G(9916168647)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can't communicate with NfcB tag

2011-03-14 Thread Paul Christensen
Sweet! I found me a real live Android bug! Do I win a hat? :)

I'm a little out of my element here, and was hoping to be able to work from
code in an existing application, but in light of this, it looks like that
will not be possible.
Can you tell me, will communicating through IsoDep still allow me to
retrieve data like the track2 data from credit cards, assuming I know the
protocols to use?
-- Paul Christensen


On Fri, Mar 11, 2011 at 6:04 PM, Nick Pelly n...@android.com wrote:

 Sorry for the late reply,

 We have looked into this, and it is indeed a bug.

 On 2.3.3, NfcA.connect() and NfcB.connect() fail if the tag also enumerates
 IsoDep.

 The good news is that most of the time IsoDep.connect() is what you want :)

 We will address this issue in a future release. It's a little tricky since
 we need to actually reconnect to the tag to drop back to NfcA/NfcB from
 IsoDep.

 Thanks for bringing this to our attention,

 Nick

 On Mon, Mar 7, 2011 at 10:14 AM, Paul Christensen 
 p.ellischristen...@gmail.com wrote:

 Thanks. I appreciate you looking in to this.
 To verify, yes, I am only trying to connect to one tech at a time.
 I am not connecting to IsoDep, and then attempting to connect to
 NfcB/NfcA.
 I only know about IsoDep working because after failing to connect to NfcB,
 I swapped out my objects and attempted to connect to the same cards using
 IsoDep, which was successful.

 -- Paul Christensen



 On Mon, Mar 7, 2011 at 11:04 AM, Nick Pelly n...@android.com wrote:

 I'll try and reproduce. But I just want to make sure, are you only
 connecting NfcB / NfcA, and never connecting IsoDep first? Because you can
 only connect one tech at a time.

 Nick


 On Mon, Mar 7, 2011 at 7:57 AM, Paul Christensen 
 p.ellischristen...@gmail.com wrote:

 Ok, for #1 I'll just keep trying the card and see if I can manage to
 talk to it.
 For the additional issues, the sequence of events and relevant code is
 as follows:
 I scan a card with my app set to receive the scans. The appropriate
 Activity opens,  retrieves a Tag object, and executes an AsyncTask.
 The AsyncTask determines the card technology and based on the card
 technology, attempts to open a connection to that card as follows:
 private static NfcB getNfcBTag(Tag tag) throws Exception
 {
 NfcB myTag = NfcB.get(tag);
 try
 {
 if(!myTag.isConnected())
 {
 myTag.connect();
 }
 }
 catch(Exception e)
 {
 Log.e(TAG, e.getMessage());
 }
 return myTag;
 }

 The above method throws an exception on myTag.connect(). The exception
 is a java.IOException, but the message and source are both null, so I have
 no idea why it's happening. Now, if I change this method to be IsoDep
 instead of NfcB (or NfcA, for that matter), I am able to successfully
 connect to the card, send a message to the card, and retrieve a response
 from that card.


 -- Paul Christensen



 On Sun, Mar 6, 2011 at 10:06 PM, Nick Pelly n...@android.com wrote:

 Hi Paul,

 For (1), it is very hard to discover NfcB credit card on the Nexus S.
 Many NfcB credit cards only work well with high powered readers. That 
 said,
 if you play with the credit card orientation against the back of the 
 Nexus S
 (where the NFC antenna is) you should be able to eventually scan it.

 For (2), (3) and (4), can you provide some sample code, and tell us
 exactly where it is failing.

 Nick


 On Fri, Mar 4, 2011 at 10:30 AM, Paul Christensen 
 p.ellischristen...@gmail.com wrote:

 Ok, so I've learned additional, somewhat less than encouraging
 things.

1. I have a Discover Zip card, no idea what the ISO technology
is, all I do know is the Nexus S does not respond at all to this card.
2. I have a Visa NfcB card that will connect as IsoDep, but not as
NfcB.
3. I have an Amex NfcB card that will connect as IsoDep, but not
as NfcB.
4. I have a MasterCard NfcA card that will connect as IsoDep, but
not as NfcA.

 Any thoughts would be greatly appreciated.

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








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

2011-03-14 Thread Justin Anderson
* Private key of course. Sorry for not making it clear*

The OP made it very clear that he was wanting to use the PUBLIC key... not
the private one.

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


On Mon, Mar 14, 2011 at 8:51 AM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 Private key of course. Sorry for not making it 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

Re: [android-developers] Creating SQLite DB

2011-03-14 Thread Kostya Vasilyev

14.03.2011 17:31, David Williams ?:
is there any way (any tool) that I can take a look at the table 
contents so I can check that my code is populating the data in my 
tables as I'd expect? 


You can copy the database file to the host computer and use sqlite3, 
which is a command-line SQlite interface. It comes with the Android SDK.


The syntax is:

sqlite3 db file name.

Reference:

http://www.sqlite.org/sqlite.html

The only thing is, database files are private to your application. Some 
options for dealing with this are:


- Using the emulator (which allows access to application-specific data 
directories, either in Eclipse's DDMS view or with adb pull file);


- Writing your own SQLiteOpenHelper type class that would place the 
database on the memory card;


- Implementing a button in your application that would copy the database 
file to the memory card.


--
Kostya Vasilyev -- http://kmansoft.wordpress.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

[android-developers] Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Nesim TUNÇ
I tried bilion different ways but still not avaliable to get its device id
...

TelephonyManager tm = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
DeviceId = tm.getDeviceId();

read_phone_state permissons set in manifest file ... I'm gonna release the
app but i don't have the client deviceid 

Please help me, it's so urgent ... Thanks in advance


-- 
Nesim TUNÇ
Senior Software Developer of Distributed Applications

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

2011-03-14 Thread Justin Anderson
It would be nice to know what the problem is, what steps you are taking to
get it on your device, etc...

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


On Mon, Mar 14, 2011 at 8:58 AM, yogendra G yogi2...@gmail.com wrote:

 Hi All,

 Am Getting problem in deployment of my app to my device(Motorola Droid 2)
 so plz any 1 help me in dis resolving me...am getting in ADB interface
 pbm...

 Regard,
 Yogendra G(9916168647)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Can't communicate with NfcB tag

2011-03-14 Thread Paul Christensen
A mailing list for this would be awesome for me. I'm in a similar situation
to yours, and figuring out how to talk to these cards is going to be quite
the adventure, to say the least.
-- Paul Christensen


On Fri, Mar 11, 2011 at 10:25 PM, Brill Pappin br...@pappin.ca wrote:

 laugh!
 I just got a client wanting to talk to PayPass, which I'm now going to have
 to figure out how to do.
 I bet 90% of the people in this forum working on NFC are trying to connect
 to PayPass!
 We should set up our own mailing list ;)

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

2011-03-14 Thread Daniel Rindt
Hi,

in my TabView you can show it here: http://fpaste.org/sEnm/ i would like
to display a ListActivity with a usual ListView. 
That works so far but, the ListView is not stretching over the entire
rest of the screen as they usually do because the parent element defines
a fill_parent you can see in the xml code from the layout above.

Thanks for all hints
Daniel

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

2011-03-14 Thread Kostya Vasilyev

14.03.2011 17:40, Tina пишет:

May be someone has expirience or information which part of stardart
SDK supports on these devices. I am not going to write device-specific
code, but if I could solve the problem by using another standard
function it will be very good.


It should *probably* be reflected in some way in ConnectivityManager - 
just consider what happens if the user disables 3G and WiFi on such a 
device and connects it to a computer (getting a network connection like 
you described).


Applications can check ConnectivityManager to see if there is a 
connection, and unless they (the developers of such devices) somehow 
make the computer connection visible here, such applications would not 
work, not seeing a network connection.


That's just a guess though.


Unfortunately I have not such device and could not make tests by
myself.


That would be a good first step - if this requirement comes from The 
Mgmt, ask them to provide you with such device for testing. If they do, 
you can run your own tests. But they might also change their mind about 
this requirement :)


--
Kostya Vasilyev -- http://kmansoft.wordpress.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] SQLite Database - Multiple Tables

2011-03-14 Thread Kostya Vasilyev

14.03.2011 17:36, Brad Stintson пишет:
I assigned pre-defined  value for foregin key. The thing that happens 
is that on first time use of that key, an entry is created in 
database. But if I use that value for second time then value is not 
updated in database


Brad,

Not sure if I understand what you meant about predefined values.

The basic idea is: every time you insert a new row into table event, 
make sure that pro_id is set to one of the existing values of _id in 
table profile.


For updates, use the _id in table event to identify the row you're 
updating, and either leave the pro_id alone (thus keeping the old 
value) or set it to a valid _id in table profile.


--
Kostya Vasilyev -- http://kmansoft.wordpress.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


[android-developers] android.pim.vcard

2011-03-14 Thread asw
Hi folks,

I am just starting to learn android, and so far my first impression was not 
too good.

Why the package android.pim.vcard is not made public? There are also a lot 
of other packages and useful methods not in public API. You can call the 
hidden APIs in the actual device, but you can't compile it in the first 
place because they are not available in the SDK. Is there any hack to enable 
the hidden API in the SDK (like patching the .jar)?
It seems that Google does not promote library reuse much. It should not be 
too hard to maintain the public APIs for vcard functionality.

Alvin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can't communicate with NfcB tag

2011-03-14 Thread Brill Pappin
indeed!
It's actually kind of worrying me :)
I do have external support in the industry for this one, I'm just not sure 
how much. I think a lot will depend on how easily we can implement the 
security features built into the hardware; that is going to be a pain. 

I'm actually going to take  a few weeks to ramp up (we don't even had Nexus 
S phones up here in Canada yet, but should by beginning of April) but I'd be 
perfectly willing to share the how so we can both keep our clients happy :)

I'll ping you again when I get down to the nitty-gritty.


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

2011-03-14 Thread ip332
 How does android process events in case of high CPU load?
Same way as in the low CPU load. Read data, calls your sensor
listener, waits a certain amount of time to provide events at a
desired rate.
Obviously the details depend on the sensors HAL implementation for a
given phone. I've seen a phone where this module did some heavy work
by itself and eats up to 45% of CPU.
Some phones allows request sensors updates with 0 delay which results
in continuous reading and 100% CPU load.
But most important: Android is not a real time platform dedicated to
the data processing.


On Feb 9, 8:06 am, Heiko heiko.wi...@gmail.com wrote:
 Hi,

 I'm currently testing the impact of heavy CPU workload on
 accelerometer sampling frequency. It appears, that when CPU workload
 is high, the samplerate oscillates between higher and lower than
 average values. I'm also storing the timestamp diff between two events
 and the test reveals, that there is also an oscillation here.

 You can see the time diff between sensor events 
 here):http://cl.ly/2S3o2T0w3A1W181i3g3F

 N is the phase with normal CPU load, Y the phase with high CPU load
 (around 95%+).

 The influence on the sample rate can be seen in this 
 chart):http://cl.ly/1T253P041O0R2m1U3Z1V

 How does android process events in case of high CPU load? Does it
 collect events and then sends many of them in a burst phase to the
 handler of an app?

 Best
 Heiko

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can't communicate with NfcB tag

2011-03-14 Thread Paul Christensen
Any information you can share would be very much appreciated, and I'm more
than happy to do the same. The potential for these things is very cool, and
based on what I've been working with for the last couple of months, there
are alternatives, but not many good ones, so I'm very excited about the
Android possibilities.
On a side note, you're going to love the Nexus S. I got one for myself as
soon as I was able, and the phone is awesome.
-- Paul Christensen


On Mon, Mar 14, 2011 at 9:47 AM, Brill Pappin br...@pappin.ca wrote:

 indeed!
 It's actually kind of worrying me :)
 I do have external support in the industry for this one, I'm just not sure
 how much. I think a lot will depend on how easily we can implement the
 security features built into the hardware; that is going to be a pain.

 I'm actually going to take  a few weeks to ramp up (we don't even had Nexus
 S phones up here in Canada yet, but should by beginning of April) but I'd be
 perfectly willing to share the how so we can both keep our clients happy :)

 I'll ping you again when I get down to the nitty-gritty.


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

2011-03-14 Thread Brill Pappin
Is anyone else having trouble with 3rd party sites distributing your apps 
without your permission?

We manage to adequately support our products through the Market, but we 
simply don't have the resources at this time to support a whole bunch of 
other distribution channels.

Does anyone else have this problem and what do you do about it?

- Brill Pappin

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

2011-03-14 Thread dweebo
The app sends up a data file to our server, using this code.

HttpParams params = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(params, 15000);
HttpConnectionParams.setSoTimeout(params, 5 * 60 * 1000);
HttpClient client = new DefaultHttpClient(params);
 HttpPost post = new HttpPost(MyActivity.HOST + track/sync-
compare.html);
FileEntity e = new FileEntity(tmp, getContentType());
e.setChunked(true);
HttpEntity requestEntity = (e);
post.setEntity(requestEntity);
}
if (Util.LOG) debug(about to execute);
response = (HttpResponse) client.execute(post);
The file that is received on our server is different than the file
that is sent.

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


  1   2   3   >