Jump to content

USB Host / Slave switcher - widget


Guest MaxiP

Recommended Posts

Guest simonta

OK folks. v1.3 is attached in post #11

http://android.modaco.com/index.php?s=&amp...t&p=1545787

Rather than change the images, I figured I'd let you do your own customisation.

Create a folder /sdcard/data/vegausbindicator and pop in the following files:

usbs.png: Slave mode image for the large widget

usbh.png: Host mode image for the large widget

susbs.png: Slave mode image for the small widget

susbh.png: Host mode image for the small widget

If the files don't exist, it will use the images from v1.2. You don't need to replace all 4 images, just drop in as many as you need. So, if you only use the small widget, just add susbs.png and susbh.png.

To a certain extent, the widget will size to the image size although there are minimum sizes related to the widget and icon grid used byt the launchers. Anyroad up, just have a play until you get it looking how you want it.

Cheers

Link to comment
Share on other sites

Guest simonta
Understand and appreciate what's already been done - Thanks again!

Edit: Don't worry I've been able to resize it using ADW Launcher

Do you still want it to run the shell scripts instead of launching Paul's app?

If so, I'll need to figure out a way to confirm the action. You don't want to click a widget and have it do a reboot without asking. Would a simple "Do you want to reeboot, yes/no" type thing do the job?

Link to comment
Share on other sites

Guest remlap

That's awesome mate!

Just a suggestion for next update what about having Host underneath an icon like applications?

post-26571-1294308747_thumb.png

Edited by remlap
Link to comment
Share on other sites

Guest simonta
That's awesome mate!

Just a suggestion for next update what about having Host underneath an icon like applications?

Don't want much you lot do you :unsure:

I could do it but because I haven't been prescriptive about the image sizes, it would take a lot of complex code and testing to account for abitrary images. Would be much easier if you just edited the image. Don't use Paint if you're on Windows, it doesn't handle bitmap transparency. Use Paint.Net or GIMP or similar.

I think it's best to give you guys maximum flexibility rather than to say "for the small widget, it must be 72x72 pixels at 160dpi", "for the big widget.... blah blah".

Let me know if y'all don't agree.

Cheers

Link to comment
Share on other sites

Would a simple "Do you want to reeboot, yes/no" type thing do the job?

That would be great - but as I edited my post it's ultimately not necessary now (for me at least). Using the ADW launcher I have minimised the widget size to Icon size (roughly) anyway, and also created two custom widgets for switching USB host and slave.

Don't go too far out of your way!

Link to comment
Share on other sites

Guest simonta

Sweet remlap. Thanks now using those.

If you don't mind, I'll make them the defaults for the widget.

Where did you get the original icon? Is it freeware/open source/public domain?

Cheers

Link to comment
Share on other sites

Guest remlap
Sorry - when you add the large widget, it defaults to 2columns x 1row. When adding it, I just made it 1column x 1row and it fits in nicely.

HTH

Ah that's what I did too. :unsure:

Link to comment
Share on other sites

Guest rvdgeer
Found them here.

http://www.iconspedia.com/search/usb/

Sorry but what is 1x1 icon size?

Thank you remlap...

I created a slave and host mode icon for the small widget, based on the usb icons you linked to...

The reflect the style I use for my homescreens...

(50% black transparent background)

susbs.png: USB Slave icon for 1x1 widget

post-205359-1294404474_thumb.png

susbh.png: USB Host icon for 1x1 widget

post-205359-1294404467_thumb.png

Link to comment
Share on other sites

  • 2 weeks later...
Guest dr_nick

think i'm being retarded, but how exactly do i get this onto my vega?

have downloaded the .zip onto my pc and extracted it (can't seem to download directly onto my vega as the link just opens a blank window...)

what do i do next? where do i need to put it on the vega?

thanks

Link to comment
Share on other sites

  • 2 weeks later...
Guest simonta
Any chance of a quick update as the kernel version has changed so even when in slave mode, icon shows host ? ;)

Ah ha! Thanks for the heads up (I don't use it myself as never switch modes ;))

I'll get this done, possibly today but if not, will be mid next week. Sorry for the delay, got a test release deadline of new my app approaching!

Cheers

Link to comment
Share on other sites

Ah ha! Thanks for the heads up (I don't use it myself as never switch modes ;))

I'll get this done, possibly today but if not, will be mid next week. Sorry for the delay, got a test release deadline of new my app approaching!

Cheers

NP - I don't switch very often but have gotten used to the nice PNG on the desktop. No rush...... ;)

Link to comment
Share on other sites

With MCK r2 refresh 'slave' or 'host' is displayed in the kernel version info.

P

Thanks - does the switcher icon now show what mode you are in based on the kernel version or do we still need this separate APK ?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.