[android-beginners] Re: porting on android

2009-06-30 Thread Nicholas Radford
the emulator haa to be running for adb to find it

On Jun 30, 2009 5:49 AM, "subram"  wrote:


Hi

   I came with some issues regarding porting of android



  1. I created a simple c application and build it using arm compiler
that comes with android source files in ubuntu, copied the  shared
library generated(librecord.so) to the res/raw folder of my android
project in windows.

 2.Now I installed the android NDK and build make, generated the .so
file for the sample project(hello world) given. I tried to invoke both
the libraries using the adb tool, its showing device not found, but
the AVD (android virtual device) is created in window->Android AVD
manager in eclipse showing the device name

 The process is going file still creating an .so in both Linux(using
android source code), windows(using NDK) but can’t able to invoke In
android sdk(run in emulator).Also i tried the code in the blog try{}
catch{} code that is also not working

--~--~-~--~~~---~--~~
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] FileOutputStream - file not found???

2009-06-30 Thread BGH

I'm need to package a pre-populated database with my app so I am using
the method mentioned a few times on here of releasing in the assets
folder and then copying it to the databases folder at runtime.
Specifically I am using this tutorial.

http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-1/#comment-233

It basically just creates an empty db then uses a FileOutputStream to
rewrite it with the packaged db in assets folder.

Anyways, the empty db gets created fine and I can see it in the file
browser. But when I try and open it using

//Open the empty db as the output stream
OutputStream myOutput = new FileOutputStream(outFileName);

and I get

06-30 19:05:04.696: INFO/WTF(708): java.io.FileNotFoundException: the-
filepath

file not found error. I know the path is correct and that the file
already exists. Why would it be giving me the error? The file is
located in /data/data/my_package/databases/db_name.
--~--~-~--~~~---~--~~
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]

2009-06-30 Thread saurabh sinha

I need to download dummy projects in android

--~--~-~--~~~---~--~~
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: While creating AVD: "android: command not found"

2009-06-30 Thread bobbylox

I have the same issue, and this didn't work for me.  After typing  "./
android create ...", bash returned "-bash: ./android: No such file or
directory"  Any further advice for surmounting this?

On May 20, 7:42 am, Rob  wrote:
> Try
> ./android create
>
> instead of
>
> android create
>
> On May 6, 4:42 pm, Josiah  wrote:
>
> > Upgrading to SDK 1.5 using Eclipse on a Mac. Finish all the install
> > steps. Following the AVD creation instructions, I cd to the SDK tools
> > folder.  But every time I try following the "android" commands from
> > there I get an "android:commandnotfound" error.  I've been
> > following these 
> > instructions:http://developer.android.com/guide/developing/eclipse-adt.html#Creati...
>
> > 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
-~--~~~~--~~--~--~---



[android-beginners] G1 Disability Accessibility

2009-06-30 Thread mrgushi

Was wondering if there's a Zoom features or Text-to-speech for those
with disabilities and low vision. I know the new 3.0 iphone does note
the links below. Thanks.

Here's iphone features:
http://www.apple.com/accessibility/iphone/vision.html

Check out Video of how it works:
http://vimeo.com/5260523

--~--~-~--~~~---~--~~
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] LayoutInflater.inflate

2009-06-30 Thread chandlersong

 the method has 3 parameters.and I'm confused by the second and the
thrid.
  I read api.
  root Optional view to be the parent of the generated hierarchy (if
attachToRoot is true), or else simply an object that provides a set of
LayoutParams values for root of the returned hierarchy (if
attachToRoot is false.)
attachToRoot Whether the inflated hierarchy should be attached to the
root parameter? If false, root is only used to create the correct
subclass of LayoutParams for the root view in the XML.


 I know when the attackToRoot is true.then the root will be parent
of the items in the xml. but what would happend when the attackToRoot
is falase? it's just take the values form xml and don't create any
views?

--~--~-~--~~~---~--~~
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] question about LayoutInflater.inflate()' parameters

2009-06-30 Thread chandlersong

  the method has 3 parameters.and I'm confused by the second and the
thrid.
  I read api.
  root Optional view to be the parent of the generated
hierarchy (if
attachToRoot is true), or else simply an object
that provides a set of
 LayoutParams values for root of the returned
hierarchy (if
attachToRoot is false.)
attachToRoot  Whether the inflated hierarchy should be attached to the
root parameter? If false, root is only used to
create the correct
  subclass of LayoutParams for the root view in
the XML.


 I know if the attackToRoot is true. the root will be parent
of the items in the xml. but what would happend when the attackToRoot
is falase? it's just take the values form xml and don't create any
views?

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and digital camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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] strace emulator: libsdl1.2-dev not working

2009-06-30 Thread suman

Dear Friends,

I am a newbie to this group and to android :). I have one question.
when i compile and run android master branch and run the emulator i
get the following error:

"SDL init failure, reason is: No available video device". I went
through the blogs and tried everything but in vain:(:(. the
corresponding strace is shown below. I am using Ubuntu 8.01 and all
the java packages are also installed.
echo $SDL_VIDEODRIVER is also not being set.  The libX11.so is present
in the following path:
/usr/lib/libX11.so
/usr/lib/libX11.so.6
/usr/lib/libX11.so.6.2.0

and i have added this path to my path variable as well. But still it
doesnt work. I also did
"apt-get upgrade" of all the packages and still it dint work :(:(.

FInally i did dkpg--reconfigure and again re-installed all the
packages but the result is the same:(:(

Can anyone please please help me out? i have re-installed ubuntu twice
and its a painful experience to to do them the third time. Please help
me.

with regards,
Suman

r...@suman-desktop:/home/suman/Project/Code/Android_Master# emulator
SDL init failure, reason is: No available video device
r...@suman-desktop:/home/suman/Project/Code/Android_Master# strace
emulator
execve("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/
emulator", ["emulator"], [/* 33 vars */]) = 0
brk(0)  = 0x9f86000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fcc000
readlink("/proc/self/exe", "/home/suman/AndroidSetup/android-sdk-
linux_x86-1.0_r2/tools/emulator", 4096) = 68
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or
directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686/sse2/cmov", 0xbfee90cc) = -1 ENOENT (No such file or
directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686/sse2", 0xbfee90cc) = -1 ENOENT (No such file or
directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686/cmov", 0xbfee90cc) = -1 ENOENT (No such file or
directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/i686", 0xbfee90cc) = -1 ENOENT (No such file or directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/sse2/cmov", 0xbfee90cc) = -1 ENOENT (No such file or
directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/sse2", 0xbfee90cc) = -1 ENOENT (No such file or directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/cmov", 0xbfee90cc) = -1 ENOENT (No such file or directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/tls", 0xbfee90cc) = -1 ENOENT (No such file or directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/i686/sse2/cmov", 0xbfee90cc) = -1 ENOENT (No such file or
directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/i686/sse2", 0xbfee90cc) = -1 ENOENT (No such file or directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/../
lib/i686/cmov", 0xbfee90cc) = -1 ENOENT (No such file or directory)
open("/home/suman/AndroidSetup/android-sdk-linux_x86-1.0_r2/tools/

[android-beginners] iphone style zoom

2009-06-30 Thread geng wang

Hi,

I am looking for code snippets or tutorials on how to create iphone
style zooming, which I'd like to use on an image (would be either an
ImageView or subclass of View). Single tap to zoom in (with
animation!) with the point of contact being the zoom center.

Or any suggestions/instructions/lead are welcome!

Thanks.

-geng

--~--~-~--~~~---~--~~
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: IPsec support ?

2009-06-30 Thread Android Development
IPSec is a very central requirement for me and my application as well. Is
there an API provision for IP Security that developers can make use of ?


On Wed, Jun 24, 2009 at 12:12 AM, Brian Cloutier <
brian.studios.andr...@gmail.com> wrote:

> A search of the Androids kernel source returns 417 matches for IPsec
>
>
> On Tue, Jun 23, 2009 at 5:42 AM, Ram  wrote:
>
>>
>> Hi,
>>
>> Is there IPsec support on Android.
>> Does Android support Application developers to make use of the IPsec ?
>>
>> Thank you,
>> Ram.
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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] DEAF Network - Developers - Tariff

2009-06-30 Thread DavidDB

Nine million people in the UK (15% of the population) suffer from
permanent, disabling hearing loss.

The estimated demographic figure has ranged from 22 million deaf and
hard of hearing to as high as 36 million deaf and hard of hearing
worldwide. Of these, only a few million are considered "deaf" and the
remainder are hard of hearing but cannot use a phone.

for 30 years this group has had to PAY for Unused "Call Time" and are
sick of it.

I will launch a Data only package for registered DEAF users within 3
months in the UK but wishes a a network would provide a worldwide
backbone for these services.

the first phone available will be the HTC HERO but other ANDROID
phones will be introduced later in the year.

I want to hear from DEAF Users - (especially the angry ones that are
fed up with the way DEAF users are treated)

I especially want to hear from developers that can provide as real
time as possible SUBTITLES to speech.

Switch on the app and anything heard by microphone could be sent to a
server for voice to text and squirted back to the phone. Come on IBM
we know you love Android :)

So All you can eat Data Plan - Pay for calls as you go. a Lovely
Android Phone and best of all IF your a network it could add millions
of  LOYAL customers and their mothers and brothers.

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1...@gmail.com

--~--~-~--~~~---~--~~
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] get applications onto the HTC Dream

2009-06-30 Thread peterb

The phone is a dream and I am thrilled but I want to download a number
of "free" market applications and a reader for excel and word docs?

Can someone please steer me to an instruction page?

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] Upload Error

2009-06-30 Thread vikya

hello,

 i m trying to upload more than one audio Files, having size more
than 4 mb each.
 but i m getting this exception

 06-29 18:22:40.739: ERROR/AndroidRuntime(727): Uncaught handler:
thread Thread-9 exiting due to uncaught exception
06-29 18:22:40.751: ERROR/AndroidRuntime(727):
java.lang.OutOfMemoryError
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:103)
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:234)
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection
$HttpOutputStream.write(HttpURLConnection.java:652)
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
java.io.DataOutputStream.write(DataOutputStream.java:107)


  The code i use for uploading files is :

  private boolean uploadFile(File file, String urlString) {

boolean isUploadOk = false;
HttpURLConnection conn = null;
DataOutputStream dos = null;
FileInputStream fileInputStream = null;

int maxBufferSize = 4096;

try {

// Open a HTTP connection to the URL
URL url = new URL(urlString);
conn = (HttpURLConnection) url.openConnection();

// Allow Inputs
conn.setDoInput(true);
// Allow Outputs
conn.setDoOutput(true);
// Don't use a cached copy.
conn.setUseCaches(true);
// Use a post method.
conn.setRequestMethod("PUT");
conn.setRequestProperty("Connection", "Keep-Alive");

conn.setRequestProperty("Content-Type",
"multipart/form-data;boundary=" + 
boundary);

dos = new DataOutputStream(conn.getOutputStream());
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos.writeBytes("Content-Disposition: form-data; name=\""
+ file.getAbsolutePath() + 
"\";filename=\""
+ file.getName() + "\"" + lineEnd);
dos.writeBytes(lineEnd);

Log.e("", "Headers are written");

// create a buffer of maximum size
fileInputStream = new FileInputStream(file);
int bytesAvailable = fileInputStream.available();
int bufferSize = Math.min(bytesAvailable, 
maxBufferSize);

byte[] buffer = new byte[bufferSize];

// read file and write it into form...
int bytesRead = fileInputStream.read(buffer, 0, 
bufferSize);

while (bytesRead > 0) {
dos.write(buffer, 0, bufferSize);
bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, 
maxBufferSize);
bytesRead = fileInputStream.read(buffer, 0, 
bufferSize);
dos.flush();
}

buffer = null;

// send MULTIPART/FORM data necessary after file data.!
dos.writeBytes(lineEnd);
dos.writeBytes(twoHyphens + boundary + twoHyphens + 
lineEnd);

// close streams
Log.e("fileupload", "File is written");


} catch (MalformedURLException ex) {
Log.e("fileupload", "error: " + ex.getMessage(), ex);
}
catch (IOException ioe) {
Log.e("Exception:: ", "error: " + ioe.getMessage(), 
ioe);

}finally
{
try
{
if(fileInputStream != null)
fileInputStream.close();

}catch (Exception e) {

}

try
{
if(dos != null)
{
dos.flush();
//dos.close();
}

}catch (Exception e) {

}

try
{
if(dos != null)
{

dos.close();
}

}catch (Exception e) {

 

[android-beginners] ddms not talk to adb server

2009-06-30 Thread jcnc

After I started my Eclipse, try to run my Application LunchList.  DDMS
comes up.  But emulator was never displayed.
Although I can use command line to start emulator fine.
(This application was running fine in my company WinXP SP3 computer)

I got this error showing in Console window:
  [2009-06-28 21:44:17 - LunchList] --
  [2009-06-28 21:44:17 - LunchList] Android Launch!
  [2009-06-28 21:44:17 - LunchList] Connection with adb was
interrupted.
  [2009-06-28 21:44:17 - LunchList] 0 attempts have been made to
reconnect.
  [2009-06-28 21:44:17 - LunchList] You may want to manually restart
adb from the Devices view.

I go to Help-> About Eclipse Platform pop-up dialog, Then
Configuration Details, then View Error Log,
It displayed the contents of  my eclipse workspace\.metadata\.plugins
\org.eclipse.ui.workbench\log.
But nothing obviously there.

I used Microsoft PortRepoter examined my localhost ports.  Appears adb
5037 port talked to emulator okay but not talking to the ddms port.
I start to wonder if my win32 library does not compatiable with
AdbWinApi.dll.

I am using Android SDK \android-sdk-windows-1.5_r2\tools.
com.android.ide.eclipse.adt (0.9.1.v200905011822-1621) "Android
Development Toolkit"
com.android.ide.eclipse.ddms (0.9.1.v200905011822-1621) "Dalvik Debug
Monitor Service"
Eclipse is 3.4.2
JDK is 1.6.0_14
Windows XP SP3

Please advise.
Thanks.

jean..

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and digital camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and digital camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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] creating an avd

2009-06-30 Thread ain

Ihave looked around on the internet for a solution to this. I have
tried creating and avd but this does not seem to work. I have been
looking around online for 4 hours and all the solutions out there I
have tried and non seems to be working.

when I try to create and avd using the following command

C:\Documents and Settings\Sam\Desktop\dotEXE\android-sdk-
windows-1.5_r2\tools>android create avd -n hellosam -t 1

I get the following error: Error: C:\Documents and Settings\Sam
\.android\avd\helloIan.ini (The system cannot find the path specified)

This is what am using.
I am using the latest SDk in windows and Ihave the Eclipese Galileo.
This is on windows XP. I am really stumped. I have restarted my pc but
nothing is working.

I have pulled out my hair enough.I am my wits end. I try to avoid
posting because I usually find my answer by looking through the forums
but so far nothing is working.

--~--~-~--~~~---~--~~
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] G1 Disability Accessibility

2009-06-30 Thread mrgushi

Need Help I have poor vision and I know the new 3.0 iphone software
and 3Gs has a zoom feature and text-to-speech. But I prefer Open
source projects. So if the new G1 or Android 1.5v got anything similar
I want to know whether from in-house or 3rd Party. Thanks guys.

Here's iphone features:
http://www.apple.com/accessibility/iphone/vision.html

Check out Video of how it works (THE ZOOM):
http://vimeo.com/5260523

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and digital camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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 WebKit Plugin Class Example

2009-06-30 Thread sglai

Hi,

Anyone know where can I find an example of android.webkit.Plugin
Class?

Thanks,
Sui-Sing

--~--~-~--~~~---~--~~
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] com.android.browser hogging CPU ?

2009-06-30 Thread sasq

For simple benchmarking I usually just run "top" in adb shell and I
have noticed that com.android.browser often shows up at the top with
around 16%.

Normally, this only happens when the browser is active but idle and
showing www.google.com. For some reason this page running something
actively when visible. Other google pages (such as calender) does not.

However sometimes when I check after having my phone running for a
while and com.android.browser is not in the foreground it is still at
around 16% - and I need to restart my phone to get rid of it.

Any ideas why?

(This is on the HTC Magic by the way)

-- Jonas Minnberg

--~--~-~--~~~---~--~~
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: Samsung I7500 ADB connection problem

2009-06-30 Thread jz0o0z

I had the same problem until I realized Samsung has their own adb.
You should contact who ever provided that device they should be able
to provide usb drivers and the correct adb.

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and digital camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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: Why Michael Jackson death?

2009-06-30 Thread 宋庆欣
because it' time

2009/6/27 sharath 

> hi,
> I agree with you, Nox.
> please talk about android.
>
> On Sat, Jun 27, 2009 at 2:42 PM, Nox  wrote:
>
>>
>> This is an Android-comunity
>> Nobody is interested in other themes like Michael Jackson
>> Here, you can ask and answer questions about Android or Android-
>> developing!!!
>>
>>
>>
>>
>>
>>
>>
>>
>> On Jun 26, 7:33 pm, Micheal Robert  wrote:
>> > Thanks  a lot
>>
>>
>
>
> --
> thank you,
> sharath
>
>
> >
>

--~--~-~--~~~---~--~~
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] Map Application is not running in emulator

2009-06-30 Thread moon

I am working on a map application which can be access by android
emulator in eclipse and java.
please tell the code for the eclipse3.3 and android 1.5 and adt0.8
plz help me

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and digital camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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] Error uploading audio Files

2009-06-30 Thread vikya

hello,

 i m trying to upload more than one audio Files, having size more
than 4 mb each.
 but i m getting this exception

 06-29 18:22:40.739: ERROR/AndroidRuntime(727): Uncaught handler:
thread Thread-9 exiting due to uncaught exception
06-29 18:22:40.751: ERROR/AndroidRuntime(727):
java.lang.OutOfMemoryError
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:103)
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:234)
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection
$HttpOutputStream.write(HttpURLConnection.java:652)
06-29 18:22:40.751: ERROR/AndroidRuntime(727): at
java.io.DataOutputStream.write(DataOutputStream.java:107)


  The code i use for uploading files is :

  private boolean uploadFile(File file, String urlString) {

boolean isUploadOk = false;
HttpURLConnection conn = null;
DataOutputStream dos = null;
FileInputStream fileInputStream = null;

int maxBufferSize = 4096;

try {

// Open a HTTP connection to the URL
URL url = new URL(urlString);
conn = (HttpURLConnection) url.openConnection();

// Allow Inputs
conn.setDoInput(true);
// Allow Outputs
conn.setDoOutput(true);
// Don't use a cached copy.
conn.setUseCaches(true);
// Use a post method.
conn.setRequestMethod("PUT");
conn.setRequestProperty("Connection", "Keep-Alive");

conn.setRequestProperty("Content-Type",
"multipart/form-data;boundary=" + 
boundary);

dos = new DataOutputStream(conn.getOutputStream());
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos.writeBytes("Content-Disposition: form-data; name=\""
+ file.getAbsolutePath() + 
"\";filename=\""
+ file.getName() + "\"" + lineEnd);
dos.writeBytes(lineEnd);

Log.e("", "Headers are written");

// create a buffer of maximum size
fileInputStream = new FileInputStream(file);
int bytesAvailable = fileInputStream.available();
int bufferSize = Math.min(bytesAvailable, 
maxBufferSize);

byte[] buffer = new byte[bufferSize];

// read file and write it into form...
int bytesRead = fileInputStream.read(buffer, 0, 
bufferSize);

while (bytesRead > 0) {
dos.write(buffer, 0, bufferSize);
bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, 
maxBufferSize);
bytesRead = fileInputStream.read(buffer, 0, 
bufferSize);
dos.flush();
}

buffer = null;

// send MULTIPART/FORM data necessary after file data.!
dos.writeBytes(lineEnd);
dos.writeBytes(twoHyphens + boundary + twoHyphens + 
lineEnd);

// close streams
Log.e("fileupload", "File is written");


} catch (MalformedURLException ex) {
Log.e("fileupload", "error: " + ex.getMessage(), ex);
}
catch (IOException ioe) {
Log.e("Exception:: ", "error: " + ioe.getMessage(), 
ioe);

}finally
{
try
{
if(fileInputStream != null)
fileInputStream.close();

}catch (Exception e) {

}

try
{
if(dos != null)
{
dos.flush();
//dos.close();
}

}catch (Exception e) {

}

try
{
if(dos != null)
{

dos.close();
}

}catch (Exception e) {

 

[android-beginners] android.location requestLocationUpdates only calls onLocationChanged once

2009-06-30 Thread Andrew Gee

Hi,

I've just started android development and have come into a problem.
Before I explain, you can find the code I have at http://pastebin.com/m5ca71390

I have created a LocationListener class, as you can see, called
MyLocationListener. I have onLocationChanged in that class which grabs
the location change and creates a Toast notification and updates two
TextViews on the interface.

You can see the LocationManager variable where the
requestLocationUpdates method is called, referencing the
MyLocationListener object.

==The Problem==
Using DDMS, I change the location information. The first time I set
this I see the Toast notification and the TextView objects update,
showing the latitude and longitude.

But subsequence changes do not get recognised by the application, as
onLocationChanged is not called at all.

Does anyone have any good ideas? It would be very much appreciated.

Thanks,
Andrew Gee

--~--~-~--~~~---~--~~
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] the method LayoutInflater.inflate

2009-06-30 Thread chandlersong

  the method has 3 parameters.and I'm confused by the second and the
thrid.
  I read api and  see when the attackToRoot is true.then the root will
be parent of the items in the xml. but what would happend when the
attackToRoot is falase? it's just take the values form xml and don't
create any views?
   it's better to have example

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

2009-06-30 Thread Pablo Vagliati
hi,

I will begin to break into Android. As you recommend I start?


-- 
Ing. Pablo Vagliati
0054 03858 15 44 9012

--~--~-~--~~~---~--~~
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: Eclipse Project Wizard

2009-06-30 Thread PlaceboKid

Helllo!

I have exactly the same problem. Have you find the solution for this
issue? I’ll very much appriciate if you could let me know.
Thanks a lot!


On May 1, 4:24 pm, Doofuss  wrote:
> I seem to have followed all the steps correctly, dowloaded, unzipped
> android sdk 1.5, set enviornment variable with path to the tools
> directory, installed eclipse and have the android development tools
> installed there.  However, I am not getting anything that actually has
> the word "Android" from anywhere in the File--> New Project-->
>
> It just has "type filter text" in the Wizards box, and then  under
> that says project...
>
> Am I supposed to type Android in there?  That is not what the
> directions in the Dev Guide under Creating an Android Project
> indicate.
>
> I do have the DDMS stuff showing up...and at one point was able to see
> the emulater stuff, but can't seem to get back there now
> Any advice out there for me?

--~--~-~--~~~---~--~~
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] Alarm Manager

2009-06-30 Thread Veroland

Hi

I have 2 problems,

I create a timer using AlarmManager and I set an Intent with certain
values in the putExtra methods and then create the pendingIntent with
this intent and call alamarmManager.set(RTC_Wakeup, time,
pendingIntent)

1.  The first time I do this everything works fine. The second time I
do this and use a intent with different data in the intent when the
alarm gets fired in my BroadcastReceiver class the data on the intent
is the data of the intent used in the first alarm and NOT the second
one.

2. If I call the alarmManager.set 2 times with 2 differents intents
and settings only the last alarmManager.set seems to result in my
broadcast receiver getting called. Does anyone know how to create
multiple alarms?

Here is my code I use to create the alarms

Intent i = new Intent(getApplicationContext(), ReminderAlarm.class);
i.putExtra(ReminderDbAdapter.KEY_ROWID, extras.getLong
(ReminderDbAdapter.KEY_ROWID));
i.putExtra(ReminderDbAdapter.KEY_TITLE, extras.getString
(ReminderDbAdapter.KEY_TITLE));
i.putExtra(ReminderDbAdapter.KEY_BODY, extras.getString
(ReminderDbAdapter.KEY_BODY));
Log.d("Sending", extras.getString(ReminderDbAdapter.KEY_TITLE));
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, i,
0);

AlarmManager alarmManager = (AlarmManager) getSystemService
(ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, lcal, pendingIntent);

--~--~-~--~~~---~--~~
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 devices

2009-06-30 Thread Natarajan

Can we load the Android OS  into cheap chinese handsets for testing?

Thanks

R.Natarajan

--~--~-~--~~~---~--~~
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] Pitch Change

2009-06-30 Thread handheld-penguin

I'm trying to write a DJ app that will allow me to pause, fast foward,
rewind, cue and skip (using a duration bar) songs. This is all done
easily in the built in media player that comes with android so nothing
new there.

The problem comes when I want to implement a way of being able to
adjust the pitch of a song, so that it can be beatmatched in a mix.

I found this java library PitchBend which I think would do the
trick...I can't use it with the android api though can I?

I will essentially have to rewrite a whole new music playing app won't
I?

Also, I would like to be able to browse the music library like you can
in the music player app.

--~--~-~--~~~---~--~~
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] Install Android on my pocket pc

2009-06-30 Thread xda

Hi,

I'm new to Android & have heard its open source, but am not very clear
on a few things.

-Is it possible to download the sources & compile it for an Intel
Xscale processor as used by most pocket pc devices?

-If the above is true, is it possible to flash the device to Android
to make it the default OS?

I'd be interested in customizing the OS for HTC devices like the
Blueangel (XDA IIs) & Universal (XDA exec).

Thanks,
/xda


--~--~-~--~~~---~--~~
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] HTC Magic and Eclipse

2009-06-30 Thread Croco

Hi all,

I've followed the procedure to install my HTC Magic to launch my apps
on.

the procedure seams went well

since now i've this output when i prompt adb devices :

List of devices attached
HT93WKF03753device

The procedure on Android developper says after to launch run as usual
and i will be able to see my real device + my previous emulator BUT
i'm not proposed with my Device :(  it still always only the emulator
visible.

Thank you for your helps.


Croco

--~--~-~--~~~---~--~~
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: Eclipse Project Wizard

2009-06-30 Thread PlaceboKid

This doesn't help, cause I don't have Android option in Window >
Customize Perspective :(

On May 9, 4:36 am, Raphael  wrote:
> Doofus, did that solve your issue?
>
> If you have installed ADT via Eclipse and still don't see the Android
> Project wizard, try this:
>
> 1- File > New > Other. You should see a category Android > Android Project
>
> 2- Window > Customize Perspective. In the Shortcut tab, make sure
> Android is checked. On some of my eclipse installs, this is not
> checked after I install ADT and the wizard don't appear in the File >
> New menu. Checking that solves it.
>
> R/
>
> On Fri, May 1, 2009 at 9:24 AM, Doofuss  wrote:
>
> > I seem to have followed all the steps correctly, dowloaded, unzipped
> > android sdk 1.5, set enviornment variable with path to the tools
> > directory, installed eclipse and have the android development tools
> > installed there.  However, I am not getting anything that actually has
> > the word "Android" from anywhere in the File--> New Project-->
>
> > It just has "type filter text" in the Wizards box, and then  under
> > that says project...
>
> > Am I supposed to type Android in there?  That is not what the
> > directions in the Dev Guide under Creating an Android Project
> > indicate.
>
> > I do have the DDMS stuff showing up...and at one point was able to see
> > the emulater stuff, but can't seem to get back there now
> > Any advice out there for me?

--~--~-~--~~~---~--~~
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: install Android app from Gmail

2009-06-30 Thread handheld-penguin

It is possible to do this if you open gmail in the browser rather than
the built in gmail app. Opening in the browser allows you to download
it, then you just navigate to the download directory with something
like linda file manager to install.

On Jun 26, 8:39 am, Beth Mezias  wrote:
> Hey there, hi there, ho there...Is there a way to make Android open and
> install an apk file as an attachment sent in a Gmail message?  This is a
> nice, signed apk file that installs to the phone correctly from Eclipse or
> the command
> line.  I'm just checking to see if this is working for somebody somewhere.
> Cheers,
> Beth
> --
>
> Princess 
> Margaret
> - "I have as much privacy as a goldfish in a bowl."

--~--~-~--~~~---~--~~
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 to create custom button and add a click listener?

2009-06-30 Thread nikogamulin

Hi,

I would like to create a custom button and make it interactive by
adding a click or touch listener.

I created a RoundButton class the following way:

public class RoundButton extends View {

private String buttonText;
private static final int buttonRadius = 36;
private static final float textSize = 16;

private int px;
private int py;

private int buttonState;
private int textHeight;

private Paint circlePaint;
private Paint textPaint;

public void SetPosition(int px, int py)
{
this.px = px;
this.py = py;
}

@Override
protected void onDraw(Canvas canvas) {

if(px == 0 || py == 0)
{
px = 50;
py = 50;
}

//int radius = Math.min(px, py);

canvas.drawCircle(px, py, buttonRadius, circlePaint);
canvas.save();

int textWidth = (int)textPaint.measureText(buttonText);
int cardinalX = px - textWidth/2;
int cardinalY = py - textHeight/2;
canvas.drawText(buttonText, cardinalX, cardinalY, textPaint);
canvas.restore();

//super.onDraw(canvas);
}

@Override
protected void onMeasure(int widthMeasureSpec, int
heightMeasureSpec) {

int measuredWidth = measure(widthMeasureSpec);
int measuredHeight = measure(heightMeasureSpec);

int d = Math.min(measuredWidth, measuredHeight);
setMeasuredDimension(d, d);

super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}

private int measure(int measureSpec)
{
int result = 0;

int specMode = MeasureSpec.getMode(measureSpec);
int specSize = MeasureSpec.getSize(measureSpec);

if(specMode == MeasureSpec.UNSPECIFIED)
{
result = 200;
}
else
{
result = specSize;
}
return result;
}



public RoundButton(Context context) {
super(context);
initRoundButton();
}

public RoundButton(Context context, AttributeSet attrs)
{
super(context, attrs);
initRoundButton();
}

protected void initRoundButton()
{
setFocusable(true);

circlePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
circlePaint.setColor(R.color.roundButtonUpColor);
circlePaint.setStyle(Paint.Style.FILL_AND_STROKE);

Resources r = this.getResources();

textPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
textPaint.setColor(r.getColor(R.color.roundButtonTextColor));

textPaint.setTextSize(textSize);
if(buttonText == null)
{
textHeight = (int)textPaint.measureText("Yy");
}
else
{
textHeight = (int)textPaint.measureText(buttonText);
}

}

@Override
public boolean onTouchEvent(MotionEvent event) {
// TODO Auto-generated method stub
return super.onTouchEvent(event);
}

public void setButtonText(String buttonText) {
this.buttonText = buttonText;
}

public String getButtonText() {
return buttonText;
}

protected class ButtonState
{
public static final int BUTTON_STATE_READY = 0;
public static final int BUTTON_STATE_PRESSED = 1;
}

public void test()
{
int i = 0;
}

}

Then I added this custom view to the main layout and bound the control
the following way:

rbActionButton = (RoundButton)findViewById(R.id.actionButton);

rbActionButton.setOnClickListener(new View.OnClickListener(){

@Override
public void onClick(View v) {

onActionButton();

}
});

but the onClick() doesn't execute when I touch the button.

Any ideas what could be wrong here?

Thanks!

Niko

--~--~-~--~~~---~--~~
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] full time computer jobs delhi, mumbai, bombay - search for ...

2009-06-30 Thread friend

full time computer jobs delhi, mumbai, bombay - search for ...
full time computer jobs delhi, mumbai, bombay, full time work,
 permanent part time work,
 contract work.
Jobs in India - Computer,software jobs in India Bangalore,Mumbai ...
Search jobs in India, career by location at India, Bombay,Delhi,Pune,
Hyderabad,Nagpur,Coimbatore. Employers
can post vacancy for careers in management ...
*

http://www.freewebs.com/soybeas/
&&

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and digital camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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] LayoutInflater.inflate

2009-06-30 Thread 宋庆欣
  the method has 3 parameters.and I'm confused by the second and the thrid.
  I read api.
  rootOptional view to be the parent of the generated hierarchy (if 
attachToRoot is true), or else simply an object that provides a set of 
LayoutParams values for root of the returned hierarchy (if attachToRoot is 
false.)
attachToRootWhether the inflated hierarchy should be attached to the root 
parameter? If false, root is only used to create the correct subclass of 
LayoutParams for the root view in the XML.

   
 I know when the attackToRoot is true.then the root will be parent of the 
items in the xml. but what would happend when the attackToRoot is falase? it's 
just take the values form xml and don't create any views?

2009-06-27 



宋庆欣 

--~--~-~--~~~---~--~~
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] textview inside listview

2009-06-30 Thread Tanay M. Kapoor

Hi,
i am trying to make a address book application
to do this i have prepared a textview to represent each contact info
and a list view in which i want to place this textview.
but i am unable to do this
some one please help out
if you could sent me the code
my email is tmkap...@gmail.com
Thank you...

--~--~-~--~~~---~--~~
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 to create custom button and add a click listener?

2009-06-30 Thread Niko Gamulin
Hi,

I would like to create a custom button and make it interactive by adding a
click or touch listener.

I created a RoundButton class the following way:

public class RoundButton extends View {

private String buttonText;
private static final int buttonRadius = 36;
private static final float textSize = 16;

private int px;
private int py;

private int buttonState;
private int textHeight;

private Paint circlePaint;
private Paint textPaint;

public void SetPosition(int px, int py)
{
this.px = px;
this.py = py;
}

@Override
protected void onDraw(Canvas canvas) {

if(px == 0 || py == 0)
{
px = 50;
py = 50;
}

//int radius = Math.min(px, py);

canvas.drawCircle(px, py, buttonRadius, circlePaint);
canvas.save();

int textWidth = (int)textPaint.measureText(buttonText);
int cardinalX = px - textWidth/2;
int cardinalY = py - textHeight/2;
canvas.drawText(buttonText, cardinalX, cardinalY, textPaint);
canvas.restore();

//super.onDraw(canvas);
}

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

int measuredWidth = measure(widthMeasureSpec);
int measuredHeight = measure(heightMeasureSpec);

int d = Math.min(measuredWidth, measuredHeight);
setMeasuredDimension(d, d);

super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}

private int measure(int measureSpec)
{
int result = 0;

int specMode = MeasureSpec.getMode(measureSpec);
int specSize = MeasureSpec.getSize(measureSpec);

if(specMode == MeasureSpec.UNSPECIFIED)
{
result = 200;
}
else
{
result = specSize;
}
return result;
}



public RoundButton(Context context) {
super(context);
initRoundButton();
}

public RoundButton(Context context, AttributeSet attrs)
{
super(context, attrs);
initRoundButton();
}

protected void initRoundButton()
{
setFocusable(true);

circlePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
circlePaint.setColor(R.color.roundButtonUpColor);
circlePaint.setStyle(Paint.Style.FILL_AND_STROKE);

Resources r = this.getResources();

textPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
textPaint.setColor(r.getColor(R.color.roundButtonTextColor));

textPaint.setTextSize(textSize);
if(buttonText == null)
{
textHeight = (int)textPaint.measureText("Yy");
}
else
{
textHeight = (int)textPaint.measureText(buttonText);
}

}

@Override
public boolean onTouchEvent(MotionEvent event) {
// TODO Auto-generated method stub
return super.onTouchEvent(event);
}

public void setButtonText(String buttonText) {
this.buttonText = buttonText;
}

public String getButtonText() {
return buttonText;
}

protected class ButtonState
{
public static final int BUTTON_STATE_READY = 0;
public static final int BUTTON_STATE_PRESSED = 1;
}

public void test()
{
int i = 0;
}

}

Then I added this custom view to the main layout and bound the control the
following way:

rbActionButton = (RoundButton)findViewById(R.id.actionButton);

rbActionButton.setOnClickListener(new View.OnClickListener(){

@Override
public void onClick(View v) {

onActionButton();

}
});

but the onClick() doesn't execute when I touch the button.

Any ideas what could be wrong here?

Thanks!

Niko
-- 
http://mypetprojects.blogspot.com/

--~--~-~--~~~---~--~~
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: HOWTO: change the xml keyboard AZERTY to QWERTZ ?

2009-06-30 Thread Nocia

Hi,

I have exactly the same problem. I saw that since the version 1.5
swiss french localization is available.
I tried to call swisscom and HTC but they said that they don't know
how to do.

Apparently the localization that will be proposed can be choosed when
you compile the OS.
But I think it should have an easier solution.
If someone know how to please help us.

Thank's in advance.

--~--~-~--~~~---~--~~
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] G1 Disability Accessibility

2009-06-30 Thread mrgushi

Need Help I have poor vision and I know the new 3.0 iphone software
and 3Gs has a zoom feature and text-to-speech. But I prefer Open
source projects. So if the new G1 or Android 1.5v got anything similar
I want to know whether from in-house or 3rd Party. Thanks guys.

Here's iphone features:
http://www.apple.com/accessibility/iphone/vision.html

Check out Video of how it works (THE ZOOM):
http://vimeo.com/5260523

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and camera's

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1...@gmail.com

--~--~-~--~~~---~--~~
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: Problem calling openStream() FileNotFoundException

2009-06-30 Thread Mat

Hi,

I have a similary problem. I have an URL with parameters, when the 2
parameters are correct, I have an XML response. If the parameters are
bad I have an other XML response with a code.
If i test with good parameters, it's ok, but if I test with wrong
parameters, I have a FileNotFoundException.
If I copy url with wrong parameters in a browser, I can see my
response with my code.
My url looks like this :
http://lan_ip/pages/param1=login¶m2=pass

On 12 juin, 13:58, xinit  wrote:
> Hi Mark,
>
> Thanks for respose !
>
> I run some tests and its a bit more confusing:
>
> 1) If I set the URL to another site for example "http://
> newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml" then it works.
> So I think the setup of my Emulator and network is good.
>
> 2)So I put the Google News RSS URL directly into the emulator's
> browser. The page resolves but is incorrect, its the standard news
> html page But it is not the RSS raw text file that I would see on IE
> on my pc browser. So I think the google server is doing something to
> the request.
>
> 3)So navigating on the Emulators browser i select the RSS feed option
> which displays the raw rss text file in the browser. I copy that URL
> into my application and rerun application and I get the same error.
>
> So I guess this is an issue with the way Google have setup there
> server ?
>
> Regards
>
> On Jun 12, 12:24 pm, Mark Murphy  wrote:
>
> > xinit wrote:
> > > Hello
>
> > > I am starting Android and am using SDK 1.5 r2 and hope someone can
> > > suggest to me where problem could lie.
>
> > > The following code does two simple things, Create URL object and then
> > > return InputStream by using openStream().
>
> > > When I call openStream() I get a io.FileNotFoundException.
>
> > > Here is sample code:
>
> > > try {
> > >            URL feed = new URL("http://news.google.co.uk/news?
> > > pz=1&ned=uk&hl=en&output=rss");
>
> > >                    try {
>
> > >                            InputStream is = feed.openStream();
>
> > >                    } catch (IOException e) {
> > >                            // TODO Auto-generated catch block
> > >                            Log.d("LOG", e.toString());
> > >                    }
>
> > > My manifest contains the Internet permission:
>
> > >  
>
> > > The problem is as though the DNS cant resolve the domain ?
>
> > > Any ideas ??
>
> > Have you tried putting that URL in the Browser app? I know it will not
> > display properly, but it will indicate whether your emulator/device can
> > access that specific domain given the nature of your Internet connection.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Need help for your Android OSS project?http://wiki.andmob.org/hado-Hide 
> > quoted text -
>
> > - Show quoted text -
>
>

--~--~-~--~~~---~--~~
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] Desktop,laptop computers and cameras

2009-06-30 Thread zubair ahmed

We provide the latest and updated information about desktop, desktop
computers and cameras,which may be benefit able for your office, home
and business .

Please contact via email,

zubaira1973gmail.com

--~--~-~--~~~---~--~~
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] Hello World - Can't 'run' android applications in Eclipse

2009-06-30 Thread d3ngar

Hi there,

First up:
I'm very new to the Android developing and have only have very limited
experience with Java... I'm sorry if I'm not using termini correctly,
feel free to correct me if I do.
However, I feel that this is probably more an Eclipse / Eclipse
repository issue...

To my problem:
I'm running Ubuntu 9.04 with Eclipse Platform Version: 3.4.2
(Ganymede?).
I've installed a static version of Eclipse (I didn't use the
repository from Eclipse, but downloaded a complete package) and then
followed the installation instructions here:
http://developer.android.com/sdk/1.5_r2/installing.html

When I check the installed software section in Eclipse I can see
'Android DDMS' and 'Android Development Tools', amongst many other
things which I think aren't really related to my problem (although I
could be wrong).

I've also created two Virtual Devices. Both are API Lvl 3, Platform
1.5 and Target Name is Android 1.5.

After following the instructions on how to build my first app (Hello
Android), I try to follow Run > Run, but this does not work!

At first I get an error: The selection did not contain any resources
that can be run on a server. - Fair enough... didn't wanna run it on a
server. However, I can't run it as an android app - no option given.
I then tried to create my own Run Configuration:
Android Application > Android > Project: Hello Android > launch:
my.namespace.helloAndroid > target: Auto: one of my Virtual Devices
and clicked run.
This made the virtual phone appear and say Android for a very long
time, but it seems that the App will not be loaded.
When I close the virtual machine, I get an error in the console:

[2009-06-27 14:10:47 - helloAndroid] emulator-5554 disconnected!
Cancelling 'my.namespace.helloAndroid activity launch'!

Why could this be? Have I forgot to install something?
Any help with this would be much appreciated!

Best,

Chris

--~--~-~--~~~---~--~~
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: Samsung I7500 ADB connection problem

2009-06-30 Thread jz0o0z

I had the same problem until I realized Samsung uses their own adb.
You should be able to get the drivers and correct adb from the person
that sent you the device.

--~--~-~--~~~---~--~~
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 on Galileo

2009-06-30 Thread HB

Hey,
Is it possible to develop for Android on Eclipse Galileo? or we have
to stick with Eclipse Ganymede now days?
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: Android on Galileo

2009-06-30 Thread Jose Ayerdis
well i managed to install it with no problem

2009/6/30 HB 

>
> Hey,
> Is it possible to develop for Android on Eclipse Galileo? or we have
> to stick with Eclipse Ganymede now days?
> Thanks.
> >
>


-- 
Atte

[[Jose Luis Ayerdis Espinoza]]
http://blognecronet.blogspot.com

--~--~-~--~~~---~--~~
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] Idea ?

2009-06-30 Thread Adem KARAKOLLU
How can i response from the server without request.
I can send httpRequest but i want to server will be able to send any
response whenever it want. (Server will be able to push to handset)
Must i install web server to my android ?
Any idea?
-- 
ADEM KARAKOLLU

--~--~-~--~~~---~--~~
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] Button setShadowLayer

2009-06-30 Thread BGH

I want to display a shadow behind the text on a button. My
understanding is that I can simply do

button.setShadowLayer(3,3,3,android.R.color.black);

but this does nothing and the text on the button looks the same as it
did before.

Any suggestions as to what I am doing 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: creating an avd

2009-06-30 Thread Tony Su

I don't think there is such thing as an AVD utility, at least there isn't such 
a thing in my SDK.

Tony

- Original Message -
From: ain 
Sent: Mon, 6/29/2009 10:05pm
To: Android Beginners 
Subject: [android-beginners] creating an avd


Ihave looked around on the internet for a solution to this. I have
tried creating and avd but this does not seem to work. I have been
looking around online for 4 hours and all the solutions out there I
have tried and non seems to be working.

when I try to create and avd using the following command

C:\Documents and Settings\Sam\Desktop\dotEXE\android-sdk-
windows-1.5_r2\tools>android create avd -n hellosam -t 1

I get the following error: Error: C:\Documents and Settings\Sam
\.android\avd\helloIan.ini (The system cannot find the path specified)

This is what am using.
I am using the latest SDk in windows and Ihave the Eclipese Galileo.
This is on windows XP. I am really stumped. I have restarted my pc but
nothing is working.

I have pulled out my hair enough.I am my wits end. I try to avoid
posting because I usually find my answer by looking through the forums
but so far nothing is working.



--~--~-~--~~~---~--~~
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: start

2009-06-30 Thread Yusuf T. Mobile

Hello Pablo, you've come to the right place to ask this question.

Android uses the Java programming language. If you have not learned
Java yet, you may start here: http://java.sun.com/docs/books/tutorial/

If you are familiar with Java, you can learn about Android here:
http://developer.android.com/guide/index.html



Buona fortuna.

Yusuf Saib
Android
·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 Jun 27, 9:46 pm, Pablo Vagliati  wrote:
> hi,
>
> I will begin to break into Android. As you recommend I start?
>
> --
> Ing. Pablo Vagliati
> 0054 03858 15 44 9012
--~--~-~--~~~---~--~~
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: start

2009-06-30 Thread Pablo Vagliati
Thanks Yusuf. The developer guide is a best source to begin that books like
"Professional Android Application Development-2009"?

On Tue, Jun 30, 2009 at 2:40 PM, Yusuf T. Mobile wrote:

>
> Hello Pablo, you've come to the right place to ask this question.
>
> Android uses the Java programming language. If you have not learned
> Java yet, you may start here: http://java.sun.com/docs/books/tutorial/
>
> If you are familiar with Java, you can learn about Android here:
> http://developer.android.com/guide/index.html
>
>
>
> Buona fortuna.
>
> Yusuf Saib
> Android
> ·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 Jun 27, 9:46 pm, Pablo Vagliati  wrote:
> > hi,
> >
> > I will begin to break into Android. As you recommend I start?
> >
> > --
> > Ing. Pablo Vagliati
> > 0054 03858 15 44 9012
> >
>


-- 
Ing. Pablo Vagliati
0054 03858 15 44 9012

--~--~-~--~~~---~--~~
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: Socket Failing - Very basic question

2009-06-30 Thread MCON Dev
Manifest file contains









Siddharth



 On Tue, Jun 30, 2009 at 11:47 PM, MCON Dev  wrote:

> My scenario is simple. I have a server running on port 124. My client code
> is
> *clientSocket* = *new* Socket("localhost", 124, InetAddress.*getByName*(
> "127.0.0.1"), 125);
>
> I have set the Developer Tools on android to "debug my application". Now
> when I run this code, I get a "permission to INTERNET" issue. Attached is
> bitmap.
>
> I dont have my server run as yet. Ideally without my server running I
> should not get a permission issue. Right ??
>
> Please help me debug the root cause ? Am I missing something really basic ?
>
> MConDev
>

--~--~-~--~~~---~--~~
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: creating an avd

2009-06-30 Thread ain


There is its for creating an android virtual device.
go to http://developer.android.com/guide/developing/tools/avd.html


--~--~-~--~~~---~--~~
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] Sending Email attachment -- crashes or attaches an empty file

2009-06-30 Thread Garth

Hi,

I'm trying to attach a text file I've created to an email with the
following code:
Intent sendIntent = new 
Intent(Intent.ACTION_SEND);

sendIntent.setType("text/plain");

sendIntent.putExtra(Intent.EXTRA_STREAM, "file://" + path);

sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");

startActivity(Intent.createChooser(sendIntent, "Title:"));
path is a string that points to a temporary file I've created.
I can read out of the file, so I know it exists and has the correct
data.

My problem is that when it shows the picker for an email client, if I
choose Gmail, Gmail crashes, and if I choose Email, it opens correctly
and sends an email with an attachment, but that attachment is a zero
byte file named noname.

Anyone have any good ideas?

Thanks in advance.
--~--~-~--~~~---~--~~
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: creating an avd

2009-06-30 Thread Paul Turchenko

Why do you need to use command line to create adv? Is there any
particular reason for that?

On Jun 30, 10:42 pm, ain  wrote:
> There is its for creating an android virtual device.
> go tohttp://developer.android.com/guide/developing/tools/avd.html
--~--~-~--~~~---~--~~
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: get applications onto the HTC Dream

2009-06-30 Thread Balwinder Kaur (T-Mobile)

You would need to go to the "Android Market" Application on your HTC
Dream to download the "free" market applications.
You may search for what you are looking for in the phone itself.

You may also checkout the Android Market Place application at
http://www.android.com/market/

Hope this helps,
Thanks,

Balwinder Kaur
Open Source Development Center
·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 Jun 27, 9:15 am, peterb  wrote:
> The phone is a dream and I am thrilled but I want to download a number
> of "free" market applications and a reader for excel and word docs?
>
> Can someone please steer me to an instruction page?
>
> 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:

2009-06-30 Thread Balwinder Kaur (T-Mobile)

You can check out the tutorials and sample code at
http://developer.android.com/guide/tutorials/hello-world.html
http://developer.android.com/guide/samples/index.html

This should help you with your request.

Balwinder Kaur
Open Source Development Center
·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 Jun 30, 4:03 am, saurabh sinha  wrote:
> I need to download dummy projects in android
--~--~-~--~~~---~--~~
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] Using AsyncTask

2009-06-30 Thread Georgy

Greetings,

after doing all the research for running a thread in the background in
the EASIEST way, all the leads pointed to asynctask.  However, as
everyone is saying that it is VERY easy to use, I am not able to
figure it out. Should I have the source code as another java file on
the side?  Is there like a tutorial (link) to how I can simply use it?

What I am trying to do is have the LOADING progress dialog at the
beginning of an application.

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: Using AsyncTask

2009-06-30 Thread Mark Murphy

Georgy wrote:
> after doing all the research for running a thread in the background in
> the EASIEST way, all the leads pointed to asynctask. 

Oh, I'm not sure about "easiest", but it's pretty safe. It shifts
complexity from runtime thread management to compile-time "how the
 do varargs work in Java again?" issues. All else being equal,
I'd rather struggle with the compiler than struggle with odd threading
problems.

It took me the better part of 9 pages to explain it with an example in
the released-but-not-announced Version 2.1 of _The Busy Coder's Guide to
Android Development_. But, it may be I'm just wordy.

You can grab the source for that from:

http://commonsware.com/Android/

Look for the Threads/Asyncer sample project.

The canonical example is on the Android Developers blog:

http://android-developers.blogspot.com/2009/05/painless-threading.html

Note that the current implementation of AsyncTask limits you to a single
background thread. It is fairly easy to pull the source for it into your
own project and tinker with the java.util.concurrent objects to add
threads, change the queue semantics, etc.

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

Android App Developer Training: http://commonsware.com/training.html

--~--~-~--~~~---~--~~
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: creating an avd

2009-06-30 Thread ain

I was following the instructions in the development portion from the
adroid website.
New Question how do i delete eclipse and all the associated files


On Jun 30, 3:56 pm, Paul Turchenko  wrote:
> Why do you need to use command line to create adv? Is there any
> particular reason for that?
>
> On Jun 30, 10:42 pm, ain  wrote:
>
> > There is its for creating an android virtual device.
> > go tohttp://developer.android.com/guide/developing/tools/avd.html
--~--~-~--~~~---~--~~
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] anyway to have sub-directories in the res/drawable folder?

2009-06-30 Thread Michael Dorin

Is there anyway to have sub-directories in the res/drawable folder?
Right now if I add one, it is not recognized.
However if I put all my png files right into drawable, I can see them.
Thanks,
-Mike

--~--~-~--~~~---~--~~
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: anyway to have sub-directories in the res/drawable folder?

2009-06-30 Thread Mark Murphy

Michael Dorin wrote:
> Is there anyway to have sub-directories in the res/drawable folder?
> Right now if I add one, it is not recognized.
> However if I put all my png files right into drawable, I can see them.

No, sorry, at the moment, they all have to be in res/drawable (or
parallel directories for other resource sets, such as res/drawable-land
for landscape).

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

Android Development Wiki: http://wiki.andmob.org

--~--~-~--~~~---~--~~
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: Using AsyncTask

2009-06-30 Thread Carmen Delessio
>
> It took me the better part of 9 pages to explain it with an example in
> the released-but-not-announced Version 2.1 of _The Busy Coder's Guide to
> Android Development_. But, it may be I'm just wordy.
>
> You can grab the source for that from:
>
> http://commonsware.com/Android/
>
> Look for the Threads/Asyncer sample project.
>
> The canonical example is on the Android Developers blog:
>
> http://android-developers.blogspot.com/2009/05/painless-threading.html
>
> Note that the current implementation of AsyncTask limits you to a single
> background thread. It is fairly easy to pull the source for it into your
> own project and tinker with the java.util.concurrent objects to add
> threads, change the queue semantics, etc.
>
> --
> Mark Murphy (a Commons Guy)


Thanks for the example.  I'm not surprised it took 9 pages, I don't think
this is trivial to understand.
I want to understand this better:
> the current implementation of AsyncTask limits you to a single
> background thread.

Im my case, I've extended a ListActivity.  I want to populate the list when
it is created and when the user scrolls to the end.
I'm using onCreate and onScrollStateChanged.
Today I am using a Thread in each of those methods.
There is a Handler in the ListActivity class to handle messages from the
threads.
I can't make the connection on how to do that with an AsyncTask.

Is it not a match or am I missing it?

Carmen

--~--~-~--~~~---~--~~
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: Using AsyncTask

2009-06-30 Thread Mark Murphy

Carmen Delessio wrote:
> Im my case, I've extended a ListActivity.  I want to populate the list
> when it is created and when the user scrolls to the end.
> I'm using onCreate and onScrollStateChanged. 
> Today I am using a Thread in each of those methods. 
> There is a Handler in the ListActivity class to handle messages from the
> threads.
> I can't make the connection on how to do that with an AsyncTask.
> 
> Is it not a match or am I missing it? 

I cannot say if it is a match for your specific code. That being said:

Step #1: Whatever you have in your background thread Runnable, move to
doInBackground() of an AsyncTask subclass

Step #2: Anything now in doInBackground() that uses a Handler, or
runOnUiThread(), or post(), to have done in the UI thread, move to
onPostExecute() (or publishProgress(), if you are trying to do it
incrementally)

For example, in the sample project I cited in my earlier reply, I use
AsyncTask to populate a ListView, using publishProgress() so the list is
incrementally updated rather than all at once at the end.

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

Android Development Wiki: http://wiki.andmob.org

--~--~-~--~~~---~--~~
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] happiness with .png files?

2009-06-30 Thread Michael Dorin

I am playing with grid layout tonight, following the example code
posted by google.
All is well with the code, but android does not like some of my png files.

They are all about the same size...but when I put some into the
'grid', I get the application
has stopped unexpectedly error.

As I said, they are all .png and all about the same size.   What might
cause this?
-Mike

--~--~-~--~~~---~--~~
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: happiness with .png files?

2009-06-30 Thread Mark Murphy

Michael Dorin wrote:
> I am playing with grid layout tonight, following the example code
> posted by google.
> All is well with the code, but android does not like some of my png files.
> 
> They are all about the same size...but when I put some into the
> 'grid', I get the application
> has stopped unexpectedly error.
> 
> As I said, they are all .png and all about the same size.   What might
> cause this?

What does the Java stack trace tell you? You can get the stack trace
from adb logcat, DDMS, or the DDMS perspective in Eclipse.

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

Android App Developer Books: http://commonsware.com/books.html

--~--~-~--~~~---~--~~
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] localization question..

2009-06-30 Thread eitan

so i started working on localizing an app to french (from an english-
only app).
i've been testing in the emulator.
then i decided to test on my actual device (tmobile g1).
i was surprised to discover that the only locales available are
english and spanish! (wtf?)

will that change in the future?  as a user, ideally, i'd like to
customize this.
in a manner similar, say, to how i configure keyboards on a desktop
machine
(i can add for example on ubuntu up to four keyboard layouts of my
choosing).

i'm curious how i might go about altering my phone to include more
locales
to choose from (and perhaps to even remove spanish, since i don't
speak
a word of it).

thanks,
/ eitan

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