[android-developers] Voice Call

2010-01-14 Thread Sukitha Udugamasooriya
Is it possible to interfere with a voice call and change the speaking
voices?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] pitch of a wavefile

2010-01-07 Thread Sukitha Udugamasooriya
Can somebody tell me how to change the pitch of a wave file in Android?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Hrozontal ListView

2009-12-16 Thread Sukitha Udugamasooriya
thank you..

On Dec 16, 1:21 pm, Romain Guy romain...@android.com wrote:
 You can use a Gallery instead.

 On Tue, Dec 15, 2009 at 11:16 PM, Sukitha Udugamasooriya





 suk...@gmail.com wrote:
  Hi,

  Can anyone tell me how to implement a horizontal listView?

  Items are scrolled horizontally.

  thank you

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

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them

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


[android-developers] Stop Scroll In a WebView

2009-12-16 Thread Sukitha Udugamasooriya
How can I stop the scrolling of a webview?

thanks

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


[android-developers] TextView shows line parts

2009-12-16 Thread Sukitha Udugamasooriya
Hi,

I have a very big chunk of text to display in TextView. I 'm showing
it page by page using a ViewFlipper. I use textView.scrollTo() display
next page. My problem is displays a line part at the top some times.
what can I do to stop this?

Help

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


[android-developers] Hrozontal ListView

2009-12-15 Thread Sukitha Udugamasooriya
Hi,

Can anyone tell me how to implement a horizontal listView?

Items are scrolled horizontally.

thank you

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


[android-developers] Aldiko View

2009-12-14 Thread Sukitha Udugamasooriya
hi,

Does anybody know what is the View used in the Aldiko epub reader. Is
it a WebView used to displaythe  chapter content?

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


[android-developers] WebView - flipping

2009-12-13 Thread Sukitha Udugamasooriya
Hi,

I'm just wondering if there is a way to to make a WebView flip
sideways instead of displaying the content by scrolling down. I.E If
the content is a very long paragraph, can we make the webview to
display it by flipping sideways?

Thank you

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


[android-developers] Re: Ebook reader

2009-12-07 Thread Sukitha Udugamasooriya
I'm interested in making a epub reader... can u help me where to start?

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


[android-developers] Epub reader

2009-12-07 Thread Sukitha Udugamasooriya
Hi,

Has anyone tried to make a epub reader software?

cheers

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


[android-developers] Re: Epub reader

2009-12-07 Thread Sukitha Udugamasooriya
thank you

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


[android-developers] Re: Epub reader

2009-12-07 Thread Sukitha Udugamasooriya
I am trying to develop an android application to read ePub files .Is
there any framework available to develop this?

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


[android-developers] Ebook reader

2009-12-06 Thread Sukitha Udugamasooriya
Hi all,

I need to build an ebook/reference reader type of an application. Is
there any engines which gives support for formatting html or anyother
types of content?

cheers

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


[android-developers] What is System Image

2009-11-12 Thread Sukitha Udugamasooriya
Hi there,

Please let me knwo what is Android system image? Is that the OS
version.. (Android 1.0, 2.0 etc)?

I'm a developer whos trying to buy an Android device. What would you
advice me to buy.
Will AndDev Phone be a better choice over a commercial phone cuz I can
update the 'so called system image'?

Thank you...
need ur advice asap...

Suki

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


[android-developers] Locale - Conversion

2009-08-25 Thread Sukitha Udugamasooriya

Hi,

How can I make the app in Chinese? I could do it for French, German
etc. But how to set the language to Chinese?

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



[android-developers] Resolution

2009-08-19 Thread Sukitha Udugamasooriya

Hi

I have created an application and I want to make sure it works in
different resolution.

 i have used LinearLayout and some ListViews and buttons.

I need to know will it be an issue if the apk is put to two different
phones which has different resolution.

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



[android-developers] Re: Resolution

2009-08-19 Thread Sukitha Udugamasooriya

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



[android-developers] Android RSS reader

2009-07-29 Thread Sukitha Udugamasooriya

Hi comrades,

Can someone give me guide lines to create a RSS reader application?
I'd like to dispaly few news stories in my application from a web
site,

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



[android-developers] Re: Android RSS reader

2009-07-29 Thread Sukitha Udugamasooriya

Hey Vinny,

I went through with it. Is made using an OLD sdk. Lots of methods have
been replaced and deprecated. So hard to use it. Thanks anywa,,,

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



[android-developers] OnItemClick

2009-07-10 Thread Sukitha Udugamasooriya

Hello there,

I have created a
I have set the OnItemClickListener to the list view.
It doenst listen when I press the center key of the emulator.

But

When I create the listview where each list item has ONLY a text view,
the Listener works.

why is this?



This is the composite adapter s getView();

public View getView(int position, View convertView, ViewGroup parent)
{
ViewHolder holder;
if (convertView == null) {
convertView = mInflater.inflate
(R.layout.list_item_icon_text,null);
holder = new ViewHolder();
holder.text = (TextView) 
convertView.findViewById(R.id.text);
holder.icon = (ImageButton) 
convertView.findViewById(R.id.icon);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}

holder.text.setText(bookList[position].getDisplayName());
holder.icon.setBackgroundResource(R.drawable.del);
return convertView;


}
static class ViewHolder {
TextView text;
ImageButton icon;
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] OnItemClick

2009-07-10 Thread Sukitha Udugamasooriya

Hello there,
I have created a listview
I have set the OnItemClickListener to the list view.
It doenst listen when I press the center key of the emulator.
But
When I create the listview where each list item has ONLY a text view,
the Listener works.
why is this?
This is the composite adapter s getView();
public View getView(int position, View convertView, ViewGroup parent)
{
ViewHolder holder;
if (convertView == null) {
convertView = mInflater.inflate
(R.layout.list_item_icon_text,null);
holder = new ViewHolder();
holder.text = (TextView)
convertView.findViewById(R.id.text);
holder.icon = (ImageButton)
convertView.findViewById(R.id.icon);
convertView.setTag(holder);
} else {
holder = (ViewHolder)
convertView.getTag();
}
holder.text.setText(bookList
[position].getDisplayName());
holder.icon.setBackgroundResource
(R.drawable.del);
return convertView;
}

static class ViewHolder {
TextView text;
ImageButton icon;
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] data between activities

2009-06-30 Thread Sukitha Udugamasooriya

Is it possible to transfer data between activities without using
extars??
 I need to access MyOwnObject in Atctivity 1 from Activity2
 Possible with using static fields?


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



[android-developers] Re: WebView

2009-06-25 Thread Sukitha Udugamasooriya

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



[android-developers] WebView

2009-06-24 Thread Sukitha Udugamasooriya

Hello,

I have a webview and need to trigger a function when a user clicks on
particular url.

How can I achieve this?

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



[android-developers] Animation Transition

2009-06-23 Thread Sukitha Udugamasooriya

Hi all,

Can you advise me how to apply view transition animation.

ex: when i click on an list item my contentview changers. I want to
apply a transition animation in that.

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



[android-developers] Re: Animation Transition

2009-06-23 Thread Sukitha Udugamasooriya

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



[android-developers] Progressbar

2009-06-07 Thread Sukitha Udugamasooriya

Hi,

Is there a way to display the percentage% of the progress on the bar?
Simple write something on the bar in the new SDK? I have searched
everywhere for a sample code... :(

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



[android-developers] Append TextViews

2009-06-01 Thread Sukitha Udugamasooriya

Hi,

I need to append a new TextView s to the current View whenever a user
hits on a button.

ie: 5 clicks -- the display should have 5 text fields

How do i do this?

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



[android-developers] Re: Progress bar update help

2009-05-27 Thread Sukitha Udugamasooriya

Is this correct? It works accordingly. But I m not sure about the
performance issues. I am relatively new to Android.
Please help

private void testDownload1(String urlStr) {
try {
progress = 0;
URL sourceURL = new URL(urlStr);
URLConnection con = sourceURL.openConnection();
InputStream inStream=(InputStream)con.getContent();

pbMax =con.getContentLength(); 
// max
length of the progress bar

FileOutputStream outStream = new 
FileOutputStream(sdcard/
tmz1.tr3);
byte[] bytes = new byte[20480];
int readBytes = inStream.read(bytes);
while (readBytes  0) {
try {
Thread.sleep(time);
} catch (InterruptedException e) {
e.printStackTrace();
}
this.runOnUiThread(new Runnable() {
public void run() {
pBar.setProgress(progress);
pBar.invalidate();
}
});
outStream.write(bytes, 0, readBytes);
readBytes = inStream.read(bytes);
progress += readBytes;
}
inStream.close();
outStream.close();
} catch (IOException e) {
Log.e(TAG, error: + e.toString());
}
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] File download

2009-05-27 Thread Sukitha Udugamasooriya

Hi all,

My app downloads a file from the web into sd card. Works well.
Now I want to put a button to pause the download and resume it later.
Download is being done in a background thread.

Any suggestions folks?

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



[android-developers] File download

2009-05-27 Thread Sukitha Udugamasooriya

Hi all,

My app downloads a file from the web into sd card. Works well.
Now I want to put a button to pause the download and resume it later.
Download is being done in a background thread.

Any suggestions folks?

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



[android-developers] Re: Progress bar update help

2009-05-27 Thread Sukitha Udugamasooriya

Is this correct? It works accordingly. But I m not sure about the
performance issues. I am relatively new to Android.
Please help
private void testDownload1(String urlStr) {
try {
progress = 0;
URL sourceURL = new URL(urlStr);
URLConnection con = sourceURL.openConnection
();
InputStream inStream=(InputStream)
con.getContent();
pbMax =con.getContentLength
(); // max
length of the progress bar
FileOutputStream outStream = new
FileOutputStream(sdcard/
tmz1.tr3);
byte[] bytes = new byte[20480];
int readBytes = inStream.read(bytes);
while (readBytes  0) {
this.runOnUiThread(new Runnable() {
public void run() {
pBar.setProgress
(progress);
pBar.invalidate();
}
});
outStream.write(bytes, 0, readBytes);
readBytes = inStream.read(bytes);
progress += readBytes;
}
inStream.close();
outStream.close();
} catch (IOException e) {
Log.e(TAG, error: + e.toString());
}
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Resumeable downloads??

2009-05-27 Thread Sukitha Udugamasooriya

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



[android-developers] File download help

2009-05-27 Thread Sukitha Udugamasooriya

This is a snip of my code



URL sourceURL = new URL(urlStr);

URLConnection con = sourceURL.openConnection();

con.setRequestProperty(Content-Range, bytes 0-200/+pbMax); //sets
a chunck to download

InputStream inStream=(InputStream)con.getContent();

int pbMax =con.getContentLength();

Log.w(TAG,+pbMax); //but  this returns the full length

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



[android-developers] image not appearing in the sd card

2009-05-26 Thread Sukitha Udugamasooriya

Hi all,

Sorry if this is a re-post. I tried to find the solution here but
failed.
I made a small app which downloads an image(jpg) and saves it on the
sd card. It works fine. I could pull the image down in to my computer
and could see it.
But i couldnt see it in the emulator. (not appearing in the gallery)..
Why is that?

private void testDownload(String urlStr) {
URL url = null;
try {
 url = new URL(urlStr);
URLConnection conn = null;
conn = url.openConnection();
conn.connect();
InputStream is = null;
is = conn.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);
Bitmap bm = BitmapFactory.decodeStream(bis);
File f = new File(/sdcard/1.jpg);
FileOutputStream fos = null;
fos = new FileOutputStream(f);
bm.compress(Bitmap.CompressFormat.JPEG, 100, fos);
bis.close();
is.close();
} catch (IOException e) {
Log.e(TAG, error6: + e.toString());
}
}
Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: image not appearing in the sd card

2009-05-26 Thread Sukitha Udugamasooriya

Yes. It s loaded. I pushed few images from my computer to the emulator
using the command line. I could watch those from the gallery.
In the previous case It downloads images (they are not visible in the
gallery but I could pull them from the command line).


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



[android-developers] Progress bar update help

2009-05-26 Thread Sukitha Udugamasooriya

Hi,

I m implementing a small app which downloads files (avg 1MB files-
takes 5 seconds to download).
-- I want to show the progress using a ProgressBar.
--The user can pause the download if he desires.

How can I show the progress? (How can I know the amount that has
downloaded at a given moment?)

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



[android-developers] Re: Progress bar update help

2009-05-26 Thread Sukitha Udugamasooriya

Can you please put a code snip?

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



[android-developers] Re: image not appearing in the sd card

2009-05-26 Thread Sukitha Udugamasooriya

Sorry my mistake. When I restart the emulator, those downloaded images
were in the gallery.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] play sound issue

2009-05-21 Thread Sukitha Udugamasooriya

Hi,

In my application i'm playing a 1 second sound clip when the user
clicks on a button. after that a mall thread sleep then i have
assigned a small animation to the particular button. (500ms
duration).
Animation works fine without sound. But when I put sound the animation
is not consistent.

Why is that?

mp = MediaPlayer.create(this, R.raw.over);
try {
mp.prepare();
} catch (IOException e) {
Log.w(EXCEPTION, IO);
e.printStackTrace();
}

Do i need to start sound on  a different thread?
Is there anything to concern regarding this?

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



[android-developers] Re: UI problem

2009-05-15 Thread Sukitha Udugamasooriya

h. OK. But without creating a new thread the changes made to the
button are not visible (END View pops up).

Can you give me a suggestion the original problem please?

Thank you

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



[android-developers] UI problem

2009-05-14 Thread Sukitha Udugamasooriya

Hi geniuses,

I have few buttons on the content. When I click on one button,

1-- I want to change the text of the button.
2-- Then I want to change the content view.

this is my method which executes with the onClick event.

private void markUser(int index) {

btnArray[index].setText(mark);
btnArray[index].setClickable(false);

showGameOverMenu(); // calls the setContentView();
}

Here the problem is the text change of the button is not visible.

How can I make it visible??? I'm not thorough with how the UI thread
works in android

Thanks in advance

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



[android-developers] Re: UI problem

2009-05-14 Thread Sukitha Udugamasooriya

Yeahh.. I found out..

runOnUiThread() is the solution

Thread t = new Thread() {
public void run() {
f.runOnUiThread(new Runnable() {
@Override
public void run() {
holdGame(3000);

setContentView(R.layout.game_end_menu);
initGameOver();
}
});
}
};
t.start();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] apk manual install problem Failure [-12]

2009-05-12 Thread Sukitha Udugamasooriya

I have developed a small application on eclipse (SDK 1.5r1). When I
run the project it worked fine. Then I exported the signed
application. (Lunar.apk)
Then I sent the Lunar.apk file to my friend to install on his machine.
when he try to install it manually on the emulator
the cmd prompt says

pkg: /data/local/tmp/Lunar.apk
Failure [-12]

Please help me with this.

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



[android-developers] Re: apk manual install problem Failure [-12]

2009-05-12 Thread Sukitha Udugamasooriya

Thank you Android Users  Mark. It works now.
Changed build target to Android 1.5 and Min SDK version to 1. I was
using SDK 1.5 r1 and my friend was using SDK 1.0 r2.
best Regards

Sukitha...


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



[android-developers] Re: help: button.setBackgroundColor

2009-05-07 Thread Sukitha Udugamasooriya

Romain Guy ,

Thanks.
Seems it is a long process to change the original assets. You meant
from the Android source code rite?

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



[android-developers] Re: onDraw() help

2009-05-06 Thread Sukitha Udugamasooriya

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



[android-developers] help: button.setBackgroundColor

2009-05-06 Thread Sukitha Udugamasooriya

HI,

After clling button.setBackgroundColor(int color)... the 3D look of
the button has gone... :(
How can I mend this??

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



[android-developers] onDraw() help

2009-05-05 Thread Sukitha Udugamasooriya
Hi all,

I'm relatively new to Android. I want to draw strokes on my screen when the
user touches. Next stroke should be drawn from the end point of the previous
stroke.
This is my code. What happens here is just only the current stroke is drawn.
Previous strokes are vanished? What is wrong here? Please help..




package src.test;

import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

public class ActDraw extends Activity implements OnTouchListener {

float x = 200;
float y = 200;
float x1 = 10;
float y1 = 45;
float prvx = 150;
float prvy = 150;
MyView m;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

m = new MyView(this);
m.setOnTouchListener(this);
setContentView(m);

}
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
prvx = x;
prvy = y;
x = event.getX();
y = event.getY();
 m.invalidate();
}
}
return false;
}

class MyView extends View {
Paint p = new Paint();
Bitmap bm;
int i;

public MyView(Context context) {
super(context);

}

@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
p.setColor(Color.GREEN);
p.setStrokeWidth(4);
canvas.drawLine(prvx, prvy, x, y, p);
}
}
}

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



[android-developers] onDraw() help needed....!

2009-05-05 Thread Sukitha Udugamasooriya

Hi all,

I'm relatively new to Android. I want to draw strokes on my screen
when the user touches. Next stroke should be drawn from the end point
of the previous stroke.
This is my code. What happens here is just only the current stroke is
drawn. Previous strokes are vanished? What is wrong here? Please
help..




package src.test;

import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

public class ActDraw extends Activity implements OnTouchListener {

float x = 200;
float y = 200;
float x1 = 10;
float y1 = 45;
float prvx = 150;
float prvy = 150;
MyView m;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

m = new MyView(this);
m.setOnTouchListener(this);
setContentView(m);

}
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
prvx = x;
prvy = y;
x = event.getX();
y = event.getY();
 m.invalidate();
}
}
return false;
}

class MyView extends View {
Paint p = new Paint();
Bitmap bm;
int i;

public MyView(Context context) {
super(context);

}

@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
p.setColor(Color.GREEN);
p.setStrokeWidth(4);
canvas.drawLine(prvx, prvy, x, y, p);
}
}
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-05-05 Thread Sukitha Udugamasooriya

I want to draw strokes on my screen when the user touches. Next stroke
should be drawn from the end point
of the previous stroke.
This is my code. What happens here is just only the current stroke is
drawn. Previous strokes are vanished? What is wrong here? Please
help..

package src.test;

import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

public class ActDraw extends Activity implements OnTouchListener {

float x = 200;
float y = 200;
float x1 = 10;
float y1 = 45;
float prvx = 150;
float prvy = 150;
MyView m;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

m = new MyView(this);
m.setOnTouchListener(this);
setContentView(m);

}
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
prvx = x;
prvy = y;
x = event.getX();
y = event.getY();
 m.invalidate();
}
}
return false;
}

class MyView extends View {
Paint p = new Paint();
Bitmap bm;
int i;

public MyView(Context context) {
super(context);

}

@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
p.setColor(Color.GREEN);
p.setStrokeWidth(4);
canvas.drawLine(prvx, prvy, x, y, p);
}
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-05-05 Thread Sukitha Udugamasooriya

Thanks. Is there a way to save the Canvas object on re-draw that in
the onDraw()??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-05-04 Thread Sukitha Udugamasooriya

Hello,

I'm also facing this problem. I'm relatively new to Android.

Have you found the solution??

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