Re: [android-developers] Upgrade my Game Application

2010-09-06 Thread Sandeep Phansekar
Hi

Just Change the *android:versionCode=1.1*  present in the mainfest.xml
file

regards
sandeep


On Mon, Sep 6, 2010 at 5:39 PM, Dhrumil Shah dhrumilsh...@gmail.com wrote:

 I developed one game its code is here:

 *Testing.java*
 *

 package
 * com.paad.testing;

 *

 import
 * android.app.Activity;*

 import
 * android.os.Bundle;*

 import
 * android.os.Handler;*

 import
 * android.os.Message;*

 import
 * android.view.*;*

 import
 * android.graphics.*;*

 import
 * android.content.*;

 *

 public
 * *class* Testing *extends* Activity {

 RandomView
 randomView = *null*;

 *public* *static* *final* *int* *DIRECTION_RIGHT* = 0, *DIRECTION_LEFT* =
 1, *DIRECTION_DOWN* = 2, *DIRECTION_UP* = 3;

 *protected* *static* *final* *int* *GUIUPDATEIDENTIFIER* = 0x101;

 *private* Panel main;

 *private* Bitmap scratch;

 *private* Canvas offscreen;

 *public* *boolean* start = *true*;

 *private* *volatile* *boolean* running = *false*;

 *private* *int* direction = *DIRECTION_RIGHT*;

 *private* *int* boxx = 10;

 *private* *int* boxy = 10;

 Thread
 myRefreshThread = *null*;

 Handler
 GUIUpdateHandler = *new* Handler() {

 // @Override

 *public* *void* handleMessage(Message msg) {

 *switch* (msg.what) {

 *case* Testing.*GUIUPDATEIDENTIFIER*:

 randomView.invalidate();

 *break*;

 }

 *super*.handleMessage(msg);

 }

 };

 @Override

 *public* *void* onCreate(Bundle savedInstanceState)

 {

 *super*.onCreate(savedInstanceState);

 *this*.randomView = *new* RandomView(*this*);

 *this*.setContentView(*this*.randomView);

 (
 *new* Thread(*new* Refresh())).start();

 setOffscreenBitmap();

 main = *new* Panel(*this*);

 setContentView(
 main,*new* ViewGroup.LayoutParams(320,480));

 (
 *new* Thread(*new* AnimationLoop())).start();

 }

 *private* *void* setOffscreenBitmap()

 {

 scratch = Bitmap.*createBitmap*(30,30,Bitmap.Config.*ARGB_*);

 offscreen = *new* Canvas();

 offscreen.setBitmap(scratch);

 offscreen.drawColor(Color.*RED*);

 }

 *private* *synchronized* *void* updatePhysics()

 {

 *if*(boxx  10){

 direction = *DIRECTION_RIGHT*;

 }

 *else* *if*(boxx  250){

 direction = *DIRECTION_LEFT*;

 }

 *if*(boxy  10){

 direction = *DIRECTION_DOWN*;

 }

 *else* *if*(boxy  350){

 direction = *DIRECTION_UP*;

 }

 *if*(direction == *DIRECTION_RIGHT*){

 boxx = boxx + 10;

 }

 *else* *if* (direction == *DIRECTION_LEFT*)

 {

 boxx = boxx - 10;

 }

 *else* *if*(direction == *DIRECTION_UP*){

 boxy = boxy - 10;

 }

 *else* *if*(direction == *DIRECTION_DOWN*){

 boxy = boxy + 10;

 }

 *else*{

 //Do nothing

 }

 }

 *private* *synchronized* *void* doDraw(Canvas canvas, Paint paint)

 {

 *if*(start)

 {

 canvas.drawColor(Color.
 *GREEN*);

 canvas.drawBitmap(
 scratch,10,10,paint);

 start = *false*;

 }

 *else*

 {

 canvas.save();

 canvas.clipRect(
 boxx,boxy,boxx+30,boxy+30);

 canvas.drawColor(Color.
 *RED*);

 canvas.drawBitmap(
 scratch,boxx,boxy,paint);

 canvas.restore();

 }

 }

 //@Override

 *public* *boolean* onKeyDown(*int* keyCode, KeyEvent event){

 *if*(keyCode == KeyEvent.*KEYCODE_DPAD_CENTER*){

 *if*(running!=*true*){

 running = *true*;

 }

 *else*{

 running = *false*;

 }

 }

 *else* *if*(keyCode == KeyEvent.*KEYCODE_DPAD_LEFT*){

 direction = *DIRECTION_LEFT*;

 }

 *else* *if*(keyCode == KeyEvent.*KEYCODE_DPAD_RIGHT*){

 direction = *DIRECTION_RIGHT*;

 }

 *else* *if*(keyCode == KeyEvent.*KEYCODE_DPAD_DOWN*){

 direction = *DIRECTION_DOWN*;

 }

 *else* *if* (keyCode == KeyEvent.*KEYCODE_DPAD_UP*){

 direction = *DIRECTION_UP*;

 }

 *else* *if*(keyCode == KeyEvent.*KEYCODE_BACK*){

 finish();

 }

 *return* *true*;

 }

 *class* Panel *extends* View

 {

 Paint
 paint;

 *public* Panel(Context context)

 {

 *super*(context);

 paint = *new* Paint();

 }

 @Override

 *protected* *void* onDraw(Canvas canvas)

 {

 doDraw(canvas,
 paint);

 }

 }

 *class* AnimationLoop *implements* Runnable

 {

 *public* *void* run()

 {

 *while*(*true*)

 {

 *while*(running)

 {

 *try*

 {

 Thread.*sleep*(100);

 }

 *catch*(InterruptedException ex) {}

 updatePhysics();

 main.postInvalidate();

 }

 }

 }

 }

 *class* Refresh *implements* Runnable{

 *public* *void* run(){

 *while*(!Thread.*currentThread*().isInterrupted()){

 Message message =
 *new* Message();

 message.
 what = Testing.*GUIUPDATEIDENTIFIER*;

 Testing.
 *this*.GUIUpdateHandler.sendMessage(message);

 *try*{

 Thread.*sleep*(100);

 }

 *catch* (Exception e) {

 Thread.*currentThread*().interrupt();

 }

 }

 }

 }

 }
 my another class file:
 *RandomView.java*

 **
 *

 package
 * com.paad.testing;

 *

 import
 * android.content.Context;*

 import
 * android.graphics.Canvas;*

 import
 * android.graphics.Color;*

 import
 * android.graphics.Point;*

 import
 * android.graphics.drawable.Drawable;*

 import
 * android.view.View;

 *

 public
 * *class* RandomView *extends* View{

 *protected* Drawable myPosition;

 *protected* Point myPoint = *new* Point(10,10);

 *protected* *enum* 

Re: [android-developers] Re: Blutooth API Problem

2010-07-28 Thread Sandeep Phansekar
Hi Rahul,

Basically i am trying to broadcast business card by bluetooth/wifi using
android device.
i know that all previous version like 1.5,1.6 etc not support the Bluetooth
API
Android 2.1 support BT API. but i want to exclude that pairing part on my
project.

my gmail id : sandeep.phanse...@gmail.com

Thanks  Regards
sandeep
On Mon, Jul 26, 2010 at 10:15 PM, Rahul_katariya rahulkatariya...@gmail.com
 wrote:

 Hello Sandeep,

 My name is Rahul.. I am a student in Uni of Surrey, UK.
 I am also looking for the answer of same question.
 Did you find some thing about it.
 I am also doing a project in Bluetooth Communication between mobile-
 mobile  Mobile-PC.
 Whats ur project...
 my gmail id is rahulkatariya...@gmail.com..
 If we can discuss our project i think we can help each other..
 Do mail me..

 Thanks  Regards,
 Rahul

 On Jul 26, 1:14 pm, Sandeep sandeep.phanse...@gmail.com wrote:
  Hi All,
 
  In Android 2.1 can we suppress the pairing dialoge while exching data
  between 2 android devices using bluetooth API.
  or is there any way that programatically we can do this without the
  user interaction.
 
  thansk
  sandeep

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

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

Re: [android-developers] Re: broadcast receiver issue

2010-07-23 Thread Sandeep Phansekar
thanks All  [?]
@Agus : can u plz expalin me how to do that

in my project there are 5 classes
-- 4 class file extend *Activity* -- mainly they display user interaction
screen
-- 1 class file extends *BroadcastReceiver -- *capture the incomming call
and display/ launch the one of the activity.
-- if one of the Activity class Screen is open and call is come then at
that point BroadcastReceiver* *is fail to launch the activity

so how i do this ?

thanks
sandeep




On Fri, Jul 23, 2010 at 1:13 PM, Agus agus.sant...@gmail.com wrote:

 no, just declare your receiver in the manifest.

 On Fri, Jul 23, 2010 at 12:40 AM, Kumar Bibek coomar@gmail.com
 wrote:
  You have to register the receivers in each of the activities.
 
  -Kumar Bibek
  http://tech-droid.blogspot.com
 
  On Jul 23, 11:12 am, Sandeep sandeep.phanse...@gmail.com wrote:
  Hi All,
 
  I am working on one project where i am using broadcast receiver in one
  of my activity to capture the incomming call and its works fine.
  when one of my other activity is open and that time if call is come
  then my broadcast receiver is fail to respond.
  can any one help me for this ?
  or its nessesorry to declare broadcast receiver in all my activity to
  do some comman task.
 
  thanks  regards
  sandeep
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Max number of bluetooth devices that can be paired?

2010-05-10 Thread Sandeep Phansekar
Hi

you can pair max 7 device for proper functionality.

-- 
Regards

Sandeep


On Mon, May 10, 2010 at 3:10 PM, guru guru.nav...@gmail.com wrote:

 Hi All

 is there any max limit that we can pair with bluetooth devices? How to
 check this limit.?

 when i tried to pair with more than 15 devices, it becomes slow and
 later it doesnt pair.

 Regards
 Gururaja B O

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

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

Re: [android-developers] View on Tabs in TabActivity

2010-04-22 Thread Sandeep Phansekar
Hi

there r lots of example available for this solution
just googling u find the solution.

@Pankaj -- u working for which company ? actully i am serching the job in
pune for android position.

-- 
Regards
Sandeep



On Thu, Apr 22, 2010 at 4:50 PM, pawan nimje pawanni...@gmail.com wrote:

 Hey pankaj can you mail me your project  i'll look into it n may i can
 help you ..

 -Pawan Nimje



 On Thu, Apr 22, 2010 at 4:32 PM, Pankaj Deshpande 
 pcdeshpande...@gmail.com wrote:

 Hi all,
 I am working on a tab activity, and want images on each tab. I set
 indicators as a view and set Image as background resource to each tab. For
 each tab, I have started a new Activity and put a textview as a
 setContentView in that. Up to my second last tab it works fine, but for lats
 tab, all tabs cover my whole screen.
   Why is this happening?

  Thanks in Advance.

 Pankaj Deshpande.
 --
 Android Application Developer
 Pune.

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


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


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

Re: [android-developers] how to clear default option of an app if it is not present in settings-applications-manage applications

2010-04-21 Thread Sandeep Phansekar
Hi

just chech the apps in
settings-applications-manage applications  menu  Filter  All

Regards
Sandeep

On Wed, Apr 21, 2010 at 12:33 PM, Amit magic.man.a...@gmail.com wrote:

 Hi All,

 My question is how to clear default option of an app if it is not
 present in settings-applications-manage applications. Because I
 cannot see all the applications there.

 Thanks in advance.

 Regards,
 Amit

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

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

Re: [android-developers] Re: Android Tablet SDK or Emulator

2010-04-19 Thread Sandeep Phansekar
Hi ,

there is Android tablet pc is available in the market.
name is Tegra. but still that is not officially launch
screen size 1024*800
all the docs  api r available on the site

Regards
sandeep

2010/4/19 Károly Holczhauser holczhau...@gmail.com

 Thx 4 your answare !

 On ápr. 14, 17:23, Kevin Duffey andjar...@gmail.com wrote:
  I don't know of any tablets that are available yet.. I would imagine once
  they become available the IDE profile will be updated, although you'd
 think
  it would be out now so we could have software available to take advantage
 of
  the bigger screen size.
 
  2010/4/14 Károly Holczhauser holczhau...@gmail.com
 
   Hi Guys!
 
I would like to develop for and Android Tablet, but I didn't found any
 SDK
   or Emulator for it. I think the best IDE would be the Eclipse.
Can anyone tell me a solution,who can I import an Tablet Virtual
 Device in
   to the Eclipse IDE ?
 
Thanks: Karoly
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Can I compile an app in 1.6 and run it on a 1.5 device?

2010-04-14 Thread Sandeep Phansekar
Hi

its possible. just make
uses-sdk android:minSdkVersion=*4* /

-- 
Regards
Sandeep



On Thu, Apr 15, 2010 at 9:11 AM, Moto medicalsou...@gmail.com wrote:

 I'm wondering if I can specify on the manifest uses-sdk
 android:minSdkVersion=3 / and compile it as Android 1.6.

 Initial issue is that I need android.os.Build.MANUFACTURER call is not
 available on android 1.5


 Thanks for the help!
 -Moto!

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

 To unsubscribe, reply using remove me as the subject.


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

2010-03-29 Thread Sandeep Phansekar
Nithin

just study the demo Rotation code present in APIDEMO example.
u need to change just one value in that.
-- 
Regards

Sandeep

On Mon, Mar 29, 2010 at 2:24 PM, skink psk...@gmail.com wrote:



 Nithin wrote:
  Hi,
 
  I am rotating a view using rotateAnimation with this code
  new RotateAnimation(0, 360, w / 2, h / 2);
  I want to rotate this view infinitely, so i put
  setRepeatCount(RotateAnimation.INFINITE);
 
  But the problem is after every one complete rotation, its stopping and
  starting again, means by default rotateAnimation have
  AccelerateDecelerateInterpolator(). I feel because of this. So if i
  put setInterpolator(null), its throwing null pointer exception. How to
  solve this.
 
  I want to rotate my view without any lag.
 
  Nithin

 insted of passing null use linear interpolator

 pskink

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

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] How to download an xml file from url in android

2010-02-25 Thread Sandeep Phansekar
want to just download ? or parse the file ?
-- 
Regards
Sandeep

On Thu, Feb 25, 2010 at 3:39 PM, kavitha kavith...@gmail.com wrote:

 Hi All,

 Please tell how to download an xml file from url connection in  android?

 Thanks

 Kavitha

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

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

Re: [android-developers] How to download an xml file from url in android

2010-02-25 Thread Sandeep Phansekar
bad idea ...:(
always keep xml files on server so u can access that as if necessary.
every time read the updated file from server.

i am using below code to stored the image may this help u
*try* {

//First create a new URL object

URL url = *new* URL(http://abc/example.jpg http://abc/abc.gif);

//Next create a file, the example below will save to the SDCARD using JPEG
format

File file = *new* File(/sdcard/example.jpg);

//Next create a Bitmap object and *download* the image to bitmap

Bitmap bitmap = BitmapFactory.*decodeStream*(url.openStream());

//Finally compress the bitmap, saving to the file previously created

bitmap.compress(CompressFormat.*JPEG*, 100, *new* FileOutputStream(file));

}*catch*(IOException e){

Log.*e*(save image, failed to save image, e);

}


-- 
Regards

Sandeep
On Thu, Feb 25, 2010 at 3:49 PM, kavitha kavith...@gmail.com wrote:

 first download and keep the file

 then parse it

 i need to download bcoz when the application launches second time,,i need
 to use stored file without re-downloading


 On Thu, Feb 25, 2010 at 3:47 PM, Sandeep Phansekar 
 sandeep.phanse...@gmail.com wrote:

 want to just download ? or parse the file ?
 --
 Regards
 Sandeep

   On Thu, Feb 25, 2010 at 3:39 PM, kavitha kavith...@gmail.com wrote:

  Hi All,

 Please tell how to download an xml file from url connection in  android?

 Thanks

 Kavitha

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



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


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


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

Re: [android-developers] android.speech.action.RECOGNIZE_SPEECH activity not found

2010-02-23 Thread Sandeep Phansekar
plz explain u r problem with more details
-- 
Regards
Sandeep

On Tue, Feb 23, 2010 at 8:58 PM, Mukesh kumar mukesh.j...@gmail.com wrote:

 when we call
 Intent intent = new Intent(android.speech.action.RECOGNIZE_SPEECH);
 startActivityForResult(intent, 0);

 After that show Exception:

 Activity not foun exception

 Exception:
 android.content.ActivitNotFoundException:No Activity Found to handle
 Intent{action=android.speech.action.RECOGNIZE_SPEECH}

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

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

Re: [android-developers] Tab Bar in Android

2010-02-17 Thread Sandeep Phansekar
Hi

used ImageButton with AbsoluteLayout

ImageButton android:id=@+id/Button1
android:layout_width=64px
android:layout_height=wrap_content
android:layout_x=0px
android:layout_y=370px
android:background=@drawable/image1/

may this help you.
-- 
Regards
Sandeep

On Thu, Feb 18, 2010 at 11:00 AM, Sasikumar S sasikumar.it1...@gmail.comwrote:

 Hi,

 How to show tab bar in android?

 How to do that?

 I need not menu items by pressing menu button. I need a tab bar.

 Any suggestions ?

 --
 Thanks  Regards
 Sasikumar.S

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

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

Re: [android-developers] Flash file android

2010-02-09 Thread Sandeep Phansekar
try admob

On Tue, Feb 9, 2010 at 4:10 PM, Narendra Bagade bagadenaren...@gmail.comwrote:

 Hi all,

 For advertisement in my app ,I want to use flash file .

 Can anyone know how to create flash file in android Or how o use exisiting
 flash file in Android app.

 --
 Regards,

 Narendra B
 9632382960,
 Bangalore.

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




-- 
Regards

Sandeep
+91 9869736672

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

2010-02-09 Thread Sandeep Phansekar
add following in your *manifest.xml* file
uses-permission android:name=*android.permission.INTERNET* /
-- 
Regards
Sandeep



On Wed, Feb 10, 2010 at 8:51 AM, Breezy mbre...@gmail.com wrote:

 Does your layout XML look like this?


 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical

WebView
android:id=@+id/webview
android:layout_width=fill_parent
android:layout_height=fill_parent
android:scrollbars=none
/

 /LinearLayout

 On Feb 9, 8:59 pm, Saurabh Lodha saurabh.comp...@gmail.com wrote:
  Hi,
 
  I am using the following code to display a WebView in my Android 2.x
  application. However this does not display anything on screen.
 
  public class WebViewTest extends Activity {
  WebView webview;
  String TAG = WebViewTest;
 
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  try {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  webview = (WebView) findViewById(R.id.webview);
  webview.getSettings().setJavaScriptEnabled(true);
  webview.loadUrl(http://www.google.com;);
 
  } catch (Exception e) {
  Log.w(TAG, e.getMessage());
  }
  }
 
  }
 
  Any ideas?
 
  Thanks,
  Saurabh

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


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

Re: [android-developers] System.out.println(...) statements within the onCreate

2010-02-09 Thread Sandeep Phansekar
Instant of  System.out.println(...)  use Log.e( class/method name ,Error
message);

And view the output in Logcat in Eclipse by the menus:
Window - Show View - Other - Android - Logcat



On Tue, Feb 9, 2010 at 9:07 AM, eehksar eehk...@gmail.com wrote:

 Hi All,

 Am a newbie...

 could anyone explain why my System.out.println(...) statements
 within the onCreate of an activity are not showing up in my console ?

 pointers would be appreciated...

 regards,

 ps - using adt with eclipse for development

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




-- 
Regards

Sandeep
+91 9869736672

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

2010-02-08 Thread Sandeep Phansekar
add following in mainfest file

uses-permission android:name=*android.permission.INTERNET* /


On Sat, Feb 6, 2010 at 1:40 PM, pankaj nigam p.niga...@gmail.com wrote:

 Hi,
i want to display an image from URL,i found one example from forum
 .but it doing nothing. i m sending the code plz suggest me what to do

 package com.example.urlImage;

 import java.io.IOException;
 import java.io.InputStream;
 import java.net.HttpURLConnection;
 import java.net.MalformedURLException;
 import java.net.URL;
 import android.app.Activity;
 import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
 import android.os.Bundle;
 import android.widget.ImageView;

 public class urlImage extends Activity {


Bitmap bmp;
URL url = null;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
String str=http://www.glamsham.com/images/tv06.jpg;;
ImageView imView = (ImageView)findViewById(R.id.imview);
//url=
 http://images.orkut.com/orkut/photos/OgAAADG3_VXKdNE9-VI1jHhG_KvV-2H-TBqfxfkp8cgPobEeslgSp1lCpaLixzLb4dUpfZVC2E9A7OX276mu1WTd7asAm1T1UND88tnlTkLBHBCNl_MYo1qh2R28.jpg
 ;
try{
url = new URL(str);
}
catch(MalformedURLException e)
{
e.printStackTrace();
}
try{
HttpURLConnection conn =
  (HttpURLConnection)url.openConnection();
conn.setDoInput(true);

conn.connect();
int length = conn.getContentLength();

int[] bitmapData =new int[length];
byte[] bitmapData2 =new byte[length];

InputStream is = conn.getInputStream();

bmp = BitmapFactory.decodeStream(is);
imView.setImageBitmap(bmp);
} catch (IOException e)
{
e.printStackTrace();
}
}
 }


 And my xml file is


 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:orientation=vertical
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 TextView
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:text=Hello World, HTTPImage load test
 /
 ImageView id=@+id/imview
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=center
 /
 /LinearLayout


 Please suggest me.
 Pankaj Nigam
 Software Engineer

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




-- 
Regards

Sandeep
+91 9869736672

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