Bash completion for adb

by Matt Brubeck » Sun, 01 Mar 2009 08:04:25 GMT

Sponsored Links
 Unix shell users might find this useful.  It's a bash script that adds
intelligent tab-completion for "adb" commands and options: 

If you've written any other shell completion scripts for the Android
SDK, let me know.  I'd be happy to add them to this repository.


Bash completion for adb

by Matt Brubeck » Wed, 25 Mar 2009 01:33:20 GMT

 I've updated my bash completion script to include completions for the
"emulator" command.  You can get the latest version here:

Repository and documentation: 
Download link: 


Sponsored Links

Other Threads

1. Internal Attachments in Gmail App

After surfing through anything I could find in the Developer groups
and Google, I cannot find a solid, definitive answer to this question:

Is it possible to programmatically add attachments from internal
memory to emails in the Gmail app?

With the following snippet of code, I take the predefined String
"message" and attempt to write a file into internal memory through
FileStreamOutput and then attach this new file to an email:

FileOutputStream fos;
                                try { //Write our string into internal memory 
to get a file
                                        fos = this.openFileOutput(fileName, 
                                } catch (FileNotFoundException e) {
                                } catch (IOException e) {
                                //Get that file back from internal and attach

Another post in this group claimed that this code had worked fine.
However, when looking through my device's log in DDMS (Devlik Debug
Monitor) I see the following error output from the Gmail app:

file:// attachment paths must point to file:///sdcard. Ignoring
attachment file:///data/data/mypackage/mydata.txt

This leads me to believe it is impossible to attach to an email from
internal memory. However, the previous post had given me hope that
there may be a solution. And furthermore, when the email is finally
brought up, the file name representing the file from internal memory
shows up on the attachment bar as though the file is actually
attached. However, when the email is sent out, the attachment no
longer appears in the email, indicating that it was never attached at

Attaching a file from external memory was quite simple. This on the
other hand has been unnerving. Any ideas?


2. Very weird Android Market problem

Okay, I am probably experiencing the same problem as these guys:

Appears to be a market problem..

Best regards, Mads

On Sat, Jun 5, 2010 at 5:35 PM, Mads Kristiansen <


3. Android Developer Opportunity

4. Using SoundPool.load(FileDescriptor, ... ) to load a sound file

5. App Invisiable at Market ,please help!!!!

6. "Right" way to do polling in a service

7. Using gmail account from AccountManager