Re: [android-developers] Strange SQLite error, possibly in native code?

2013-09-29 Thread tarun sablok
There should be one column in your database which should be named *_id* ,
its common error !!!


On Sun, Sep 29, 2013 at 3:35 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 Hello,

 One of my users reports a crash like this:

 android.database.sqlite.SQLiteException: no such column: _id (code 1): , 
 while compiling: SELECT _id, generation, flags, numeric_uid, body_main_size, 
 body_main_fetched_size, body_alt_size, body_alt_fetc¤   , search_token, 
 op_flags, op_move_to_folder, op_hide, misc_flags FROM message WHERE folder_id 
 = ? AND numeric_uid = ? AND numeric_uid  ?
   at 
 android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
   at 
 android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:886)
   at 
 android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:835)
   at 
 android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
   at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
   at 
 android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:158)
   at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:148)
   at 
 android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
   at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
   at my code here

 Note the weird character in the middle of:

 body_alt_fetc right here¤ , search_token.

 There are supposed to be a few more characters where this weird one is.

 My code here calls SQLiteDatabase.query with a String[] projection, a
 table name, a simple selection and its arguments, etc. All very basic stuff.

 The crash happens once in a while, even though this query runs literally
 all the time. It's always this query, too, even though there are dozens
 more, for same table, and in same source file.

 It looks to me like a memory overwrite, presumably in native code ('cause
 it's pretty hard to overwrite something by accident on the Java side of
 things).

 Has anyone ran into this or a similar query corruption?

 The device is a Zopo 980, if that means anything.

 Thanks,
 -- K


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


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

2013-05-14 Thread tarun sablok
HI

You cannot test the barcode functionality in emulator , it will always
crash if you try in android emulator.

You should try it in a device to test this functionality.

Thanks  Regards
 Tarun Sablok


On Tue, May 14, 2013 at 1:42 AM, Lew lewbl...@gmail.com wrote:

 ASMA wrote:

 does anyone know how to add barcode scanner to android emulator.
 i [sic] want to test this fonctionnality on emulator and i have added the
 zxing library to my project but it didn t work, i don't know  if there is
 another method to do that.

 i have followed many tutorials but without result , please can someone
 help me


 After a minute or two with
 http://lmgtfy.com/?q=android+barcode+scanner+on+emulator

 this turned up:
 http://www.tomgibara.com/android/camera-source

 among other links.

 --
 Lew


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




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Framework or code to make my application read aloud any text

2013-04-12 Thread tarun sablok
Use text to speech converter engine in your code !!!


On Fri, Apr 12, 2013 at 5:02 PM, santy santiago.gonzalez.iz...@gmail.comwrote:

 Hello. I want my application to be able to talk to the user, but I don't
 find any code to do that. Has anyone achieved it or know how to do?

 Thank you very much.

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




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Framework or code to make my application read aloud any text

2013-04-12 Thread tarun sablok
try this

http://www.androidhive.info/2012/01/android-text-to-speech-tutorial/


On Fri, Apr 12, 2013 at 6:41 PM, santy santiago.gonzalez.iz...@gmail.comwrote:

 I'm looking for information about that engine right now. Could you tell me
 any tutorial or link to visit??

 Thank you


 On Friday, April 12, 2013 2:50:55 PM UTC+2, tarun sablok wrote:

 Use text to speech converter engine in your code !!!


 On Fri, Apr 12, 2013 at 5:02 PM, santy santiago.go...@**gmail.comwrote:

 Hello. I want my application to be able to talk to the user, but I don't
 find any code to do that. Has anyone achieved it or know how to do?

 Thank you very much.

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**googlegroups.com

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




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




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

2012-09-19 Thread tarun sablok
In that case your intent will be delivered  to the activity in
onNewIntent()  so implement that and extract the extra data which you
have send it through the getIntent()  method ...

Hope this helps 

Tarun

On Tue, Sep 18, 2012 at 2:52 PM, Rahul Kaushik rahulkaushi...@gmail.comwrote:

 Intent startActivity = new Intent();
 startActivity.setClass(context, showrReminder.class);
 startActivity.setAction(showrReminder.class.getName());
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|
 Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
 context.startActivity(startActivity);


 above is the code
  Thanks
 RK

 On Tue, Sep 18, 2012 at 2:52 PM, Rahul Kaushik 
 rahulkaushi...@gmail.comwrote:

 no i am not using db, am using web services
 Thanks
 RK



 On Mon, Sep 17, 2012 at 4:46 PM, Felipe Silveira webfel...@gmail.comwrote:

 Does your broadcast receiver store data in DB? If yes, your work would
 be simple: The activity can be notified about db changes, if it have a
 cursor loading the data.

 On Mon, Sep 17, 2012 at 7:48 AM, Rahul Kaushik rahulkaushi...@gmail.com
  wrote:

 Hi,

 I have a BroadcastReceiver that's able to start an activity just fine
 from its onReceive method. But what if the activity is already
 running? How do I let it know that the BroadcastReceiver has some
 more data for it? Do I just start the activity again? If so, would
 that be a new instance of the activity? What happens to the old one?
 If it doesn't create a new instance, does onCreate get called again?
 If not, how does the activity know that it's been hit again by the
 BroadcastReceiver? More importantly, in that case, how does the
 activity get the data I attached to the intent in the
 BroadcastReceiver?

 I have an listview in activity to update.

 Thanks
 RK

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




 --
 Felipe Silveira
 http://www.felipesilveira.com.br
 -

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

Re: [android-developers] Examples for Android with Eclipse

2012-08-14 Thread tarun sablok
Clean the project 

On Tue, Aug 14, 2012 at 1:37 PM, renuka renukanil.deshpa...@gmail.comwrote:

  On Saturday 11 August 2012 11:59 PM, Justin Anderson wrote:

 Care to explain what doesn't work means?

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


 On Fri, Aug 10, 2012 at 9:35 AM, augusto amerc...@gmail.com wrote:

 Where can I find examples for Android Programming, using Eclipse?

 I have tried to install the Samples of the SDK, but it doesnt work

 TIA,

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

 start android-sdk-manager and download samples for sdk. there you will get
 samples.

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

2012-08-13 Thread tarun sablok
Save the values you want to persist in onPause()  or onStop()  using
 SharedPreferences  or you can also use onSaveInstanceState()  to save your
values and  extract it when the activity is started the next time.

On Mon, Aug 13, 2012 at 9:12 PM, TreKing treking...@gmail.com wrote:

 On Mon, Aug 13, 2012 at 12:28 AM, Sadhna Upadhyay 
 sadhna.braah...@gmail.com wrote:

 can someone tel me how to prevent from reinitializing value when activity
 is re called i mean


 You need to explain more clearly exactly what you're trying to do.


 -
 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] how to search android mobiles nearby having a common app?

2012-07-23 Thread tarun sablok
With Wifi - direct you will be able to do it .

On Fri, Jul 20, 2012 at 12:25 AM, Harish B harish@gmail.com wrote:

 Guyz, need some help on a topic...

 We have created an app, and want to enable it so that it can find other
 mobiles nearby which have our app?
 Is there a possibility to do this via WIFI?

 Thanks...

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

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

2012-06-27 Thread tarun sablok
Well this is not related to your queation  Have you noticed  that while
flipping through the views ViewFlipper  leaks a lot of memory.

On Wed, Jun 27, 2012 at 12:05 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



 On Wed, Jun 27, 2012 at 12:36 AM, chandur mani 
 chandur.ind...@gmail.comwrote:

  I have 5 content views in view flipper, here i use to see all 5 content
 through viewflipperinstance.showNext() and
 viewflipperinstance.showPrevious().

 Here my problem is both next and previous buttons click, it show all 5
 content and again start 1st.

 I need whenever user click next it will up to 5th content and same to
 previous when user click back it will show up tp 1st content.



 You can put a check something like this.

 if(viewflipperinstance.getDisplayedChild()!=0)
 {
 viewflipperinstance.showPrevious()
 }


 or


 if(viewflipperinstance.getDisplayedChild()!=(viewflipperinstance.getChildCount()-1)
 {
 viewflipperinstance.showNext()
 }


 This will help you out.

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

2012-05-01 Thread tarun sablok
It is very much possible ...  just include  the showDialog()  function with
the ID of the dialog where you are handling the events of the dialog..

On Tue, May 1, 2012 at 6:46 AM, TreKing treking...@gmail.com wrote:

 On Mon, Apr 30, 2012 at 7:27 PM, Agus agus.sant...@gmail.com wrote:

 Is showing dialog from a dialog possible? (Not an activity that gets
 styled as a dialog.)


 What are you trying to do?


 -
 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] Scan Slider action be applied on a view.

2012-04-25 Thread tarun sablok
Ok I got it   one last thing  lets suppose I have my handle  as
LinearLayout in horizontal fashion with 3 images  on which i have to handle
 the animations like  swipe animations left and right  ..is it possible
...(IN this screnario my content is hidden and  only my handle  is visible )

and when i drag the handle  the images which was there in the handle ( 3
images ) should automatically  get stacked in the content  dynamically
which i will take care in the code.

regards

tarun




On Wed, Apr 25, 2012 at 12:55 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Sliding drawer will be hidden which i will  have to drag out to the srceen
  but as I explained  that I want a view to be displayed at the bottom of
 the screen which will be any layout ... and when i click that view it
 should come out as a drawer.

 Unless I'm not understanding your requirement, that is EXACTLY how
 SlidingDrawer works...

 Here is the sample XML file on the SlidingDrawer docs...

  SlidingDrawer
  android:id=@+id/drawer


  android:layout_width=match_parent
  android:layout_height=match_parent


  android:handle=@+id/handle
  android:content=@+id/content


  ImageView
  android:id=@id/handle


  android:layout_width=88dip
  android:layout_height=44dip /


  GridView
  android:id=@id/content


  android:layout_width=match_parent
  android:layout_height=match_parent /


  /SlidingDrawer

 The content is hidden... The handle is always visible.  And the handle can
 be any layout, just as you wanted.  And when you click that handle, it will
 come out as a drawer, just like you want.


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


 On Tue, Apr 24, 2012 at 1:12 PM, tarun sablok tarun.sab...@gmail.comwrote:

 Sliding drawer will be hidden which i will  have to drag out to the
 srceen  but as I explained  that I want a view to be displayed at the
 bottom of the screen which will be any layout ... and when i click that
 view it should come out as a drawer.



 On Tue, Apr 24, 2012 at 7:07 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 Use SlidingDrawer...
 http://developer.android.com/reference/android/widget/SlidingDrawer.html

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


 On Tue, Apr 24, 2012 at 6:54 AM, tarun sablok tarun.sab...@gmail.comwrote:

 I have a Relative Layout view with layout_gravity = bottom...
 and it has 3 images one on the left , one middle and one on the right
 and it occupies approximately  1\6 th of the screen in the bottom .

 Now i want  that  when the user clicks on the RelativeLayout
 anywhere  the  layout should open  up as a slider  which opens up  and
 occupies  approx 3/4th  of the screen  and have images arranged in
 them  like in a grid.

 Any pointers  for this how this can be done

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


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


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

2012-04-24 Thread tarun sablok
I have a Relative Layout view with layout_gravity = bottom...
and it has 3 images one on the left , one middle and one on the right
and it occupies approximately  1\6 th of the screen in the bottom .

Now i want  that  when the user clicks on the RelativeLayout
anywhere  the  layout should open  up as a slider  which opens up  and
occupies  approx 3/4th  of the screen  and have images arranged in
them  like in a grid.

Any pointers  for this how this can be done

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


Re: [android-developers] Scan Slider action be applied on a view.

2012-04-24 Thread tarun sablok
Sliding drawer will be hidden which i will  have to drag out to the srceen
 but as I explained  that I want a view to be displayed at the bottom of
the screen which will be any layout ... and when i click that view it
should come out as a drawer.



On Tue, Apr 24, 2012 at 7:07 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Use SlidingDrawer...
 http://developer.android.com/reference/android/widget/SlidingDrawer.html

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


 On Tue, Apr 24, 2012 at 6:54 AM, tarun sablok tarun.sab...@gmail.comwrote:

 I have a Relative Layout view with layout_gravity = bottom...
 and it has 3 images one on the left , one middle and one on the right
 and it occupies approximately  1\6 th of the screen in the bottom .

 Now i want  that  when the user clicks on the RelativeLayout
 anywhere  the  layout should open  up as a slider  which opens up  and
 occupies  approx 3/4th  of the screen  and have images arranged in
 them  like in a grid.

 Any pointers  for this how this can be done

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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Hello everyone, what i have done so far regarding passing a ListView from one activity to another

2012-04-03 Thread tarun sablok
  Firstly to make tts  work in your current activity use   init()  function
which initializes the tts engine for  you in the current  activity .

 secondly you can include the speak function in the onListItenClick()   ,
in which you can get the exat position where it was  cllicked  and get the
text from the array list by passing the position as the index.

Cheers

Tarun


On Mon, Apr 2, 2012 at 9:11 PM, Soyer mblack...@gmail.com wrote:

 thanks a lot mate. that worked, i have to resolve the TTS issue now,
 do have any idea about the second part of my thread(Regarding the
 TTS)? i think the tts doesn't accept list view, so i thought of making
 use of a loop to go through the different elements in the listso
 in this way i can manipulate these elements as well for a better
 result...

 for(int i=0; i=fLat.lastIndexOf(fLat);i++){

  System.out.println(=38+flat[i]);
  }


 so i tried the above loop to print out the elements separately (Just
 to see this works) but as we know the syntax of flat[] is for an array
 whilst flat is an arraylist

 any ideas about this matter ?

 On Apr 2, 5:36 pm, tarun sablok tarun.sab...@gmail.com wrote:
  You have to use  * flat  = getIntent().
  getStringArrayListExtra(fromLat);  * to get the  arraylist which has
 been
  passed  and not  create a new  Intent object to get the list.
  *
  *
  *Cheers *
  *Tarun*
  *
  *
  *
  *
 
 
 
 
 
 
 
  On Mon, Apr 2, 2012 at 3:43 PM, Soyer mblack...@gmail.com wrote:
   Sorry i don't know if i am getting you properly, but this one is
   different then the other, i found the method how to pass a list from
   one activity to another but still for some reason it's not being
   passed and it's returning null.
 
   Don't be so hasty to comment before understanding the thread
   properly !!!
 
   On Apr 2, 12:03 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
Why spam the list with a new thread?  Your previous one is just
 below.
If
you do this, NOBODY is going to help you.
 
On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
 
 Hello everyone,
 
 i posted a question about passing a listview from one activity to
 another and this is what i did so far..
 
 the first activity is this:
 
   Bundle bundle = new Bundle(1);
 
 bundle.putStringArrayList(fromLat, fromLat);
 
 Intent intent1=new
 Intent(piecesActivity.this,ttsActivity.class);
 
 intent1.putStringArrayListExtra(fromLat,
 fromLat);
 
 startActivity(intent1);
startActivityForResult(intent1, 2);
 
 in The Second Activity is:
 
  ArrayList StringfLat = new ArrayListString ();
 
 Intent intent=new Intent();
  fLat=intent.getStringArrayListExtra(fromLat);
 
 System.out.println(=38+fLat);
 
 and in the second activity i am trying to make the list as a
 text_to_speach:
 
 @Override
 public void onClick(View v) {
 
   if (fLat!=null  ((CharSequence)
   fLat).length()0)
 {
Toast.makeText(ttsActivity.this, Saying:  +
 fLat,
 Toast.LENGTH_LONG).show();
tts.speak(fLat, TextToSpeech.QUEUE_ADD, null);
   }
 
 i don't know why the second activity is giving me
 NullPointerException
 (the fLat is returning Null) and the .speak method is not
 accepting a
 list view... :S
 
 I really need an advice...any Idea will be very 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


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

2012-03-28 Thread tarun sablok
Its  because  ur application is leaking memory . are  you using loads
of drawables in ur application ???

On Wed, Mar 28, 2012 at 1:22 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 Out == No more
 of = Related to something
 Memory = those little ants that live inside your device maintaining your
 data

 So you have no more little ants left.


 Seriously, I vote for this one as the dumbest post of the year -- and it's
 not even the end of the first quarter.


 On Wednesday, March 28, 2012 3:44:03 PM UTC+8, Kirupa wrote:

 OutofMemory exception is in android. Do you know the reason for it?
 How we can solve 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


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

2012-03-28 Thread tarun sablok
Use   *context.startService(new Intent(this,aService.class));*to start
the service . It is because Broadcastreceiver class does not  extend  the
Context class  so we have to use  the context  provided in the onReceive
method.

Cheers
Tarun

On Tue, Mar 27, 2012 at 6:18 PM, jugni jugni1sm...@gmail.com wrote:

 write like context.startservice();


 On Sunday, 4 July 2010 23:29:34 UTC+5:30, Alex wrote:

 Hi there,
 I am trying to start a service from the BroadcastReceiver, but I keep
 getting the startService line marked as an error (The constructor
 Intent(alarmReceiver, ClassaService) is undefined)

 public class alarmReceiver extends BroadcastReceiver{

 NotificationManager notifMgr;

 private static final int NOTIFICATION_ID = 0;

 @Override
 public void onReceive(Context context, Intent intent) {

 startService(new Intent(this,aService.class));
 }
 }

 Any help is greatly appreciated.
 Thanks!!



 On Sunday, 4 July 2010 23:29:34 UTC+5:30, Alex wrote:

 Hi there,
 I am trying to start a service from the BroadcastReceiver, but I keep
 getting the startService line marked as an error (The constructor
 Intent(alarmReceiver, ClassaService) is undefined)

 public class alarmReceiver extends BroadcastReceiver{

 NotificationManager notifMgr;

 private static final int NOTIFICATION_ID = 0;

 @Override
 public void onReceive(Context context, Intent intent) {

 startService(**new Intent(this,aService.class));
 }
 }

 Any help is greatly appreciated.
 Thanks!!


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

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

2012-03-05 Thread tarun sablok
Just want some pointers is there support for data transfer through USB
3.0 in the devices which are  coming  with Android 4.0 or any other
version.

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

2012-03-05 Thread tarun sablok
Just want some pointers is there support for data transfer through USB
3.0 in the devices which are  coming  with Android 4.0 or any other
version.

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

2012-02-27 Thread tarun sablok
use  frame  layout .. populate all the images  initially and  then you can
apply some  animations to control the  images .

On Mon, Feb 27, 2012 at 7:50 PM, Rami Makhamreh stan55...@gmail.com wrote:

 Hi all thx already for helping me;

 i have small question but it looks hard to me i want to swipe a number of
 images how can i do it??

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Is NFC card emulation possible on Galaxy Nexus and OS 4?

2012-02-24 Thread tarun sablok
It will not support UICc as it alredy has secure element as a NXP chip
called SmartMx


On Fri, Feb 24, 2012 at 12:16 PM, Roman K. 
roman.kochanek.andr...@googlemail.com wrote:

 Hey Michael,

 I have another question regarding card emulation. Do you know whether
 the UICC is physically connected to the NFC controller (SWP) on the
 Galaxy Nexus or not?

 Cheers,
 Roman

 On 16 Feb., 09:43, Michael Roland mi.rol...@gmail.com wrote:
  Hallo Paul,
 
  card emulation is officially supported since Android 2.3.7 (?) and is
  used by Google Wallet. However, there is no way (unless you use a
  modified ROM) to access card emulation capabilities from your own
  applications.
 
  br
  Michael
 
  On Feb 15, 5:35 pm, Paul pabloisb...@gmail.com wrote:
 
 
 
 
 
 
 
   I know last year Google where not allowing NFC emulation mode with OS
   2.3.
 
   But is NFC card emulation possible on Galaxy Nexus and OS 4?
 
   Thanks

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


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

2012-02-18 Thread tarun sablok
Hii

Add the DEFAULT   Category as well in the Intent  filter , i think it will
work out for  you

   action
android:name=android.nfc.action.TRANSACTION_DETECTED /
category android:name=android.intent.category.DEFAULT  /
   /intent-filter

Well  i am also working in NFC  making applications on Google Nexus S ... I
think you are also working in card Emulation mode..
can you give me some pointers  how to go ahead with Card Emulation
 applications , actually i am struggling to get the things up.

cheers

tarun


On Thu, Feb 16, 2012 at 1:57 PM, Usman linkusma...@gmail.com wrote:

 I am struggling to handle android.nfc.action.TRANSACTION_DETECTED
 event. The device is NFC and also contains secure element which
 supports SWP to the UICC.
 I have registered the following BroadCast receiver in my app.
 public class TransactionReceiver extends BroadcastReceiver {

private String TAG = TransactionReceiver;

@Override
public void onReceive(Context context, Intent intent) {
Log.d(TAG, Transaction performed ...);

}

 }

 Below is my manifest.
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.mycompany.android.nfc.uicc.test
android:versionCode=1
android:versionName=1.0 

uses-sdk android:minSdkVersion=10 /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name 
activity
android:name=.AndroidUiccTestActivity
android:label=@string/app_name 
intent-filter
action android:name=android.intent.action.MAIN /

category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

receiver
android:name=.TransactionReceiver
android:enabled=true 
intent-filter
action
 android:name=android.nfc.action.TRANSACTION_DETECTED /
/intent-filter
/receiver
/application

uses-permission android:name=android.permission.NFC /
 /manifest

 I am not receiving the broadcast event when I present the device on
 the contactless reader. Could anyone point out if I am missing
 anything or if following the right route.
 The android.nfc.action.TRANSACTION_DETECTED is hidden from the google
 api but can found at
 http://www.androidjavadoc.com/2.3/android/nfc/NfcAdapter.html#ACTION_TRANSACTION_DETECTED
 .

 thanks in advance

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

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

2012-01-24 Thread tarun sablok
Use  scroll view as the root element  .. and use a composite view  i.e
 extend  the Linear Layout class and  provide  your implementation of the
 Header and  the checkboxes which you want ... and  every time  add that
 to your scroll view when ever  the button is clicked.

hope  this  pointer helps 

On Sun, Jan 22, 2012 at 8:49 PM, Rachna Sharma designndeve...@gmail.comwrote:

 Hi Group,

 I have UI requirement shown below:

 |---|
 |Header-1  |
 | Checkbox1[]|
 | Checkbox2[]|
 | Checkbox3[]|
 |---|
 |Header-2  |
 | Checkbox1 []   |
 | Checkbox2 []   |
 | Checkbox3 []   |
 and so on clicking below button.
 BUTTON  - clicking on this button on bottom will create header and 3
 checkbox everytime. How can i achieve this? This is very urgent. I can
 not take these in XML laypout as these need to be added dynamically on
 runtime.

 If possible, Please provide any sample code and guide me.

 Thanks,
 Rachana

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] How to save Logcat information from a device which is not rooted

2012-01-17 Thread tarun sablok
  You can  simply  run this command in the command  prompt (provided  you
have set the path of your environment variable in the environment variable)

  adb shell logcat

 after that run this command

adb shell logcat  filename.txt

and a log file is generated in the desired location and which you can push
it in yout sd card

all these operations are independent of your phone being  rooted.

Cheers
tarun


On Tue, Jan 17, 2012 at 5:43 PM, B.Arunkumar
awsnetworkrecor...@gmail.comwrote:

 Hi,

Could somebody let me know how to save the debugging information
 in my application to a file in the SDCard? Please assume that the
 device is not rooted to a computer to check for debugging information
 in Logcat of Eclipse IDE.

 Thank you,
 B.Arunkumar

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

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

[android-developers] how to update a remote database from an Android application

2012-01-16 Thread tarun sablok
I want to update a remote database from my Android application .


Just need some pointers  on how to set up a remote database and  how
to update it from my application ??

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

2012-01-16 Thread tarun sablok
I want to update a remote database from my Android application .


Just need some pointers  on how to set up a remote database and  how
to update it from my application ??

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

2011-12-25 Thread tarun sablok
i am using  createInsecureRfcommSocketToServiceRecord()  function to
create the socket and here is the description what it says about
function in Android developers ...



public BluetoothSocket createInsecureRfcommSocketToServiceRecord (UUID
uuid)
Since: API Level 10 Create an RFCOMM BluetoothSocket socket ready to
start an insecure outgoing connection to this remote device using SDP
lookup of uuid.

The communication channel will not have an authenticated link key i.e
it will be subject to man-in-the-middle attacks. For Bluetooth 2.1
devices, the link key will be encrypted, as encryption is mandatory.
For legacy devices (pre Bluetooth 2.1 devices) the link key will be
not be encrypted. Use createRfcommSocketToServiceRecord(UUID) if an
encrypted and authenticated communication channel is desired.

This is designed to be used with
listenUsingInsecureRfcommWithServiceRecord(String, UUID) for peer-peer
Bluetooth applications.

Use connect() to initiate the outgoing connection. This will also
perform an SDP lookup of the given uuid to determine which channel to
connect to.

The remote device will be authenticated and communication on this
socket will be encrypted.

Hint: If you are connecting to a Bluetooth serial board then try using
the well-known SPP UUID 1101--1000-8000-00805F9B34FB. However
if you are connecting to an Android peer then please generate your own
unique UUID.

Requires BLUETOOTH

Parameters
uuid  service record uuid to lookup RFCOMM channel

Returns
a RFCOMM BluetoothServerSocket ready for an outgoing connection
Throws
IOException  on error, for example Bluetooth not available, or
insufficient permissions



On Dec 22, 5:27 pm, lbendlin l...@bendlin.us wrote:
  Everything is working fine but i am getting a pairing request or to
  match the keys on both the phones which should not come.

 How do you know if both devices support unsecure connections? They may just
 not.

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

2011-12-21 Thread tarun sablok
I am trying to pair two devices

One is Google Nexus S  which has the applicaion running which reads
the mac address written over the tag which is stuck on the other phone
which is not Android one .

Now i am trying to pair the devices  as i tap on the other phone , my
application reads the MAC address stored in the TAG  and
automatically creates the Bluetooth connection .

Everything is working fine but i am getting a pairing request or to
match the keys on both the phones  which should not come.

Here is the Bluetooth Segment where the connection is happening

private class ConnectThread extends Thread {
private final BluetoothSocket mmSocket;
private final BluetoothDevice mmDevice;
private String mSocketType;

public ConnectThread(BluetoothDevice device, boolean secure) {
mmDevice = device;
BluetoothSocket tmp = null;
mSocketType = secure ? Secure : Insecure;

// Get a BluetoothSocket for a connection with the
// given BluetoothDevice
try {
if (secure) {
tmp = device.createRfcommSocketToServiceRecord(
MY_UUID_SECURE);
} else {
tmp =
device.createInsecureRfcommSocketToServiceRecord(
MY_UUID_INSECURE);

Log.d(CHECK, Sucessfully created insecure
socket);
}
} catch (IOException e) {
Log.e(TAG, Socket Type:  + mSocketType + create()
failed, e);
}

mmSocket = tmp;

}

public void run() {
Log.i(TAG, BEGIN mConnectThread SocketType: +
mSocketType);
setName(ConnectThread + mSocketType);

// Always cancel discovery because it will slow down a
connection
mAdapter.cancelDiscovery();

Log.d(CHECK, Inside RUN);

// Make a connection to the BluetoothSocket
try {
// This is a blocking call and will only return on a
// successful connection or an exception

Log.d(CHECK, Trying to connect);

mmSocket.connect();

Log.d(CHECK, Tried to connect);

} catch (IOException e) {
// Close the socket
try {
mmSocket.close();

Log.d(CHECK, Socket closed);

} catch (IOException e2) {
Log.e(TAG, unable to close()  + mSocketType +
 socket during connection failure, e2);
}

Log.d(CHECK, Connection failed);

connectionFailed();
return;
}

// Reset the ConnectThread because we're done
synchronized (BluetoothChatService.this) {
mConnectThread = null;
}

// Start the connected thread
connected(mmSocket, mmDevice, mSocketType);

Log.d(CHECK RESULT, Sucessfully connected);

   // Toast.makeText(BluetoothChatService.ConnectThread.this,
Sucessfully connected , Toast.LENGTH_LONG).show();
}

public void cancel() {
try {
mmSocket.close();
} catch (IOException e) {
Log.e(TAG, close() of connect  + mSocketType + 
socket failed, e);
}
}
}




  I am trying for the insecure connection , but i dont know why it is
asking for  the pairing keys in both the phones.


Anybody  any pointers where i am going 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 to configure a NFC tag in using the URI = text/x-vCard

2011-12-16 Thread tarun sablok
I am  trying to make an application of a business card which has
name , mob no , company and  other details .

I want to write all these details on to a NFC tag .

And from a different application i want to scan this tag and  save the
information received to the phones contact list

Now i am facing  problem in writing a tag , configuring it as V card
using the URI  text/x-vCard
i am  mentioning the command i am using

NdefRecord textRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA,text/
x-vCard.getBytes(),new byte[] {}, textBytes);


also in the manifest i am using  this to read the tag


intent-filter
 action
android:name=android.nfc.action.NDEF_DISCOVERED /
 category
android:name=android.intent.category.DEFAULT /
 data android:mimeType=text/x-Vcard /
/intent-filter

can anyone give some  pointers  where i should work around to get back
on the tracks.

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

2011-11-12 Thread tarun sablok
You can restrict launching of your app when the card is brought close  by
mentioning  the Data type as well in the NDEF intent ... i was also facing
the same problem so i included the data field in the NDEF intent  part and
everytihng worked fine .

On Fri, Nov 11, 2011 at 10:27 PM, k0nig k0nig.cor...@gmail.com wrote:

 Hello, I'm a begginer in android, I have a NFC App works correctly
 except for one thing, when I close a tag to my phone this suggest
 other app but not mine. I had search about this but don't find a
 solution, my manifest is:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=leer.Etiqueta
  android:versionCode=1
  android:versionName=1.0
uses-sdk android:minSdkVersion=10 /
uses-permission android:name=android.permission.NFC/uses-
 permission

application android:icon=@drawable/icon android:label=@string/
 app_name
activity android:name=.LeerEtiquetaActivity
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
intent-filter
action
 android:name=android.nfc.action.NDEF_DISCOVERED /
category
 android:name=android.intent.category.DEFAULT /
/intent-filter
intent-filter
action
 android:name=android.nfc.action.TECH_DISCOVERED/
/intent-filter
intent-filter
action
 android:name=android.nfc.action.TAG_DISCOVERED/
/intent-filter

meta-data
 android:name=android.nfc.action.TECH_DISCOVERED
android:resource=@xml/tecnologia /
/activity
/application
uses-feature android:name=android.hardware.nfc
 android:required=true /
 /manifest


 I thought that a TECH_DISCOVERED launch my application but it does not

 Thanks.

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

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

2011-11-12 Thread tarun sablok
just add  the data  by  using the functions putExtra()  on the intent
object and extract it at the receiving activity by using
 getIntent().getExtra()


On Sun, Nov 13, 2011 at 12:10 AM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 ok, so u mean..in the same way transferring data from an activity to
 another.
 I need to try it first.


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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 pair Nexus S with some other Bluetooth Device using NFC

2011-08-02 Thread tarun sablok
Can anyone suggest me the possible options as how to pair a Nexus S
phone with any bluetooth device  through  NFC ie  by just  tapping the
Nexus S phone and the Bluetooth device  the Bluetooth connection
should be established .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 pair Nexus S with some other Bluetooth Device using NFC

2011-08-02 Thread tarun sablok
 I mean what all configuration detils do we exchange over NFC that
will be enough for setting the connection.

 Will MAC address alone will suffice or we need some other details as
well.



On Aug 2, 11:27 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 The same way as you can useNFCto establish a Wifi connection.

 On Aug 2, 2:04 pm, tarun sablok tarun.sab...@gmail.com wrote:



  Can anyone suggest me the possible options as how topairaNexusS
  phone with anybluetoothdevice through  NFCie  by just  tapping the
 NexusSphone and theBluetoothdevice theBluetoothconnection
  should be established .- 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: open nfc installation

2011-07-19 Thread tarun sablok
Hii Mohamed Ramadan

I am also the facing the same problem  while connecting to the
Connection center . And i tried contacting someone in Open-NFC  forum
they  are telling that it will be improved in the later releases.

Are you trying to set up the Emulator , NFC simulator and the
Connection Center all in the same PC ???

Cheers

Tarun



On Jul 18, 10:03 pm, Mohamed Ramadan e.mohamedrama...@gmail.com
wrote:
 HI,
 I had two problems when I try to connect the simulator with 
 theconnectionCenterin open nfc

 1-ccrouter.dll file not found in theconnectioncenterfolder

 2-an error message

                                Warning:No provider for client
 source:***.***.***.***(ip);LINUX;NFC controller (I2C);--rejected
                                 Error:Error while reading the
 socket:Socket greacefully shutdown'
                                 Warning: Client
 source:***...***(ip) ;linux;NFC Controller(I2C);NFC
 Controller(I2C);disconnected

  appear when I try to enter the ip and press and start the nfc service
 in the emulator

 did any one know how to get that file or what the message explanation
 is

 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: Connection center

2011-06-17 Thread tarun sablok
Hey you will have to download the NFC simulator  which  is required
for the simulation  .This is the link for it

http://sourceforge.net/projects/open-nfc/files/Open%20NFC%204.2.3%20%289635%29/

from here  download the core  version of it , in that you will find
the NFC simulator as well the connection center . There is one issue
in setting up the connection center there , one  ccrouter.dll file is
missing in the connection center folder which i am not able to figure
it out .  You  try that and in case u have some  hits do  share .

Cheers

Tarun

On Jun 10, 4:17 pm, i42sasij sanchez.si...@gmail.com wrote:
 Hi Everyone,
 I'm trying to configure the Open NFC library. I followed the help
 document provided by them, but when execution. I would like to know
 what isConnectionCenterin that document or if can anyone please
 help me to download it?
 Thanks  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


[android-developers] i have developed one 3D Stack View in Android 3.0 , how do i accomodate that into a Fragment of other Activity in Android 3.0

2011-03-18 Thread tarun sablok
I  have  developed one  3D Stack View as a single activity , now i
want to embedd that into one of the fragment of another activity in
android 3.0 , i tried  putting it  but the things are getting
Clipped .  So can anyone  suggest me how should i  proceed  so that my
original activity  gets in the fragment without loosing any of its
content , and  also it  dosent gets affected by the resolution changes
of the Device's  it is put on. Any pointers will b gr8 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