[android-developers] Re: Bluetooth Low Energy Encrypted Characteristic Read Write

2014-02-05 Thread shubh
Hi Ashvini, Do you have any suggestion about issue mention here 
http://stackoverflow.com/questions/21398766/android-ble-connection-time-interval
 ? 
This is regards Connection time interval.

On Thursday, October 10, 2013 11:27:41 AM UTC+5:30, Ashwini wrote:

 If I set write type WRITE_TYPE_SIGNED, I get status code as 135 and write 
 fails. However when I used write type as WRITE_TYPE_NO_RESPONSE I getsuccess 
 status code.
 My device advertises WRITE_NO_RESPONSE as property of characteristic which 
 I am trying to write.

 What else I can try for this?

 On Wednesday, September 25, 2013 1:53:58 PM UTC+5:30, gjs wrote:

 Hi,

 So far I've only used BLE successfully with devices that don't need to 
 use encryption, however the docs seem to infer that 
 BluetoothGattCharacteristic 
 requires setWriteType (int writeType) where writeType is WRITE_TYPE_SIGNED 
 - Write characteristic including authentication signature -  prior to 
 performing encrypted write operations ?

 See 
 http://developer.android.com/reference/android/bluetooth/BluetoothGattCharacteristic.html#setWriteType(int)

 Also as far as I know there is no need to explicitly pair with BLE 
 devices, it just happens automagically. You just scan for available devices 
 and connect with the ones your interested in using.

 Hope that helps.

 Regards
  

 On Tuesday, September 24, 2013 9:28:40 PM UTC+10, Ashwini wrote:

 I am developeing an application which can talk to few smart(bluetooth 
 4.0) devices. I tested the code on Nexus 4 running Android OS version 4.3. 

 The application is able to connect to nordic chip programmed as heart 
 rate monitor. For this device, I am able to read services, characteristics 
 and even get updates for heart rate values.
 However, when I programmed the same chip for encrypted characteristics, 
 I am facing some issues.

- Connection drops sometimes after write characteristic descriptor 
is performed.
- The devices once paired with phone can not be un-paired. (This is 
known issue and confirmed the same from android issue tracker).
- Getting following statement in logs quite often but not able to 
understand the status code - 133.

 D/BluetoothGatt(1780): onClientConnectionState() - status=133 clientIf=4 
 device=CC:F3:A5:4D:CB:3F


- The phone also logs this statement for state change.

In stable state, received invalid newState: 10



 I do not seem to find a way to instruct the phone to get paired with the 
 chip. Also there is no way to specify that we want to perform *encrypted 
 read-write operations*.

 Any help is appreciated.




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


Re: [android-developers] Live Wallpaper Architecture

2013-10-28 Thread shubh
Can you please refer any guide line to understand Live 
wallpaper architecture, how it communicate with Launcher app?

On Monday, April 26, 2010 8:31:58 PM UTC+5:30, Romain Guy wrote:

 Live wallpapers do not run in Launcher's process, it was a very 
 important decision we made early on when designing the architecture. 
 Launcher knows absolutely *nothing* about the wallpaper anymore, it's 
 handled by the window manager. 

 On Mon, Apr 26, 2010 at 7:18 AM, Nik Bhattacharya 
 nibh...@gmail.comjavascript: 
 wrote: 
  Does the Live Wallpaper run in the same process as the Launcher? I 
  looked through the Launcher code and cannot really figure out where 
  the wallpaper layer fits in. I am looking at this with the lens of 
  memory consumption and safeguards that the Launcher has in place 
  against a bloated Live Wallpaper. 
  
  Thanks, 
  Nik 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 
  



 -- 
 Romain Guy 
 Android framework engineer 
 roma...@android.com javascript: 

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

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


Re: [android-developers] Reusing bitmaps for BitmapFactory.decodeFile and BitmapFactory.Options.inBitmap

2013-10-19 Thread shubh
But here still I am getting error, guessing at time of loading big images 
and if perfom any screen action event.

any suggestion here?

On Saturday, August 24, 2013 5:22:11 PM UTC+5:30, Alexey Danilov wrote:

 Bitmap is mutable, because I decode it with option inMutable=true. Bitmaps 
 have same size, because I decode the same file. But your answer forces me 
 to read docs more carefully and I realize my fail! The docs says:
 The source content must be in* jpeg or png* format (whether as a resource 
 or as a stream)
 OMG! My images have GIF format.

 By the way thanks!

 суббота, 24 августа 2013 г., 11:28:33 UTC+3 пользователь Romain Guy 
 (Google) написал:

 Here is what the documentation says: The current implementation 
 necessitates that the reused bitmap be mutable and of the same size as the 
 source content.

 Make sure the bitmap you are reusing is mutable.


 On Sat, Aug 24, 2013 at 12:07 AM, danik dani...@gmail.com wrote:

 My app decodes a lot of bitmaps from sd card, so I want to reuse 
 existing bitmaps to decrease GC work. I see examples from Android 
 Traininghttp://developer.android.com/training/displaying-bitmaps/manage-memory.html#inBitmapand
  this 
 video http://www.youtube.com/watch?v=rsQet4nBVi8 
 http://savefrom.net/?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrsQet4nBVi8utm_source=chromeliteutm_medium=extensionsutm_campaign=link_modifierand
  it works perfect for
 BitmapFactory.decodeResourcehttp://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeResource%28android.content.res.Resources,%20int,%20android.graphics.BitmapFactory.Options%29,
  
 but not for 
 BitmapFactory.decodeFilehttp://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeFile%28java.lang.String,%20android.graphics.BitmapFactory.Options%29.
  
 I use next code:

 private void testBitmapReusing() {
 BitmapFactory.Options options = newOptions();
 Bitmap bitmap = decode(options);

 options.inBitmap = bitmap;
 bitmap = decode(options);
 }

 private BitmapFactory.Options newOptions() {
 BitmapFactory.Options options = new BitmapFactory.Options();
 options.inSampleSize = 1;
 options.inMutable = true;
 return options;
 }

 private Bitmap decode(BitmapFactory.Options options) {
 return  BitmapFactory.decodeFile(/mnt/sdcard/sun.jpg, options);
 //  return BitmapFactory.decodeResource(getResources(), 
 R.drawable.sun, options);
 }

 Commented code (BitmapFactory.decodeResource) works as expected, it 
 decodes new bitmap using existing bitmap. But uncommented code 
 (BitmapFactory.decodeFile) doesn't decode new bitmap. It just writes to log 
 message E/BitmapFactory: Unable to decode stream: 
 java.lang.IllegalArgumentException: Problem decoding into existing bitmap

 So where is my mistake?

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




 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com
  


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


[android-developers] how to set the Live Wallpaper as default wallpaper?

2012-10-30 Thread shubh
I created an live wallpaper application, like how we get default wallpaper 
on home screen, how to set the Live Wallpaper as default wallpaper even 
after my Android mobile is restarted?

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

[android-developers] How to open activity in fragmentation area ?

2012-10-06 Thread shubh
Is it possible to get same behaviour of TabViewActivity using 
fragmentation, I want to open a new activity in fragmentation area if I 
select any of tab?

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

2012-10-06 Thread shubh
I create an Fragmentation view in which screen have an tray at bottom with 
some button, and rest of area (content area) to draw other content based on 
selection of tray button(same like TabViewActivty), in content area screen 
have a grid of button(3 x 3).
now let's assume focus is at any left most button of content area, now if i 
perform any keyboard-left event here then focus directly jump to 
bottom-left item of tray. 

Same thing didn't do any action on keyboard-right event, if focus is at any 
right-most button ?

any idea why this happening, even same things working properly if I design 
simple layout without use of fragmentation.

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

[android-developers] How to Get FocusListener event from Service UI to ActivityUI

2012-09-28 Thread shubh


I created UI component (2-3 Button in a row) from Service class using 
android WindowManagere .

And able to get focus in service UI, but not able to swich focus between 
activity UI and service UI, focus stick with service component. 

If I do View.GONE for service component then control automatic shift to 
Activity UI componentany help here?

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

2012-07-11 Thread shubh
Hello , in my case in my screen say have three button to play three 
different video, when i choose any second video, then during time of buffer 
want to repaint with initial state.
in my case it showing previous video screen .

any help over this?



On Sunday, March 7, 2010 6:48:21 PM UTC+5:30, Alvaro Villoria Saez wrote:

 Hi all!

 We are developing a graphic adventure engine for Android , and we are
 not being able to draw and play video on the same Activity .

 We are currently using a SurfaceView to draw the games , and it would
 be great to play videos on that surfaceView ..

  * We tried changing SurfaceHolders surfaceType  dinamically
 (  SURFACE_TPYE_NORMAL - SURFACE_TYPE_PUSH_BUFFERS )
  * We also tried to use two SurfaceViews , one for drawing the game
 and one for rendering videos .. but using  two surfaceViews seems to
 be not supported ...

 Any ideas to deal with this would be very helpful!

 Thanks in advance ;D!

 Alvaro



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

2012-07-08 Thread shubh


https://lh3.googleusercontent.com/-GIBSiBEMAlI/T_oyu0qVfiI/AHk/SuUYVqU4YdE/s1600/tab.jpg
 Hello to all, I create 3 intents of activities(which i add to TabHost) in 
my main TabActivity. I also have refresh and logout button with onClick 
method. When this button is clicked say refresh i want to refresh item of 
intent activity.

I just put an public method there, it's working fine if i say print any 
message there, but as I called some process method to get data from web 
service it;s not work. 

To intent i use 

intentAccount.putExtra(test, Hello);
AccountActivity r = new AccountActivity();
r.update();


and this is my update method in account Activity

public void update(){

 System.out.println(ACCOUNT  :) );

}


any one have idea what can done in this case ?


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

[android-developers] Mouse Scroll event on Gallery

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


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

[android-developers] device loack/unlock callback at native layer

2012-06-08 Thread shubh
any one have idea about how and where we can get callback for device
lock and when it get unlock.

at app level using receiver (ACTION_SCREEN_ON, ACTION_SCREEN_OFF) we
get handle it but how at native layer.

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

2012-06-08 Thread shubh
any one have idea about how and where we can get callback for device
lock and when it get unlock.

at app level using receiver (ACTION_SCREEN_ON, ACTION_SCREEN_OFF) we
get handle it but how at native layer.

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


[android-developers] Re: Android Framework - add new package in /base/packages/

2012-02-24 Thread shubh
might be this is useful for u

http://neillife.blogspot.in/2009/01/how-to-add-new-module-to-android.html

On Feb 24, 3:25 pm, BHAUMIK SHUKLA boom.shu...@gmail.com wrote:
 i m adding a new package in android framework in /base/packages/,
 while compiling and building i m getting an error that package
 com.xx.xx not exist
 do i need to register this new package somewhere in framework?

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

2012-02-23 Thread shubh
Hello to all,
I want to add an extra lock screen module in already existing Android
Source Code.
But I am facing following EXception.

02-23 11:13:35.116: E/AndroidRuntime(613): FATAL EXCEPTION: main
02-23 11:13:35.116: E/AndroidRuntime(613):
java.lang.IllegalArgumentException: Invalid quality constant: 0x10
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.os.Parcel.readException(Parcel.java:1331)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.os.Parcel.readException(Parcel.java:1281)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.app.admin.IDevicePolicyManager$Stub
$Proxy.setActivePasswordState(IDevicePolicyManager.java:1755)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.app.admin.DevicePolicyManager.setActivePasswordState(DevicePolicyManager.java:
1344)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
com.android.internal.widget.LockPatternUtils.clearLock_DS(LockPatternUtils.java:
430)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
com.android.settings.ChooseLockGeneric
$ChooseLockGenericFragment.updateUnlockMethodAndFinish(ChooseLockGeneric.java:
334)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
com.android.settings.ChooseLockGeneric
$ChooseLockGenericFragment.onPreferenceTreeClick(ChooseLockGeneric.java:
127)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.preference.Preference.performClick(Preference.java:949)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:
202)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.widget.AdapterView.performItemClick(AdapterView.java:292)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.widget.AbsListView.performItemClick(AbsListView.java:1058)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.widget.AbsListView$PerformClick.run(AbsListView.java:2514)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.widget.AbsListView$1.run(AbsListView.java:3168)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.os.Handler.handleCallback(Handler.java:605)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.os.Handler.dispatchMessage(Handler.java:92)
02-23 11:13:35.116: E/AndroidRuntime(613):  at
android.os.Looper.loop(Looper.java:137)

Did Any one have faced same problem before.


thanks


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


[android-developers] How can draw pixel using native c++ in android?

2012-01-13 Thread shubh
Hi,

I have some (x,y) at native layer, I want to create an interface in
native that will draw these points.

The architecture which I am following :

1) I have an native method declaration , draw(JNIEnv *env, jobject
thiz, jobject canv, jobject pa);
2) I load shared lib in my activity and define calling declaration for
native lib
 static native int draw( Canvas can, Paint p);
3) This native method finally I call from my Android view class
onDraw()
  MyActivity.draw(canvas, paint);


now here suggest me what and how I should do in draw() of native
method.

thanks

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


[android-developers] Re: How can use two cameras to record video or capture pic simultaneously?

2012-01-09 Thread shubh
I didn't find till now ...
as per I am guessing any how we needed dual processor device with
needed hardware features.


On Nov 25 2011, 7:08 pm, jdmitch joel.mitch...@gmail.com wrote:
 I am trying to figure this one out as well - more specifically I want to
 use the front-facing and rear-facing cameras from the same device and have
 them in the same file (or otherwise simultaneously played/streamed).  Have
 you come across any answers since you posted this?  There does seem to be a
 bit more documentation in the ICS SDK on the Camera function, but I could
 find a straight answer to the 2-cameras 1 device issue...

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

2011-10-03 Thread shubh
I compile an normal C hello world program using arm-none-linux-
gnueabi-gcc comiler.
but i am executing generated binary file it prompt me  bash: ./
Sample: cannot execute binary file  error .

When I compile using gcc compiler it generate a.out (default name), it
executing properly.

any body have any idea what I am doing 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] How can capture and transmit IR signal?

2011-10-01 Thread shubh
I am trying to build an IR app , in which i am able to capture IR
signal but not able to transmit same signal.

can any one have idea how can transmit same signal.

thanks

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


[android-developers] classes missing in default Setting Application?

2011-09-22 Thread shubh
Hello ,
I am trying to understand flow of Default Setting Screen App , when I
import this open source app, it responding lot missing classes/syntax
error like : Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR here
INCALL_POWER_BUTTON_BEHAVIOR  is missing.
..I use android-2.3.4_r1.jar as library, but not able to get clean
code to execute...can any body let me know what I am missing/mistake
here.

thanks

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


[android-developers] Re: How to get Super user permission at App level ?

2011-09-22 Thread shubh
Can any one suggest me something here...?

On Sep 9, 5:34 pm, shubh shubhampatn...@gmail.com wrote:
 hello team,
 any one have idea how can access Super user permission at Application
 level?

 thanks

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


[android-developers] How to get Super user permission at App level ?

2011-09-09 Thread shubh
hello team,
any one have idea how can access Super user permission at Application
level?

thanks

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


[android-developers] How can use two cameras to record video or capture pic simultaneously?

2011-08-10 Thread shubh
Hi team,
Can any body suggest me to How can use two cameras to record video or
capture pic simultaneously.

Basically I want to use both cameras at same time and then generate
single file at place of two.

Thanks

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


[android-developers] How can use two cameras to record video or capture pic simultaneously?

2011-08-10 Thread shubh
Hi team,
Can any body suggest me to How can use two cameras to record video or
capture pic simultaneously.

Basically I want to use both cameras at same time and then generate
single file at place of two.

Thanks

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


[android-developers] Clear draw popup overlay from mapview in android?

2011-08-07 Thread shubh
In my screen i have two button one is two show map and second one two
show list . I am populating an popup on android map using onTap method
of ItemizedOverlay class, and now if I press on second button to
show list , popup message shows as it is, it not cancelled.

pls let me know how can I dismiss this popup message dialog.

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

2011-08-07 Thread shubh
In my screen i have two button one is two show map and second one two
show list . I am populating an popup on android map using onTap method
of ItemizedOverlay class, and now if I press on second button to
show list , popup message shows as it is, it not cancelled.

pls let me know how can I dismiss this popup message dialog.

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


[android-developers] Re: How to create Curve layout in Android?

2011-08-02 Thread shubh
thanks Mark, can u show me way to start it.


On Jul 30, 5:16 pm, Mark Murphy mmur...@commonsware.com wrote:
 You will have to write your own layout manager for that.



 On Sat, Jul 30, 2011 at 8:08 AM,shubhshubhampatn...@gmail.com wrote:
  At place of use Vertical or Horizontal layout , how can design
  Circular layout.

  I want to create an circle layout where I can place some menu option
  inside that layout.

  thanks

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

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

 Android 3.1 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] Android Widget multiple instance problem?

2011-07-30 Thread shubh
I am creating an chat widget in which  I starting Service class thread
as I create instance (onUpdate of AppWidgetProvider) , so every time
when I create new instance my onUpdate call and service started
again...
so let me know How can I update all instance using single service
instance.

thanks

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


[android-developers] Re: How to call any method on button event of widget?

2011-07-30 Thread shubh
yes that i can try..

thanks

On Jul 20, 6:29 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jul 20, 2011 at 3:59 AM,shubhshubhampatn...@gmail.com wrote:
  Hi Mark, I did same , i put my business logic in SendToRecent (which
  is my Service class), but here every time i have to start Service
  class on click of widget Button.

  So suggest me if have any other way to handle this.

 Not really.

  I thing which i did after finishing my business logic in Service class
  I called stopSelf() , is it proper solution?

 Yes, or use an IntentService instead of a regular Service.

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

 Android Training...At Your Office:http://commonsware.com/training

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


[android-developers] How to create Curve layout in Android?

2011-07-30 Thread shubh
At place of use Vertical or Horizontal layout , how can design
Circular layout.

I want to create an circle layout where I can place some menu option
inside that layout.

thanks

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


[android-developers] Re: How to call any method on button event of widget?

2011-07-20 Thread shubh
Hi Mark, I did same , i put my business logic in SendToRecent (which
is my Service class), but here every time i have to start Service
class on click of widget Button.

So suggest me if have any other way to handle this.
I thing which i did after finishing my business logic in Service class
I called stopSelf() , is it proper solution?


On Jul 19, 6:03 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jul 19, 2011 at 8:55 AM, shubh shubhampatn...@gmail.com wrote:
  hi, I want to calledmethodon press ofWidgetButton.

 That is not possible.

  but i am not gettinganyway tocalldirectmethodon click ofwidget
 button.

 That is not possible.

  Intent configIntent = new Intent(context, SendToRecent.class);
  active.setAction(ACTION_WIDGET_CONFIGURE);
  PendingIntent configPendingIntent = PendingIntent.getService(context,
  0, configIntent, 0);
  remoteViews.setOnClickPendingIntent(R.id.btnResend,
  configPendingIntent);

 Your code above is how you respond to a click on awidgetin an appwidget. Put 
 your business logic in the SendToRecent service.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Mp4 video not playing in Galaxy Tab and MyTouch?

2011-07-19 Thread shubh
thanks Mark

On Jul 5, 7:01 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jul 5, 2011 at 9:54 AM,shubhshubhampatn...@gmail.com wrote:
  Heyy Mark ..can u please tell me what's mean by safe for streaming?

 http://stackoverflow.com/questions/523/where-to-place-videos-to-s...

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

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

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


[android-developers] How to call any method on button event of widget?

2011-07-19 Thread shubh
hi, I want to called method on press of Widget Button.

In my case i am coomunicating with other device using TCP and UDP
connection.
now i place an button in widget to respond recent user.

but i am not getting any way to call direct method on click of widget
button.

Intent configIntent = new Intent(context, SendToRecent.class);
active.setAction(ACTION_WIDGET_CONFIGURE);
PendingIntent configPendingIntent = PendingIntent.getService(context,
0, configIntent, 0);
remoteViews.setOnClickPendingIntent(R.id.btnResend,
configPendingIntent);


pls suggest me.

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


[android-developers] Re: How get button event in Notification panel?

2011-07-08 Thread shubh
@Marcin Orlowski : so is it possible for upgrade above 3.0 ?


On Jun 29, 11:49 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On Jun 29, 2011 8:17 AM, shubh shubhampatn...@gmail.com wrote:



  hi thanks Murphy,

  so is there any other way to get two events from Notification panel.

 not on pre 3.x

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Mp4 video not playing in Galaxy Tab and MyTouch?

2011-07-05 Thread shubh
Heyy Mark ..can u please tell me what's mean by safe for streaming?

On Jul 3, 5:03 pm, Mark Murphy mmur...@commonsware.com wrote:
 Your video may not be safe for streaming.

 http://stackoverflow.com/questions/523/where-to-place-videos-to-s...http://stackoverflow.com/questions/1841397/android-mediaplayer-emulat...



 On Sun, Jul 3, 2011 at 7:49 AM,shubhshubhampatn...@gmail.com wrote:
  hello team,

  I am trying to play an mp4 video url using both VideoView and WebView.

  in case of VideoView I am getting Null Pointer Exception and in
  WebView it showing black white page..nothign is there.

  This problem i am facing in SamsungGalaxy Tab and in MyTouch , in HTC
  Desire it's working fine.

  Please suggest me why this is happening and how can I solve this...is
  there any standard for Video file to play.

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

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Mp4 video not playing in Galaxy Tab and MyTouch?

2011-07-03 Thread shubh
hello team,

I am trying to play an mp4 video url using both VideoView and WebView.

in case of VideoView I am getting Null Pointer Exception and in
WebView it showing black white page..nothign is there.

This problem i am facing in SamsungGalaxy Tab and in MyTouch , in HTC
Desire it's working fine.

Please suggest me why this is happening and how can I solve this...is
there any standard for Video file to play.

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


[android-developers] How to check ip is available in network or not?

2011-07-01 Thread shubh
I have an list of IP which I am getting using UDP broadcasting, so on
the bases of Alive/Death packet ,i got to know whether user alive or
went off.

But i have an single case suppose user went out from network before
sent death packet, then how can I detect user live or not.

- Solution which i have:

So for this purpose I m running an thread ,in which i send an dummy
data to all user(from ip list), so if any ip is not available then it
respond IO exception. but it taking to much time to identify ip in
network.

pls suggest me if have any faster solution.

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

2011-06-29 Thread shubh
hi thanks Murphy,

so is there any other way to get two events from Notification panel.

On Jun 28, 9:33 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jun 28, 2011 at 11:47 AM, shubh shubhampatn...@gmail.com wrote:
  any one have idea how to get button event from Notification panel.

 You can't, at least on Android 1.x and 2.x, AFAIK.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-06-29 Thread shubh
Hi friends,

I establish connection among network devices using UDP, these devices
may be a mob or may be any PC.
Now i am sending some data to those device by locate their ip address.

When i send some message string from mob to PC it get as it is on PC ,
but when i get data from PC to mob ..it showing me some garbage
character sequence.
why it is happening,



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


[android-developers] How get button event in Notification panel?

2011-06-28 Thread shubh
Hi friends ,
any one have idea how to get button event from Notification panel.

I able to add button in notification panel , but i want two different
event , one for panel and another one for added button,

pls suggest me how can i do this.

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