Re: [android-developers] Re: How to detect if a view is on screen

2011-09-06 Thread Marc Van Daele
Hello Ed,

Thanks for your answer but I'm not sure a ListView will work (though I will
look at the video).
Isn't a ListView limited to Vertical scrolling? (at least the javadoc says
so)

Kind Regards,

Marc



2011/9/6 Ed edscha...@gmail.com

 Hi Marc,

 Have a look at ListView. It's probably done most of the hardwork for you if
 you just write your own adapter. Just make sure you get your getView
 correct.

 Watch a couple of Romain Guy's videos from Google I/O e.g.
 http://www.youtube.com/watch?v=wDBM6wVEO70

 Should help get you started in the right direction.

 Cheers,

 Ed

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

2011-09-06 Thread Tareq Al-Ma'mari
*Thank you all , *
*it is helpful information and good beginning *
*
*

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

2011-09-06 Thread Miguel Morales
the simple way is to use a relativelayout as a base, add the
glsurfaceview, and the regular canvas surfaceview on top of that.
the only thing is that opengl uses a different coordinate system than
the canvas, so you'll have to adjust your math accordingly.

On Mon, Sep 5, 2011 at 11:35 PM, Indicator Veritatis mej1...@yahoo.com wrote:
 If that were a good thing to do, then why do you think the online
 Javadocs for Android recommend using GLSurfaceView or SurfaceView?

 It really is much simpler if you do not try to mix the APIs. The two
 classes above help you keep track of a lot of OpenGL details, so you
 should use them; but if you then mix them with the
 android.graphics.Canvas API, then how will the two APIs keep track of
 what the other does to the Canvas?

 Somewhere I think the Javadocs specifically warn against trying this,
 but I can't remember where it is now.

 On Sep 5, 7:19 pm, Dancing Fingers batym...@gmail.com wrote:
 Does any one know if you can map a View canvas onto an OpenGL surface
 in Android?

 Just curious.

 Chris

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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx

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

2011-09-06 Thread Indicator Veritatis
I would have said use ScrollView, but that too is limited to
vertical scrolling. So now I have to ask: do you really HAVE to have
the scrolling done horizontally? You might be in for a harder time if
you insist on this.

On Sep 5, 11:29 pm, Marc Van Daele marc.van.dael...@gmail.com wrote:
 Hello Ed,

 Thanks for your answer but I'm not sure a ListView will work (though I will
 look at the video).
 Isn't a ListView limited to Vertical scrolling? (at least the javadoc says
 so)

 Kind Regards,

 Marc

 2011/9/6 Ed edscha...@gmail.com

  Hi Marc,

  Have a look at ListView. It's probably done most of the hardwork for you if
  you just write your own adapter. Just make sure you get your getView
  correct.

  Watch a couple of Romain Guy's videos from Google I/O e.g.
 http://www.youtube.com/watch?v=wDBM6wVEO70

  Should help get you started in the right direction.

  Cheers,

  Ed

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

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


[android-developers] Re: Error starting app. Must force a close

2011-09-06 Thread Indicator Veritatis
Mark-

Your advice is good, as always, but I think the OP will be in need of
advice that is a little more specific, namely, HOW is he going to find
the cause of the error using adb logcat etc?

Of course, since all we know is that he sees that one error, it is
hard to get more specific. But I believe it would be helpful to point
out to the OP in general terms what he should look for, i.e., look in
the stack trace containing the unknown error for any exceptions
involving his own package: if he finds one, he can be 99% certain that
is the cause of the error. If he does not find one, then it is harder:
he will have to figure out what it was that the Launcher needed to
start his app, but he forgot to provide, such as listing all required
permissions and Activities in the Manifest.

On Sep 5, 4:19 pm, Mark Murphy mmur...@commonsware.com wrote:
 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your error.



 On Mon, Sep 5, 2011 at 11:05 PM, NWD Sports nwdspo...@hotmail.com wrote:
  I have an app that I created that worked perfectly whenever I debugged it.
  Now whenever I try to run it, I get an error saying “unexpected error
  com.myPackageName.app could not be started.” the only option I get is to
  force a close of the app. Does anyone know what is wrong?

  Nicholas L. – NWD Sports.com

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

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

 Android Training in NYC:http://marakana.com/training/android/

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


[android-developers] Re: Combining Canvas with OpenGL

2011-09-06 Thread Indicator Veritatis
If that were a good thing to do, then why do you think the online
Javadocs for Android recommend using GLSurfaceView or SurfaceView?

It really is much simpler if you do not try to mix the APIs. The two
classes above help you keep track of a lot of OpenGL details, so you
should use them; but if you then mix them with the
android.graphics.Canvas API, then how will the two APIs keep track of
what the other does to the Canvas?

Somewhere I think the Javadocs specifically warn against trying this,
but I can't remember where it is now.

On Sep 5, 7:19 pm, Dancing Fingers batym...@gmail.com wrote:
 Does any one know if you can map a View canvas onto an OpenGL surface
 in Android?

 Just curious.

 Chris

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

2011-09-06 Thread Miguel Morales
No, it's never ok to touch any views outside of the UI thread.

On Mon, Sep 5, 2011 at 9:52 PM, bob b...@coolgroups.com wrote:
 Is it ok if I call loadData on a WebView from a background thread?

        wv.loadData(html, text/html, utf-8);

 It seems to work, but it feels naughty.

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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx

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

2011-09-06 Thread GopalaKrishnan D
How we can control broadcast receiver through buttons in app. any one
provide link for that

-- 
~* Regards*
*GopalaKrishnan D*

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

[android-developers] Re: How to detect if a view is on screen

2011-09-06 Thread Indicator Veritatis
Hah, I should have thought of this name! 'HorizontalScrollView' has
been supported since API level 3, and it sounds like just what you
want.

On Sep 5, 11:39 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 I would have said use ScrollView, but that too is limited to
 vertical scrolling. So now I have to ask: do you really HAVE to have
 the scrolling done horizontally? You might be in for a harder time if
 you insist on this.

 On Sep 5, 11:29 pm, Marc Van Daele marc.van.dael...@gmail.com wrote:

  Hello Ed,

  Thanks for your answer but I'm not sure a ListView will work (though I will
  look at the video).
  Isn't a ListView limited to Vertical scrolling? (at least the javadoc says
  so)

  Kind Regards,

  Marc

  2011/9/6 Ed edscha...@gmail.com

   Hi Marc,

   Have a look at ListView. It's probably done most of the hardwork for you 
   if
   you just write your own adapter. Just make sure you get your getView
   correct.

   Watch a couple of Romain Guy's videos from Google I/O e.g.
  http://www.youtube.com/watch?v=wDBM6wVEO70

   Should help get you started in the right direction.

   Cheers,

   Ed

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

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


[android-developers] Re: How to convert voice to text

2011-09-06 Thread ko5tik


On Sep 6, 7:56 am, HariRam hariram1...@gmail.com wrote:
 Thanks for previous replies,

               Is it possible to convert voice as a text. i searched through
 website, there is more guidance for text to speech but none for voice to
 text. if anyone have idea for how to transmit voice to text pls guide me.

There are libraries which can do speech recognition, but I doubt  thet
there are free and open source libraries
to do this.   SoI would propose that you learn some math,  and start
reading scientifical publications -  there should be something from
IEEE

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] Light sensor and Service.

2011-09-06 Thread NoFunnyStuff
Hello,

  I'm developing an application that start a service to execute an
action when the ambient light changes. Here is the cinematic:

Activity A
  On Start -- If Service S running, start Activity B
  On Click -- Start Service S (not an IntentService) using
starService.
Activity B
  On Start -- Bind to Service S
  On Click -- Stop Service S
Service S implements SensorEventListener
  On Create -- Register to light sensor
  On Sensor Changed -- Write a log
  On Destroy -- Unregister to light sensor

My problem is:
  When you launch the application and start the service, everything is
fine. When the screen is turned off, Service S does not receive
notifications from the light sensor anymore. When I turn the screen
back on, no notifications are received either. If I destroy the
Service and start it again within the same application session,
notification are not received.

  Documentation on sensor are not very helpful (or maybe I missed
something). Can anyone help?
  Thanks for your help.

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


[android-developers] Nfc phone read the type A card.

2011-09-06 Thread xiaoailsa
Hi all:
 I have some questions about read the card(type A).I hope someone
can communicate with me and help me.Thank you very much.
Q1: I want to use two classes:IsoDep and NfcA to read a type A
card.But how to use at the same time?
→mTechLists = new String[][] { new String[]
{IsoDep.class.getName()} };
   //mTechLists = new String[][] { new String[]
{NfcA.class.getName()} };
→public void onResume() {
 super.onResume();
 mAdapter.enableForegroundDispatch(this, mPendingIntent,
mFilters, mTechLists);}
Q2: In the IsoDep class, transceive (byte[ ] data) means send
raw IsoDep data to the tag and receive the response. How to send data?
Q3:  →public byte[] getHistoricalBytes ()
 The historical bytes can be used to help identify a tag. They
are present only on IsoDep tags that are based on NfcA RF technology.
If this tag is not NfcA then null is returned.
 What 's the meaning?

  Thank you !

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


[android-developers] How to serve streaming data via ContentProvider?

2011-09-06 Thread Alex Xin
Hello Experts,

We now need to implement a custom ContentProvider to serve streaming
data from local wifi network connection, those data will be used by
other apps like a media player. But we found that current
ContentProvider only support serving database table data or local
files, are there any methods we can use to serve streaming data via
ContentProvider?

Thanks,

Alex

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

2011-09-06 Thread dani maoz
Hello
I was able to compile ffmpeg project to android,
I would like to run ffmpeg using android emulator,
Can anyone post instruction how run ffpmeg on the emulator
Regards

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

Re: [android-developers] Re: How to detect if a view is on screen

2011-09-06 Thread Marc Van Daele
In fact, I'm using HorizontalScrollView already
but I'm worried about memory consumption (I'm coming from the embedded
software world)

Inside the HorizontalScrollView  I have a LinearLayout containing a list of
my own Views
(actually a ViewGroup displaying a movie poster but also information on the
actors, description, icons for parental rating etc).

Whenever my View is first loaded (first dispatchDraw call), I load the
Bitmap for the movie poster.
But right now, I never unload this bitmap so I'm worried about memory usage.

Hence I want to release the Bitmap when the View is not on screen.
I don't think HorizontalScrollView as such (nor ListView) provides support
for this (please correct me if I'm wrong)

I looked a bit in the source code of HorizontalScrollView and noticed that
it has a private :-(  method isOffScreen(..).
Based on that code I now do something like (in the parents dispatchDraw)

 ViewGroup scroller = (ViewGroup)
getChildAt(0);//HorizontalScrollView
ViewGroup layout = (ViewGroup) scroller.getChildAt(0);//LinearLayout
for (int i = 0; i  layout.getChildCount(); i++)
{
View child = layout.getChildAt(i);
//check if an asset/event is visible
if(isOffScreenHorizontal(scroller, child))
{
 //call unload method
}
}

with isOffScreenHorizontal
private boolean isOffScreenHorizontal(ViewGroup parent, View child)
{
Rect mTempRect = new Rect();
child.getDrawingRect(mTempRect);
parent.offsetDescendantRectToMyCoords(child, mTempRect);

return !((mTempRect.right) = parent.getScrollX()
 (mTempRect.left) = (parent.getScrollX() +
parent.getWidth()));
}

Can you give feedback on this approach?

TIA,

Marc


2011/9/6 Indicator Veritatis mej1...@yahoo.com

 Hah, I should have thought of this name! 'HorizontalScrollView' has
 been supported since API level 3, and it sounds like just what you
 want.

 On Sep 5, 11:39 pm, Indicator Veritatis mej1...@yahoo.com wrote:
  I would have said use ScrollView, but that too is limited to
  vertical scrolling. So now I have to ask: do you really HAVE to have
  the scrolling done horizontally? You might be in for a harder time if
  you insist on this.
 
  On Sep 5, 11:29 pm, Marc Van Daele marc.van.dael...@gmail.com wrote:
 
   Hello Ed,
 
   Thanks for your answer but I'm not sure a ListView will work (though I
 will
   look at the video).
   Isn't a ListView limited to Vertical scrolling? (at least the javadoc
 says
   so)
 
   Kind Regards,
 
   Marc
 
   2011/9/6 Ed edscha...@gmail.com
 
Hi Marc,
 
Have a look at ListView. It's probably done most of the hardwork for
 you if
you just write your own adapter. Just make sure you get your getView
correct.
 
Watch a couple of Romain Guy's videos from Google I/O e.g.
   http://www.youtube.com/watch?v=wDBM6wVEO70
 
Should help get you started in the right direction.
 
Cheers,
 
Ed
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, 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] Nfc phone read the type A card.

2011-09-06 Thread xie calvin
I guss that you Android NFC does not allow use 2 nfc tech to connect a
tag at  the same time.  Why do you use them like so?  what is the user
scenario?

2011/9/6 xiaoailsa zsbitxiao...@163.com:
 Hi all:
 I have some questions about read the card(type A).I hope someone
 can communicate with me and help me.Thank you very much.
Q1: I want to use two classes:IsoDep and NfcA to read a type A
 card.But how to use at the same time?
→mTechLists = new String[][] { new String[]
 {IsoDep.class.getName()} };
   //mTechLists = new String[][] { new String[]
 {NfcA.class.getName()} };
→public void onResume() {
 super.onResume();
 mAdapter.enableForegroundDispatch(this, mPendingIntent,
 mFilters, mTechLists);}
Q2: In the IsoDep class, transceive (byte[ ] data) means send
 raw IsoDep data to the tag and receive the response. How to send data?
Q3:  →public byte[] getHistoricalBytes ()
 The historical bytes can be used to help identify a tag. They
 are present only on IsoDep tags that are based on NfcA RF technology.
 If this tag is not NfcA then null is returned.
 What 's the meaning?

  Thank you !

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



-- 

Best regards

calvin xie

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

2011-09-06 Thread Frederik Samberg
If any guya from SE is watching this: Service is down at the moment -
any idea when it will be up and running again? :)

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

2011-09-06 Thread felix
i am a newbie. i want to learn andoird. who can share some experience.
thanks.
Are there any good books and videos?

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


[android-developers] Re: Help needed on BUtton CLick

2011-09-06 Thread DangerDaku
Try

android:layout_marginRight=5dp attribute in ur xml file to get
spacing on the right of the button.

So somthing lik

Button android:id=@+id/button1 android:layout_height=wrap_content
android:layout_width=wrap_content android:layout_marginRight=5dp/


On Sep 5, 2:57 am, sam hotdude...@gmail.com wrote:
 I got it fixed Ratheesh , i had a mistake in ma manifest file ..

 Can u please guide me how to set the space between the buttons ???

 Regards,
 Sam

 On Sep 5, 11:53 am, Ratheesh Valamchuzhy android...@gmail.com wrote:







  hi SAM

  public void onClick(View v)
         {
                 switch(v.getId())
                 {
                 case R.id.button1:

                         startActivity(new Intent(Screen1.this,Screen2.
  class));
                          break;

                 case R.id.button3:
                           startActivity(new Intent(Screen1.this,Screen3.
  class));
                          break;
                  }
         }

  try 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


[android-developers] Re: Once again the INSTALL_FAILED_INSUFFICIENT_STORAGE error

2011-09-06 Thread mitchell_lra
Try this in eclipse:


- Run
- Run Configurations
- Tab Target
- Additional Emulator Command Line Options

Write the following command:

 -wipe-data -partition-size 1024



On 5 Set, 15:50, Palsson palsson...@gmail.com wrote:
 Hello,

 Hardware: AM3517
 OS: Froyo release

 Suddenly I'm not able to install, run and debug applications on my
 target, using eclipse.
 I'm configuring ADB over Ethernet.
 At the same time I can use the adb tool to push the applications onto
 the target and execute..

 Which button did I possibly push, that made this happen?

 I can't even debug HelloWorld, so this has nothing to do with
 insufficient memory.

 Any ideas?

 Regards
 Palsson

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


[android-developers] Is it possible to access MVC .Net application in android when the .net is not having web services?

2011-09-06 Thread supriya uday
I am trying to access MVC .NET apps using JSON  but since they don't
have web services i am not able to access it.Can anyone help me in
this part?

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

2011-09-06 Thread emil_bar...@yahoo.com
I am seeking for some help in developing android games. I am willing
to learn a lot of things as a java programmer. I can't afford to study
in Universities but I am willing be one of you. I want to be a future
developer.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Media player display black screen (flash) when release

2011-09-06 Thread terry...@gmail.com
Hi, all:
I met an issue when using MediaPlayer to play a video.
Every thing is fine until I release(/reset) the MediaPlayer. A black
hole displayed on the surface view used by media player.
I can't find a way to avoid the black screen.
As you know, sometimes the users need to rotate the device, the
activity will be recreated. This will cause to destroy the surface
view, and recreate the media player.  The bloack hole shows up. And
then new ui (ratated) displayed.

How can I avoid the black hole being showed every screen rotate or
activity change. Is it possible?

Best wishes
Terry
2011-9-6

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

2011-09-06 Thread MegaDroider
I wrote a TreeView component to show items in a tree hierarchy,
because I checked Android Forums and (hope I'm not wrong) there is no
component that allows an unlimited number of levels.
ExpandibleListView only comes with grups and subitems (two levels).

I'd like to share this component to other developers, it's quite
flexible, so I guess anyone who need to show data in a Tree, would
find this component very helpful.

I don't know what's the best way to put this code handy to other
developers, just post the java code in the forum?

Can you please advise?

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


[android-developers] Re: how can I know when an application will start

2011-09-06 Thread DangerDaku


On Sep 5, 4:22 pm, TreKing treking...@gmail.com wrote:
 On Mon, Sep 5, 2011 at 10:29 AM, ngbl natalyabla...@gmail.com wrote:
  But I can't find the way of catch the intent of an activity when starts on
  the launcher.

 There is no such thing, AFAIK. Apps of this nature are exploiting hacks or
 private APIs.

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

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


[android-developers] minSdkVersion unintended side effects

2011-09-06 Thread tillYourNightJobPays
Hello,
Discovered a strange issue using this so thought I'd get clarification
on expected or not and maybe some education on this property.

I took the FingerPaint sample from the graphics API demos to integrate
it into my own application. It worked well except it only drew in the
upper-left corner of the screen. Using the straight API demo on my
phone didn't show this, so traced the issue to this line in the
Manifest:

uses-sdk android:minSdkVersion=10/uses-sdk

If set to a value of 4 or higher, it shows this limited drawing
effect. If it's removed or = 3, then it works fine.

Can anyone help explain if this is expected and maybe some background
on this? From the documentation I understand that it should only
impacts if the application is able to be installed on targets lower
than the value specified. This seems to affect functionality so
wondering if I need to be reading about api version changes somewhere.

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

2011-09-06 Thread Eric park
Hello I'm S/W engineer for HC device.

I'm wondering whether HC does support OMA CP or not.

Can I find that seeing release note ot something?

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] Help~~Help~~

2011-09-06 Thread MonkeyTest
  hi guys,

  I have question.

  How can I get the code coverage when anyone make test by blackbox? I
know the testrunner emma, but it only support the junit test, right?
If I make the blackbox test in android, I want to find the way to get
the code coverage about the target app.

  Thank you very much!!


Ye

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


[android-developers] Re: Help needed on BUtton CLick

2011-09-06 Thread DangerDaku
In your screen1.xml file, add android:layout_marginTop=5dp,
android:layout_marginBottom=5dp .. etc for top, bottom, left and
right spacing. This is added as an attribute to ur Button tag.

so you can have somthing like

Button android:id=@+id/button1 android:layout_width=wrap_content
android:layout_height=wrap_content android:layout_marginTop=5dp
android:text=Buttom 1/

to have 5dp space on top of your button.

Try it =)

On Sep 5, 2:57 am, sam hotdude...@gmail.com wrote:
 I got it fixed Ratheesh , i had a mistake in ma manifest file ..

 Can u please guide me how to set the space between the buttons ???

 Regards,
 Sam

 On Sep 5, 11:53 am, Ratheesh Valamchuzhy android...@gmail.com wrote:







  hi SAM

  public void onClick(View v)
         {
                 switch(v.getId())
                 {
                 case R.id.button1:

                         startActivity(new Intent(Screen1.this,Screen2.
  class));
                          break;

                 case R.id.button3:
                           startActivity(new Intent(Screen1.this,Screen3.
  class));
                          break;
                  }
         }

  try 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


Re: [android-developers] project contains many error

2011-09-06 Thread 劲男王
May be enviorment has some errors


2011/9/5, Nick Risaro nris...@gmail.com:
 Also, start with just a Hello World to check if everuthing is correctly
 installed and configured.

 On Sun, Sep 4, 2011 at 7:24 PM, nadam a...@anyro.se wrote:

 Go to the menu Window - Show View - Problems to see what the
 problem is.

 On 2 Sep, 11:25, dhanaraj chaudhari dbchaudhari...@gmail.com wrote:
  Hello,
 
  I am new andriod developer, I have developed new project in Eclips.
  There are many .java files  some of the xml layout  files all these
  files not contain error. but in project explorer the project name
  shows the red mark.
 
  please any body can tell me why happens this
 
  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

-- 
从我的移动设备发送

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: connecting USB serial device to Android handset, is it possible?

2011-09-06 Thread Slick Dev
I'm not sure if this applies to you, but its worth checking out:
http://slickdevlabs.com/slick-usb-2-serial-library/

On Aug 12, 8:21 am, ColorTheorist colortheorydevelo...@gmail.com
wrote:
 While I do not have full understanding of different hardwares and
 chips, not being too familiar with hardware in general, the Honeycomb
 suite does allow for the user to connect an HID interfacingUSBdevice
 and open up a connection with it.  From there you could communicate
 with the device via a direct bytestream if you know what commands to
 send it over the connection (as well as receive over the connection).
 I have done this just recently with an externalUSBdevice and am
 currently communicating with it at the moment.

 If this is on track, I'm glad that it could provide you with the
 understanding that it is capable.

 On Aug 10, 10:55 am, razor razorjac...@gmail.com wrote:







  Hi.
  I have simpleUSBinterface (acting likeserialport, basen on FTDI
  FT245RL chip).
  It works on windows like COM port.

  Is it possible to connect it to Android Phone (like HTC Desire) and
  read/write values from this port ?

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

2011-09-06 Thread Hadas Mobile
Bcd
Hi,
How I can create two animation Simultaneously in Android??
Thanks
Hadas

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

2011-09-06 Thread Hadas Mobile
Bcd
Hi,
How I can create two animation Simultaneously in Android??
Thanks
Hadas

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

2011-09-06 Thread Miguel Morales
You don't need to go to an university to learn to program.
Just read the google sdk documents and practice a lot.

On Mon, Sep 5, 2011 at 7:59 PM, emil_bar...@yahoo.com
emil_bar...@yahoo.com wrote:
 I am seeking for some help in developing android games. I am willing
 to learn a lot of things as a java programmer. I can't afford to study
 in Universities but I am willing be one of you. I want to be a future
 developer.

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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx

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

2011-09-06 Thread sparky
http://developer.android.com/resources/browser.html?tag=tutorial
http://www.youtube.com/results?search_query=google+i%2Fo+androidaq=f

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: OpenGL Samsung Galaxy S2 S II Problem With Rotation

2011-09-06 Thread FlyCry
There is an ARM MALI400 in SAMSUNG GALAXY S2  as a GPU, Maybe it's
MALI's problem? Other devices u tested ok maybe use another GPU such
as Qualcomm Adreno

On 9月5日, 下午7时03分, emanuele padula e.pad...@gmail.com wrote:
 Thank you Christopher. I'll do some test regarding the mipmapping, but i'm
 not sure that it will work. Thank you for you suggestion.

 2011/9/5 Christopher Van Kirk christopher.vank...@gmail.com



  I'm seeing a similar problem on that device, but I haven't spent any time
  looking for an answer yet. I see that you're using VBOs...I've read
  somewhere that some devices have trouble with them but I don't know if it's
  true or which devices might be affected. I also know that in my case I'm
  also using VBOs, but I'm not rotating the texture, I'm stretching it without
  a mipmap, and it's a JPEG.

  Sorry couldn't be more help.

  On 9/5/2011 10:15 PM, pad wrote:

  Hi,
  I have a huge problem ONLY with SAMSUNG GALAXY S2 and i cannot figure
  out if the problem is my code or of this device!!

  ON ALL OTHER PHONES IT WORKS GREAT!!

  I'm Using ONLY OpenGL 1.0.

  The problem is that with the code below my game cannot draw the object
  that need rotation (the objects are not visualized on the screen).
  Objects with no rotation (angle = 0.0) are drawn perfectly.

  ONLY on samsung galaxy s2 the rotated images are not visualized on the
  screen. There is some bug in SG2 that i have to take in cosideration
  or some specific initialization?

  Can you help me???

  Thank you in advance

  public static void drawBitmap(final GL10 gl, final float x, final
  float y,
   final float rotate_x, final float rotate_y, final MyImage m,
  final float angle) {

// Draw using verts or VBO verts.
gl.glPushMatrix();
// gl.glLoadIdentity();

final int indexPerTile = TextureManager.INDEX_PER_TILE;
final int indexRow = m.fx.row * TextureManager.INDEX_PER_TILE
  * TextureManager.TILE_PER_ROW;

if (angle == 0.0f) {

 gl.glTranslatef(x, y, 0f);
 gl.glScalef(m.scaleWidth, m.scaleHeight, 1);
 m.fx.grid.drawStrip(gl, true, indexRow,
  indexPerTile);// the
  code of this method is below

  if (m.alpha != 1 || m.red != 1 || m.blue != 1 ||
  m.green != 1) {
 gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
  }

} else {

   final float xt = rotate_x;
   final float yt = rotate_y;
   gl.glTranslatef(xt, yt, 0f);
   gl.glRotatef(-angle, 0f, 0f, 1.0f);
   gl.glTranslatef(-xt + x, -yt + y, 0f);
   gl.glScalef(m.scaleWidth, m.scaleHeight, 1);

   m.fx.grid.drawStrip(gl, true, indexRow, indexPerTile); // the
  code of this method is below

   if (m.alpha != 1 || m.red != 1 || m.blue != 1 || m.green !=
  1) {
  gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
   }
}

gl.glPopMatrix();
 }

 public void drawStrip(final GL10 gl, final boolean useTexture,
  final int startIndex,
   final int indexCount) {
int count = indexCount;
if (startIndex + indexCount= this.mIndexCount) {
   count = this.mIndexCount - startIndex;
}

gl.glDrawElements(GL10.GL_**TRIANGLES, count,
  GL10.GL_UNSIGNED_SHORT,
 this.mIndexBuffer.position(**startIndex));

 }- 隐藏被引用文字 -

 - 显示引用的文字 -

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

2011-09-06 Thread Jhew SAN
 File newxmlfile = new File(/sdcard/sss.xml);
 try{
  newxmlfile.createNewFile();
 }catch(IOException e){
  Log.e(IOException, exception in createNewFile() method);
 }
 FileOutputStream fileos = null;   
 try{
  fileos = new FileOutputStream(newxmlfile);
 }catch(FileNotFoundException e){
  Log.e(FileNotFoundException, can't create 
FileOutputStream);
 }
 XmlSerializer serializer = Xml.newSerializer();
 try {
serializer.setOutput(fileos, UTF-8);
serializer.startDocument(null, Boolean.valueOf(true)); 

serializer.setFeature(http://xmlpull.org/v1/doc/features.html#indent-output;, 
true); 
serializer.startTag(null, root); 
serializer.startTag(null, data);
serializer.startTag(null, city);
serializer.startTag(null, data.getCity());
   serializer.endTag(null, data.getCity());
  serializer.endTag(null, city);
serializer.startTag(null, temperature);
  serializer.attribute(null, temperature, 
data.getCurrentConditionData().getTemp_c()); 
serializer.endTag(null, temperature); 
serializer.endTag(null, data);  
serializer.endTag(null, root);
serializer.endDocument();
serializer.flush();
fileos.close();
 }catch(Exception e)
 {
 Log.e(Exception,error occurred while creating xml file); 
 }

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

2011-09-06 Thread 卓卿
buy a book.

Br,
Lawrence

Don't put off what can be done today until tomorrow!


On Tue, Sep 6, 2011 at 4:18 PM, sparky spar...@google.com wrote:

 http://developer.android.com/resources/browser.html?tag=tutorial
 http://www.youtube.com/results?search_query=google+i%2Fo+androidaq=f

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

2011-09-06 Thread Hadas Mobile
Bcd
Hi,
How I can create two animation Simultaneously in Android??
Thanks
Hadas

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

2011-09-06 Thread Palsson
Hello Ed,

Thanks for your response.
But restart and reboot of both adb server and even target and host, is
not solving the issue.

The problem:
I'm using Eclipse, with adb-plugin, to develop applications for my
target (AM3517 evm, running Android).
I'm connecting adb over ethernet.
This has been working just fine until recently.
Now the debug session is not being established and terminates with:
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
Please check logcat output for more details.
Launch canceled!

I can't even run the HelloWorld example anymore.
The issue can't be related to memory storage, as there are no other
applications loaded onto the module, beside default apps from the
release.
I have a different host (computer) with the Eclipse ADT configured,
and the same error appears.

Instead of debugging (installing and debugging) my application via
Eclipse, I can use the adb push tool.
If I just use # adb push myapplication.apk /data/app - I can find the
app icon on my target and run it.
I'm not using the adb install command from the shell.

So:
It worked for some time after my first installation.
Now I'm trying to figure it out, which part of the configuration has
changed resulting in the Eclipse debugging not being functional?

Regards
Palsson



On Sep 6, 2:08 am, Ed edscha...@gmail.com wrote:
 If it's not a device storage issue then the first place I would start is
 running adb kill-server and adb start-server to restart adb.

 Not 100% sure what your problem is - you can use the adb push command but
 cannot use the adb install command?

 Don't forget that internal memory and SD memory are different so one may
 have room while the other doesn't.

 Cheers,

 Ed

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

2011-09-06 Thread Hadas Mobile
Bcd
Hi,
How I can create two animation Simultaneously in Android??
Thanks
Hadas

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

2011-09-06 Thread Palsson
No luck Mitchell with the partition-size command.

That was not needed to begin with, when I first installed the system.
Now I'm just trying with my HelloWorld .-)

Regards
Palsson


On Sep 6, 5:36 am, mitchell_lra mitchell@gmail.com wrote:
 Try this in eclipse:

 - Run
 - Run Configurations
 - Tab Target
 - Additional Emulator Command Line Options

 Write the following command:

  -wipe-data -partition-size 1024

 On 5 Set, 15:50, Palsson palsson...@gmail.com wrote:







  Hello,

  Hardware: AM3517
  OS: Froyo release

  Suddenly I'm not able to install, run and debug applications on my
  target, using eclipse.
  I'm configuring ADB over Ethernet.
  At the same time I can use the adb tool to push the applications onto
  the target and execute..

  Which button did I possibly push, that made this happen?

  I can't even debug HelloWorld, so this has nothing to do with
  insufficient memory.

  Any ideas?

  Regards
  Palsson

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

2011-09-06 Thread Arno den Hond
How about creating a project on github or google code so others can
contribute? Please post link!

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

2011-09-06 Thread Robin Talwar
Best way is to first pick up a project either on freelancer.com or
elance.com

When u get encouragement of money then u urself will do effort

Appress books are available both for beginners level and pro level

plus u can go for lynda tutorials for android they are out now get a torrent
and download it for free.


On Tue, Sep 6, 2011 at 1:54 PM, 卓卿 lizhuoqing...@gmail.com wrote:

 buy a book.

 Br,
 Lawrence

 Don't put off what can be done today until tomorrow!



 On Tue, Sep 6, 2011 at 4:18 PM, sparky spar...@google.com wrote:

 http://developer.android.com/resources/browser.html?tag=tutorial
 http://www.youtube.com/results?search_query=google+i%2Fo+androidaq=f

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-06 Thread xiaoailsa
Book is your best teacher . Write some codes by youself.

On 9月6日, 下午3时52分, felix guofuchu...@gmail.com wrote:
 i am a newbie. i want to learn andoird. who can share some experience.
 thanks.
 Are there any good books and videos?

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

2011-09-06 Thread skink


On Sep 6, 10:28 am, Jhew SAN tawisak.ruksu...@gmail.com wrote:
  File newxmlfile = new File(/sdcard/sss.xml);
          try{
               newxmlfile.createNewFile();
              }catch(IOException e){
               Log.e(IOException, exception in createNewFile() method);
              }
              FileOutputStream fileos = null;      
              try{
               fileos = new FileOutputStream(newxmlfile);
              }catch(FileNotFoundException e){
               Log.e(FileNotFoundException, can't create
 FileOutputStream);
              }
              XmlSerializer serializer = Xml.newSerializer();
              try {
             serializer.setOutput(fileos, UTF-8);
             serializer.startDocument(null, Boolean.valueOf(true));
             
 serializer.setFeature(http://xmlpull.org/v1/doc/features.html#indent-output;,
 true);
             serializer.startTag(null, root);
                 serializer.startTag(null, data);
             serializer.startTag(null, city);
             serializer.startTag(null, data.getCity());
                serializer.endTag(null, data.getCity());
               serializer.endTag(null, city);
         serializer.startTag(null, temperature);
   serializer.attribute(null, temperature,
 data.getCurrentConditionData().getTemp_c());
 serializer.endTag(null, temperature);
 serializer.endTag(null, data);          
             serializer.endTag(null, root);
 serializer.endDocument();
 serializer.flush();
 fileos.close();
              }catch(Exception e)
              {
              Log.e(Exception,error occurred while creating xml file);
              }

...and your problem is ...?

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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Nfc phone read the type A card.

2011-09-06 Thread xiaoailsa
Yes.Because i want to read and write typeA card.
The NfcA have deal with ATQA and SAK; and the IsoDep have deal with
setTimeout and so on.
But i don't know how they transceive (data),then can read the card
success.



On 9月6日, 下午3时52分, xie calvin xiecal...@gmail.com wrote:
 I guss that you Android NFC does not allow use 2 nfc tech to connect a
 tag at  the same time.  Why do you use them like so?  what is the user
 scenario?

 2011/9/6 xiaoailsa zsbitxiao...@163.com:





  Hi all:
  I have some questions aboutreadthecard(type A).I hope someone
  can communicate with me and help me.Thank you very much.
 Q1: I want to use two classes:IsoDep and NfcA toreada type A
 card.But how to use at the same time?
 →mTechLists = new String[][] { new String[]
  {IsoDep.class.getName()} };
//mTechLists = new String[][] { new String[]
  {NfcA.class.getName()} };
 →public void onResume() {
  super.onResume();
  mAdapter.enableForegroundDispatch(this, mPendingIntent,
  mFilters, mTechLists);}
 Q2: In the IsoDep class, transceive (byte[ ] data) means send
  raw IsoDep data to the tag and receive the response. How to send data?
 Q3:  →public byte[] getHistoricalBytes ()
  The historical bytes can be used to help identify a tag. They
  are present only on IsoDep tags that are based on NfcA RF technology.
  If this tag is not NfcA then null is returned.
  What 's the meaning?

   Thank you !

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

 --

 Best regards

 calvin xie- 隐藏被引用文字 -

 - 显示引用的文字 -

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

2011-09-06 Thread felix
I want it too, but i think i can`t pick up a project rignt now. if i
have the ability , i will pick up a project on elance.

On 9月6日, 下午4时43分, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
 Best way is to first pick up a project either on freelancer.com or
 elance.com

 When u get encouragement of money then u urself will do effort

 Appress books are available both for beginners level and pro level

 plus u can go for lynda tutorials for android they are out now get a torrent
 and download it for free.





 On Tue, Sep 6, 2011 at 1:54 PM, 卓卿 lizhuoqing...@gmail.com wrote:
  buy a book.

  Br,
  Lawrence

  Don't put off what can be done today until tomorrow!

  On Tue, Sep 6, 2011 at 4:18 PM, sparky spar...@google.com wrote:

 http://developer.android.com/resources/browser.html?tag=tutorial
 http://www.youtube.com/results?search_query=google+i%2Fo+androidaq=f

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

 --
 Regards
 Abhishek Talwar
 9953395712- 隐藏被引用文字 -

 - 显示引用的文字 -

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

2011-09-06 Thread Palsson
Hello Ed,

I tried with the adb install command from the shell.
It doesn't work.
Only adb push.

/Palsson

On Sep 6, 2:08 am, Ed edscha...@gmail.com wrote:
 If it's not a device storage issue then the first place I would start is
 running adb kill-server and adb start-server to restart adb.

 Not 100% sure what your problem is - you can use the adb push command but
 cannot use the adb install command?

 Don't forget that internal memory and SD memory are different so one may
 have room while the other doesn't.

 Cheers,

 Ed

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

2011-09-06 Thread souissi haythem
http://groups.google.com/group/android-developers/browse_thread/thread/bd2fb3b57f5a9bc9/5fd98e43a85c6517?lnk=raot

i hope this will help you

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

[android-developers] How to get app to notice and draw newly synced data

2011-09-06 Thread Alex
Hi,
I have a custom syncadapter and content provider. The data is
successfully synced in my app's sqlite db.
I am now missing how  the control flow should work to get my view
drawing class running? Should I be explicitly calling it after sync or
should this be (somehow) happening automatically?

   Thanks, Alex

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

2011-09-06 Thread Károly Holczhauser
Hello !

 Okay, it seems I have the solution, thanks for the MAT:)
So, as I said I have a lot of LinearLayout class, which are represents
the screens on a lot of times in the app. These classes are have had a
lot of variable , so I had make them clear and null:
I had overrided the removeAllViews of the methods and I had make
everthing to null.
In may times the Linearlayouts had contained arraylist which where
contained another views and another layouts. So I had iterated over
the hole list and called removeAllViews (again overrided by be and
clear the variables and call super.removeallViews) to views and set
them to null. After it make the list clear and set it to null.

 So, I had overried the removeAllViews and the onDestory methods and
clear all datastructure and set everthing to null, furthermore I had
use the AndroidManifest.xml : in some activities I had use the
android:noHistory=true tag.

 Thanks for your assists , Karoly

On szept. 5, 13:42, Praveen Raj praveenraj1...@gmail.com wrote:
 Your problem seems like you are leaking the context to drawble
 objects.
 or you might have used implicit reference to non static inner classes.

 http://developer.android.com/resources/articles/avoiding-memory-leaks...

 Since you have used lot of linear layout and bitmaps, Most probably
 they are the culprits.
 look for static reference of drawable objects which you are attching
 to views.

 On Sep 5, 4:05 pm, KárolyHolczhauserholczhau...@gmail.com wrote:







  Hello girls and boys!

   I'm going to describe my problem as short as I can and would like to
  give a thanks for any advice, tips and so on :)

  So, I had wrote an really complex News reader application which one is
  able to:
  -read news and articles
  -save and load them
  -able to save galleries and load them
  -able to download online mp4 video files and play them to the user

  My problem is the following: don't have enoughmemory:) Seriously,
  when the I use the program long time ago, watching some video and
  articles I got an out ofmemoryerror. Sometimes it is an
  java.lang.OutOfMemoryError: bitmap size exceeds VM budget sometimes
  it is just an out ofmemory, vm don't allow to alloc xy byte.

  I had tried a lot of thing to make memories free:
  - clear the cache on the sdcard
  - disable webviews cache (I'm using webviews to display articles)
  -catch the OutOfMemoryError and call System and Runtime gc

  None of above was help to me. I haven't got any another idea, so had
  started to use MAT (MemoryAnalyser Tool) and I had seen there two
  types of object witch are the biggestmemorycustromers:
  android.webkit.webHistortyItem and a Linearlayout.

  I don't use webHistorty in the app, only webviews, but I had set the
  usercache=false . How can I make webHistortyItem clear?
  Linearlayout ? Of course I'm using a lot, but I have no idea where I'm
  forget to make it null. How can I find it? Are the Linear-layout and
  the Bitmaps using the samememoryor they are getting to store in
  absolutely independent area of it ?

  is anybody have any idea about it? How should I makememoryfree?

   Thank you , 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Once again the INSTALL_FAILED_INSUFFICIENT_STORAGE error

2011-09-06 Thread Palsson
Just wanted to inform on this..

I'm using NFS.

I can do this:
adb push myapp.apk /data/app
Find it on my target display and execute
Open DDMS in eclipse and activate debug from there.

I can't do this:
adb install myapp.apk
or
Debug directly from eclipse (debug button) which apparently results in
adb install!

Where is my bug.. is it some permission access to my filesystem maybe?

/Palsson


On Sep 6, 11:15 am, Palsson palsson...@gmail.com wrote:
 Hello Ed,

 I tried with the adb install command from the shell.
 It doesn't work.
 Only adb push.

 /Palsson

 On Sep 6, 2:08 am, Ed edscha...@gmail.com wrote:







  If it's not a device storage issue then the first place I would start is
  running adb kill-server and adb start-server to restart adb.

  Not 100% sure what your problem is - you can use the adb push command but
  cannot use the adb install command?

  Don't forget that internal memory and SD memory are different so one may
  have room while the other doesn't.

  Cheers,

  Ed

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

2011-09-06 Thread Appaholics
Read my tutorial at
http://www.appaholics.in/using-a-hardware-device-for-debugging/. This error
and how to fix it is discussed there.

Thanks

On Tue, Sep 6, 2011 at 3:45 PM, Palsson palsson...@gmail.com wrote:

 Just wanted to inform on this..

 I'm using NFS.

 I can do this:
 adb push myapp.apk /data/app
 Find it on my target display and execute
 Open DDMS in eclipse and activate debug from there.

 I can't do this:
 adb install myapp.apk
 or
 Debug directly from eclipse (debug button) which apparently results in
 adb install!

 Where is my bug.. is it some permission access to my filesystem maybe?

 /Palsson


 On Sep 6, 11:15 am, Palsson palsson...@gmail.com wrote:
  Hello Ed,
 
  I tried with the adb install command from the shell.
  It doesn't work.
  Only adb push.
 
  /Palsson
 
  On Sep 6, 2:08 am, Ed edscha...@gmail.com wrote:
 
 
 
 
 
 
 
   If it's not a device storage issue then the first place I would start
 is
   running adb kill-server and adb start-server to restart adb.
 
   Not 100% sure what your problem is - you can use the adb push command
 but
   cannot use the adb install command?
 
   Don't forget that internal memory and SD memory are different so one
 may
   have room while the other doesn't.
 
   Cheers,
 
   Ed

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

2011-09-06 Thread Indicator Veritatis
Is the adb shell's version of 'ps' that different from the standard?
The standard 'ps' shows -t being for 'terminal', not for 'thread'. 'ps
-eLf' is the standard way to get thread info.

On Sep 4, 7:17 pm, Ubuntu guy sam_...@yahoo.co.in wrote:
 adb shell ps -t browser_pid should give thread info

 On Sep 2, 6:21 am, Jack Harvard jack.harv...@gmail.com wrote:

  Thanks a lot, unfortunately we use BusyBox as the filesystem, the 'top' 
  command options are slightly different,  'top -b' got me something as 
  follows, but would like to get something as you did (suppose you use ps 
  command, i couldn't get exactly the same output as yours, would be nice to 
  have the function names printed out).

  Mem: 189324K used, 65772K free, 0K shrd, 864K buff, 78104K cached
  CPU: 50.0% usr  0.0% sys  0.0% nic 50.0% idle  0.0% io  0.0% irq  0.0% sirq
  Load average: 0.18 0.17 0.09 4/298 1085
   PID  PPID USER     STAT   VSZ %MEM CPU %CPU COMMAND
   728   727 1000     S     136m 54.7   2  0.0 system_server
  1027   727 10030    R     128m 51.2   3  0.0 com.android.browser
   786   727 1001     S    86028 33.6   0  0.0 com.android.phone
   868   727 10005    S    83568 32.6   0  0.0 android.process.acore
   960   727 10029    S    83516 32.6   1  0.0 com.android.mms
   779   727 10012    S    78344 30.6   0  0.0 com.android.inputmethod.latin
   787   727 1000     S    76668 29.9   1  0.0 com.android.systemui
   788   727 10020    S    76120 29.7   1  0.0 com.android.launcher
   932   727 10016    S    73868 28.8   0  0.0 com.android.email
  1002   727 10027    S    73584 28.7   2  0.0 com.cooliris.media
   905   727 10003    S    73176 28.5   3  0.0 android.process.media
   916   727 10006    S    72168 28.1   1  0.0 com.android.deskclock
   945   727 10025    S    72040 28.1   3  0.0 com.android.providers.calendar
   985   727 10013    S    71856 28.0   0  0.0 com.android.quicksearchbox
   899   727 10002    S    71448 27.9   1  0.0 com.android.bluetooth
   977   727 10008    S    71384 27.8   0  0.0 com.android.music
   993   727 10014    S    70820 27.6   0  0.0 com.android.protips

  On 2 Sep 2011, at 00:11, Dianne Hackborn wrote:

   Many of those probably aren't even browser threads, but threads for 
   Dalvik and the application framework.  For example, here is a list of 
   threads in my browser:

   1  7035    native  79      21      main    
   *2 7038    vmwait  10      0       GC      
   *3 7040    vmwait  0       0       Signal Catcher  
   *4 7041    running 0       5       JDWP    
   *5 7042    vmwait  13      7       Compiler        
   *6 7043    wait    0       0       ReferenceQueueDaemon    
   *7 7044    wait    0       0       FinalizerDaemon
   *8 7045    timed-wait      0       0       FinalizerWatchdogDaemon
   9  7046    native  0       0       Binder Thread #1        
   10 7047    native  0       0       Binder Thread #2        
   11 7057    wait    0       0       pool-2-thread-1
   12 7050    native  0       0       CookieSyncManager      
   13 7056    timed-wait      2       0       pool-1-thread-2
   14 7058    native  322     30      WebViewCoreThread      
   15 7053    native  2       1       BackgroundHandler      
   16 7054    timed-wait      0       0       pool-1-thread-1
   17 7059    wait    1       0       AsyncTask #1    
   18 7062    native  8       1       TexturesGenerator      
   *19        7063    wait    10      1       Thread-183      
   20 7067    native  0       0       Thread-185      
   21 7066    native  6       0       Thread-186      
   22 7070    wait    10      1       AsyncTask #2    
   23 7074    native  18      51      Thread-188      
   24 7076    native  0       0       Thread-189      
   25 7077    wait    0       0       AsyncTask #3    
   26 7078    wait    10      1       AsyncTask #4    
   27 7079    wait    11      0       AsyncTask #5    

   WebViewCoreThread is I believe the main browser thread.  You can easily 
   see what threads are actually using CPU with adb shell top -m 10 -t 
   while you are using the browser.

   On Thu, Sep 1, 2011 at 12:15 PM, Jack Harvard jack.harv...@gmail.com 
   wrote:
   Thanks for your reply. I'm on the research side, rather than development. 
   I observed 17-22 threads from com.android.browser, suppose only one of 
   those thread is doing the real work of rendering the page.

   On 31 Aug 2011, at 22:58, Dianne Hackborn wrote:

I really don't know what you are trying to get at.  As I said, as far 
as I know browser CPU use is generally pretty single-threaded -- the 
DOM rendering and JavaScript interpreter all need to run in the same 
thread.  Just creating more threads doesn't magically allow this work 
to be spread across them.

And again, Gingerbread was not written for multi-core CPUs.  In fact if 
you try to run stock GB on a multi-core CPU you will be extremely 
unstable because there are many things not working correctly for SMP, 
especially ARM SMP.  So 

[android-developers] Adroid mystery of view changing class

2011-09-06 Thread slipp3ry
CODE:


  Button b = new Button(this);
b.setText(m.group());

RelativeLayout.LayoutParams lP = new
RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT,
RelativeLayout.LayoutParams.WRAP_CONTENT);

int iDELETE_AFTER_TEST_ID;

if(bLast != null){
/*
 * Add a new move button
 */
iId = bLast.getId();
lP.addRule(RelativeLayout.RIGHT_OF, iId);
bLast = b;
bLast.setId(iId + 1);
iDELETE_AFTER_TEST_ID = iId + 1;
}else{
/*
 * Add the first of the move buttons
 */
bLast = b;
bLast.setId(R.id.base_button_arrangement_id);
lP.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

iDELETE_AFTER_TEST_ID = R.id.base_button_arrangement_id;
}

b.setLayoutParams(lP);
b.setPadding(20, 10, 20, 50);
Log.d(TAG,  going to add =  + b.getId() +  class =  +
b.getClass());
rl.addView(b);
mNumberofMoveOptions++;



View v = findViewById(iDELETE_AFTER_TEST_ID);

if(v != null){
if(v.getClass() == Button.class){
Log.d(TAG,  id =  + b.getId() +  class =  +
b.getClass());
}else{
Log.e(TAG, Corruption has occured - not button type:
 +
iDELETE_AFTER_TEST_ID +  class:  +
v.getClass());
}
}else{
Log.e(TAG, Corruption has occured - view is null:  +
iDELETE_AFTER_TEST_ID);
}




DEBUG:


going to add = 2130968576 class = class android.widget.Button
id = 2130968576 class = class android.widget.Button

going to add = 2130968577 class = class android.widget.Button
id = 2130968577 class = class android.widget.Button

going to add = 2130968578 class = class android.widget.Button
id = 2130968578 class = class android.widget.Button

going to add = 2130968579 class = class android.widget.Button
id = 2130968579 class = class android.widget.Button

going to add = 2130968580 class = class android.widget.Button
id = 2130968580 class = class android.widget.Button

going to add = 2130968581 class = class android.widget.Button
id = 2130968581 class = class android.widget.Button

going to add = 2130968582 class = class android.widget.Button
Corruption has occured - not button type: 2130968582 class: class
android.widget.TextView

going to add = 2130968583 class = class android.widget.Button
id = 2130968583 class = class android.widget.Button

going to add = 2130968584 class = class android.widget.Button
id = 2130968584 class = class android.widget.Button

going to add = 2130968585 class = class android.widget.Button
id = 2130968585 class = class android.widget.Button

going to add = 2130968586 class = class android.widget.Button
id = 2130968586 class = class android.widget.Button

going to add = 2130968587 class = class android.widget.Button
id = 2130968587 class = class android.widget.Button

going to add = 2130968588 class = class android.widget.Button
id = 2130968588 class = class android.widget.Button



QUESTION:

So even though the debug clearly shows the widget getting created as a
Button, when I query it directly afterwards it has been converted or
changed into a TextView.

Am I querying incorrectly, or is the ID getting recycled or is
something else happening?

Buttons that I create before an after this particular one work
perfectly fine and are created as and remain of the Button widget
type.

Many thanks for any help in advance.

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


[android-developers] fragment in android

2011-09-06 Thread mohana priya
I am new to android.i need to divide the android screen using
fragment.But i dont know how to do.If anybody know how to code please
tell me.

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


Re: [android-developers] minSdkVersion unintended side effects

2011-09-06 Thread Mark Murphy
The app probably is missing the supports-screens element to define
what screen sizes it supports. Apps targeting API Level 3 or lower are
assumed to only support normal-sized screens.

On Mon, Sep 5, 2011 at 5:34 PM, tillYourNightJobPays
rs.mill...@gmail.com wrote:
 Discovered a strange issue using this so thought I'd get clarification
 on expected or not and maybe some education on this property.

 I took the FingerPaint sample from the graphics API demos to integrate
 it into my own application. It worked well except it only drew in the
 upper-left corner of the screen. Using the straight API demo on my
 phone didn't show this, so traced the issue to this line in the
 Manifest:

 uses-sdk android:minSdkVersion=10/uses-sdk

 If set to a value of 4 or higher, it shows this limited drawing
 effect. If it's removed or = 3, then it works fine.

 Can anyone help explain if this is expected and maybe some background
 on this? From the documentation I understand that it should only
 impacts if the application is able to be installed on targets lower
 than the value specified. This seems to affect functionality so
 wondering if I need to be reading about api version changes somewhere.

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




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

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

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


Re: [android-developers] Adroid mystery of view changing class

2011-09-06 Thread Mark Murphy
Do not use getId() as the basis for assigning other IDs to other
widgets. You want to stay very far away from the numbers used by the
build tools.

On Tue, Sep 6, 2011 at 6:39 AM, slipp3ry slipp3ry_whip...@yahoo.co.uk wrote:
 CODE:


  Button b = new Button(this);
        b.setText(m.group());

        RelativeLayout.LayoutParams lP = new
 RelativeLayout.LayoutParams(
                RelativeLayout.LayoutParams.WRAP_CONTENT,
                RelativeLayout.LayoutParams.WRAP_CONTENT);

        int iDELETE_AFTER_TEST_ID;

        if(bLast != null){
            /*
             * Add a new move button
             */
            iId = bLast.getId();
            lP.addRule(RelativeLayout.RIGHT_OF, iId);
            bLast = b;
            bLast.setId(iId + 1);
            iDELETE_AFTER_TEST_ID = iId + 1;
        }else{
            /*
             * Add the first of the move buttons
             */
            bLast = b;
            bLast.setId(R.id.base_button_arrangement_id);
            lP.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

            iDELETE_AFTER_TEST_ID = R.id.base_button_arrangement_id;
        }

        b.setLayoutParams(lP);
        b.setPadding(20, 10, 20, 50);
        Log.d(TAG,  going to add =  + b.getId() +  class =  +
 b.getClass());
        rl.addView(b);
        mNumberofMoveOptions++;



        View v = findViewById(iDELETE_AFTER_TEST_ID);

        if(v != null){
            if(v.getClass() == Button.class){
                Log.d(TAG,  id =  + b.getId() +  class =  +
 b.getClass());
            }else{
                Log.e(TAG, Corruption has occured - not button type:
  +
                        iDELETE_AFTER_TEST_ID +  class:  +
 v.getClass());
            }
        }else{
            Log.e(TAG, Corruption has occured - view is null:  +
 iDELETE_AFTER_TEST_ID);
        }




 DEBUG:


 going to add = 2130968576 class = class android.widget.Button
 id = 2130968576 class = class android.widget.Button

 going to add = 2130968577 class = class android.widget.Button
 id = 2130968577 class = class android.widget.Button

 going to add = 2130968578 class = class android.widget.Button
 id = 2130968578 class = class android.widget.Button

 going to add = 2130968579 class = class android.widget.Button
 id = 2130968579 class = class android.widget.Button

 going to add = 2130968580 class = class android.widget.Button
 id = 2130968580 class = class android.widget.Button

 going to add = 2130968581 class = class android.widget.Button
 id = 2130968581 class = class android.widget.Button

 going to add = 2130968582 class = class android.widget.Button
 Corruption has occured - not button type: 2130968582 class: class
 android.widget.TextView

 going to add = 2130968583 class = class android.widget.Button
 id = 2130968583 class = class android.widget.Button

 going to add = 2130968584 class = class android.widget.Button
 id = 2130968584 class = class android.widget.Button

 going to add = 2130968585 class = class android.widget.Button
 id = 2130968585 class = class android.widget.Button

 going to add = 2130968586 class = class android.widget.Button
 id = 2130968586 class = class android.widget.Button

 going to add = 2130968587 class = class android.widget.Button
 id = 2130968587 class = class android.widget.Button

 going to add = 2130968588 class = class android.widget.Button
 id = 2130968588 class = class android.widget.Button



 QUESTION:

 So even though the debug clearly shows the widget getting created as a
 Button, when I query it directly afterwards it has been converted or
 changed into a TextView.

 Am I querying incorrectly, or is the ID getting recycled or is
 something else happening?

 Buttons that I create before an after this particular one work
 perfectly fine and are created as and remain of the Button widget
 type.

 Many thanks for any help 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




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

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

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


Re: [android-developers] fragment in android

2011-09-06 Thread Rocky
go to this link, if u face any specific issue, post your code and error...

http://developer.android.com/guide/topics/fundamentals/fragments.html



On Tue, Sep 6, 2011 at 4:27 PM, mohana priya gpriyara...@gmail.com wrote:

 I am new to android.i need to divide the android screen using
 fragment.But i dont know how to do.If anybody know how to code please
 tell me.

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030274295
(R) +919886336619

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

2011-09-06 Thread slipp3ry
Hello Mark, thanks for looking at my problem.

Sorry it's not clear from the code, the first instance of the ID's is
driven by

bLast.setId(R.id.base_button_arrangement_id);

A user defined id rather than build tool assigned Id's, is it still
wrong to use the getId call?



On 6 Sep, 12:11, Mark Murphy mmur...@commonsware.com wrote:
 Do not use getId() as the basis for assigning other IDs to other
 widgets. You want to stay very far away from the numbers used by the
 build tools.









 On Tue, Sep 6, 2011 at 6:39 AM, slipp3ry slipp3ry_whip...@yahoo.co.uk wrote:
  CODE:

   Button b = new Button(this);
         b.setText(m.group());

         RelativeLayout.LayoutParams lP = new
  RelativeLayout.LayoutParams(
                 RelativeLayout.LayoutParams.WRAP_CONTENT,
                 RelativeLayout.LayoutParams.WRAP_CONTENT);

         int iDELETE_AFTER_TEST_ID;

         if(bLast != null){
             /*
              * Add a new move button
              */
             iId = bLast.getId();
             lP.addRule(RelativeLayout.RIGHT_OF, iId);
             bLast = b;
             bLast.setId(iId + 1);
             iDELETE_AFTER_TEST_ID = iId + 1;
         }else{
             /*
              * Add the first of the move buttons
              */
             bLast = b;
             bLast.setId(R.id.base_button_arrangement_id);
             lP.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

             iDELETE_AFTER_TEST_ID = R.id.base_button_arrangement_id;
         }

         b.setLayoutParams(lP);
         b.setPadding(20, 10, 20, 50);
         Log.d(TAG,  going to add =  + b.getId() +  class =  +
  b.getClass());
         rl.addView(b);
         mNumberofMoveOptions++;

         View v = findViewById(iDELETE_AFTER_TEST_ID);

         if(v != null){
             if(v.getClass() == Button.class){
                 Log.d(TAG,  id =  + b.getId() +  class =  +
  b.getClass());
             }else{
                 Log.e(TAG, Corruption has occured - not button type:
   +
                         iDELETE_AFTER_TEST_ID +  class:  +
  v.getClass());
             }
         }else{
             Log.e(TAG, Corruption has occured - view is null:  +
  iDELETE_AFTER_TEST_ID);
         }

  DEBUG:

  going to add = 2130968576 class = class android.widget.Button
  id = 2130968576 class = class android.widget.Button

  going to add = 2130968577 class = class android.widget.Button
  id = 2130968577 class = class android.widget.Button

  going to add = 2130968578 class = class android.widget.Button
  id = 2130968578 class = class android.widget.Button

  going to add = 2130968579 class = class android.widget.Button
  id = 2130968579 class = class android.widget.Button

  going to add = 2130968580 class = class android.widget.Button
  id = 2130968580 class = class android.widget.Button

  going to add = 2130968581 class = class android.widget.Button
  id = 2130968581 class = class android.widget.Button

  going to add = 2130968582 class = class android.widget.Button
  Corruption has occured - not button type: 2130968582 class: class
  android.widget.TextView

  going to add = 2130968583 class = class android.widget.Button
  id = 2130968583 class = class android.widget.Button

  going to add = 2130968584 class = class android.widget.Button
  id = 2130968584 class = class android.widget.Button

  going to add = 2130968585 class = class android.widget.Button
  id = 2130968585 class = class android.widget.Button

  going to add = 2130968586 class = class android.widget.Button
  id = 2130968586 class = class android.widget.Button

  going to add = 2130968587 class = class android.widget.Button
  id = 2130968587 class = class android.widget.Button

  going to add = 2130968588 class = class android.widget.Button
  id = 2130968588 class = class android.widget.Button

  QUESTION:

  So even though the debug clearly shows the widget getting created as a
  Button, when I query it directly afterwards it has been converted or
  changed into a TextView.

  Am I querying incorrectly, or is the ID getting recycled or is
  something else happening?

  Buttons that I create before an after this particular one work
  perfectly fine and are created as and remain of the Button widget
  type.

  Many thanks for any help 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

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

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

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

[android-developers] Horizontal scrolling in grid view

2011-09-06 Thread Rikki
I had to use a horizontal scrolling as well as vertical scrolling in
my activity and I searched a lot on this but found no post that
addresses this problem. I don't know why Google has not provided a
resolution to this yet as this is absolutely needed feature one will
want in his data driven application. I have tried using the following
solution which helped me achieve this functionality. Hope it helps and
benefit others too.

The horizontalscrollview enables you to scroll horizontally and the
gridview enables vertical scrolling.

P.S.: This is working for Android tablets(api level 12). I don't know
if horizontalscrollview is supported by 2.x SDK

HorizontalScrollView
android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=This is a long string. Hope this doesn't 
fit
the layout and goes beyond the width of the layout.This is a long
string. Hope this doesn't fit the layout and goes beyond the width of
the layout.This is a long string. Hope this doesn't fit the layout and
goes beyond the width of the layout.This is a long string. Hope this
doesn't fit the layout and goes beyond the width of the layout. /
GridView
   android:layout_width=fill_parent
android:layout_height=fill_parent
android:padding=20dp
android:verticalSpacing=20dp
android:horizontalSpacing=50dp
android:numColumns=10
android:columnWidth=90dp
android:stretchMode=columnWidth
android:gravity=center/
/LinearLayout
/HorizontalScrollView

~Rikki

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

2011-09-06 Thread Mark Murphy
On Tue, Sep 6, 2011 at 7:19 AM, slipp3ry slipp3ry_whip...@yahoo.co.uk wrote:
 Hello Mark, thanks for looking at my problem.

 Sorry it's not clear from the code, the first instance of the ID's is
 driven by

 bLast.setId(R.id.base_button_arrangement_id);

 A user defined id rather than build tool assigned Id's

No, all IDs defined as R constants are tool-assigned values, since you
did not specify the number. A developer-defined value would be
something like:

1

or possibly even:

1337

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

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

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


[android-developers] How to keep state on expandablelistview when changing orientation

2011-09-06 Thread Jump
Hi

I have implemented a ExtendableListView just like the ExtendableListView2 
example from the ApiDemos. But I don't understand why the extended/collapsed 
states are not saved when changing orientation or starting an activity and 
going back. I have my own layout which contains

ExpandableListView  android:id=@id/android:listandroid:layout_width=
match_parentandroid:layout_height=match_parent  /
ExpandableListView

Do I have to implement state myself?

Thx


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

2011-09-06 Thread Fred Niggle
If you naviagte to /ECLIPSE/android-sdk-linux_x86/samples, you'll find
the API demos.
create a new project in eclipse from the samples, and you'll be able
to fins the speech to text demo.

Hope this helps,
Fred

On 6 September 2011 08:18, ko5tik kpriblo...@yahoo.com wrote:


 On Sep 6, 7:56 am, HariRam hariram1...@gmail.com wrote:
 Thanks for previous replies,

               Is it possible to convert voice as a text. i searched through
 website, there is more guidance for text to speech but none for voice to
 text. if anyone have idea for how to transmit voice to text pls guide me.

 There are libraries which can do speech recognition, but I doubt  thet
 there are free and open source libraries
 to do this.   SoI would propose that you learn some math,  and start
 reading scientifical publications -  there should be something from
 IEEE

 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: stop my app from being updated(auto-update is disabled)

2011-09-06 Thread MS
The reason as to why I asked this was due to the following use case:

Consider that there are two apps App-A and App-B.
App-A(Version 1) will work only if App-B with Version 1 is available
on phone.
Now if the user updates App-B to version 2,the App-A(version-1) will
not work.
I get a callback once App-B is upgraded to version2, once upgraded i
cannot revert back to version-1 apk of App-B (I guess only pre-
installed apps have this option).
Instead can I stop my App-B from being upgraded to version 2 and
probably show a notification to user saying that this version of App-B
is not compatible???
As of now,I have to ask the user to upgrade App-A to version 2 if
available, else wait.


On Sep 5, 4:08 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Sep 5, 2011 at 3:45 AM, MS ms.jackspar...@gmail.com wrote:
  Consider that user hasmyappwith version 1 andauto updateoption is
 disabled/off. I have an upgrade in the market formyapp(say version
  2).
  User gets a notification saying, updates available and updatesmy
 app.
  Now based on some requirement I needmyappnot be be upgraded to
  version 2.
  Can this be done?

 Sure. Don't ship version 2 or any other upgrades to yourapp, ever.

 If you ship it, everybody gets it, both existing users (as an upgrade)
 and new users (as their initial install).

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

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

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


[android-developers] Displaying NMEA sentences

2011-09-06 Thread WolpTec
I want to display raw nmea sentences. In order to do so I wrote some 
code (excerpts below). The problem is that it doesn't work in most 
cases. It doesn't work on the emulator using versions 2.1, 2.2 or 2.3, 
neither on my real existing Samsung Galaxy S5660, running Android 2.2, 
but it *does run* on a friends Samsung Nexus with version 2.3, as he 
told me.


Actually the onNmeaReceived() handler is never called, though 
onLocationChanged() *is* beeing called when I send a couple of nmea 
sentences to the emulator via telnet commands. There is an app called 
GPS Test which is surely based on raw nmea, and this app works on my 
phone device. Im wondering what they do different than I do? Any ideas?


TIA,
Hans

private GpsStatus.NmeaListener nmeaListener = new GpsStatus.NmeaListener() {
   public void onNmeaReceived(long timestamp, String nmea) {
   UpdateDisplay(nmea); 
   }
};  

private void UpdateDisplay(String str) {
logBox.AddLine(str);
}

private final LocationListener locationListener = new LocationListener() {
public void onLocationChanged(Location l) { 
UpdateDisplay(Pos:  + Double.toString(l.getLatitude()) +   
 +

Double.toString(l.getLongitude()));
}
public void onProviderDisabled(String provider){}
public void onProviderEnabled(String provider) {}
  	public void onStatusChanged(String provider, int status, Bundle 
extras) {}

};

public void InitGps() { 
locMan = (LocationManager) getSystemService(Context.LOCATION_SERVICE);

try {   
locMan.addNmeaListener(nmeaListener);
UpdateDisplay(Started ...); 
}
catch(Exception ex) {
ex.printStackTrace();
}   
	locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, 
locationListener);

}

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

2011-09-06 Thread Logesh
ya you are right .
 I am getting the same error when i run my application .
 when i look in logcat for debugging i found one reported problem as
the process exits because of uncaught exceptions 
could not instantiate etc .. I dont know from where the problem is
arising.


On Sep 5, 11:49 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 Mark-

 Your advice is good, as always, but I think the OP will be in need of
 advice that is a little more specific, namely, HOW is he going to find
 the cause of the error using adb logcat etc?

 Of course, since all we know is that he sees that one error, it is
 hard to get more specific. But I believe it would be helpful to point
 out to the OP in general terms what he should look for, i.e., look in
 the stack trace containing the unknown error for any exceptions
 involving his own package: if he finds one, he can be 99% certain that
 is the cause of the error. If he does not find one, then it is harder:
 he will have to figure out what it was that the Launcher needed to
 start his app, but he forgot to provide, such as listing all required
 permissions and Activities in the Manifest.

 On Sep 5, 4:19 pm, Mark Murphy mmur...@commonsware.com wrote:







  Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
  LogCat and look at the stack trace associated with your error.

  On Mon, Sep 5, 2011 at 11:05 PM, NWD Sports nwdspo...@hotmail.com wrote:
   I have an app that I created that worked perfectly whenever I debugged it.
   Now whenever I try to run it, I get an error saying “unexpected error
   com.myPackageName.app could not be started.” the only option I get is to
   force a close of the app. Does anyone know what is wrong?

   Nicholas L. – NWD Sports.com

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

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

  Android Training in NYC:http://marakana.com/training/android/

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


[android-developers] Re: Why is onKeyUp or onKeyDown not getting called for certain characters?

2011-09-06 Thread Miha
Through testing, I found the answer. Most unicode characters are
handled by onKeyMultiple event handler. If you get keyCode ==
KeyEvent.KEYCODE_UNKNOWN and event.getAction ==
KeyEvent.ACTION_MULTIPLE, then you can obtain the unicode character by
calling event.getCharacters(). It is actually all documented, though a
bit hard to find.

On Aug 25, 9:41 pm, Miha miha.valen...@gmail.com wrote:
 In my activity, I have an onKeyUp and onKeyDown event handlers, which
 are called for normal characters and even for some unicode characters
 like cedilla (ç). But not for others like á, à, ü, é, č, š, ž, è, ...

 Why is that? And how can I register those key presses (or better yet,
 characters)?

 I am testing this on a Samsung Galaxy S2 with soft keyboard (samsung
 and swype keyboards), where accented characters are available with a
 long key press. It is interesting to note that even cedilla (ç), which
 is available with the same long press, does get registered with
 onKeyUp/Down event handler.

 I am using onKeyUp/Down on the activity. There is no text box or
 anything text related on the main view. Just a modified ImageView.

 I tested this in an emulator as well (default android image 2.3.3) and
 behaviour is similar to real device.

 Thanks,
  Miha.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: stop my app from being updated(auto-update is disabled)

2011-09-06 Thread Mark Murphy
On Tue, Sep 6, 2011 at 7:19 AM, MS ms.jackspar...@gmail.com wrote:
 The reason as to why I asked this was due to the following use case:

 Consider that there are two apps App-A and App-B.
 App-A(Version 1) will work only if App-B with Version 1 is available
 on phone.
 Now if the user updates App-B to version 2,the App-A(version-1) will
 not work.

Then write a better App-B, that supports both App-A version-1 and
App-A version-2. App-B exposed an API. You need to maintain backwards
compatibility with that API.

 I get a callback once App-B is upgraded to version2, once upgraded i
 cannot revert back to version-1 apk of App-B (I guess only pre-
 installed apps have this option).
 Instead can I stop my App-B from being upgraded to version 2 and
 probably show a notification to user saying that this version of App-B
 is not compatible???

You cannot stop App-B from being upgraded.

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

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

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


[android-developers] How to read RFID tag using Nexus s device?

2011-09-06 Thread Adiga
Hi,
  How to read RFID tag using Nexus s device? If any one knows help
me.

Regards,
Adiga

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

2011-09-06 Thread Mark Murphy
On Tue, Sep 6, 2011 at 8:16 AM, Adiga jakad...@gmail.com wrote:
      How to read RFID tag using Nexus s device? If any one knows help
 me.

http://developer.android.com/guide/topics/nfc/index.html

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

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

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


[android-developers] Black screen after switching to another app

2011-09-06 Thread MobileVisuals
My app has a SurfaceView and a GLSurfaceView.  I can switch back and
forth between these. The SurfaceView is the application GUI.

I test switching to another app. I can then switch back to the
GLSurfaceView in my app. I then try to switch back to the
GLSurfaceView,where the application GUI is. Here is where the problem
occurs. A black screen is shown instead of the GUI.

The app still works, because the application menu is shown when the
menu button is pressed. But nothing is drawn on the screen, it is only
black. I have tried almost everything to fix this, I have checked that
the thread is running and that no instance of any object (like the
SurfaceHolder) is null. What could be the reason for this black screen?

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

2011-09-06 Thread Daniel Drozdzewski
On 6 September 2011 13:32, MobileVisuals eyv...@astralvisuals.com wrote:
 My app has a SurfaceView and a GLSurfaceView.  I can switch back and
 forth between these. The SurfaceView is the application GUI.

 I test switching to another app. I can then switch back to the
 GLSurfaceView in my app. I then try to switch back to the
 GLSurfaceView,where the application GUI is. Here is where the problem
 occurs. A black screen is shown instead of the GUI.

 The app still works, because the application menu is shown when the
 menu button is pressed. But nothing is drawn on the screen, it is only
 black. I have tried almost everything to fix this, I have checked that
 the thread is running and that no instance of any object (like the
 SurfaceHolder) is null. What could be the reason for this black screen?


Do you call GLSurfaceView.resume() from Activity.resume() ?

By the same token you should be calling GLSurfaceView.pause() in the
right moment of your activity lifecycle.

HTH

-- 
Daniel Drozdzewski

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

2011-09-06 Thread ngbl
Hello, Thank you for taking the time to answer,

NWD, something like that was trying to do but didn't work. I'll try
again!.

Kris, I thing it's possible because apps like these are avaible on
android market. This apps can block anything even the contact list.

Jim, thanks for your time.

I don't want to do this to hurt somebody is just for learning purpose
and a project.

If someone else want to  contribute, I'll appreciate it.

Regards,
ngbl

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 install App Inventor Windows drivers in Samsung Galaxy SII device?

2011-09-06 Thread davidorti
Hi,

I have just tried to use the Android App Inventor (yes, i'm a newbie)
and it requires to install some drivers in my mobile phone. I had been
looking for it (http://developer.android.com/sdk/oem-usb.html) but i
haven´t found any drivers. Anyone knows where could I found it?

Thanks for all.

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


[android-developers] Help Me

2011-09-06 Thread Sreenath Reddy Bollam
Hello,
I have developed a small application in which i can store all my
passwords of different domains.
For Example: I saved my email and password of gmail in that
application. When i click my saved entry ,the browser will be
launched.
Now, i want to set the email and password directly to the fields in
the site rather than re-entering the username and password.
Anyone please tell me how to do this

Thanks in Advance,

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


[android-developers] 2.2 emulator

2011-09-06 Thread swarnendu
when i run clickOnView() robotium command on a tab of music player. it
is performing the desire action but in case if i click on a tab
previously open then it ranout of the program. throwing exception but
same problem is not there in tab under contacts.

so what should i do? to run test cases.
using eclipse , robotium, android 2.2,

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


[android-developers] multi page form

2011-09-06 Thread ksmobilejava
Hello ,
I am new to android paltform.
How to navigate through multi page form application? how to handle
next and back button click event?
My point of confusion is that, form filling is single activity , then
how to display multiple pages of the form and how to navigate back and
forth from pages in that activity?

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

2011-09-06 Thread sanj sahayam
Have you read these articles on SO: 

http://stackoverflow.com/questions/4709137/solution-android-install-failed-insufficient-storage-error
http://stackoverflow.com/questions/6788996/installation-error-install-failed-insufficient-storage-during-runing-emulator

Have you also tried it by wiping the data on the emulator before launching?

when using adb push which filesystem location do you push to?

Cheers,

Sanj

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [ASK] HOW TO SEND LONGITUDE LATITUDE TO ANOTHER ANDROID PHONE VIA INTERNET..

2011-09-06 Thread dede pradana
i'm newbie.. give me your explanation master.. thx before,, :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADB could see Samsung Galaxy Tab 10.1 but now it can't!

2011-09-06 Thread Jaye
This happened on my galaxy tab 7. For me to fix my issue, I either
restarted the device or toggled the ability to debug application on
the device.

On Sep 5, 10:15 am, RodneyJLambert rodney.j.lamb...@gmail.com wrote:
 I have a Ubuntu development system that I have been using to do
 Android development and until this week the ADB would detect my Galaxy
 Tab 10.1, now the ADB will not list the tab as an available device.

 lsusb shows :

 $ lsusb
 Bus 002 Device 046: ID 04e8:685e Samsung Electronics Co., Ltd
 Bus 002 Device 005: ID 059b:0370 Iomega Corp.
 Bus 002 Device 004: ID 0518:0001 EzKEY Corp. USB to PS2 Adaptor v1.09
 Bus 002 Device 003: ID 058f:6254 Alcor Micro Corp. USB Hub
 Bus 002 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop
 Laser
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 adb devices returns :
 $./adb devices
 List of devices attached

 51-android.rules :
 SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, MODE=0666
 SUBSYSTEM==usb, SYSFS{idVendor}==22b8, MODE=0666
 SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0666
 SUBSYSTEM==usb, SYSFS{idVendor}==1004, MODE=0666

 The result of running uname -r is :
 2.6.35-30-generic

 Ubuntu 10.10

 Android SDK Tools, revision 12
 Android SDK Platform-tools, revision 6

 The ADB can see my other devices (G2 and G2X) like normal.   It seems
 like something has changed in Ubuntu that is causing the Galaxy Tab
 10.1 to be treated differently that it was two weeks ago!   It is also
 worth mentioning that ADB on my Windows Vista system can see the tab.

 Does anyone have any ideas about what might have changed to cause a
 valid target device to suddenly no longer be detected by ADB?

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

2011-09-06 Thread Rafael Maas
Try to uninstall your app, and clean up your eclipse's project.


2011/9/6 Indicator Veritatis mej1...@yahoo.com:
 Mark-

 Your advice is good, as always, but I think the OP will be in need of
 advice that is a little more specific, namely, HOW is he going to find
 the cause of the error using adb logcat etc?

 Of course, since all we know is that he sees that one error, it is
 hard to get more specific. But I believe it would be helpful to point
 out to the OP in general terms what he should look for, i.e., look in
 the stack trace containing the unknown error for any exceptions
 involving his own package: if he finds one, he can be 99% certain that
 is the cause of the error. If he does not find one, then it is harder:
 he will have to figure out what it was that the Launcher needed to
 start his app, but he forgot to provide, such as listing all required
 permissions and Activities in the Manifest.

 On Sep 5, 4:19 pm, Mark Murphy mmur...@commonsware.com wrote:
 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your error.



 On Mon, Sep 5, 2011 at 11:05 PM, NWD Sports nwdspo...@hotmail.com wrote:
  I have an app that I created that worked perfectly whenever I debugged it.
  Now whenever I try to run it, I get an error saying “unexpected error
  com.myPackageName.app could not be started.” the only option I get is to
  force a close of the app. Does anyone know what is wrong?

  Nicholas L. – NWD Sports.com

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

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

 Android Training in NYC:http://marakana.com/training/android/

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

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


[android-developers] Luncher activity will be called twice after phone boot

2011-09-06 Thread kazuya
Broadcast receiver

public void onReceive(Context context, Intent intent) {

// make sure you receive BOOT_COMPLETED
String action = ;

if ( intent != null  intent.getAction() != null )
{
action = intent.getAction();
Log.d([OriReceiver], action=+action);

if ( action.equals(android.intent.action.BOOT_COMPLETED) )
{
Intent newIntent = new Intent();
newIntent.setClassName(xxx, xxxi.Entry);
newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(newIntent);
}
}
}


Entry.java

public void onCreate(Bundle savedInstanceState)
{

   init();
}

private void init()
{
 Intent intent = new Intent(getBaseContext(), Login.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_SINGLE_TOP);
startActivity(intent);
finish();
}


The problem is Entry is sometimes called twice. onCreate() is called
twice. Somtimes, onCreate() of Login is called twice.
When the activity is loaded in the phone, i have to unlock it to see
the GUI.

Please help me in this one.

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

2011-09-06 Thread cpleng7
Could anybody tell me why my emulator appear this and not the Hello
Android?

https://picasaweb.google.com/101063952035432254010/Android#5649189156141413618

I have follow the step that introduce from the android tutorial.
Please help me to solve this problem. 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: Why the emulator appear this?

2011-09-06 Thread WolpTec

Am 06.09.2011 12:26, schrieb cpleng7:


https://picasaweb.google.com/101063952035432254010/Android#5649189156141413618


Page not found!

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

2011-09-06 Thread Kristopher Micinski
On Tue, Sep 6, 2011 at 9:16 AM, ngbl natalyabla...@gmail.com wrote:

 Hello, Thank you for taking the time to answer,

 NWD, something like that was trying to do but didn't work. I'll try
 again!.

 Kris, I thing it's possible because apps like these are avaible on
 android market. This apps can block anything even the contact list.

 Jim, thanks for your time.

 I don't want to do this to hurt somebody is just for learning purpose
 and a project.

 If someone else want to  contribute, I'll appreciate it.

 Regards,
 ngbl


This would be interesting to see, I'm guessing that what they're doing is
something shady (i.e., not intended for the system to operate that way.)
 Can you point me at one of these apps, just so I can check out what they're
doing behind the scenes?

Kris

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

Re: [android-developers] Re: Once again the INSTALL_FAILED_INSUFFICIENT_STORAGE error

2011-09-06 Thread Latimerius
Thanks for the links, however even those don't seem to mention a solution
(or even a work-around) for pre-2.2 hardware devices ...

On Tue, Sep 6, 2011 at 11:29 AM, sanj sahayam sanjsmail...@gmail.comwrote:

 Have you read these articles on SO:


 http://stackoverflow.com/questions/4709137/solution-android-install-failed-insufficient-storage-error

 http://stackoverflow.com/questions/6788996/installation-error-install-failed-insufficient-storage-during-runing-emulator

 Have you also tried it by wiping the data on the emulator before launching?

 when using adb push which filesystem location do you push to?

 Cheers,

 Sanj

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 create Object in OpenGL ( Problem one object is overlapping on the other object )

2011-09-06 Thread rajiv
Dear all ,

I am facing one problem in openGL i have drawn two object but i am
unable to see the another objects .

i have created a disc with one hole on it  i want to place it on
tower , but when i place the disc I am ubale to see the tower .
Please help me 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


Re: [android-developers] How install App Inventor Windows drivers in

2011-09-06 Thread Jim Graham
On Tue, Sep 06, 2011 at 01:42:14AM -0700, davidorti wrote:

 I have just tried to use the Android App Inventor (yes, i'm a newbie)
 and it requires to install some drivers in my mobile phone.

Granted, it's been a while since I looked at App Inventor, but, umm, the
*Windows* drivers you *MIGHT* need to install are for Windows, not your
phone.  But first, check to see if it works---you may not need to do
anything (I didn't).

Make sure that your USB connection is NOT set to MASS STORAGE.  It
should be set to NONE.  Look at the entries in the Notification bar
and touch the one that says there's a USB connection.  It will pull
up the listing.  Select NONE (or something like that) and then try
using your phone as the emulator.  For mine, it just worked...no
extra drivers needed.

HTH.

Later,
   --jim

-- 
73 DE N5IAL (/4)  | 1) Smoking habanero powder helps defeat that
 Running FreeBSD 7.0|off taste' quite nicely.
spooky1...@gmail.com  | 2) I figure a couple bong hits of [habanero]
ICBM/Hurr.: / 30.44406N   |powder would defeat just about anything!
| 86.59909W--seen in Chile-Heads list

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] How can I connect Dell Streak 7, eLocity devices to my DDMS

2011-09-06 Thread Srinivas Nainala
Hi All,

I am unable to connect/detect Dell Streak 7 and eLocity devices to my
eclipse DDMS interface for seeing debug statements. How can I get rid
of this. Even I have tried in Mac Notebook, its same situation in
Windows 7.

Could you suggest me what are the USB device drivers need to install
for detecting those devices. Is there any way getting debug statements
other than DDMS tool.

Thanks in advance for your help :)

Cheers
Srinivas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 install App Inventor Windows drivers in Samsung Galaxy SII device?

2011-09-06 Thread Kostya Vasilyev
If it works the same as it did with the Galaxy S (1, not 2), then the 
drivers can be installed as part of Samsung's Kies software suite.


06.09.2011 12:42, davidorti пишет:

Hi,

I have just tried to use the Android App Inventor (yes, i'm a newbie)
and it requires to install some drivers in my mobile phone. I had been
looking for it (http://developer.android.com/sdk/oem-usb.html) but i
haven´t found any drivers. Anyone knows where could I found it?

Thanks for all.



--
Kostya Vasilyev

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


[android-developers] Re: How to create Excel/Spread Sheet Programmatically in Android

2011-09-06 Thread srihari babu
Hi pranay,
xls docs means nothing but a comma separated file.
just write some thing in to text file with some commas.
that will give u an excel file.
bye

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

[android-developers] Is there a table that lists permissions with the commands that precipitate their need?

2011-09-06 Thread darrinps
There are some permissions in an app I am working on that I inherited.
It's a large app, and I would like to know if there is a table out
that that tells you what command (read this/write that/etc.) requires
which permission.

In other words, given a permission, is there a way to look up what
command(s) it is related to?

I've tried to Google for this without any luck.

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] Did any one succeed for VPN client?

2011-09-06 Thread Srinivas Nainala
Hi all,

Could you guide me how  can I remotely connect using VPN on Xoom or
other Android devices. Could you give which devices is more flexible
to connect VPN client, if possible share the procedure with me.

At least list some of the VPN client support devices, the requirement
on ATT network and WiFi network.

Cheers
Srinivas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 there a table that lists permissions with the commands that precipitate their need?

2011-09-06 Thread Mark Murphy
On Tue, Sep 6, 2011 at 10:51 AM, darrinps darri...@gmail.com wrote:
 There are some permissions in an app I am working on that I inherited.
 It's a large app, and I would like to know if there is a table out
 that that tells you what command (read this/write that/etc.) requires
 which permission.

Mostly, this is covered by the JavaDocs -- classes or methods that
require a permission will frequently (though not always) mention that
requirement.

 In other words, given a permission, is there a way to look up what
 command(s) it is related to?

Not that I am aware of.

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

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

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


[android-developers] Re: Is there a table that lists permissions with the commands that precipitate their need?

2011-09-06 Thread darrinps
Thanks. That's what I thought after searching for it.

This would be a great addition to the documentation and I would think
that Google would have access to this or could build it easily enough.

The closest thing I have found is using the index in a few of the
Android books I have to look up the permission and then going to where
it is referenced in the book to show what command it is related to.

On Sep 6, 9:53 am, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Sep 6, 2011 at 10:51 AM, darrinps darri...@gmail.com wrote:
  There are some permissions in an app I am working on that I inherited.
  It's a large app, and I would like to know if there is a table out
  that that tells you what command (read this/write that/etc.) requires
  which permission.

 Mostly, this is covered by the JavaDocs -- classes or methods that
 require a permission will frequently (though not always) mention that
 requirement.

  In other words, given a permission, is there a way to look up what
  command(s) it is related to?

 Not that I am aware of.

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

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

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


Re: [android-developers] Re: How to create Excel/Spread Sheet Programmatically in Android

2011-09-06 Thread Ankit Kasliwal
hi srihari babu

just use this code with some changes

private void ExportCSV()
 {
 String columnString = ,dataString = ,combinedString = ;
 columnString =   \Name \,\Age\,\Date\,\Class\;
 combinedString = columnString;

 try
 {
 out.write(combinedString.getBytes());
 }
 catch (IOException e)
 {
e.printStackTrace();
 }

 for (int i = 0; i  nodes.getLength(); i++)
{

  Element element = (Element)nodes.item(i);
  dataString   =   \ + XMLfunctions.getValue(element, Name)
+\,\ + XMLfunctions.getValue(element, Age) + \,\ +
XMLfunctions.getValue(element, Date) + \,\ +
XMLfunctions.getValue(element, Class)  + \;
  combinedString =  \n + dataString;
  try
 {
out.write(combinedString.getBytes());
 }
  catch (IOException e)
 {
e.printStackTrace();
 }
}
 try
 {
out.close();
 }
 catch (IOException e)
 {
e.printStackTrace();
 }
}

and try to search on google you find lots of demo source code

On Tue, Sep 6, 2011 at 8:04 PM, srihari babu hisriharib...@gmail.comwrote:

 Hi pranay,
 xls docs means nothing but a comma separated file.
 just write some thing in to text file with some commas.
 that will give u an excel file.
 bye

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




-- 

Thanks and Regards,

Ankit Kasliwal
kasliwalankit2...@gmail.com
+91-9300-940-136

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [ASK] HOW TO SEND LONGITUDE LATITUDE TO ANOTHER ANDROID PHONE VIA INTERNET..

2011-09-06 Thread Kristopher Micinski
A simple overview?  Well first, you'll need to physically get the
location, using something like LocationManager.  After that, you'll
want to actually *send* it using some sort of internet backend.  There
are a variety of ways you can do this, but it all requires a bit of
planning, one solution might simply be to send the other person an
email, right?  However, the other requires that you have some sort of
background daemon running on the other device using something like an
AlarmManager, which can periodically check to see if some data from
another phone has been sent over the web (of course, you'll need the
internet to do this...) For the physical backend communication, you'll
need some sort of dedicated internet service, there have been some
mentioned on the list over the past few days, if you'd like me to
point you at one...

Kris

On Tue, Sep 6, 2011 at 7:27 AM, dede pradana de.pri...@gmail.com wrote:
 i'm newbie.. give me your explanation master.. thx before,, :)

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

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


[android-developers] Re: Share View as Image

2011-09-06 Thread Boozel
Could this possible be because the Share Intent cannot access the image in 
my applications cache folder?

I tried the code below but that didnt work either. What would be the best 
way to do this?
Thanks

String cachePath = this.getDir(ScreenShots, 
Context.MODE_WORLD_READABLE).getPath() ;

Bitmap viewCapture = null;
graphView.setDrawingCacheEnabled(true);

viewCapture = Bitmap.createBitmap(graphView.getDrawingCache());

graphView.setDrawingCacheEnabled(false);

boolean a = viewCapture.compress(CompressFormat.JPEG, 100, new 
FileOutputStream(cachePath+/PlantPulse.jpeg));

Intent share = new Intent(Intent.ACTION_SEND);
share.setType(image/jpeg);
//String path = getDir(PlantPulse.jpeg, 
Context.MODE_WORLD_READABLE).getPath();
File file = new File(cachePath+/PlantPulse.jpeg);

Uri outputFileUri = Uri.fromFile(file);

share.putExtra(Intent.EXTRA_STREAM,outputFileUri);
startActivity(Intent.createChooser(share, Share Plot Using...));

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

  1   2   >