[android-beginners] Launch App on bootup?

2009-11-03 Thread Justin
Hi all,

I'm still a rookie here. I'm looking to write an application that sit
in front of the home screen on boot up and restrict user from
returning home screen to access system settings. Is this even possible
on SDK 1.5/1.6? Thanks ahead.

BR  Thanks
Justin

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


[android-beginners] Rotate Activity screen

2009-11-03 Thread Batuka
Hi all pls help me i wont to rotate My activity screen 90
and after screen shold be no rotating
but how help me examp code pls

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


[android-beginners] Re: how to type in a webview

2009-11-03 Thread Indicator Veritatis
I'm a Facebook 'refusenik', so I am not in a position to be very
helpful on Facebook specific issues.

But concerning your other question, see
http://developer.android.com/intl/fr/guide/developing/tools/emulator.html#controlling
which lists two columns in a table: they are Emulated Device Key and
Keyboard Key.

You will see that the 'Alt' key isn't used for much. This is to be
expected, since there is nothing corresponding to an Alt key on most
mobile phones, even the smartphones: it is used only to toggle full
screen mode.

On Nov 1, 6:52 am, Marton Kodok pentiu...@gmail.com wrote:
 Yes it's because I can never get focus in the input field.
 It's Facebook.Indicator Veritatis wrote:
  Please explain in more detail, why you can't do that. Is it because
  you never can get focus in the input field for the authorization
  credentials? Can you tell us what login page you are required to go
  to?

  On Oct 30, 1:28 am, Marton Kodok pentiu...@gmail.com wrote:

  Hello,

  I have a really small problem. I use the 1.6 and 2.0 emulator, failed on
  both.
  I have a webview that launches a login page, I am required to type in
  there authentication information, but I can't do that neither with
  keyboard neither with the emulator keyboard buttons. I tried
  double-click the field to get focus, this works only on emulator 2.0.

  And my second questions is, how do I use the ALT button on the
  emulator/computer?

  Regards,
  Marton

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


[android-beginners] Manage the Wifi connection from an applicacion

2009-11-03 Thread Urizev
Hello,

 I have some troubles connecting to a wireless network. I enable Wifi,
start the scan, and when it is ready I search for the network I am
finding. When I have found it, I create a configuration with every
parameter and it goes properly but when I try to enable it (disabling
the others), it fails.

Maybe I have forgeting anything? Any example I could follow?

Thanks

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


[android-beginners] Change ListView Color

2009-11-03 Thread Nemat
Hi

I want to set the background color of ListView as white.I tried this:

getListView().setBackgroundColor(color.white);
getListView().setCacheColorHint(color.transparent);

But it doesnt change the color.What should I do?

Thanks in advance
Nemat

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


[android-beginners] android audio issue

2009-11-03 Thread raghu
Hi,
   i am using android SDK 1.5, below is the code where i am recording
voice from mic and playing it.

problems i am facing are :
 voice quality is not good,
 some background voice is there,
 write is getting blocked.

  i have set the permission in .xml file also like :
   android.permission.INTERNET,
   android.permission.MODIFY_AUDIO_SETTINGS,
   android.permission.RECORD_AUDIO,
android.permission.WRITE_SETTINGS

help required

below is the code :
 to record the audio i am using read() and to play write() is being
called.
is my code correct ?

   public void onCreate(Bundle savedInstanceState)
   {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);

   byte[] Buffer = new byte [8] ;

   int Size = 320 ;
   int BuffLen = 1 ;
   int SizeSoFar = 0 ;
   int MinBuffSize ;
   int Written = 0 ;
   int temp = 0 ;

   AudioRecord audioRecord = new AudioRecord
(MediaRecorder.AudioSource.MIC, 8000,
 
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT, 4096) ;
   audioRecord.startRecording () ;

   MinBuffSize = AudioRecord.getMinBufferSize(8000,2,2);

   AudioTrack track = new AudioTrack (AudioManager.STREAM_MUSIC,
8000,
 
AudioFormat.CHANNEL_CONFIGURATION_MONO ,
AudioFormat.ENCODING_PCM_16BIT,
   4096, AudioTrack.MODE_STREAM) ;

   track.play() ;

   while (BuffLen != 0)
   {
SizeSoFar += audioRecord.read (Buffer, 0, Size) ;

   Written = track.write (Buffer, 0, Size) ;
   try
   {
   Thread.sleep (5) ;
   }
   catch (InterruptedException e)
   {
   // TODO Auto-generated catch block
   e.printStackTrace() ;
   }
   }
   audioRecord.stop() ;
   track.stop() ;
   }

help required .






logcat message are :

D/AudioHardware(  556): AudioStreamInGeneric::set(0xad68, 7, 1, 1,
8000)
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
W/AudioFlinger(  556): AudioRecordThread: buffer overflow
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
W/AudioFlinger(  556): AudioRecordThread: buffer overflow
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
W/AudioFlinger(  556): AudioRecordThread: buffer overflow
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
W/AudioFlinger(  556): AudioRecordThread: buffer overflow
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
W/AudioFlinger(  556): AudioRecordThread: buffer overflow
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
W/AudioFlinger(  556): AudioRecordThread: buffer overflow
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
from fd 7
D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
from fd 7
W/AudioFlinger(  

[android-beginners] Listview allocates too many objects

2009-11-03 Thread manigault
Hi,
I have an activity with simple ListView with about 2500 items, a
SimpleCursorAdapter i used to populate the view. Each item of the list
view contains about 5-6 simple widgets everything is pretty standard
for now but  when i start scrolling the ListView i got this on the
LogCat
11-03 14:31:49.239: DEBUG/dalvikvm(5186): GC freed 3668 objects /
251256 bytes in 142ms
11-03 14:31:52.579: DEBUG/dalvikvm(5186): GC freed 17812 objects /
1003384 bytes in 157ms
11-03 14:31:54.409: DEBUG/dalvikvm(5186): GC freed 11069 objects /
527288 bytes in 134ms
11-03 14:31:56.359: DEBUG/dalvikvm(5186): GC freed 10988 objects /
524432 bytes in 139ms
11-03 14:31:57.629: DEBUG/dalvikvm(5186): GC freed 10952 objects /
523896 bytes in 134ms
11-03 14:32:00.419: DEBUG/dalvikvm(5186): GC freed 10967 objects /
524120 bytes in 131ms
11-03 14:32:02.699: DEBUG/dalvikvm(5186): GC freed 10976 objects /
524016 bytes in 138ms
11-03 14:32:13.619: DEBUG/dalvikvm(5186): GC freed 10977 objects /
524880 bytes in 131ms
and so on and so on until i don't stop scrolling. Is this a normal
situation or i am getting something wrong ?

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


[android-beginners] Re: android audio issue

2009-11-03 Thread niko20
Also noticed in your code you are doing SizeSoFar +=. That is not
good. You will overrun the buffer eventually I think...



On Nov 3, 6:46 am, raghu 13ra...@gmail.com wrote:
 Hi,
    i am using android SDK 1.5, below is the code where i am recording
 voice from mic and playing it.

 problems i am facing are :
  voice quality is not good,
  some background voice is there,
  write is getting blocked.

   i have set the permission in .xml file also like :
                    android.permission.INTERNET,
                    android.permission.MODIFY_AUDIO_SETTINGS,
                    android.permission.RECORD_AUDIO,
 android.permission.WRITE_SETTINGS

 help required

 below is the code :
  to record the audio i am using read() and to play write() is being
 called.
 is my code correct ?

    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        byte[] Buffer = new byte [8] ;

        int Size = 320 ;
        int BuffLen = 1 ;
        int     SizeSoFar = 0 ;
        int MinBuffSize ;
        int Written = 0 ;
        int temp = 0 ;

        AudioRecord audioRecord = new AudioRecord
 (MediaRecorder.AudioSource.MIC, 8000,

 AudioFormat.CHANNEL_CONFIGURATION_MONO,
 AudioFormat.ENCODING_PCM_16BIT, 4096) ;
        audioRecord.startRecording () ;

        MinBuffSize = AudioRecord.getMinBufferSize(8000,2,2);

        AudioTrack track = new AudioTrack (AudioManager.STREAM_MUSIC,
 8000,

 AudioFormat.CHANNEL_CONFIGURATION_MONO ,
 AudioFormat.ENCODING_PCM_16BIT,
                        4096, AudioTrack.MODE_STREAM) ;

        track.play() ;

        while (BuffLen != 0)
        {
                 SizeSoFar += audioRecord.read (Buffer, 0, Size) ;

                Written = track.write (Buffer, 0, Size) ;
                try
                {
                        Thread.sleep (5) ;
                }
                catch (InterruptedException e)
                {
                        // TODO Auto-generated catch block
                        e.printStackTrace() ;
                }
        }
        audioRecord.stop() ;
        track.stop() ;
    }

 help required .

 logcat message are :

 D/AudioHardware(  556): AudioStreamInGeneric::set(0xad68, 7, 1, 1,
 8000)
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 W/AudioFlinger(  556): AudioRecordThread: buffer overflow
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 W/AudioFlinger(  556): AudioRecordThread: buffer overflow
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 W/AudioFlinger(  556): AudioRecordThread: buffer overflow
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 W/AudioFlinger(  556): AudioRecordThread: buffer overflow
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 W/AudioFlinger(  556): AudioRecordThread: buffer overflow
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408180, 320)
 from fd 7
 D/AudioHardware(  556): AudioStreamInGeneric::read(0x40408040, 320)
 from fd 7
 W/AudioFlinger(  556): AudioRecordThread: buffer overflow
 D/AudioHardware(  556): 

[android-beginners] Repeating Drawables on Scroll Event

2009-11-03 Thread Maxood
  I have 27 drawables in my res folder. I am using these drawables as
backgrounds for views.
Is it possible to repeat these drawables after every 1 cycle(27 views)
on scroll event?If yes then how?

Thanks,
Maqsood

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


[android-beginners] Re: R.layout.main Not Found when running WebView Tutorial

2009-11-03 Thread Lance Nanek
import android.R;

That actually has to be removed for your purposes. The android.R class
is for built-in stuff, like android.R.drawable.ic_menu_edit. The R
class with your layout and other things from your app will be in the
package declared in your AndroidManifest.xml.

I've seen cases where this class wasn't generated when there were
errors elsewhere in the project, particularly in XML files. Check the
console and problem views for any errors other than relating to the R
class. Sometimes cleaning those up allows the R class to start getting
generated properly.

On Nov 3, 12:26 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 I am pretty sure I followed all the instructions in the tutorial 
 athttp://developer.android.com/intl/fr/guide/tutorials/views/hello-webv...
 correctly, yet by step 4, I am still seeing Eclipse showing
 R.layout.main cannot be resolved, (and the same for R.id.webview)
 even though Quick Fix already added the import android.R at the top
 of all my imports.

 So the code reads like this:

 package com.mejohnsn.android.HelloWebView; //NB: this particular
 tutorial said nothing about how to choose this name

 import android.R; // added by Quick Fix. I also tried fix project
 import android.app.Activity;
 import android.os.Bundle;
 import android.webkit.WebView;

 public class HelloWebView extends Activity {
         WebView webview;
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         webview = (WebView) findViewById(R.id.webview);
         webview.getSettings().setJavaScriptEnabled(true);
         webview.loadUrl(http://www.google.com;);
     }

 }

 So why can't it resolve R.layout.main?? And why, in Quick Fix, did
 fix project propose a 1.5r_3 jar, when I chose to target 1.6? Is
 this a hint to where the problem really lies?

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


[android-beginners] Re: TimePicker Hour Dissapears on Rotate

2009-11-03 Thread Veyette Software
Any help?

On Oct 23, 10:09 am, Veyette Software mark.veye...@gmail.com wrote:
 I have 2 timePickers declared in the xml layout file and defined in an
 onClick method for a submit button. When I run the app and rotate the
 screen, the hour text box in both timePickers goes blank. It still
 remembers the number (if I select the down arrow next to it, it goes
 to one less hour then what it showed before rotated), but does not
 show any number until the user changes it. Any ideas?

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


Re: [android-beginners] Re: I need to talk to a LIVE PERSON

2009-11-03 Thread Justin Anderson
I may be wrong but I am pretty sure that Apple charges just as much, if not
more, for applications sold on their store.

Plus their initial developer fee is 4 times as much at $99!

Good luck with that...

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 2:37 PM, Ryan Rowland ryan.w.rowl...@gmail.comwrote:

 And 2 seconds later I find the page where they explain how they extort the
 market for 30%. Nevermind. I think I'll develop for the iPhone instead.


 On Tue, Nov 3, 2009 at 1:34 PM, Ryan Rowland ryan.w.rowl...@gmail.comwrote:

 I'm trying to contact a live support person about the payments I'm
 receiving on my application. Apparently, Google doesn't have those, just
 pre-written questions.

 I'm selling an application for $4.99. My fee is 2.9% + $0.30 per
 transaction. I'm getting charged a $1.50 transaction fee. Take off the
 $0.30, and apparently 2.9% of $5 is $1.20? Wrong. Where is the hidden fee
 coming from? It's nowhere to be found on the pages detailing transaction
 fees. I should be paying $0.44 per transaction, how is this fee being more
 than TRIPLED?


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


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

Re: [android-beginners] Re: how to type in a webview

2009-11-03 Thread Marton Kodok
I want my user to login to Facebook. (There is already
a FacebookWebViewClient custom class that extends WebViewClient)

I use this code:
 WebViewwebview;
webview = (WebView) findViewById(R.id.facebookview);
webview.getSettings().setJavaScriptEnabled(true);
webview.setWebViewClient(new FacebookWebViewClient());

final Activity activity = this;
webview.setWebChromeClient(new WebChromeClient() {
  public void onProgressChanged(WebView view, int progress) {
// Activities and WebViews measure progress with different
scales.
// The progress meter will automatically disappear when we reach
100%
activity.setProgress(progress * 1000);
  }
});

fConnect = new FConnect(this);

webview.loadUrl(http://www.facebook.com;);

But I can't type in the log in info and password. What I am doing wrong?

2009/11/3 Indicator Veritatis mej1...@yahoo.com

 Another point: as I review the API doc (reference tag) on WebView, I
 see that it does not itself support key events or data entry. Now I
 don't know exactly what you are trying to do, but it sounds like you
 really want to use a WebViewClient object, not a WebView. This does
 support both.


 On Oct 30, 12:28 am, Marton Kodok pentiu...@gmail.com wrote:
  Hello,
 
  I have a really small problem. I use the 1.6 and 2.0 emulator, failed on
  both.
  I have a webview that launches a login page, I am required to type in
  there authentication information, but I can't do that neither with
  keyboard neither with the emulator keyboard buttons. I tried
  double-click the field to get focus, this works only on emulator 2.0.
 
  And my second questions is, how do I use the ALT button on the
  emulator/computer?
 
  Regards,
  Marton

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




-- 
Márton

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

Re: [android-beginners] Re: TimePicker Hour Dissapears on Rotate

2009-11-03 Thread Justin Anderson
Remember that when an orientation change occurs your app is completely
destroyed and then recreated.

Are you forgetting to set the text inside the textview?

Can't really help out too much without seeing some code

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 10:51 AM, Veyette Software mark.veye...@gmail.comwrote:

 Any help?

 On Oct 23, 10:09 am, Veyette Software mark.veye...@gmail.com wrote:
  I have 2 timePickers declared in the xml layout file and defined in an
  onClick method for a submit button. When I run the app and rotate the
  screen, the hour text box in both timePickers goes blank. It still
  remembers the number (if I select the down arrow next to it, it goes
  to one less hour then what it showed before rotated), but does not
  show any number until the user changes it. Any ideas?

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


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

[android-beginners] Re: how to type in a webview

2009-11-03 Thread Indicator Veritatis
Another point: as I review the API doc (reference tag) on WebView, I
see that it does not itself support key events or data entry. Now I
don't know exactly what you are trying to do, but it sounds like you
really want to use a WebViewClient object, not a WebView. This does
support both.


On Oct 30, 12:28 am, Marton Kodok pentiu...@gmail.com wrote:
 Hello,

 I have a really small problem. I use the 1.6 and 2.0 emulator, failed on
 both.
 I have a webview that launches a login page, I am required to type in
 there authentication information, but I can't do that neither with
 keyboard neither with the emulator keyboard buttons. I tried
 double-click the field to get focus, this works only on emulator 2.0.

 And my second questions is, how do I use the ALT button on the
 emulator/computer?

 Regards,
 Marton

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


[android-beginners] logcat - getting logs for media player,

2009-11-03 Thread guru
Hi All,

I want to get call trace from application layer( Media Player) to down
the audio decoder.

I am using Emulator to get logs.

Here is the procedure i followed:

1. Build the andorid code with logger enabled.
2. Copied system.img file to add-ons\google_apis-3\images.
3. ran the media player in the emulator.

But I am not seeing any logs in logcat window.

Please let me know where I went wrong?

Regards
Gururaja B O

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


[android-beginners] Re: R.layout.main Not Found when running WebView Tutorial

2009-11-03 Thread Indicator Veritatis
This is what main.xml looks like:

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=wrap_content
android:layout_height=wrap_content
android:orientation=vertical

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

/LinearLayout


That is, I assumed that main.xml is the file the instructions in
step 2 of the tutorial (http://developer.android.com/intl/fr/guide/
tutorials/views/hello-webview.html) refers to, so I edited it as
called for.

So 'R.layout.main' is correct.

Now for your other suggestion, other errors: after executing Clean
Project and rebuilding a few times, I now have the strange situation
that no errors show up in the java source code editor nor in the
console when executing 'Build Project; but the other projects are
showing the little read X, and when I try to RUN HelloWebView as an
Android Application, I get the error message, Your project contains
errors

But then why are the errors only showing up under other projects?? The
Console is still empty. So is the error log.

This gives me the feeling there is something really busted in my
Eclipse installation. I have Eclipse IDE 1.2.0.20090619-0620 and ADT
0.9.3.200909031112-12954.

On Nov 3, 3:29 pm, Lance Nanek lna...@gmail.com wrote:
 import android.R;

 That actually has to be removed for your purposes. The android.R class
 is for built-in stuff, like android.R.drawable.ic_menu_edit. The R
 class with your layout and other things from your app will be in the
 package declared in your AndroidManifest.xml.

 I've seen cases where this class wasn't generated when there were
 errors elsewhere in the project, particularly in XML files. Check the
 console and problem views for any errors other than relating to the R
 class. Sometimes cleaning those up allows the R class to start getting
 generated properly.

 On Nov 3, 12:26 pm, Indicator Veritatis mej1...@yahoo.com wrote:

  I am pretty sure I followed all the instructions in the tutorial 
  athttp://developer.android.com/intl/fr/guide/tutorials/views/hello-webv...
  correctly, yet by step 4, I am still seeing Eclipse showing
  R.layout.main cannot be resolved, (and the same for R.id.webview)
  even though Quick Fix already added the import android.R at the top
  of all my imports.

  So the code reads like this:

  package com.mejohnsn.android.HelloWebView; //NB: this particular
  tutorial said nothing about how to choose this name

  import android.R; // added by Quick Fix. I also tried fix project
  import android.app.Activity;
  import android.os.Bundle;
  import android.webkit.WebView;

  public class HelloWebView extends Activity {
          WebView webview;
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          webview = (WebView) findViewById(R.id.webview);
          webview.getSettings().setJavaScriptEnabled(true);
          webview.loadUrl(http://www.google.com;);
      }

  }

  So why can't it resolve R.layout.main?? And why, in Quick Fix, did
  fix project propose a 1.5r_3 jar, when I chose to target 1.6? Is
  this a hint to where the problem really lies?

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


[android-beginners] How do i get BackgroundColor of Button???

2009-11-03 Thread DHSoft

private View BtnTxtColor;
BtnTxtColor = (View)findViewById(R.id.BtnTxt);


PaintDrawable paintdrawble = (PaintDrawable)BtnTxtColor.getBackground
();  -- appear exception
int nTempColor = paintdrawble.getPaint().getColor();



exception message is ColorDrawable.

i wanna get Background color of Button...

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


Re: [android-beginners] Re: TimePicker Hour Dissapears on Rotate

2009-11-03 Thread Justin Anderson
Hmm...

I may be wrong but I think the activity itself is destroyed and recreated.
At least, that is what I found in another thread in this group:

Greg says:
*When you change orientation your Activity is destroyed and then
re-created

*
http://groups.google.com/group/android-developers/browse_thread/thread/75dc91441a151039?pli=1

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 12:27 PM, niko20 nikolatesl...@yahoo.com wrote:

 Just to clarify, your app is not destroyed and recreated, but
 rather, any views your app has. The app itself could continue to
 function, for example, if you had a thread running, it will remain
 running.

 At least I believe that is the case.

 -niko

 On Nov 3, 12:44 pm, Justin Anderson janderson@gmail.com wrote:
  Remember that when an orientation change occurs your app is completely
  destroyed and then recreated.
 
  Are you forgetting to set the text inside the textview?
 
  Can't really help out too much without seeing some code
 
  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --
 
  On Tue, Nov 3, 2009 at 10:51 AM, Veyette Software 
 mark.veye...@gmail.comwrote:
 
   Any help?
 
   On Oct 23, 10:09 am, Veyette Software mark.veye...@gmail.com wrote:
I have 2 timePickers declared in the xml layout file and defined in
 an
onClick method for a submit button. When I run the app and rotate the
screen, the hour text box in both timePickers goes blank. It still
remembers the number (if I select the down arrow next to it, it goes
to one less hour then what it showed before rotated), but does not
show any number until the user changes it. Any ideas?
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
   To post to this group, send email to
 android-beginners@googlegroups.com
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

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


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

[android-beginners] Re: TimePicker Hour Dissapears on Rotate

2009-11-03 Thread niko20
Just to clarify, your app is not destroyed and recreated, but
rather, any views your app has. The app itself could continue to
function, for example, if you had a thread running, it will remain
running.

At least I believe that is the case.

-niko

On Nov 3, 12:44 pm, Justin Anderson janderson@gmail.com wrote:
 Remember that when an orientation change occurs your app is completely
 destroyed and then recreated.

 Are you forgetting to set the text inside the textview?

 Can't really help out too much without seeing some code

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Tue, Nov 3, 2009 at 10:51 AM, Veyette Software 
 mark.veye...@gmail.comwrote:

  Any help?

  On Oct 23, 10:09 am, Veyette Software mark.veye...@gmail.com wrote:
   I have 2 timePickers declared in the xml layout file and defined in an
   onClick method for a submit button. When I run the app and rotate the
   screen, the hour text box in both timePickers goes blank. It still
   remembers the number (if I select the down arrow next to it, it goes
   to one less hour then what it showed before rotated), but does not
   show any number until the user changes it. Any ideas?

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

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


Re: [android-beginners] R.layout.main Not Found when running WebView Tutorial

2009-11-03 Thread Justin Anderson
Do you have a res/layout/main.xml file?

R.layout.main is a resource that points to a file named main.xml in the
res/layout folder... If that file is named something else, say test.xml,
then you need to use R.layout.test instead


--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 10:26 AM, Indicator Veritatis mej1...@yahoo.comwrote:

 I am pretty sure I followed all the instructions in the tutorial at

 http://developer.android.com/intl/fr/guide/tutorials/views/hello-webview.html
 correctly, yet by step 4, I am still seeing Eclipse showing
 R.layout.main cannot be resolved, (and the same for R.id.webview)
 even though Quick Fix already added the import android.R at the top
 of all my imports.

 So the code reads like this:

 package com.mejohnsn.android.HelloWebView; //NB: this particular
 tutorial said nothing about how to choose this name

 import android.R; // added by Quick Fix. I also tried fix project
 import android.app.Activity;
 import android.os.Bundle;
 import android.webkit.WebView;

 public class HelloWebView extends Activity {
WebView webview;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
webview = (WebView) findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl(http://www.google.com;);
}
 }

 So why can't it resolve R.layout.main?? And why, in Quick Fix, did
 fix project propose a 1.5r_3 jar, when I chose to target 1.6? Is
 this a hint to where the problem really lies?

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

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

[android-beginners] Serial port communication in Android OS

2009-11-03 Thread arunpv
Hi
We are developing an embedded system using Android 1.5 and would like
to interface with serial port communication. Hardware we are using has
an serial port interface but android is unable to access it. Please
let us know how we can get serial port communication working.

If possible,our company is willing to pay in order to get this
working.

Please let me know.

Thanks

Arun

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


[android-beginners] Android NDK Socket programming

2009-11-03 Thread NDKSDK
Hello

I have some issues with an android application. This applications
consists in a server and a client using C sockets via ndk.

When the server is deployed on a simulator and the client on another
simulator it works fine if I set a redirection on the server to map
client port and server port as explained here:http://
developer.android.com/guide/developing/tools/
emulator.html#redirections;
after connecting to the server via telnet I write redir add
tcp:my_client_port:my_server_port on the console of the emulator
and it's Ok.

When the server is deployed on a simulator and the client on a device
it works too if I use the adb forward tool to set redirection
properly.

Now I would like to deploy the server on a device and the client on a
Linux PC.
So with my router I set up a wifi Network including the linux PC and
the device.
When I ping the ip adress of the device from my Linux PC it works
fine, but
when I try to connect to the server via the client socket , the
connect function fails with status(perror()): connection refused. Is
it possible to do what I want to do ?! In this case how to proceed ?

Thanks

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


[android-beginners] Re: Rotate Activity screen

2009-11-03 Thread Batuka
pls help me somebady

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


[android-beginners] Re: R.layout.main Not Found when running WebView Tutorial

2009-11-03 Thread Indicator Veritatis
OK..., but if I followed the instructions at the tutorial,
shouldn't it be named main.xml? What could possibly cause it to be
named anything else?

Now don't get me wrong, I am grateful for your reply, and will double
check what it actually got named to once I am back to that partition
(I run Eclipse only under my Fedora11 installation).

BTW: about your other post, suggesting removing import android.R. I
take it that also assumes that main.xml was misnamed. After all:
before the import statement was there, I was still getting the same
error messages on R.layout. The difference was that after adding the
import statement, Quick Fix had no suggestions for how to fix the
errors.

On Nov 3, 6:41 pm, Justin Anderson janderson@gmail.com wrote:
 Do you have a res/layout/main.xml file?

 R.layout.main is a resource that points to a file named main.xml in the
 res/layout folder... If that file is named something else, say test.xml,
 then you need to use R.layout.test instead

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Tue, Nov 3, 2009 at 10:26 AM, Indicator Veritatis mej1...@yahoo.comwrote:

  I am pretty sure I followed all the instructions in the tutorial at

 http://developer.android.com/intl/fr/guide/tutorials/views/hello-webv...
  correctly, yet by step 4, I am still seeing Eclipse showing
  R.layout.main cannot be resolved, (and the same for R.id.webview)
  even though Quick Fix already added the import android.R at the top
  of all my imports.

  So the code reads like this:

  package com.mejohnsn.android.HelloWebView; //NB: this particular
  tutorial said nothing about how to choose this name

  import android.R; // added by Quick Fix. I also tried fix project
  import android.app.Activity;
  import android.os.Bundle;
  import android.webkit.WebView;

  public class HelloWebView extends Activity {
         WebView webview;
     /** Called when the activity is first created. */
    �...@override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         webview = (WebView) findViewById(R.id.webview);
         webview.getSettings().setJavaScriptEnabled(true);
         webview.loadUrl(http://www.google.com;);
     }
  }

  So why can't it resolve R.layout.main?? And why, in Quick Fix, did
  fix project propose a 1.5r_3 jar, when I chose to target 1.6? Is
  this a hint to where the problem really lies?

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

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


[android-beginners] Re: Manage the Wifi connection from an applicacion

2009-11-03 Thread Roman ( T-Mobile USA)
When you add the configuration of your new Wifi network using the API
addNetwork, did you make sure that this API is executed successfully?

You also mentioned that you disable your previous connection. Make
sure that you receive a connection state change event (for
disconnecting) before you enable your new Wifi connection.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Nov 3, 3:26 am, Urizev uri...@gmail.com wrote:
 Hello,

  I have some troubles connecting to a wireless network. I enable Wifi,
 start the scan, and when it is ready I search for the network I am
 finding. When I have found it, I create a configuration with every
 parameter and it goes properly but when I try to enable it (disabling
 the others), it fails.

 Maybe I have forgeting anything? Any example I could follow?

 Thanks

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


[android-beginners] I need to talk to a LIVE PERSON

2009-11-03 Thread Ryan Rowland
I'm trying to contact a live support person about the payments I'm receiving
on my application. Apparently, Google doesn't have those, just pre-written
questions.

I'm selling an application for $4.99. My fee is 2.9% + $0.30 per
transaction. I'm getting charged a $1.50 transaction fee. Take off the
$0.30, and apparently 2.9% of $5 is $1.20? Wrong. Where is the hidden fee
coming from? It's nowhere to be found on the pages detailing transaction
fees. I should be paying $0.44 per transaction, how is this fee being more
than TRIPLED?

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

[android-beginners] Re: I need to talk to a LIVE PERSON

2009-11-03 Thread Ryan Rowland
And 2 seconds later I find the page where they explain how they extort the
market for 30%. Nevermind. I think I'll develop for the iPhone instead.

On Tue, Nov 3, 2009 at 1:34 PM, Ryan Rowland ryan.w.rowl...@gmail.comwrote:

 I'm trying to contact a live support person about the payments I'm
 receiving on my application. Apparently, Google doesn't have those, just
 pre-written questions.

 I'm selling an application for $4.99. My fee is 2.9% + $0.30 per
 transaction. I'm getting charged a $1.50 transaction fee. Take off the
 $0.30, and apparently 2.9% of $5 is $1.20? Wrong. Where is the hidden fee
 coming from? It's nowhere to be found on the pages detailing transaction
 fees. I should be paying $0.44 per transaction, how is this fee being more
 than TRIPLED?


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

Re: [android-beginners] Launch App on bootup?

2009-11-03 Thread swapnil kamble
I am also looking for same thing. Please let me know, if you get any
information on this.

Thanks,
Swapnil

On Tue, Nov 3, 2009 at 2:03 PM, Justin wenxinle...@gmail.com wrote:

 Hi all,

 I'm still a rookie here. I'm looking to write an application that sit
 in front of the home screen on boot up and restrict user from
 returning home screen to access system settings. Is this even possible
 on SDK 1.5/1.6? Thanks ahead.

 BR  Thanks
 Justin

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




-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare RamaHare Rama   Rama   RamaHare Hare ||

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

[android-beginners] Viewing logs on native android

2009-11-03 Thread swapnil kamble
Hi All,
 As we see emulator's logs in logcat of eclipse. What is similar on
native android to view these logs ?

Thanks in advance

-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare RamaHare Rama   Rama   RamaHare Hare ||

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

[android-beginners] Re: Wifi does not automatically connect after boot

2009-11-03 Thread Roman ( T-Mobile USA)
Could you be more specific? Are you trying to connect programmatically
to the Wifi network or do you have this Wifi network configured in
your Wifi settings.

I noticed that after a reboot the phone automatically connects to a
cellular data connectivity. After some time it connects to an already
configured wifi network. If you want to force your phone to connect
much faster to the Wifi network, try to disable to configured APN in
your settings.

In general I am missing in the Android SDK an API which supports the
preferred radio interface.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Nov 3, 3:20 am, Urizev uri...@gmail.com wrote:
 Hi,

  I am developing an application which has to connect to an specific
 Wifi network. It must to be automatic with no user activity.

 The phone has the configuration for this network, but it does not
 connect until I press any key. Then it is a very fast process.

 What could be happening?

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


Re: [android-beginners] alive voice

2009-11-03 Thread Justin Anderson
Could you give a little more info? I'm not sure what you are asking...

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 12:40 PM, Ray da Costa raydaco...@gmail.com wrote:

 One helps… I am with the G2, all the linkings that I receive arrive and
 sets in motion the alive voice, has some project of deligar, or sjea, taking
 care of the linkings normally, without being alive voice ?

 --
 Ray da Costa
 The best way to predict the future is to invent it.
 Alan Kay

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

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

Re: [android-beginners] Re: Rotate Activity screen

2009-11-03 Thread Justin Anderson
Please clarify your question...  I don't really understand what you are
wanting to do.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 6:32 PM, Batuka batukali...@gmail.com wrote:

 pls help me somebady

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


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

Re: [android-beginners] Launch App on bootup?

2009-11-03 Thread Justin Anderson
Not as an SDK app...  At least not without some user interaction.  You can
replace the home application, but the user has to decide if they want it to
be the default home app or not.

If you want to modify the existing android source then you could do it.  But
then the question would be a better fit in the Android Developers group.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 9:28 PM, swapnil kamble swap.kam...@gmail.comwrote:

 I am also looking for same thing. Please let me know, if you get any
 information on this.

 Thanks,
 Swapnil


 On Tue, Nov 3, 2009 at 2:03 PM, Justin wenxinle...@gmail.com wrote:

 Hi all,

 I'm still a rookie here. I'm looking to write an application that sit
 in front of the home screen on boot up and restrict user from
 returning home screen to access system settings. Is this even possible
 on SDK 1.5/1.6? Thanks ahead.

 BR  Thanks
 Justin

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




 --
 ...Swapnil

 || Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
 || Hare RamaHare Rama   Rama   RamaHare Hare ||

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


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

Re: [android-beginners] Serial port communication in Android OS

2009-11-03 Thread Justin Anderson
I may be wrong, but it seems that this question would be better-suited for
the Android Developers group.  The beginners group is designed for SDK
applications and it seems like you are working on modifying/porting the
Android source.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 7:12 AM, arunpv aperregatt...@gmail.com wrote:

 Hi
 We are developing an embedded system using Android 1.5 and would like
 to interface with serial port communication. Hardware we are using has
 an serial port interface but android is unable to access it. Please
 let us know how we can get serial port communication working.

 If possible,our company is willing to pay in order to get this
 working.

 Please let me know.

 Thanks

 Arun

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

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

Re: [android-beginners] Re: R.layout.main Not Found when running WebView Tutorial

2009-11-03 Thread Justin Anderson
When Eclipse gives the Your project contains errors... message when
building, what shows up in the problems tab?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 7:57 PM, Indicator Veritatis mej1...@yahoo.comwrote:

 This is what main.xml looks like:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=wrap_content
android:layout_height=wrap_content
android:orientation=vertical

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

 /LinearLayout


 That is, I assumed that main.xml is the file the instructions in
 step 2 of the tutorial (http://developer.android.com/intl/fr/guide/
 tutorials/views/hello-webview.htmlhttp://developer.android.com/intl/fr/guide/%0Atutorials/views/hello-webview.html)
 refers to, so I edited it as
 called for.

 So 'R.layout.main' is correct.

 Now for your other suggestion, other errors: after executing Clean
 Project and rebuilding a few times, I now have the strange situation
 that no errors show up in the java source code editor nor in the
 console when executing 'Build Project; but the other projects are
 showing the little read X, and when I try to RUN HelloWebView as an
 Android Application, I get the error message, Your project contains
 errors

 But then why are the errors only showing up under other projects?? The
 Console is still empty. So is the error log.

 This gives me the feeling there is something really busted in my
 Eclipse installation. I have Eclipse IDE 1.2.0.20090619-0620 and ADT
 0.9.3.200909031112-12954.

 On Nov 3, 3:29 pm, Lance Nanek lna...@gmail.com wrote:
  import android.R;
 
  That actually has to be removed for your purposes. The android.R class
  is for built-in stuff, like android.R.drawable.ic_menu_edit. The R
  class with your layout and other things from your app will be in the
  package declared in your AndroidManifest.xml.
 
  I've seen cases where this class wasn't generated when there were
  errors elsewhere in the project, particularly in XML files. Check the
  console and problem views for any errors other than relating to the R
  class. Sometimes cleaning those up allows the R class to start getting
  generated properly.
 
  On Nov 3, 12:26 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 
   I am pretty sure I followed all the instructions in the tutorial
 athttp://developer.android.com/intl/fr/guide/tutorials/views/hello-webv...
   correctly, yet by step 4, I am still seeing Eclipse showing
   R.layout.main cannot be resolved, (and the same for R.id.webview)
   even though Quick Fix already added the import android.R at the top
   of all my imports.
 
   So the code reads like this:
 
   package com.mejohnsn.android.HelloWebView; //NB: this particular
   tutorial said nothing about how to choose this name
 
   import android.R; // added by Quick Fix. I also tried fix project
   import android.app.Activity;
   import android.os.Bundle;
   import android.webkit.WebView;
 
   public class HelloWebView extends Activity {
   WebView webview;
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   webview = (WebView) findViewById(R.id.webview);
   webview.getSettings().setJavaScriptEnabled(true);
   webview.loadUrl(http://www.google.com;);
   }
 
   }
 
   So why can't it resolve R.layout.main?? And why, in Quick Fix, did
   fix project propose a 1.5r_3 jar, when I chose to target 1.6? Is
   this a hint to where the problem really lies?

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


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

Re: [android-beginners] How do i get BackgroundColor of Button???

2009-11-03 Thread Justin Anderson
You are wanting to get the background color of a standard android button or
some custom button that you have created?

The standard android button uses a combination of a 9-patch .png image and a
selector so trying to get the background color of it is probably not going
to yield anything useful.

If it is a custom button that you created, could you post more of the code
so we can get an idea of how the class is set up?

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Nov 3, 2009 at 5:04 AM, DHSoft shinyry...@gmail.com wrote:


 private View BtnTxtColor;
 BtnTxtColor = (View)findViewById(R.id.BtnTxt);


 PaintDrawable paintdrawble = (PaintDrawable)BtnTxtColor.getBackground
 ();  -- appear exception
 int nTempColor = paintdrawble.getPaint().getColor();



 exception message is ColorDrawable.

 i wanna get Background color of Button...

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

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

[android-beginners] Re: Wifi does not automatically connect after boot

2009-11-03 Thread Urizev
On Nov 3, 8:29 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 Could you be more specific? Are you trying to connect programmatically
 to the Wifi network or do you have this Wifi network configured in
 your Wifi settings.

Firstly, I try to do that programatically but (as I ask in a different
post) I could not achieve that. So, now, I leave this store in the
WiFi settings.

 I noticed that after a reboot the phone automatically connects to a
 cellular data connectivity. After some time it connects to an already
 configured wifi network. If you want to force your phone to connect
 much faster to the Wifi network, try to disable to configured APN in
 your settings.

Yes, you right but in my case I do not have any SIM card so it is
impossible to connect to any mobile network. However, it never
connects until I touch the phone (menu button for example), then it
connects very fast.


 In general I am missing in the Android SDK an API which supports the
 preferred radio interface.

In my case I dont care about this feature but I think it is very
important.


Thanks!


 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Nov 3, 3:20 am, Urizev uri...@gmail.com wrote:

  Hi,

   I am developing an application which has to connect to an specific
  Wifi network. It must to be automatic with no user activity.

  The phone has the configuration for this network, but it does not
  connect until I press any key. Then it is a very fast process.

  What could be happening?

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