[android-developers] JetPlayer

2010-01-23 Thread Business Talk
Is there any way to control a play position of a JetPlayer? This
concept seems to be totally foreign to it's api. I have a requirement
to use a SeekBar to control a play position of the player, as it's
done with the mp3 players.

-- 
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] AudioTrack - Clicking Proplem

2010-01-21 Thread Business Talk
I am trying to resolve the clicking problem while using the
AudioTrack. It takes place only when playing the first part of the
wave (pcm) buffer when the offset to the write is  0 (zero).

track.write(buffer, offset, minBufferSize);

 It tells me that there is something wrong with the pcm data. Could it
be because the wave data, I generate using Audacity, has some header
as opposed to the pure pcm which does not? I was looking for the
converter tools to generate pure pcm but found none. Applications I
found generate only  wave data so I am not able to test this
assumption. At this point I am sure that filling the buffer is
correct. Any ideas?

Roman

-- 
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] InputStream.read

2010-01-19 Thread Business Talk
When downloading a file from the net in the emulator all is fine, no
exception is thrown



HttpURLConnection httpURLConnection = (HttpURLConnection)
_URL.openConnection();

httpURLConnection.setRequestMethod("GET");
httpURLConnection.setDoOutput(true);
httpURLConnection.connect();

InputStream _InputStream = httpURLConnection.getInputStream();



yet, when reading the input stream into a buffer it returns 0 (zero)
length.

_InputStream.read(buffer, 0, buffer.length)

-- 
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: ZipFile

2010-01-19 Thread Business Talk
Thanks John

On Jan 19, 5:25 pm, "Maps.Huge.Info (Maps API Guru)"
 wrote:
> This should work for you...
>
>         InputStream is = conn.getInputStream();
>         ZipInputStream zis = new ZipInputStream(new BufferedInputStream(is));
>         ZipEntry entry;
>
>         while ((entry = zis.getNextEntry()) != null) {
>                 int size = 0 ;
>                 byte[] buffer = new byte[2048];
>
>                 FileOutputStream fos = openFileOutput(entry.getName(),
> Activity.MODE_WORLD_WRITEABLE);
>                 while ((size = zis.read(buffer, 0, buffer.length)) != -1) {
>                         fos.write(buffer, 0, size) ;
>                 }
>                 filesProcessed++ ;
>                 if ( fileHash.get(entry.getName()) != null ) {
>                         fos.flush();
>                         fos.close();
>                 }
>         }
>
> -John Coryat
>
> "Radar Now!"
>
> "What Zip Code?"
-- 
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] ZipFile

2010-01-19 Thread Business Talk
I am trying to download a zip file from the net and I don't seem to be
able to create a ZipFile passing the InputStream

 ( httpURLConnection.getInputStream()  ).

 I really don't want to create a temp zip file and then create the
ZipFile using the File object pointing the test zip file. Any  ideas?
-- 
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] Bussiness Model

2010-01-17 Thread Business Talk
Do you think that the business model based on an application that
displays/manages paid content is workable in the android environment?
I think it is not due to the application market’s lack of support for
the paid content?  What I mean is that applications, such as iTunes,
can be installed from the market but the paid content, such as mp3s,
can not be purchased from the market. So, it would have to be
purchased through a service outside of the market, as it is the case
with iTunes, which is a well established service. In case of a new
service, the user would have to open a separate account with the
charge information, which is always a problem, specially when it’s a
new service. Also, the service itself would have to manage the
financial transactions, which introduces additional complexity. Any
thought on the subject?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
Philip, it did work after all. thanks.

On Jan 16, 8:38 am, Business Talk 
wrote:
> Thanks Philip, you are right, It should'v been mkdirs. But even so it
> still returns false.
>
> My example was a little confusing as to the directory names; all of
> them are directories;
>
> File directory = _Context.getFileStreamPath("");
> File subdirectory = new File(directory, "subdir1/subdir2/subdir3");
> boolean result = subdirectory.mkdirs();
>
> the above code follows an example in the following posting;
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> On Jan 16, 1:19 am, Philip  wrote:
>
>
>
> > if dir and mk don't exist, I believe that you need to use mkdirs
> > instead :
>
> > mkdirs()
> > Creates the directory named by the trailing filename of this file,
> > including the complete directory path required to create this
> > directory.
>
> > On Jan 15, 9:43 pm, Business Talk 
> > wrote:
>
> > > I am trying to create a directory hierarchy byt the mkdir returns
> > > false. What am I missing here?
>
> > > File directory = _Context.getFileStreamPath("");
>
> > > File subdirectory = new File(directory, "dir/mk/foo");
>
> > > boolean result = subdirectory.mkdir();- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
-- 
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: mkdir

2010-01-16 Thread Business Talk
Thanks Philip, you are right, It should'v been mkdirs. But even so it
still returns false.

My example was a little confusing as to the directory names; all of
them are directories;

File directory = _Context.getFileStreamPath("");
File subdirectory = new File(directory, "subdir1/subdir2/subdir3");
boolean result = subdirectory.mkdirs();


the above code follows an example in the following posting;

http://groups.google.com/group/android-developers/browse_thread/thread/64fb55b5bd03a2cd/064b1fe40b3c25ce?lnk=gst&q=mkdirs#064b1fe40b3c25ce



On Jan 16, 1:19 am, Philip  wrote:
> if dir and mk don't exist, I believe that you need to use mkdirs
> instead :
>
> mkdirs()
> Creates the directory named by the trailing filename of this file,
> including the complete directory path required to create this
> directory.
>
> On Jan 15, 9:43 pm, Business Talk 
> wrote:
>
>
>
> > I am trying to create a directory hierarchy byt the mkdir returns
> > false. What am I missing here?
>
> > File directory = _Context.getFileStreamPath("");
>
> > File subdirectory = new File(directory, "dir/mk/foo");
>
> > boolean result = subdirectory.mkdir();- Hide quoted text -
>
> - Show quoted text -
-- 
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: File System

2010-01-09 Thread Business Talk
Thanks Mark, it works.

On Jan 9, 3:32 pm, Mark Murphy  wrote:
> Business Talk wrote:
> > How is it that I can open a file with
>
> > FileInputStream inputStream = _Context.openFileInput("songs.zip");
>
> > but not with
>
> > ZipFile zipFile = new ZipFile("songs.zip");
>
> > the ZipFile throws the FileNotFoundException. What am I missing?
>
> openFileInput() knows about /data/data/your.package.here/files.
> ZipFile(), and everything else in stock Java, does not. You will need to
> fully-qualify your path:
>
> ZipFile zipFile=new ZipFile(new File(getFilesDir(), "songs.zip"));
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Beginning Android_ from Apress Now Available!
-- 
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 System

2010-01-09 Thread Business Talk
How is it that I can open a file with

FileInputStream inputStream = _Context.openFileInput("songs.zip");


but not with

ZipFile zipFile = new ZipFile("songs.zip");

the ZipFile throws the FileNotFoundException. What am I missing?
-- 
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 System - Continue

2010-01-09 Thread Business Talk
How is it that I can open a file with

FileInputStream inputStream = _Context.openFileInput("songs.zip");


but not with

ZipFile zipFile = new ZipFile("songs.zip");

the ZipFile throws the FileNotFoundException. What am I missing?
-- 
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: File System

2010-01-09 Thread Business Talk
Thanks Mark, I understand. I did it just for testing. The file will be
coming over the wire but for now since I don’t have the backend
services I wanted to put the test file locally and deal with this way.

On Jan 9, 2:19 pm, Mark Murphy  wrote:
> Business Talk wrote:
> > I don’t see ‘files’ directory under the /data/data//
> > in the ddms (in the emulator).
>
> That should be lazy-created the first time you try using it from your
> app. You will not be able to push a file there until then.
>
> Bear in mind that you will not be pushing files in that directory in
> production, in part because the device won't allow it, and in part
> because you (presumably) won't have access to all your users' phones.
> Hence, your application will need to handle the case where the file you
> seek is not there (e.g.,  you haven't downloaded it off the Web just yet).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] File System

2010-01-09 Thread Business Talk
I don’t see ‘files’ directory under the /data/data//
in the ddms (in the emulator). I can see the ‘database’ and the ‘lib’
directories. It doesn’t seem to be possible to create it manually in
the ddms so when I manually push the file onto the device it goes
under the application directory,  /data/data//
myfile.zip

when I try to open this file from my activity;

ZipFile zipFile = new ZipFile("song.zip");

I get the exception with very little information. What's going on?

Surprisingly little documentation on the android’s file system exists.
I goggled for the info but with exception of some code examples no
documentation could be found. Any links will be helpful.

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

[android-developers] Re: Market Question

2010-01-09 Thread Business Talk
Any other Market services, you know of, that might support such
functionality?

On Jan 9, 12:03 pm, Sena Gbeckor-Kove  wrote:
> There is no support for that kind of set up unfortunately.
>
> S
>
> ---
>
> Sena Gbeckor-Kove
> CTO/Founder - imKon
>
> UK : +44 7788 146652
> NL : +31 62 434 1290
> s...@imkon.com    |    www.imkon.com
>
> Asia (Singapore) :
> 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore
>
> Europe (London) :
> 145-157 St John's St, EC1V 4PY London, UK
>
> On 9 Jan 2010, at 18:02, Business Talk wrote:
>
>
>
> > I have a question related to the payment infrastructure. I have an
> > application similar to the iTunes. The application is installed from
> > the ‘Market’ but the songs are downloaded from my side and charges are
> > applied to every song’s download. I would prefer to make the songs
> > available through the Market so the Market manages all  the charges
> > but I don’t see how. Anybody else works on the same scenario?
> > --
> > 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
>
>
>
>  smime.p7s
> 3KViewDownload- Hide quoted text -
>
> - Show quoted text -
-- 
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: Market Question

2010-01-09 Thread Business Talk
thanks, Sena

On Jan 9, 12:03 pm, Sena Gbeckor-Kove  wrote:
> There is no support for that kind of set up unfortunately.
>
> S
>
> ---
>
> Sena Gbeckor-Kove
> CTO/Founder - imKon
>
> UK : +44 7788 146652
> NL : +31 62 434 1290
> s...@imkon.com    |    www.imkon.com
>
> Asia (Singapore) :
> 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore
>
> Europe (London) :
> 145-157 St John's St, EC1V 4PY London, UK
>
> On 9 Jan 2010, at 18:02, Business Talk wrote:
>
>
>
> > I have a question related to the payment infrastructure. I have an
> > application similar to the iTunes. The application is installed from
> > the ‘Market’ but the songs are downloaded from my side and charges are
> > applied to every song’s download. I would prefer to make the songs
> > available through the Market so the Market manages all  the charges
> > but I don’t see how. Anybody else works on the same scenario?
> > --
> > 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
>
>
>
>  smime.p7s
> 3KViewDownload- Hide quoted text -
>
> - Show quoted text -
-- 
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] Market Question

2010-01-09 Thread Business Talk
I have a question related to the payment infrastructure. I have an
application similar to the iTunes. The application is installed from
the ‘Market’ but the songs are downloaded from my side and charges are
applied to every song’s download. I would prefer to make the songs
available through the Market so the Market manages all  the charges
but I don’t see how. Anybody else works on the same scenario?
-- 
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] ZipFile

2010-01-09 Thread Business Talk
Am I missing something? if I want to download a zip file using let’s
say HttpClient and parse this zip file using the ZipFile it looks like
the only way to do it is to save it locally first and than open it
with the ZipFile. Is it the case? I could use the ZipInputStream but
it makes it so much more complicated. Any suggestions or sample code?
-- 
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: Marketplace

2010-01-09 Thread Business Talk
thank, so your guess is that the market application synchs at least
partial information? For example, 'Featured' application information,
and/or partial infor for other categories?

I haven't found any setting for the background data. What do you mean
by that?


On Jan 9, 1:13 am, theSmith  wrote:
> Do you mean like 'how/when does the market place check for app
> updates?'
>
> And my best guess is that it might happen during a sync (since the
> market place requires background data to be turned on)
> I don't really know much about the backend frame work stuff though.
>
> -theSmith
>
> On Jan 8, 11:16 pm, Business Talk 
> wrote:
>
>
>
> > Any thought on how the Marketplace handles the information related to
> > the marketplace applications? I wonder if the request is posted to the
> > marketplace  every time client is started or if some of the available
> > applications data is stored locally and refreshed by the background
> > service.- Hide quoted text -
>
> - Show quoted text -
-- 
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] Marketplace

2010-01-08 Thread Business Talk
Any thought on how the Marketplace handles the information related to
the marketplace applications? I wonder if the request is posted to the
marketplace  every time client is started or if some of the available
applications data is stored locally and refreshed by the background
service.
-- 
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: dispatchTouchEvent

2010-01-08 Thread Business Talk
I found the way to generate the MotionEvent, and it's
MotionEvent.obtain

On Jan 8, 1:15 pm, Business Talk  wrote:
> How can I programmatically press/release a button? I was playing with
> the button.dispatchTouchEvent(motionEvent); but failed to
> programmatically generate  the MotionEvent to be passed to the
> dispatchTouchEvent
-- 
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] dispatchTouchEvent

2010-01-08 Thread Business Talk
How can I programmatically press/release a button? I was playing with
the button.dispatchTouchEvent(motionEvent); but failed to
programmatically generate  the MotionEvent to be passed to the
dispatchTouchEvent
-- 
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: SeekBar

2010-01-07 Thread Business Talk
you are right, I just tested it. It can't be done.

On Jan 7, 7:30 pm, Mark Murphy  wrote:
> Business Talk wrote:
> > Has anybody tried to use the SeekBar in the window's title bar,
> > instead of the ProgressBar, using the requestWindowFeature
> > (Window.FEATURE_PROGRESS);?
>
> I do not believe that is possible.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 1.3 Available!
-- 
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] SeekBar

2010-01-07 Thread Business Talk
Has anybody tried to use the SeekBar in the window's title bar,
instead of the ProgressBar, using the requestWindowFeature
(Window.FEATURE_PROGRESS);?
-- 
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: ProgressBar

2010-01-07 Thread Business Talk
Thanks Moto

On Jan 7, 7:09 pm, Moto  wrote:
> That would be a seekbar not a progressbar ;)
>
> On Jan 7, 6:45 pm, Business Talk  wrote:
>
>
>
> > Is there any interactive progress bar, similar to the music player
> > progress bar? It shows the progress but it also allows to move the
> > cursor back and forth.- Hide quoted text -
>
> - Show quoted text -
-- 
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

2010-01-07 Thread Business Talk
Is there any interactive progress bar, similar to the music player
progress bar? It shows the progress but it also allows to move the
cursor back and forth.
-- 
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] Expandable View

2010-01-07 Thread Business Talk
I am looking for a view that can be expended by dragging the it's
handle, the way the notification view can be opened by dragging its
handle downwards.
-- 
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: StartActivityForResult

2010-01-06 Thread Business Talk
Thanks Mark, it will work. I was considering this approach. I was
hesitant for it establishes a dependency among the hierarchy
activities. I thought I might have a need to reuse the activities in
other scenarios in which I might have to select the artists/albums/
songs only without drilling down the hierarchy. I will go with your
suggestion thought.

Roman



On Jan 6, 10:05 am, "Mark Murphy"  wrote:
> > I am using ListActivities to drill down into a hierarchy; artist,
> > album and song. One activity per hierarchy. So, from the main
> > activity  I start the ArtistActivity with the StartActivityForResult
> > method and when the an artist is selected I call the
>
> > protected void onListItemClick(ListView l, View v, int position, long
> > id) {
>
> > setResult(Activity.RESULT_OK, results);
> > finish();
>
> > }
>
> > to return the results. Than the main activity receives results from
> > the ArtistsActivity in the onActivityResult method and starts the next
> > hierarchy s activity, AlbumActivity, in the same way as the previous
> > activity, on so on. It works fine except that when calling finish
> > method the hierarchy activity is removed from the stack. So, it makes
> > it impossible to backtrack to the previous hierarchy since it s not
> > there anymore. For example, I can t backtrack from AlbumActivity to
> > the ArtistsActivity since it has been removed from the stack.  My
> > question is; is there any way to leave the hierarchy activities on the
> > stack?
>
> Instead of calling setResult()/finish() in a list item click,
> startActivityForResult() the next level down in the hierarchy. Only the
> leaf should call setResult()/finish() in a list item click. All branches
> of the hierarchy should call setResult()/finish() in their
> onActivityResult(), forwarding the leaf's result Intent along.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html- Hide quoted 
> text -
>
> - Show quoted text -
-- 
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] StartActivityForResult

2010-01-06 Thread Business Talk
I am using ListActivities to drill down into a hierarchy; artist,
album and song. One activity per hierarchy. So, from the main
activity  I start the ArtistActivity with the StartActivityForResult
method and when the an artist is selected I call the

protected void onListItemClick(ListView l, View v, int position, long
id) {

setResult(Activity.RESULT_OK, results);
finish();

}

to return the results. Than the main activity receives results from
the ArtistsActivity in the onActivityResult method and starts the next
hierarchy’s activity, AlbumActivity, in the same way as the previous
activity, on so on. It works fine except that when calling finish
method the hierarchy activity is removed from the stack. So, it makes
it impossible to backtrack to the previous hierarchy since it’s not
there anymore. For example, I can’t backtrack from AlbumActivity to
the ArtistsActivity since it has been removed from the stack.  My
question is; is there any way to leave the hierarchy activities on the
stack?
-- 
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] Selection

2010-01-04 Thread Business Talk
What's the best way to implement a selection? is it to use a
ListActivity to display a list of items to select from, display the
activity with a startActivityForResult and implement the
onListItemClick which would return the selected item and close the
activity. Or is it to use the Dialog?

-- 
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: Two onCreate (and onDestroy) invocations on orientation chage

2010-01-04 Thread Business Talk
It's not just 1.6. the higher versions do the same. It looks like
rotation does more than just updetes the UI. I also failed to find any
reference to this problem.

On Jan 4, 8:16 am, Pawel Kapala  wrote:
> Hello.
>
> With following simple code (on clean, new android project):
>
> public class RotationTest extends Activity {
>
>     private static final String LOGTAG = "RotationTest";
>
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>         Log.d(LOGTAG, "onCreate():");
>     }
>
>     @Override
>     protected void onDestroy() {
>         super.onDestroy();
>         Log.d(LOGTAG, "onDestroy():");
>     }
>
> }
>
> the onCreate/onDestroy pair is called twice when rotating from
> landscape -> portrait on Android 1.6 emulator.
>
> Here is the snippet of LogCat (doing rotation to landscape and back to
> portrait):
> 01-04 14:05:35.895: DEBUG/RotationTest(704): onCreate():
> 01-04 14:13:53.514: DEBUG/RotationTest(704): onDestroy():
> 01-04 14:13:53.916: DEBUG/RotationTest(704): onCreate():
> 01-04 14:14:02.035: DEBUG/RotationTest(704): onDestroy():
> 01-04 14:14:02.604: DEBUG/RotationTest(704): onCreate():
> 01-04 14:14:02.716: DEBUG/RotationTest(704): onDestroy():
> 01-04 14:14:03.015: DEBUG/RotationTest(704): onCreate():
>
> On the other hand, when running the application on the G1 phone, the
> problem does not occur, when the keyboard is slid (then the rotation
> changes).
>
> I've tried to find an open issue or a similar thread but I am yet
> unsuccessful.
>
> Could anyone give a pointer or a description of this behavior?
>
> Has anyone experienced it on Eclair or later(!) ?

-- 
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: AudioTrack - Clicking Sound

2010-01-04 Thread Business Talk
After, repeated effort at sound synthesis I have decided to go back to
pre=generated sounds. It's much too computationally expensive. My
question is; does AudioTrack use pure pcm of it uses wave. I have this
clicking sound and I think it's because I am using wave and the wave
is pcm plus same header data. Maybe this header causes the clicking
sound.


On Dec 15 2009, 6:01 pm, MarkNZ  wrote:
> Do you need to use files?
> I have been generating audio at run time using the java math sine
> function to create an array of short, then playing it with audio
> track. Perfomance has been fine, I have been testing on an HTC tattoo.
> The only problem I have found is when I record the the data being
> played, write it to SD card and plot it in MATLAB, There is a large DC
> offset that decays quickly at the start of playback. I'm still trying
> to figure out the cause of it however this may not bother 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] Custom Layout

2010-01-01 Thread Business Talk
What's the deal with the custom layouts? I implemented a custom layout
class and began defining xml layout using my new class. Than I
realized that I can't just add the child views that way one can add
views to the predefined layouts. I had to do it manually modifing the
xml.

Than I found out that the onMeasure/onLayout methods were getting
wrong getMeasuredHeight/getMeasuredWidth results. Why??? (I realy
feel like cursing here but what's to point.)

On the other hand, If I do all of it programatically, instantiate  the
layout object in the activity and add the child view to it, all works
fine.  Any Ideas?

-- 
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: TableLayout

2009-12-30 Thread Business Talk
Thanks Mark, you were very helpful, Good Luck


On Dec 30, 4:39 pm, Mark Murphy  wrote:
> Business Talk wrote:
> > I am not sure if I follow, I might have just a few rows so they need
> > to be stretched to fill the height of the screen (table layout) or I
> > might have many rows so they need to be shrunk to fit the screen (I
> > don't want to scroll them). Is it what you had in mind?
>
> Oh, sorry, I misunderstood. For that, you'd need to write your own
> layout manager. There is nothing on Android designed for that scenario.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in US: 8-12 February 2010:http://bignerdranch.com

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


[android-developers] Re: TableLayout

2009-12-30 Thread Business Talk
I am not sure if I follow, I might have just a few rows so they need
to be stretched to fill the height of the screen (table layout) or I
might have many rows so they need to be shrunk to fit the screen (I
don't want to scroll them). Is it what you had in mind?

On Dec 30, 4:13 pm, Mark Murphy  wrote:
> Business Talk wrote:
> > Thanks Mark, it works. Any suggestions how to handle rows. I need to
> > handle them the same way. Stretch rows or shrink them depending on
> > their size.
>
> That's driven entirely by what you put in the rows. They are
> wrap_content for height by default.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 1.3 Available!

-- 
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: TableLayout

2009-12-30 Thread Business Talk
Thanks Mark, it works. Any suggestions how to handle rows. I need to
handle them the same way. Stretch rows or shrink them depending on
their size.



On Dec 30, 3:48 pm, Mark Murphy  wrote:
> Business Talk wrote:
> > How can I make sure that a TableRow fits into the table width
> > regardless of the TableRow' size, meaning the row is shrank to fit the
> > table's width if the row is too big or it's stretched if the it's too
> > small. Adjusting gravity on the row doesn't seem to work.
>
> Look at android:shrinkColumns and android:stretchColumns on TableLayout.
>
> --
> 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 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] TableLayout

2009-12-30 Thread Business Talk
How can I make sure that a TableRow fits into the table width
regardless of the TableRow' size, meaning the row is shrank to fit the
table's width if the row is too big or it's stretched if the it's too
small. Adjusting gravity on the row doesn't seem to work.

-- 
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: TableLayout - Raw Stretching

2009-12-30 Thread Business Talk
Sorry for the type, it certainly should be Row


On Dec 30, 1:51 pm, Business Talk 
wrote:
> How can one stretch evenly rows of a TableLayout, regardless of the
> row's content? I know that One can stretch columns evenly be setting
> the stretchColumns='*".

-- 
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] TableLayout - Raw Stretching

2009-12-30 Thread Business Talk
How can one stretch evenly rows of a TableLayout, regardless of the
row's content? I know that One can stretch columns evenly be setting
the stretchColumns='*".

-- 
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] AudioTrack - Clicking Sounds

2009-12-29 Thread Business Talk
Do you know of any freeware application that can convert/generate
sounds in the PCM format? I am getting clicking sounds when playing
AudioTrack and I think it is because I am playing a wave file which is
a pcm with some headers. I downloaded a number of converters but all
of them generate wave files.

-- 
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: AudioTrack stop/release

2009-12-29 Thread Business Talk
Thanks Olivier,

It is very helpful Olivier, I am just curious about MP3 players, They
are able to stop playing with a very small latency. It seems like they
would have to repeatedly write into a very small buffer. Do you think
that is the case?

My scenario is very similar to the MP3 players. I don’t know when the
stop action is going to take place so writing zeros might not work. So
the only solution is to use small buffer. I will see how it goes.
Thanks


On Dec 29, 11:23 am, Olivier Guilyardi  wrote:
> On 12/25/2009 02:00 PM, Business Talk wrote:
>
> > I keep posting this message hoping that maybe somebody from google
> > (media group in particular) monitors the group.  I need to stop the
> > AudioTrack, regardless what's in the buffer, immediately when
> > executing the stop/release. The AudioTrack plays in the STREAM mode.
> > It appears that the AudioTrack finishes playing what's in the buffer
> > and than stops. It seems that it's such a fundamental flaw since there
> > are so many audio applications out there.
>
> I don't think that your question relates to AudioTrack in particular, but to
> dealing with audio buffers in general, and especially when these buffers are 
> too
> large.
>
> On almost any platform and API I can think of, if the audio buffer is large 
> then
> you have to deal with a rather noticeable latency. And I think that your 
> problem
> is indeed about latency.
>
> Instead of starting/stopping the AudioTrack as you do, which is a quite heavy
> operation (thread, locks, IPC, etc..), I would first recommend that you fill 
> the
> buffer with zeros whenever sound has to stop.
>
> But if your buffer is large then there will be a noticeable delay between the
> moment you actually write zeros and the moment the sound becomes silent (yet,
> that should be faster than actually calling play() or stop()).
>
> For instance, I'm quite successfully using AudioTrack with a buffer size of 
> 4096
> frames, which at 22050Hz, induces (at least) a 185ms delay. That is quite a 
> lot
> IMO, and I don't think you can reduce that in Android's current state. I would
> even say than 8092 frames seems a safer choice.
>
> But many audio applications out there know how to deal with a such latency, 
> even
> if it is about hundreds of milliseconds. It is not always possible, but in 
> some
> case it is, especially if you can:
>
> (1) measure the output latency
> (2) anticipate audio output events
>
> So that you start playing sounds (or silence) in advance, taking the latency
> into account.
>
> You can approximate (1) with: latency = bufferSize / sampleRate
>
> Whether (2) is possible or not depends on you app. If it isn't and that
> 200-400ms latency is too much for you then I recommend that you star the
> following issue to encourage Google to address it as soon as 
> possible:http://code.google.com/p/android/issues/detail?id=3434
>
> --
>   Olivier

-- 
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] JetCreator

2009-12-29 Thread Business Talk
Using the JetCreator, I have created an ‘App Controller’ event and
assigned a track number = 2 to it. Yet, track = 0 is passed to the
onJetEvent listener method. Any Ideas?

-- 
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] JetPlayer

2009-12-28 Thread Business Talk
I have created a jet file, with a controller event in it, using the
JetCreator and defined a OnJetListener. And although other methods on
the listener are called, the onJetEvent method is not. Am I missing
something here?

-- 
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] Device coming back from sleep is effecting the UI

2009-12-27 Thread Business Talk
My buttons stop reacting to the mouse clicks after the device comes
back from sleep. The buttons receive the the click events since
actions associated with the buttons are executed but visually they do
not appear to be pressed when being clicked. I am using selector to
define the drawables for the button's states.

The same happens when switching from portrait to landscape, or vice
versa. My application is configured for a sensor. Any ideas?

-- 
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] AudioTrack stop/release

2009-12-25 Thread Business Talk
I keep posting this message hoping that maybe somebody from google
(media group in particular) monitors the group.  I need to stop the
AudioTrack, regardless what's in the buffer, immediately when
executing the stop/release. The AudioTrack plays in the STREAM mode.
It appears that the AudioTrack finishes playing what's in the buffer
and than stops. It seems that it's such a fundamental flaw since there
are so many audio applications out there.

Here is my previous posting;

http://groups.google.com/group/android-developers/browse_thread/thread/a439d1bac5015a42/53b180ff36544d4f#53b180ff36544d4f

-- 
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: Scrolling a Gallery

2009-12-24 Thread Business Talk
Thanks Aniruddh,

That's what I need but I see a problem here. It looks like I will have
to subclass the gallery in order to override the onInterceptTouchEvent
method. Otherwise, I don't see a way to register a listener that would
implement the method and intercept the call. Any suggestion?

-- 
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] Scrolling a Gallery

2009-12-24 Thread Business Talk
How do I make a gallery to scroll if the gallery's items (views) fill
the entire screen (a view per screen) and each view is filled with
buttons? It looks like the gallery doesn't get the scroll event.
Instead, the buttons get the click event.

-- 
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: AudioTrack - Doesn't stop playing as requested.

2009-12-23 Thread Business Talk
Thanks Fabricio,

Unfortunately, It doesn't work either. Good Luck



On Dec 22, 9:27 am, Fabricio  wrote:
> Not been very familiar with it but maybe you could pause it and then proced
> to stop and release.
> Salutes.
> Fabricio Tuosto
>
> On Tue, Dec 22, 2009 at 11:22, Business Talk
> wrote:
>
>
>
> > I've been trying to resolve the issue of the immediate termination of
> > the AudioTrack played in the MODE_STREAM track with no avail. To do so
> > I call stop and release;
>
> >                audioTrack.stop();
> >                audioTrack.release();
> >                audioTrack = null;
>
> > I tried flushing but it made no difference.
>
> > It  finishes  playing the remaining of the buffer and than stops. It
> > seems like the problem renders the AudioTrack useless if one can't
> > stop playing at will. I can't imagine using it if I have to wait till
> > it finishes playing its buffer. And since this is the only sound
> > solution I can use for my application, the JetPlayer and the
> > SoundPool, do not fit my needs, I am left with the decision if I
> > should continue. It’s got to be a way. I assume others used it
> > successfully since I haven’t seen any post.  Any thoughts?
>
> > --
> > 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- Hide quoted text -
>
> - Show quoted text -

-- 
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] AudioTrack - Doesn't stop playing as requested.

2009-12-22 Thread Business Talk
I've been trying to resolve the issue of the immediate termination of
the AudioTrack played in the MODE_STREAM track with no avail. To do so
I call stop and release;

audioTrack.stop();
audioTrack.release();
audioTrack = null;

I tried flushing but it made no difference.

It  finishes  playing the remaining of the buffer and than stops. It
seems like the problem renders the AudioTrack useless if one can't
stop playing at will. I can't imagine using it if I have to wait till
it finishes playing its buffer. And since this is the only sound
solution I can use for my application, the JetPlayer and the
SoundPool, do not fit my needs, I am left with the decision if I
should continue. It’s got to be a way. I assume others used it
successfully since I haven’t seen any post.  Any thoughts?

-- 
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: AudioTrack - Clicking Sound

2009-12-21 Thread Business Talk
Mark,

I have just wrote a simple oscillator that generates the data and it
plays fine. But as you know, it is a long way to synthesizing an
instrument sound. I would appreciate any references on the sound
synthesis and most of all code examples. Any libraries with a small
footprint maybe.

Thanks


On Dec 21, 12:34 pm, Business Talk 
wrote:
> Mark,
>
> Yours is a golden tip. In a long run using files is out of the
> question, considering the size of the application it would generate.
> Your approach is definitely the way to go. I just have no experience
> in the sound synthesis, Specifically synthesizing instrument sounds.
> Do you have any documentation (links) to point me to. I will have to
> look into a simple synthesizer running on android. Any code examples
> you could share?
>
> I appreciate your advice,
> Roman
>
> On Dec 15, 6:01 pm, MarkNZ  wrote:
>
>
>
> > Do you need to use files?
> > I have been generating audio at run time using the java math sine
> > function to create an array of short, then playing it with audio
> > track. Perfomance has been fine, I have been testing on an HTC tattoo.
> > The only problem I have found is when I record the the data being
> > played, write it to SD card and plot it in MATLAB, There is a large DC
> > offset that decays quickly at the start of playback. I'm still trying
> > to figure out the cause of it however this may not bother you.- Hide quoted 
> > text -
>
> - Show quoted text -

-- 
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: AudioTrack - Clicking Sound

2009-12-21 Thread Business Talk
Mark,

Yours is a golden tip. In a long run using files is out of the
question, considering the size of the application it would generate.
Your approach is definitely the way to go. I just have no experience
in the sound synthesis, Specifically synthesizing instrument sounds.
Do you have any documentation (links) to point me to. I will have to
look into a simple synthesizer running on android. Any code examples
you could share?

I appreciate your advice,
Roman


On Dec 15, 6:01 pm, MarkNZ  wrote:
> Do you need to use files?
> I have been generating audio at run time using the java math sine
> function to create an array of short, then playing it with audio
> track. Perfomance has been fine, I have been testing on an HTC tattoo.
> The only problem I have found is when I record the the data being
> played, write it to SD card and plot it in MATLAB, There is a large DC
> offset that decays quickly at the start of playback. I'm still trying
> to figure out the cause of it however this may not bother 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] AudioTack

2009-12-21 Thread Business Talk
I seems as if the sdk 2.0.1 introduced some instability into the
AudioTrack.  The PlaybackPositionUpdateListener is call very
inpredicably. It used to work fine in 2.0.0. Has anybody alse noticed
this change?

-- 
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] Multiplayer - Multicast Group

2009-12-20 Thread Business Talk
In the multi-player setup, every device joins the same multicast group
and every device is a broadcaster as well as a receiver of the
multicast messages. So, when a device sends a message to the multicast
group (for example, a description of the aviator's move) for others to
update their game status, this message comes back to the original
device. Is there any way to prevent the pockets to come back to the
original device? I am trying to filter the incoming pockets and ignore
those that originated on my device but it is impossible to test it on
the emulator (since it doesn’t emulate wifi) and also it's wasteful
having to deal with the bogus packets.

-- 
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: Multicast

2009-12-20 Thread Business Talk
After some research I realized that the multicast address must belong
to a predefined range of the multicast addresses; 224.0.0.0 through
239.255.255.255. What I am confused about is that a number of
multicast implementation examples used the host address as the
multicast group address, which does not belong to the range thus is
not a multicast. What gives?


On Dec 19, 2:02 pm, Business Talk 
wrote:
> I am getting ' attempted to join non-multicast group' when joining a
> group;
>
> _MulticastSocket.joinGroup(getBroadcastAddress());
>
> where
>
> public final InetAddress getBroadcastAddress() throws IOException,
> Exception
>         {
>                 WifiManager wifi = (WifiManager) _Context.getSystemService
> (Context.WIFI_SERVICE);
>
>                 DhcpInfo dhcp = wifi.getDhcpInfo();
>
>                 if (dhcp == null)
>                 {
>                         throw new Exception();
>                 }
>
>                 int broadcast = (dhcp.ipAddress & dhcp.netmask) | 
> ~dhcp.netmask;
>
>                 byte[] quads = new byte[4];
>
>                 for (int k = 0; k < 4; k++)
>                 {
>                         quads[k] = (byte) ((broadcast >> k * 8) & 0xFF);
>                 }
>
>                 return InetAddress.getByAddress(quads);
>         }

-- 
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: AudioTrack stop/release

2009-12-19 Thread Business Talk
Thanks Niko, tried everything, including flushing, nothing works.

On Dec 16, 3:38 pm, niko20  wrote:
> Hi,
>
> try calling flush() just before stop, release. Otherwise I don't know
> - it's why the size of buffer you choose is important, big enough to
> not gap out, but small enough to be responsive.
>
> -niko
>
> On Dec 15, 11:33 pm, Business Talk 
> wrote:
>
>
>
> > It doesn't seems as if the the stop and release immediately terminates
> > the audio played by the MODE_STREAM track. It looks like it finishes
> > playing the rest of the buffer and then stops. Any thoughts?- Hide quoted 
> > text -
>
> - Show quoted text -

-- 
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] Multicast

2009-12-19 Thread Business Talk
I am getting ' attempted to join non-multicast group' when joining a
group;

_MulticastSocket.joinGroup(getBroadcastAddress());

where

public final InetAddress getBroadcastAddress() throws IOException,
Exception
{
WifiManager wifi = (WifiManager) _Context.getSystemService
(Context.WIFI_SERVICE);

DhcpInfo dhcp = wifi.getDhcpInfo();

if (dhcp == null)
{
throw new Exception();
}

int broadcast = (dhcp.ipAddress & dhcp.netmask) | ~dhcp.netmask;

byte[] quads = new byte[4];

for (int k = 0; k < 4; k++)
{
quads[k] = (byte) ((broadcast >> k * 8) & 0xFF);
}

return InetAddress.getByAddress(quads);
}

-- 
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: Drag and Drop

2009-12-18 Thread Business Talk
Thanks Mark

On Dec 18, 4:37 pm, Mark Murphy  wrote:
> Business Talk wrote:
> > is there any drag and drop support in android? Couldn't find any
>
> Nothing really built in, though with touch events and such you could
> create something that works for your app.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in US: 11-15 January 2010:http://onlc.com

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


[android-developers] Drag and Drop

2009-12-18 Thread Business Talk
is there any drag and drop support in android? Couldn't find any

-- 
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: Audio options for music app - should I use JET?

2009-12-18 Thread Business Talk
It sounds like we are working on a similar application. I have placed
the same question not too long ago and have received no definite
answer so I ended up experimenting with all currently available
choices; JetPlayer, SoundPool and the AudioTracker, in this order. I
have rejected the JetPlayer almost immediately. It is much too high
level. The SoundPools looked very promising since it does allow you to
play concurrent sounds but I also found it too limiting. I settled
down with the AudioTrack but, not surprisingly, it has its own limits.
It's interface does not support the pitch/rate control but it does
allow you to stream raw date which can be synthesized during the run
time. The point I am trying to make is that you will have to
experiment with all the options and see what works for you. What you
need to do is to design your application in such a way  (strategy
pattern or such) so you can replace one implementation of the sound
control layer with the other, as you experiment with the different
options. Let me know how you are doing. Good Luck.



Roman


On Dec 16, 1:43 am, k_day  wrote:
> Watched the Google I/O talk on media tonight, and learned some
> interesting stuff.  Right now I am leaning towards using SoundPool
> since I need to guarantee that certain music notes are played at the
> exact same time, and I want to be able to control tempo.
>
> If I use setRate() with soundPool to speed up the tempo, will this
> change the pitch (i.e., make it sound like a chipmunk if sped up), or
> will the pitch remain the same?
>
> Also, my original question still remains - I will not be able to
> control the tempo of playback if going with JetPlayer, right?
>
> So for a music app that plays music notes and chords (notes played at
> the same time) and allows users to control the tempo of playback, does
> SoundPool sound like my best bet?
>
> Thank you for your help.
>
> -k_day
>
> On Dec 15, 3:56 am, k_day  wrote:
>
>
>
> > Wow, I didn't realize my initial message got cut off.  Too finish, I
> > was thinking JET may be too limited since users must be able to:
>
> > 1) Change the tempo of the notes being played real time and
> > 2) Record their own sounds that can be played as notes.
>
> > Is this possible when using JetPlayer?  The JetPlayer interface looks
> > pretty simple.  It looks like you can only control which tracks play,
> > and transposing the tracks, but I don't see any controls for tempo.
>
> > Akitto- I assume you are referring to 
> > this:http://www.youtube.com/watch?v=-0UmSQeWsJc
>
> > I will check it out. Thanks for the tip.
>
> > On Dec 14, 10:29 pm, k_day  wrote:
>
> > > I am currently working on a music app and am starting to think about
> > > how audio playback should work.  At any given point in time, a user is
> > > able to play multiple notes from multiple instruments.
>
> > > My initial thought was to use JET, but I am thinking it may be too
> > > limited given that I also would like to:
>
> > > 1)- Hide quoted text -
>
> - Show quoted text -

-- 
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: Best practice for P2P handset networking

2009-12-16 Thread Business Talk
Steve,

I am also in  need of a p2p framework. I am a little surprised by lack
of any development effort in this area. Please, let me know if you
would like to collaborate in researching and maybe implementation of a
basic p2p framework. Splitting work will get us there faster. If there
is  anybody else how wants to participate please let me know. It is
not a product or a project, just an informal collaboration.



Also, if there is anybody at google monitoring this forum, who has any
pertinent information as to the status of the p2p infrastructure,
please let us know if such development exists.


Roman

On Dec 4, 4:05 pm, Al  wrote:
> The developer of Light Racer 3D posted some interesting information on
> his blog, that might be handy to look 
> at:http://www.rbgrn.net/content/293-light-racer-20-days-35-40-multiplaye...
>
>
>
> StevieT wrote:
> > I've been scouring the web looking for information on setting up a
> > peer-to-peer connection between Android handsets and so far have drawn
> > a blank. The only thing I can definitively seem to work out is that it
> > was made a whole lot more difficult when XMPP was removed from 1.0.
> > Apart from that, I find a couple of threads on an OpenIntents board
> > about porting an XMPP implementation to Android that were last posted
> > nearly 2 years ago.
>
> > Has anybody solved this problem effectively? What's the best way of
> > doing it (from a games point of view)?- Hide quoted text -
>
> - Show quoted text -

-- 
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] ddms

2009-12-16 Thread Business Talk
I am trying to debug my device from a windows system with no IDE, just
the android sdk, jdk and jre. I am using the ddms to do so. I works
fine. I can see the entries in the logcat in the ddms. Among others I
can see ‘Wrote stack trace to /data/anr/traces.txt”. But when I select
the Device->File Explorer… and try to open the data folder, there is
nothing there. It looks like an empty data folder.

-- 
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] Gallery

2009-12-16 Thread Business Talk
I have a gallery view with a number of views, each of which fills the
display. So there on view of the gallery per display. Also each view
is filled with selectable buttons. Similar to the calendar where a
view of the month fills the entire display. To go to the next/
previous month one must scroll by sliding a finger across the display.
Also, Each month is filled with a grid of selectable days. My gallery
works the same. The problem is that when I slide my finger to scroll
the gallery the buttons on the view get selected instead. I want to
select the buttons only when I touch the screen as opposed to sliding
it.

Is the choice of the gallery view a bad one? and if so what’s the
better way to accomplish it?

-- 
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] AudioTrack stop/release

2009-12-15 Thread Business Talk
It doesn't seems as if the the stop and release immediately terminates
the audio played by the MODE_STREAM track. It looks like it finishes
playing the rest of the buffer and then stops. Any thoughts?

-- 
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: AudioTrack - Clicking Sound

2009-12-15 Thread Business Talk
Niko,

I have redone all the test pcm files using the Audiocity and the click
is still there. Maybe it’s the driver. I have my development
environment on a virtual server.  I am creating the track in a static
mode so there should not be any gaps. since it’s one track per pcm. I
will keep digging.

I have one question; do you have any performance experience with
manipulating the pcm date at the run time with regard to the data
synthesis, such as changing the pitch at run.  I would hate to spent
time to find out that it not on the current platforms

For example, I need pcm data representing a C note in octave 3 and
octave 4. I can do it two ways;


1. have two separate pcm files, or

2. have one pcm data representing the middle C in octave 4 and than
manipulate the pitch to create the C in the lower octave.




On Dec 15, 10:14 am, niko20  wrote:
> Hi,
>
> I use AudioTrack for several projects and haven't had a problem.
>
> However, as I was learning to use it, I had lots of small issues
> related to:
>
> 1. Not filling the buffer correctly as you think - double check your
> code. Even if you are missing one PCM sample you will get a click.
>
> 2. If using a streaming buffer AudioTrack, you have to keep the buffer
> full. If you have any gaps you will get clicks.
>
> I'd say the problem is in your code somewhere. You probably have some
> off by one error or negative/positive error or missing a couple of
> samples, or such.
>
> Also never hurts to load your PCM data into Audacity to double check
> how it sounds.
>
> -niko
>
> On Dec 15, 7:37 am, Business Talk 
> wrote:
>
>
>
> > I am getting this clicking sound when playing static pcm data. Anybody
> > out there is having the same problem? This is not the data issue. I am
> > sure of it.- Hide quoted text -
>
> - Show quoted text -

-- 
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: AudioTrack.play Exception at line 764

2009-12-15 Thread Business Talk
Thanks Niko

On Dec 15, 10:21 am, niko20  wrote:
> line 764 in AudioTrack is inside the write() function. Looks like you
> may be writing some bad data for some reason, double check your code
> where you are writing the data into the AudioTrack.
>
> -niko
>
> On Dec 15, 9:12 am, Business Talk 
> wrote:
>
>
>
> > I am getting an exception thrown by the AudioTrack.play at line 764.
> > It doesn’t happen every time if I play it long enough it does sooner
> > or later. I don’t seem to be able to find the latest AudioTrack source
> > code. It happens when I repeatedly create a new audio track object and
> > release it.- Hide quoted text -
>
> - Show quoted text -

-- 
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] AudioTrack.play Exception at line 764

2009-12-15 Thread Business Talk
I am getting an exception thrown by the AudioTrack.play at line 764.
It doesn’t happen every time if I play it long enough it does sooner
or later. I don’t seem to be able to find the latest AudioTrack source
code. It happens when I repeatedly create a new audio track object and
release it.

-- 
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] AudioTrack - Clicking Sound

2009-12-15 Thread Business Talk
I am getting this clicking sound when playing static pcm data. Anybody
out there is having the same problem? This is not the data issue. I am
sure of it.

-- 
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: AudioTrack

2009-12-14 Thread Business Talk
I was just testing the capabilities at this stage. I wanted to see if
it can be done at all. There are many applications I can think of that
require such capability.

On Dec 14, 4:00 pm, niko20  wrote:
> You create two AudioTrack instances, then in each you pass a playback
> listener object, I don't see why you can to multiples at once..
>
> -niko
>
> On Dec 14, 7:27 am, Business Talk 
> wrote:
>
>
>
> > Is the AudioTrack fundamentally designed to be a singleton? Methods on
> > the OnPlaybackPositionUpdateListener receive just one argument, which
> > is the AudioTrack itself. And since the AudioTrack does not have
> > getTag/setTag methods I don't see any way to distinguish among
> > multiple AudioTracks in the OnPlaybackPositionUpdateListener methods
> > short of keeping track of references. So, if it's so why it's not
> > implemented as a singleton? Any thoughts. I am trying to implement
> > concurrent use of the AudioTrack. Anybody has any experience with this
> > approach? Am I wasting time?- Hide quoted text -
>
> - Show quoted text -

-- 
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] PCM Data - Frame Count

2009-12-14 Thread Business Talk
I am using the length of my PCM data buffer to calculate the number of
frames; depending if its mono or stereo or 8bit or 16bit.

For example, if it is a mono/8bit then the number of frames is the
length of the buffer. if it is stereo/16bit the number of frames is
the length / 4.

The problem is that the buffer, I create by reading the PCM raw
resource (file), seems to be too long (look below) . Therefore the
number of frames is also too heigh. why am I getting the buffer longer
then it should be?

there is another way to calculate the number of frames;



Number of Frames =  * 

for example 11.025[kHz] * 4000 [ms] = 44100 [frames]

the above calculations should yield the same result, yet they don’t
(the problem is with the buffer length). I am certain that the second
result is correct. am I doing something wrong with the way I read in
the data? I should put it into the WHILE loop when reading. But that’s
not it.



Here is how I create the buffer;



private byte[] readResource (int resourceId)
{
InputStream inputStream = null;
byte[]  inputBuffer = null;
try
{
inputStream = _Context.getResources().openRawResource
(resourceId);
inputBuffer = new byte [inputStream.available()];
inputStream.read(inputBuffer);
}
catch (IOException e)
{
Log.e(this.getClass().getName(), String.format("readResource:
Exception: %s", e.getMessage()));
}
finally
{
try
{
inputStream.close();
}
catch (IOException e)
{
Log.e(this.getClass().getName(), String.format
("readResource: Exception: %s", e.getMessage()));
}
}
return inputBuffer;
}

-- 
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: Immediate Need for Multiple Requirements

2009-12-14 Thread Business Talk
I just did

On Dec 14, 11:11 am, Jose Gomez  wrote:
> Can someone please mark this person as spam get them off the list. UGH!
> Sincerely
> Jose C Gomez
>
> http://www.josecgomez.com
>
> On Mon, Dec 14, 2009 at 11:06 AM, krishna murthy wrote:
>
>
>
> > Hi,
>
> > This is Krishna with iMCS, we have an urgent requirement for the Following
> > position appreciate if you could respond with your Updated profile,
> > Availability, and Visa Status and Expected rate ASAP. Please let me know
> > Comfortable level ASAP
>
> > *Requirement No:1*
> > Position: SAP Systems Analyst
> > Location:OR
> > Duration:12Months+
> > Job Description:
> > Years of Experience & Expertise Level: Sr. SAP Analyst. 8-9 + yrs. exp.
> > Project Description:
> > IT EC3, Finance Information Services group needs an SAP Systems Analyst to
> > assist with the E-Pipe EOL Archiving project which gears around developing
> > and configuring SAP archiving objects in order to be able to shut down the
> > E-Pipe.
> > Daily Responsibilities: Work together with other employees who have
> > experience with the E-Pipe environment at our company. In addition, the CW
> > will have to work closely with biz partners in order to understand
> > requirements. The CW will work with his/her team to design, test, and
> > develop archiving objects and deploy them into production. The CW will need
> > to create documentation for future use.
> > Necessary Skills (Must Have):
> > SAP R3
> > SAP NetWeaver
> > SAP Data Archiving
> > SAP Configuration and customization archiving objects development
> > Additional Skills Desired (Nice to Have):
> > System Analyst skills
> > Communication skills
>
> > *Requirement No:2*
> > Position:Oracle Developer
> > Location:MA*{Required F2F (Local Required)}*
> > Duration:6 months+
> > Job Description:
> > strong knowledge of database and date warehousing concepts, especially
> > around database architectural issues related to performance. Strong
> > knowledge of Oracle is a requirement. Strong knowledge of MS SQL Server in
> > addition is a plus. Experience with ETL processes that load data from an
> > OLTP database into a data warehouse is a big plus.
>
> > Regards,
> > Krishna
> > iMCS Group Inc,
> > 469 442 3300
> > kris...@imcsgroup.net
>
> > --
> > 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- Hide quoted text -
>
> - Show quoted text -

-- 
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: Immediate Need for Multiple Requirements

2009-12-14 Thread Business Talk
Visa Status? you iHop. do you really think this forum is off-shoring
placement agency.

On Dec 14, 9:43 am, Zied Hamdi  wrote:
> Hi Krishna,
>
> Can you please explain why you are using the android developers group to
> search for completely unrelated skills? Could you please respect the fact
> that this is a sharing knowledge place, not a recruting one. Or at least you
> could post positions related to the tecnology.
>
> Best regards,
> Zied Hamdi
>
> Cordialement,
> Zied Hamdi
> Gérantwww.larueacote.fr
> 06 42 69 54 40
>
> Rejoindre mon réseau de contacts sur Viadeo 
> :http://www.viadeo.com/invitationpersonnelle/0022cbh9e10sm7n
>
> 2009/12/14 krishna murthy 
>
>
>
> > Hi,
>
> > This is Krishna with iMCS, we have an urgent requirement for the Following
> > position appreciate if you could respond with your Updated profile,
> > Availability, and Visa Status and Expected rate ASAP. Please let me know
> > Comfortable level ASAP
>
> > *Requirement NO:1*
> > Position:SAP MM Business Analyst
> > Location:TX(Need local to TX)
> > Duration:9Months+
> > Job Description:
> > Job Role & Skill Set:Package Solution Consultant - SAP.SCM.MM
> > Requested service/service area: SAP - Procure to Pay S5
> > Required skills:Strong SAP MM or SD skills in a business analyst role. Only
> > candidates based in TX will be considered. SAP IS-Oil STRONGLY preferred.
>
> > *Requirement No:2 *
> > Position:Teradata Application Developer
> > Location:TX
> > Duration:9 Months+
> > Job Description:
> > Open seat description: Development Project on Datawarehouse space. Team
> > member should be expert in Informatica, Teradata, SQL/Unix and Mainframe
> > space. Teradata/MF Application Developer experience or Certification will be
> > the best fit. Teradata SQL Assistant, File-aid, Change-man are the skill
> > need.
> > Project type: Application Development
> > Required skills: Informatica, Teradata SQL, Teradata Application Developer,
> > Mainframe, Cobol, JCL, File-aid, Change-man
> > Nice to have skills: SQL, Unix
>
> > *Requirement No:3*
> > Position:IBM Maximo
> > Location: Atlanta, GA
> > Duration:9 Months+
> > Project description: Oracle/ Maximo
> > Required skills: Experienced Maximo Actuate Developer
> > Nice to have skills: Experienced with Development and Migration; technical
> > development skills with SQL/Java
>
> > *Requirement NO:4*
> > Position:PMP--SAP CRM Middleware Consultant
> > Location:Southbury,CT
> > Duration:12 Months+
> > Job Description:
> > Project description: New enterprise transformation program that will take
> > core processes that are now business unit and region-specific, such as OTO,
> > OTC and Finance, and integrate them horizontally across the enterprise on a
> > common systems platform – SAP Initially a Global template will be created
> > and will be deployed across various Business Units and Geos.
> > Position description:  Package Solution Consultant - SAP.CRM
> > Required skills: At least 2 Full Life Cycle SAP Implementations w/ SAP
> > CRM/ECC. Responsibilities include: • Perform Middleware-Setup, generation &
> > Maintenance activities. • Configuration & Execution of Data Exchange between
> > SAP CRM & R/3 Backend (configuration & customization settings for both
> > initial & delta loads). • Configuration & Execution of Data Exchange w/
> > non-SAP Systems. • Monitoring of data replication & progress (queues). •
> > Mapping of various master data for replication between R/3 & CRM (e.g.
> > business partners, materials, pricing, configuration). • Mapping of various
> > transactional data for replicate between R/3 & CRM (e.g. quotes). • Apply
> > filters both standard & custom. • Monitor, error handling & debugging of
> > BDOCs.
> > Nice to have skills: SAP CRM middleware ** REQUIRED
> > SKILLS: • Identify & develop functional specifications for development
> > needed to enhance middleware objects. • Create & modify BDOCs to transfer
> > data between R/3 & CRM
>
> > *Requirement No:5*
> > Position: SAP Basis Consultan with SUSE Linux
> > Job Role & Skill Set: Application Architect - SAP.NW.Basis Architect
> > Location: Dublin, Ohio
> > Duration:12 Months+
> > Job Description:
> > Requested service/service area: SAP - Technical Infrastructure &
> > Development S8
> > Required skills: Basis experience on SUSE Linux (Must Requirement) - Hands
> > on Basis Resources - Basis experience in at least two of the following -
> > SCM, CRM, Portals, XI, - At least 3 to 4 years Basis experience
>
> > Regards,
> > Krishna
> > iMCS Group Inc,
> > 469 442 3300
> > kris...@imcsgroup.net
>
> > --
> > 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- Hide quoted te

[android-developers] Re: playing short audio clip has tick sound

2009-12-14 Thread Business Talk
I have the same problem with the AudioTrack at the beginning of every
play in a static mode. I assumed that it might be due to my pcm wave
creating but maybe not. Any thoughts?

On Dec 14, 9:44 am, JacobGladish  wrote:
> I'm using the SoundPool to play a series of small audio clips and am
> having issues with the audio when it starts. I have the audio attached
> to a button press. When I press the button mulitple times the tick
> persists. I was wondering if this was the audio file itself or is
> there something I need to do differently with the SoundPool other than
> play simply play the clip. These are .ogg files I created using
> Audacity. When I play them in my dekstop media player, they sound
> fine.

-- 
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] AudioTrack

2009-12-14 Thread Business Talk
Is the AudioTrack fundamentally designed to be a singleton? Methods on
the OnPlaybackPositionUpdateListener receive just one argument, which
is the AudioTrack itself. And since the AudioTrack does not have
getTag/setTag methods I don't see any way to distinguish among
multiple AudioTracks in the OnPlaybackPositionUpdateListener methods
short of keeping track of references. So, if it's so why it's not
implemented as a singleton? Any thoughts. I am trying to implement
concurrent use of the AudioTrack. Anybody has any experience with this
approach? Am I wasting time?

-- 
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] midi to pcm convertors?

2009-12-08 Thread Business Talk
any tips as to the midi to pcm convertors? I have been looking for one
and found none. I understand the the AudioTrack takes pcm format only?
Is it the case?

-- 
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: AudioTrack::start called from thread

2009-12-08 Thread Business Talk
Thanks,

I do create the AudioTrack object in a different thread. As a matter
of fact I create a new thread for every new pcm I play using the
AudioTrack . I will try to use a single thread and see how it goes.
Right now I am ising a single AudioTrack to play the sounds. is it
possible to create a new object for every new sound to be played?

On Dec 8, 11:22 pm, niko20  wrote:
> Actually if you look through the source code to AudioTrack, it looks
> like so:
>
> void AudioTrack::start()
> {
>     sp t = mAudioTrackThread;
>
>     LOGV("start");
>     if (t != 0) {
>         if (t->exitPending()) {
>             if (t->requestExitAndWait() == WOULD_BLOCK) {
>                 LOGE("AudioTrack::start called from thread");
>                 return;
>             }
>         }
>         t->mLock.lock();
>      }
>
>     if (android_atomic_or(1, &mActive) == 0) {
>         if (t != 0) {
>            t->run(
> etc
>
> So this looks like it may be that start() is being called when the
> AudioTrack has already been started once. Maybe make sure you are not
> starting the track over and over without stopping or reloading it,
> etc. (What you do depends if you are using MODE_STATIC or MODE_STREAM)
>
> -niko
>
> On Dec 8, 10:19 pm, niko20  wrote:
>
>
>
> > Hi,
>
> > There is no limitation on running AudioTrack in a thread, I do it all
> > the time, it must be something else going on.
>
> > One thing you may want to try is to create the AudioTrack object and
> > start() it in the same thread. Perhaps it doesn't like being created
> > in a different thread than start() is called in ?
>
> > -niko
>
> > On Dec 8, 8:30 pm, Business Talk  wrote:
>
> > > I am getting the 'AudioTrack::start called from thread' when starting
> > > an AudioTrack. I am using it in a thread.  I asume I shouldn't but
> > > why? I see it as a major limitation.- Hide quoted text -
>
> - Show quoted text -

-- 
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] inputStream.read problem

2009-12-08 Thread Business Talk
I have this simple code that reads raw resource. For some reason the
inputStream.read call seems to throw an exception but it is not
handled by the catch it goes to the finally. Of caurse the return
inputBuffer is not executed but the  return new byte[0]; is.




try
{
inputStream = 
_Context.getResources().openRawResource(resourceId);
int count = inputStream.available();
byte[]  inputBuffer = new byte [count ];
inputStream.read(inputBuffer);
return inputBuffer;
}
catch (IOException e)
{
Log.e(this.getClass().toString(), e.toString());
}
finally
{
try
{
inputStream.close();
}
catch (IOException e)
{
Log.e(this.getClass().toString(), e.toString());
}
}


return new byte[0];

-- 
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] AudioTrack::start called from thread

2009-12-08 Thread Business Talk
I am getting the 'AudioTrack::start called from thread' when starting
an AudioTrack. I am using it in a thread.  I asume I shouldn't but
why? I see it as a major limitation.

-- 
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: Inflator

2009-12-07 Thread Business Talk
thanks Kumar,

that's exactly what I am doing but the problem is that I am getting
the convertView as null all the time. Not once did I get the
convertView  not null (did you ever encounter such problem before).
Otherwise, the adapter works fine. Even so, the inflate step is very
expensive. It would be nice if I could inflate once in the constructor
and then clone the inflated view in the getView as needed (when the
convertView  is null). Wouldn't it be nice?


On Dec 7, 12:33 pm, "Dexter's Brain"  wrote:
> Just check if convertView is null. If it is null, you have to inflate,
> else use the convertView directly.
>
> Thanks,
> Kumar Bibek
>
> http://tech-droid.blogspot.com
>
> On Dec 7, 10:30 pm, Business Talk 
> wrote:
>
>
>
> > In my custom adapter, that implements the BaseAdapter and its getView,
> > I use the inflator to generate a new view from a layout. Is there any
> > way to avoid repetitive inflation step? specially when the convert
> > View (an argument to the getView) is always null, which mean it can’t
> > be reused and the view needs to be re-inflated. I was looking for
> > something like a copy or clone but fund none.- Hide quoted text -
>
> - Show quoted text -

-- 
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] Inflator

2009-12-07 Thread Business Talk
In my custom adapter, that implements the BaseAdapter and its getView,
I use the inflator to generate a new view from a layout. Is there any
way to avoid repetitive inflation step? specially when the convert
View (an argument to the getView) is always null, which mean it can’t
be reused and the view needs to be re-inflated. I was looking for
something like a copy or clone but fund none.

-- 
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] Custom Adapter

2009-12-07 Thread Business Talk
I have implemented a custom adapter the extends from the BaseAdapter
and implements the getView method. It works fine except for one thing,
not once do I get the convert View (a parameter to the getView method)
that is not null ( that can be reused). Anybody experienced that same?

-- 
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: Socket refused connection

2009-12-07 Thread Business Talk
Pierr,

the following is a question to your question, as well as to anybody
willing to share the experience with network connectivity. Do you have
any tips regarding the P2P implementation in terms of getting IP
address information of the connection target devices (a friend's
device, for example). Security setup and any other info you care to
share.

Can contact information be used in any way to infere the ip?

I have implemented the udp client/service, both on the emulator. It
works fine.

On Dec 7, 9:54 am, Pierre Henry  wrote:
> I wondered if there could be a specific reason why a server socket
> could refused a client request connection , the server running on one
> android device the other on the emulator ..?

-- 
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: RadioButton

2009-12-07 Thread Business Talk
Thanks Kumar, that's what I thought.

On Dec 7, 6:13 am, "Dexter's Brain"  wrote:
> Not directly,
>
> But you can create your Custom Radio button by extending the
> RadioButton class, and using your own layout.
>
> Thanks
> Kumar Bibekhttp://tech-droid.blogspot.com
>
> On Dec 6, 7:35 pm, Business Talk  wrote:
>
>
>
> > Is There any way to possition a text of a RadioButton at the bottom,
> > centered in the middle, short of writing my own custom buttom?- Hide quoted 
> > text -
>
> - Show quoted text -

-- 
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] Include Button

2009-12-06 Thread Business Talk
A have a Button with a selector (drawable) assigned to the Button’s
background. The selector is used to change the background on touch
event. It does not work when I use the ‘include’ in my main layout to
reference the button, which is represented in a layout of its own. But
it works fine when the Button is placed directly in the main layout.
Any ideas?

-- 
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] RadioButton

2009-12-06 Thread Business Talk
Is There any way to possition a text of a RadioButton at the bottom,
centered in the middle, short of writing my own custom buttom?

-- 
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] Home View

2009-11-28 Thread Business Talk
I need to create an activity with a single view which has a multiple
width and/or height of the screen and be able to scroll it. Exactly,
like the home activity. Any Ideas?

-- 
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] Selector with the ImageView?

2009-11-27 Thread Business Talk
Is there any way to use the selector drawable with the ImageView
instead of the ImageButton ( 
http://developer.android.com/reference/android/widget/ImageButton.html
)?

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


[android-developers] Re: Need Help with the android:weightSum and layout_weight attributes

2009-11-27 Thread Business Talk
Thanks to all, it worked. You can only guess how much time you saved
me. Good Luck

On Nov 26, 8:38 pm, Romain Guy  wrote:
> Using 0px is mostly an optimization. It is not required.
>
> On Nov 26, 2009 5:16 PM, "steelbytes"  wrote:
>
> I think you have to set the width of each item to 0px. then the
> weighting will override this?  seems to work for me.
>
> It's a shame that the docs are so spartan.
>
> On Nov 27, 4:41 am, Romain Guy  wrote: > Hi, > > What
> doesn't work exactly? W...
>
> >  wrote: > > I have a simple horizontal
>
> linear_layout  with bunch of ...
>
> > romain...@android.com
> > > Note: please don't send private questions to me, as I don't have time >
>
> to provide private suppo...
>
> > public forums, where I and others can see and answer them- Hide quoted
> text -
>
> > - Show quoted text -
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group...

-- 
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: Attributes represented by expresions

2009-11-26 Thread Business Talk
Thanks Mark, much appreciate. Good Luck

On Nov 26, 7:57 am, Mark Murphy  wrote:
> Business Talk wrote:
> > is it possible to define an attribute value of a height attribute, for
> > example, relative to its parent's height.  For instance, I want the
> > linear_layout's height to be 2/3 of its FrameLayout parent. I have a
> > FrameLayout with two  linear_layouts. The first  linear_layout fills
> > the entire FrameLayout and the second  linear_layout overlaps the
> > first but only 2 / 3 of its height.  Any ideas?
>
> No, there is no current way to express heights as percentages of some
> other widget's height, at least in XML. You could probably work this out
> in Java somehow, or create your own custom layout manager that handles it.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Consulting/App Development:http://commonsware.com/consulting

-- 
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] Attributes represented by expresions

2009-11-26 Thread Business Talk
is it possible to define an attribute value of a height attribute, for
example, relative to its parent's height.  For instance, I want the
linear_layout's height to be 2/3 of its FrameLayout parent. I have a
FrameLayout with two  linear_layouts. The first  linear_layout fills
the entire FrameLayout and the second  linear_layout overlaps the
first but only 2 / 3 of its height.  Any ideas?

-- 
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] Need Help with the android:weightSum and layout_weight attributes

2009-11-26 Thread Business Talk
I have a simple horizontal linear_layout  with bunch of image views in
it. the trick is that the views have different widths, relative to the
size of their parent (the linear layout). I set the layout's weightSum
to a 100 and the layout_weight to let's say 10 of one view and 15 of
the other, on so on. And it did not work. I also tired using float
values setting the weightSum to 1.0 and the layout_weight of the image
views to 0.2 and 0.3 and so on. But it didn't work either. I did
search this group for any references to the weightSum but found
nothing. Any ideas how to handle it?

-- 
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] comments on the 'Integrating Application with Intents" blog

2009-11-13 Thread Business Talk
I would like to make a few comments on the 'Integrating Application
with Intents ' blog posted on the developers.android side.
Specifically, as to the definition of the reserve action and the data
specifications.

Neither of these specifications are generic and exhibit a very narrow
view of the reservation concept. The restaurant reservation concept
should be abstracted as it will have a multitude future
implementations in terms of activities and services by other vendors.

Action specification presented by the OpenView,
"com.opentable.action.RESERVE", incorporates 'opentable' in its
namespace. Such common actions, as it is with the restaurant
reservation action, should avoid any proprietary names and strive to
define a standard action specification that can be used by other
activity implementations of the reservation functionality.  The
generic approach to these specifications should be a driving force for
all of us. An example of a generic action specification could be;
ACTION SPECIFICATION: "action.RESERV", CATEGORY SPECIFICATION;
''service.food.restaurant".

Data specification; as defined by the OpenTable, also violates basic
URI format specification;  "reserve://opentable.com/2947?partySize=3".
The first element of the URI specification should be a protocol
specification, 'reserve' is an  action name and not a protocol name.
The action should be defined in the argument part of the data
specification. The domain name should also be a generic name since we
do not want to target a specific implementer of the reservation
activity. For example; “http://android.com/size=3?
datetime=09-11-2009T12:30” .  In cases when we do intend to invoke
activities implemented by a specific party we should be using a
CATEGORY SPECIFICATION; "manufacture.software.company.name.OPENTABLE"
or such.

This message is not intended as a criticism of the proposed
specifications. It is a way to point out a generic nature of
abstractions implemented by many activities and the necessity of using
generic action, category and data specifications.

-- 
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] New Game Development Group - OpenGL ES

2009-11-09 Thread Business Talk
This is a request to the group manager to create a new android group,
specifically for the game developers based on the OpenGL ES.

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