[Q] Showing a toast outside my own context - Java for Android App Development

I want to integrate an option to display the time of the last update into my widget. To do so i wanna display a toast message like 'Last update: 13.12.13 20:00'. But i dont want my main activity to show up to display the toast, but displaying it directly on the homescreen. How to do this?
I tried if i could display the toast from my widget provider directly, but i cant. Another idea was to set the onClick intent for the button that should cause the toast to show to start a separate activity, as it seems that only activity can display toasts. Maybe this is just a stupidly easy thing to do, but i personally have no more ideas how it could work... thanks in advance for the help!
---------------------------------
Phone : Samsung Galaxy Mini S5570
OS:
•AOSP ICS Touchwiz V5 by A_U
•Android 4.0.4
•Baseband XWKS2
•Kernel: 2.6.37.6 Badass v1.9 by alin.p
•Recovery CWM v4.0.0.5
Mods:
PureAudio, Mounts2SD, ODEX through Universal ODEX script, AdBlock by AdAway
---------------------------------
Gesendet von Tapatalk

Basically, every Activity, Service and Broadcastreceiver can do so.
What was your code you tried?
Regards

Ah sorry, i forgot to mention that i wanted to get the last update date from shared prefs, then it told me that to access shared prefs u have to extend activity and not broadcast receiver...
Is there maybe a better way to save the update time than shared prefs, so that i can access it via the receiver?
---------------------------------
Phone : Samsung Galaxy Mini S5570
OS:
•AOSP ICS Touchwiz V5 by A_U
•Android 4.0.4
•Baseband XWKS2
•Kernel: 2.6.37.6 Badass v1.9 by alin.p
•Recovery CWM v4.0.0.5
Mods:
PureAudio, Mounts2SD, ODEX through Universal ODEX script, AdBlock by AdAway
---------------------------------
Gesendet von Tapatalk

Masrepus said:
Is there maybe a better way to save the update time than shared prefs, so that i can access it via the receiver?
Click to expand...
Click to collapse
Use a text file? Link to tutorial

Why don't use SharedPreferences in Broadcastreceiver? It's the same process like saving data in a file by your own.
Regards

Related

Discussion/Support ParanoidDroid, Downloads and Goodies for Fassy/Mesmerize/Showcase

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[ROM][JB:CM10:HYBRD] PARANOIDANDROID 2.54
Ported by: notta
Discussion/Support/and Everything Else..
[font=courier new,courier,monospace] First of all I would like to thank notta for bringing Parainoid android to use Fascinate users and all his work! Also to molesarecoming, D4rKn3sSys, and Cyanogenmod. :lol:[/font][font=courier new,courier,monospace] [/font]
[font=courier new,courier,monospace] Let's use this thread for discussing or helping each other out with the ROM, and send bug reports and other related issues over to the dev thread. If notta want's to run his own discussion thread too then I will take this down if asked to do so.
* For Downloading Paranoid Android & more information go to notta's PA port thread listed below![/font]
[font=courier new,courier,monospace]" [/font][font=courier new,courier,monospace]To be honest, this is not tablet mode at all, it has nothing to do with silly build.prop hacks. This is the first and only Android rom to feature true Hybrid mode. This rom lets you scale and project every app, every widget, even systemcomponents individually. Remember, android is modular, everything is an app: Lockscreen, navigationbar, dialogs, popups, keyboards, widgets, and your regular apps of course. Apps have the capability to switch into various designs or layouts according to the device they run on. This can result in a complete new experience as many apps will transform to the better.[/font]
[font=courier new,courier,monospace]Now for every element that you like chose a mode (PhoneUI, Phablet/Nexus-7UI, TabletUI) and/or a size. You are 100% independent of the system DPI which runs nicely in whatever value it has been assigned to. You do not need to boot your phone into a certain DPI. Neither will most of the changes you apply require a reboot. You will not suffer from the myriads of troubles which normally haunt you under build.prop tablet mode. Your market, phone, etc. will all work, apps won't shrink on you unless you shrink them yourself. This project will entirely transform your device, but retain the aesthetics and the feel of your phone.[/font][font=courier new,courier,monospace]"[/font]
[font=courier new,courier,monospace]Purpose of the thread:[/font]
[font=courier new,courier,monospace]- Discussion/Support[/font]
[font=courier new,courier,monospace]- Downloads/Links[/font]
[font=courier new,courier,monospace]- Information[/font]
[font=courier new,courier,monospace]- Post your Homescreens & Screenshots! {Let's see some cool screenshots}[/font]
[font=courier new,courier,monospace]- Chat/Discuss: MODs, Themes, and whatever else comes up. [/font]
** Let me know if there is anything you would like me to add into the thread. Hope this will be useful resource for you all.
[font=courier new,courier,monospace]Downloads & Links -[/font]
[font=courier new,courier,monospace]* Thread for notta's {ROM}{JB:CM10:HYBRD} PARANOIDANDROID -[/font]
[font=courier new,courier,monospace]HERE[/font]
[font=courier new,courier,monospace]* Official Paranoid Android Website -[/font]
[font=courier new,courier,monospace]HERE[/font]
[font=courier new,courier,monospace]* Latest Gapps -
Here[/font]
[font=courier new,courier,monospace]* Inverted Gapps: by travp624 -
HERE[/font]
[font=courier new, courier, monospace]* PARANOID ANDROID Wallpapers -[/font]
HERE
[font=courier new,courier,monospace]* Youtube Video Tutorial: How to install PARANOIDANDROID -
HERE[/font]
[font=courier new,courier,monospace]* Devil Kernel -
HERE[/font]
[font=courier new, courier, monospace]* [MOD]HD Weather Icons: By 123sit -[/font]
[font=courier new, courier, monospace]HERE[/font]
[font=courier new,courier,monospace]* [PARANOIDANDROID STUFF] - Walls, Themes, Guides, MODS & other Goodies..... [/font]
HERE
* ChangeLog -
HERE
How to set up Workspace Mode:
How to Change an apps Layout and Size:
Other Helpful Goodies:
* Official MEGA CM10 Theme Chooser thread [270 Themes] -
HERE
* [MOD] V6 SUPERCHARGER -
HERE
* {Guide} Installing A Rom/CWM Recovery/root/or Going back to Stock -
HERE
RADIO/MODEMS:
EC09
EH03
ED05
ODIN:
Download Odin - V 1.83
Download Odin - V 1.85
Download Odin - V 1.3
Download Odin - V 3.04
~ Modified APK's ~ :
MULTI-DPI HACKED Play Store 3.10.10
Follow these steps if u want to use multi-dpi hacked version.
1. Flash the zip file and reboot.
2. In Settings->Apps->All clear data of Play Store and Google Services Framework then reboot.
3. Open Play Store, if it gives error then clear data of Play Store and open Play Store again then hit accept.
4. If ur apps doesn't show up under installed apps in play store after installing this fix then reboot once and u should see it afterwards.
5. If above steps didn't fix ur issues then remove Google account,reboot and relogin.
Note:
U need to follow all these steps only when u r having problems like certain apps not showing up in play store(e.g. facebook,beautiful widgets),shows incompatiblity error,etc.
Inverted Multi DPI Play Store for JB - HERE
Inverted Multi DPI Play Store for JB 4.2 - HERE
What I do:
Extract the apk from the .zip. Then delete any old xda/market/youtube apps you already may have installed by root explorer or something like it. Finally place the extracted apk in system/app and set permissions to rw,r,r. Reboot and enjoy!
If interested here is another themed one. Knew people were having issues installing not sure if he corrected it. the 3.10.9 worked fine.
PaulDiddy Remix Blue Google Play 3.10.10 (multi dpi hacked,auto market updater disabled,no regional restrictions) - HERE
[font=comic sans ms, cursive]FLASH PLAYER 5.17 - Here [/font]
** Works with jb **
[color=#ff000]INVERTED TWITTER 3.6.0 - Thanks to RUJELUS22[/color] - Here
INVERTED ICS THEMED DROPBOX 2.2 - Thanks to decalex - Here
** inverted ICSish [new] **
~ Themes ~
NatezModz - Thread for downloads HERE
~ Boot Animation ~
Paranoid Android - Bootanimation:
Download - HERE
** Not Flash-able! Just move to /system/media and replace old & change permissions **
Official CM10 Boot Animation:
** Flashable Zip **
Download - HERE
XDA Thread - HERE
400x800
INSTALLATION
[font=georgia,serif]Place the zip file on your external SD Card[/font]
[font=georgia,serif]Reboot into Recovery[/font]
[font=georgia,serif]Flash the zip file[/font]
[font=georgia,serif]Device reboots automatically[/font]
[font=georgia,serif]Enjoy your new bootanimation[/font]
CREDITS
[font=georgia,serif]CyanogenMod[/font]
[font=georgia,serif]Cameron Behzadpour[/font]
Samsung USB Driver - Here
VZW bloat pack - Here
VZW Fascinate SCH-1500 User Manual : Here
GBBootloaders:HERE
PA Kernel 1.2 Ghz: HERE
General Changlog - Here
Cyanogenmod Changelog - Here
*** Inverted Apps By ***
JT Inverted Productions: JustTunBean
Visit his thread here and remember to thank him for his amazing work he brings to us!
Showcase and mesmerize Version
Hello i am Bbrad im going too be using vegases profile too keep this section up to date but please if you have any mesmerize/showcase question contact my main account (Bbrad)
Paranoid Droid 2.21
For Samsung Showcase
For Samsung mesmerize
((MMS FIX)
( Flash this zip )(in CWM: http://db.tt/ogaKnTktFOR THE MESMERIZE)
Whanna step by step how too install well here ya go:
Code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/72Ow-YQeex4" frameborder="0" allowfullscreen></iframe>
REMEMBER TOO WIPE YA DATA
Theres 2 Edition (Normal)(Hardcore)
Hardcore: Includes Premium goodies and some modifications may work may not
Normal: Regular old paranoid with Bbrad goodies
DOWNLOAD LINKS: NORMAL
mesmerize: http://db.tt/5ntmuYyk
Showcase: http://db.tt/8B14mitX
Downloads: Hardcore
Mesmerize: http://db.tt/GG1LlbKZ
Showcase: http://db.tt/QwT6HiVB
*MESMERIZE USERS: if MMS still doesn't work try pushing this into system and replacing your current MMS app*- http://db.tt/wBXsNqjl -*
+IVE ADDED SOME GOODIES INTO THIS BUILD+
Enjoy!!!
MORE GOODIES
Changlog and Website for referance: http://api.viglink.c..._13501084895011
Latest GAPPS:http://api.viglink.c..._13501085470292
Some Wallpapers : http://api.viglink.c..._13501086464163
[/quote]
TOUCH RECOVERY!!!
ONLY FOR HARDCORE VERSION USE AT YA OON RISK
Download: http://techerrata.com/file/twrp2/fascinatemtd/openrecovery-twrp-2.3.0.0-fascinate.zip
Tried installing the MEGA BLUE APK.....but says it cannot via theme chooser stinks, looks like a cool theme
Sent from my SCH-I500 using xda app-developers app
icemanwbs said:
Tried installing the MEGA BLUE APK.....but says it cannot via theme chooser stinks, looks like a cool theme
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
That one im using is by NateModz
Here ya go: http://db.tt/1qmLya3E
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
LasVegasRomeo, Thanks for taking the time to do this for everybody! I'm learning just how taxing it can be...
Again Thank You!
LasVegasRomeo said:
That one im using is by NateModz
Here ya go: http://db.tt/1qmLya3E
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
Click to expand...
Click to collapse
Thanks, but how do you install ? Through theme chooser ?
Sent from my SCH-I500 using xda app-developers app
icemanwbs said:
Thanks, but how do you install ? Through theme chooser ?
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
Yes just download it. Use root explore to do to downloads on your SD card. Click on it and it will install. Then go into theme chooser and choose it and click apply. When pop up box come up click apply anyways. :sly:
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
LasVegasRomeo said:
Yes just download it. Use root explore to do to downloads on your SD card. Click on it and it will install. Then go into theme chooser and choose it and click apply. When pop up box come up click apply anyways. :sly:
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
Click to expand...
Click to collapse
Thanks ! Got it working.....looks great ! :beer:
Sent from my SCH-I500 using xda app-developers app
icemanwbs said:
Thanks ! Got it working.....looks great ! :beer:
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
Should give it a reboot after. If you haven't checked out the kiwi colbalt on market, should. Pretty sweet. Only two I use.
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
Paranoid Android 2.14 and new partitions.
Does the newest release of PA have the newest partition layout by JT?
irodeapony said:
Does the newest release of PA have the newest partition layout by JT?
Click to expand...
Click to collapse
Button panel fixes, also in landscape
Transparent statusbar (navbar comes soon)
4.1.1_r6 from aosp
Lag fix for Nexus devices
Nexus 7 new hybrid properties
Backup/restore is 100% fixed
SuperSU instead of SuperUser
new ParanoidWallpapers app including solid color selection
Moar stuff!
The last one he did. Not sure if he has a new one.Pretty it would wipe data and everything to apply the a new partitioning Hmmm let me see on the Partitioning layout.
This is what Titanium Backup is saying for me
System ROM: 1.63 GB
Internal : 490
Here is a hacked Market to accept all DPI if anyone interested. :sly:
I'm also adding the fixed gallery2 with Goole syncing, jb Flash Player and inverted/blacked out Dropbox in the downloads section (beginning of the thread)
http://db.tt/xN8zQumv
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
Rockin' Devil 1.5.2 on the new PA 2.14 ! woot woot
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
LasVegasRomeo said:
Here is a hacked Market to accept all DPI if anyone interested. :sly:
I'm also adding the fixed gallery2 with Goole syncing, jb Flash Player and inverted/blacked out Dropbox in the downloads section (beginning of the thread)
http://db.tt/xN8zQumv
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
Click to expand...
Click to collapse
Can't get app to install.
Sent from my SCH-I500 using xda app-developers app
icemanwbs said:
Can't get app to install.
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
Download, and move it to system/app with root explorer to replace/delete your current market and change permissions then reboot.
Sent from my SCH-I500 using Xparent Blue Tapatalk 2
Has anyone tested Devil kernel 1.6.0 or 1.5.2 on 2.16 rom? Hows it working for you all so far?
netlagger said:
Has anyone tested Devil kernel 1.6.0 or 1.5.2 on 2.16 rom? Hows it working for you all so far?
Click to expand...
Click to collapse
Use 1.6.0 on new the build . 1.5.2 isnt working with new build because of new layout.
Sent from my: <~PµRe Ev¡L "Dev¡l-i§h" HYBRID~> ƒassy §CH-I500 {Dev¡l injected}...using "Xparent Blue Tapatalk 2"
LasVegasRomeo said:
Use 1.6.0 on new the build . 1.5.2 isnt working with new build because of new layout.
Sent from my: <~PµRe Ev¡L "Dev¡l-i§h" HYBRID~> ƒassy §CH-I500 {Dev¡l injected}...using "Xparent Blue Tapatalk 2"
Click to expand...
Click to collapse
Thanks Vegas, I am going to give it a shot.
Alrighty, here's a fun one: I can't get into recovery. Running 20120926, Devil3_1.6.0.
I've tried getting into recovery via menu, Goo.im, or reboot recovery. Not quite sure how to do this without dealing with the 3-finger crap. Last time I flashed a CM7 to get out of the loop, I nuked my SD card and had to ODIN anyways. XD
Akkeresu said:
Alrighty, here's a fun one: I can't get into recovery. Running 20120926, Devil3_1.6.0.
I've tried getting into recovery via menu, Goo.im, or reboot recovery. Not quite sure how to do this without dealing with the 3-finger crap. Last time I flashed a CM7 to get out of the loop, I nuked my SD card and had to ODIN anyways. XD
Click to expand...
Click to collapse
Hmmm.. that's a first. Haven't heard anyone having that issue. Personally I just would flash the recovery fixed for cm7 then reflash pa. I'm on pa 2.16 and devil 1.61 which you should be on 6.1 .
Sent from my: <~PµRe Ev¡L "Dev¡l-i§h" HYBRID~> ƒassy §CH-I500 {Dev¡l injected}...using "Xparent Blue Tapatalk 2"

[ROM] Helly_Bean [4.3] [nightly builds] - Captivate

Many thanks, to pawitp, FaultExeption, Jt1134, be18 and all the other people who commit to gerrit. without these, this rom wouldn't be possible
you can find the official website for this projekt here
http://www.hellybean.com/index.html
you'll find download links and faq on this site.
IRC channel:
http://webchat.freenode.net/?channels=hellybean
Install instructions:
coming from any other rom:
- make sure to have gingerbread bootloaders
- flash allinone.zip
- reboot recovery
- flash allinone.zip again
- flash gapps
if you are coming from a previous version, older than 08/28 your data will get wiped due to new partition layout!
coming from previous version:
- flash allinone.zip
Additional changes, compared to cm10 (this list might not be complete):
- facebook sync integrated
- option to enable high end gfx effects
- possibility to activate and customize navigation bar (color of background, glow effect, transparency)
- possibility to customize statusbar (color of background, transparency)
- transparent lockscreen (taken from paranoid android, coded by jesus david)
- edge swipe navigation (ported from sgt7)
- ability to enable tablet_ui (ported from aokp)
- kill-all button at recents panel (ported from aokp)
- task manger button at recents panel linked to the built-in running apps service
- customizable long-press-back-kill timeout (from 500ms to 3000ms)
- added option to toggle lockscreen styles (jb, ics, gb, eclair, blackberry10)
- option to use sense4 recents panel
- misc settings in settings menu
- added kill-all and taskmanager button to sense4 recents panel
- added the possibility to set lockscreen text/image colors
- added possibility to change the colors of the statusbar toggles
- added option to enable/disable coloring of toggles
- added option to display a small bar below the toggles as indicator for toggle state
- added possibility to display additional volume slider (similar to brighness slider from aokp)
Click to expand...
Click to collapse
many thanks to:
- be18
- mkalter, who got the first running jb rom
- elitemovil (who was the first who got gsm working)
- stratosk (from who's initramfs i could start build my first jb booting kernel)
- teamhacksung/pawitp for the rom sources
- team nyx who always have good tips for me, if i get problems with my kernel
- SysTem-X for hosting
- Rootax for hosting
- RolluS for hosting
- many thanks also to the other people who have created mirrors
- if i have forgotten you, please pn me
I hope all in one zip is for all flavors of Galaxy S (including Captivate, S and others). Please confirm.
cnu4u said:
I hope all in one zip is for all flavors of Galaxy S (including Captivate, S and others). Please confirm.
Click to expand...
Click to collapse
Yes. That's it
Gesendet von meinem GT-I9000 mit Tapatalk 2
DerTeufel1980 said:
Yes. That's it
Gesendet von meinem GT-I9000 mit Tapatalk 2
Click to expand...
Click to collapse
Please provide link for latest gapps... I didn't find it :crying:
Edit - I found the link http://goo.im/gapps
Gingerbread bootloader
Hi, I was wondering how I can tell if I have the Gingerbread bootloaders or not. I started with stock, then installed cwm by installing the corn kernel, followed by installing the paranoid android jellybean rom. If I don't currently have the gingerbread bootloader, can someone help me with instructions on how to get it back? Thanks in advance for your help!
maysken said:
Hi, I was wondering how I can tell if I have the Gingerbread bootloaders or not. I started with stock, then installed cwm by installing the corn kernel, followed by installing the paranoid android jellybean rom. If I don't currently have the gingerbread bootloader, can someone help me with instructions on how to get it back? Thanks in advance for your help!
Click to expand...
Click to collapse
If the stock rom was gingerbread, then you are fine. If it was froyo or older you should install them. Best way would be flashing stock gingerbread rom
Gesendet von meinem GT-I9000 mit Tapatalk 2
Thanks for the new thread, the other OP was way old and never got updated. It was starting to bother me
Also thanks for the update of course will test later today.
any idea I am getting some restriction to login to http://www.hellybean.com/index.html using macbook??? How to get it away??
TheSchatz said:
Thanks for the new thread, the other OP was way old and never got updated. It was starting to bother me
Also thanks for the update of course will test later today.
Click to expand...
Click to collapse
It was beginning to bother me too. But now all is well.
And I'm downloading now. I just read the changelog and see you were able to add the blackberry lock screen but its only working with stock DPI? What problems occur with custom dpis?
Sent from my SGH-I897 using xda app-developers app
m1batt1 said:
It was beginning to bother me too. But now all is well.
And I'm downloading now. I just read the changelog and see you were able to add the blackberry lock screen but its only working with stock DPI? What problems occur with custom dpis?
Sent from my SGH-I897 using xda app-developers app
Click to expand...
Click to collapse
It's looking weird
Gesendet von meinem GT-I9000 mit Tapatalk 2
Just tried to install a couple of times, following the instructions and sometimes also clearing delvik and fixing permissions.
Each time upon initial setup process, I keep getting errors ("unfortunately, gallery has stopped" or "google.media has stopped").
Even if I manage to finish the setup, the errors keep popping up and the Play store just closes (as is the Gallery).
Any ideas?
alexvtr said:
Just tried to install a couple of times, following the instructions and sometimes also clearing delvik and fixing permissions.
Each time upon initial setup process, I keep getting errors ("unfortunately, gallery has stopped" or "google.media has stopped").
Even if I manage to finish the setup, the errors keep popping up and the Play store just closes (as is the Gallery).
Any ideas?
Click to expand...
Click to collapse
Go in Apps, Delete the data of Gallery and reboot.
Was it a clean install ?
DerTeufel1980 said:
It's looking weird
Gesendet von meinem GT-I9000 mit Tapatalk 2
Click to expand...
Click to collapse
As long as it doesn't freak out and break things on the custom DPI's I'm not worried about it. :good:
silvertag said:
Go in Apps, Delete the data of Gallery and reboot.
Was it a clean install ?
Click to expand...
Click to collapse
Thanks, I managed to get it working now.
So far, everything appears to be just fine.
1 question: I guess if I want gallery to show my pics from my google+ or Picassa web, I have to flash another Gapps?
If it's the right way, which version (and if possible, where can I find it?)
First of all, this ROM is awesome. Secondly, can anyone explain to me what fudge swap is, or at least point me in the right direction? That might be the only kernel setting that I don't know how to use
Sent from my SGH-I897 using Tapatalk 2
What with the new thread? Are going to get rid of the old one?
Sent from my SGH-I897 using Tapatalk 2
Just checking in to say that 1106 is the hellybean we know and love again!
Thanks for the update, it's running smooth and fast here.
Pdroid
DerTeufel,
I understand why you removed PDroid. I was having some intermittent issues too. But I like the idea behind PDroid so I hope that it can be added back in the future if the problems can be resolved.
Thanks...
Great Release, the blackberry lockscreen is cool, dont know if i will keep it because i like the slider shortcuts on the jellybean lockscreen.
One thing, the camera is missing alot of it settings, there are only 2 there i saw "Store location" and picture quality.
Also when selecting Panorama shot it says Gallery has force closed.
desilla said:
Great Release, the blackberry lockscreen is cool, dont know if i will keep it because i like the slider shortcuts on the jellybean lockscreen.
One thing, the camera is missing alot of it settings, there are only 2 there i saw "Store location" and picture quality.
Also when selecting Panorama shot it says Gallery has force closed.
Click to expand...
Click to collapse
Can you get a logcat of the fc please
Gesendet von meinem GT-I9000 mit Tapatalk 2

OGBatteryMod

Just wanted to mention that this mod works on Razr I I'm rooted and on Pillama 0.3. It gives you the ability to choose out of various battery icons.
Here's a link to the original thread: http://forum.xda-developers.com/showthread.php?t=2181766&page=12
Hi, thanks for the link but it didn't work for me. Detected my razr, I chose settings.apk then it throws an error saying it can't decompile settings.ui.apk
AW: OGBatteryMod
cuben said:
Hi, thanks for the link but it didn't work for me. Detected my razr, I chose settings.apk then it throws an error saying it can't decompile settings.ui.apk
Click to expand...
Click to collapse
Maybe it's because your ROM is not deodexted. Your system apks have to be deodexted to be able to modify them. Are you running Stock or another ROM?
Gesendet von meinem XT890 mit Tapatalk 2
Ah, yes maybe. I am running 91.2.26001.Retail.en.EU - 4.1.2 and it doesn't mention it being deodexed so maybe your right. Cheers.

[ROM] SGS II V10 GB [Stock]

Hey guys here I present to you,
SGSII V10 4.1.2
This Rom is based on stock DDKQ8 2.3.6
You can call this a port of SGSII Rom. ​
Thread Navigation
Changelog,,ScreenShoots and Video Previews
Key Features:-
1) Samsung Galaxy SII look
2) Based on android 2.3.6
3) Touchwiz 3.9 <TW4 UI + TW Settings
4) Overall Best SII for SGA
5) ICS Transistions
6) SGSII wallpapers {All 25}
7) SGSII Icons
9) SGSII startup & shutdown animations
10) SGSII Sounds
11) SGSII Ported Apps
12) SGSII Themed Apps
13) Amazing Speed and Stability
14) JellyBean UI Statusbar
15) EDT battery Tweak
16) Smooth Scroll Mod
17) Long Press Volume Hack
18) CRT
19) SGSII widgets
20) Smoothest Stock Rom Gaming Xperience
21) ICS/JB Layouts
22) Renabled buttonlights
23) CallScreen ICS Modded
24) 4.1.2 JB Statusbar Porte
25) FULL GALAXY SII UI
26) 15 toggles
*Have a look at Changelog for latest features*
Credits:-
All the Devs who have helped me or their work is in this
CoolcatGethome for Calculator , Camera , Much more .... and lots of help
Raiderx77 for SGSII Video App
Libsc for Battery ExtenderKernel
Vishal24387 for keyboard
RomanBB for EDT Tweaks
sam-ron for some help on launcher
MatZ69 for great help on statusbar and some other stuff
Imbawind for adrenaline engine
Paravoz! for big call screen guide
Amrish1984 for ICS layouted call screen
Ahmed hamouda for arabic Patch
Coccolino_dbro for some resources
PulseDroid for Thread Banner Title
Download:-
v10 SII UI :-http://www.mediafire.com/?1p0douvnq9kfn5g
How To Install:-
Copy Zip to SD Card
Reboot into recovery
Wipe Data/Factory Reset * You don't need to do this step if you previously had a DDKQ8 or an older version of the SGS rom. But i recommend wipe data still *
Wipe Cache Partition
Install Zip From SD Card
Flash ROM
Reboot
Patches:-
Original JB/CM10 Theme :-Here
How To Install Patches:-
Copy Zip to SD Card
Reboot into recovery
Mount data
Mount system
Install Zip From SD Card
Reboot
*Note this rom might contain small bugs and will be fixed later i released it currently because i had promised it 3 months ago *
Dont forget to hit THANKS if U Like my work
@Moderators
ive seperated this rom from The SII original rom
as there where many people who liked GB ui more the JB s3
so i have this now
rom are Completely different so if correct this one can stay at this Place
if not PM me and i shall respond at 30th of may
Boot Animation :-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ScreenShots V10 JB:-
Shutdown Animation :-
[/FONT]
Changelog:-
V10.1:-
Quick Fix UI * thanks to Wonokairoen*
V10:-
-redesigned whole Ui
-Jellybean Statusbar layout
-ICS/JB callscreen Ui
-New TW4 launcher
-Tw launcher settings
-share app option
-SGII widgets updated
-Smooth Scroll Mod
-Long press to skip song
-Music player modified
-Lockscreen clock remade
-Smooth windowmanager hacks
-build.prop tweaks
-EDT tweaks * Battery Percentage ON/OFF option
-Smooth Swipe to remove
-Working Settings Button in statusbar
-and many many more hidden features
v9:-
-Added updated Adreno libs for Better performance
-Added Extended Power Menu
-Added Touchwiz 4 by Robin but removed list mode and added new amazing animations
-Modded hosts for completely ad-free Ui
-Low sounds for Notifications fixed
-New framework Mods[Many]
-IC menu popups for all apps fixed
-Cropping reduced
-Changed kernel from Cf root b84 to Battery Extender
-Lots of new staus bar icons
-Sound Quality Improved
-Boot.img tweaks
-Overall Performance boost by 2X
-Transistions much more smoother
-Battery performance increased 2X
-Removed Battery %
-Removed Email & GMaps
v8.1:-
-Added CRT Animation
-Removed "Swipe Screen to Unlock"
-Changed IC Menu for different System Apk like Dialer,Contacts,Clock,MMS,Internet,Memo,My files,etc...
-Can install other keyboards
v8:-
-Started from beginning to make look like SII ICS
-New SII Start and Shutdown Animation
-New Icons and widgets
-Boots much faster
-Battery %
-SII ICS Media
-Heavily Modded TW3 to look like TW4
-SGSII Camera
-No scripts
-Latest Modded Gapps
-Modded ICS Settings with quickpanel settings
-14 toggles mod
-Swipe to Clear notifications
-Fully reworked framework
-ICS 4.0 Animations
-Roboto Font
-And a lot i have seem to forgotten
-For better view have a look at screenshots in 2nd post
v7.2:-
-New Ported SGSII Calculator
-New Ported SGSII Keyboard
-New SystemUi With bigger icons
-Latest Gmail.apk
-Latest Google Maps_v6.50.apk with World Navigation activated
-Replaced Beats Music Player with normal Music Player
-New SGSII 25 HD Wallpapers
-Latest Google Play with Restrictions Removed
-Changed Settings.apk Icon
v7.1:-
-Edited SystemUI.apk
v7:-
-Bugs of v6 solved
-New Dialer
-Added engenesis
-Added Supercharger
-New Modified Lockscreen
-Added Extended Power Menu
-Added SGSII boot animation v2
-Added SII black keyboard
-Added Polaris Office
-Removed Beats Audio and Xloud
-DTa2sd works perfectly
-New MMS.apk without any restrictions
-Build.prop Tweaks
-Google Maps 6.40 with world wide navigation activated
-Market replaced by play store
-Adrenaline boost v2
-And much more that i might have forgotten
v6:-
-Based on DDKQ8 Stock Rom
-Most Stable DDKQ8 Rom
-Galaxy Note/ SII(ICS) Ui
-New lockscreen
-A whole new Ui
-Ported real SGSII bootanimtion[1st time on XDA]
-New Call Screen
-CRT animation off animation
-Smooth Scroll
-Hacked Hosts
-Adrenalline Boost Installed
-Overall faster than v5
-May be forgotten some features
-Much More
v5.1:-
-Disabled battery %
v5:-
-Ported SII core boot.rle file to SGA
-New boot Animation(1st time in a rom)
-New Scripts and Tweaks
-Adrenaline boost pre installed
-modded hosts file to block adds
-New widget
-Back to default SGA keyboard
-Slaid HW acceleration mod
-xbin,libs,etcs provided by SuperUser10
-Polaris Office from SII ported to SGA
-Beats Audio
-Modded Music Player for a Beats feel
-Battery % indicators
-Speed Increased 2X
-Smooth Scroll Aplies most prboably
-And many more that I am forgetting right now.
v4:-
-Now based on BlackHawk DXKT7
-Added Slaidfast Mod v2.5
-Fixed bugs which Samsung forgot to fix B)
-Removed Some Apps
-Changed Icons to match the latest SGSII Stock Rom
-Added SGSII keyboard by ketut.kumajaya
-Added backlight off script by Pyronia to save battery
-Added new SGSII weatherwidget working on ACE TW 3
-Added new touchwiz 3 by wonokairoen
-Added SGSII Video App
-Added a new status bar
-Added SGSII & ICS Wallpapers in stock wallpaper chooser
-Added modified Youtube App that Supports Dowloading and is also less in space
-Modifies Stock Apps also a lit
-Changed framework too
-Added SGSII deskclock widget
-Download Size also reduced
-Battery Performance also increased!!
-Performance And Speed /has Increased Tremendously!Cant Find No Words to describe the speed!
-And many more changes cant remember
V3:-
-Major Update
-Crt animation enabled
-Added Lagfree v3
-Added turboboost (Removed a part to enable CRT)
-50 mb free in System Apps
-Removed Some Widgets
-Removed Some Apps
-Modded Touch Wiz A Little for More Optimization
-Changed a little in Contacts.apk,Messages.apk,DialerTabActivity.apk & Phone.apk for better performance
v2:-
CWM Flashable
Transparent SII Status bar
Changed Ace framework to SII framework
Deodexed
More free Space
Added Tweaks Manager and ext4 Manager
Motorazr Bootanimation
And many other bug fixes
v1:-
Initial Release
Note: Please Dont use Any part of this rom as it contains stufd wich u dont easily can make or create
If u do use please ask for permissions first!
as i know lots of people like the GB ui aswell i will Update it after vacations with a more real UI
Plan is to fully port SII GB statusbar
Sent from my S500 using xda app-developers app
SpaceCaker said:
as i know lots of people like the GB ui aswell i will Update it after vacations with a more real UI
Plan is to fully port SII GB statusbar
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Good I was using v10 not v11. But why 4.1.2 ? I think 2.3 interface is pretty awesome. Like galaxy ace plus or SII GB.
So it will be GB interface or JB interface ?
msnnsm said:
Good I was using v10 not v11. But why 4.1.2 ? I think 2.3 interface is pretty awesome. Like galaxy ace plus or SII GB.
So it will be GB interface or JB interface ?
Click to expand...
Click to collapse
jup
i do like that aswell
thats why i am going to port SystemUIand other parts from S2 GB
i might lose the 15 lidroid toggles but i dont care
i wanna port the real stuff
ive seen lots of stuff after i decompiled the files to java source code
wich i can easylie adapt to stock
Sent from my S500 using xda app-developers app
this is what i am going to port )
no lidroid
pure samsung quickpanel
atleast looks like this
as this is ICS statbar of s2 cust rom
but can mack something like this
Sent from my S500 using xda app-developers app
SpaceCaker said:
this is what i am going to port )
no lidroid
pure samsung quickpanel
atleast looks like this
as this is ICS statbar of s2 cust rom
but can mack something like this
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
This is what i'm talking about ! It is better than lidroid thanks and good luck
is there a center clock mod for this rom?
thank you
:good::good::good::good:
That's what's called real developer. Continue to works on old roms. We expect new update and support you.
P.S. Who cares about lidroid toggles, we want it to be as same as galaxy s2 GB UI.
Tried it works perfectly please add it to next release (smooth spinners) : http://forum.xda-developers.com/showthread.php?t=1427510
@users of this rom
if possible could you try to flash this
zip file ?
with mount system and mount data
this will add pure S2 pngs and Pure S2 layout in statbar * lidroid still there atm *
https://github.com/spacecaker/git_status_xp/commit/49303bf4d96d872583655c9a5cec1da3e0fd9312 <- this i will do after this zip works
SpaceCaker said:
@users of this rom
if possible could you try to flash this
zip file ?
with mount system and mount data
this will add pure S2 pngs and Pure S2 layout in statbar * lidroid still there atm *
https://github.com/spacecaker/git_status_xp/commit/49303bf4d96d872583655c9a5cec1da3e0fd9312 <- this i will do after this zip works
Click to expand...
Click to collapse
System ui force close , doesnt work for me.. I did mount data and system before installed it
GT-S5830 cihazımdan Tapatalk 2 ile gönderildi
AceSamsung said:
System ui force close , doesnt work for me.. I did mount data and system before installed it
GT-S5830 cihazımdan Tapatalk 2 ile gönderildi
Click to expand...
Click to collapse
can u take logcat if possible ?
how do the frameworks popups and pngs looks now ?
Sent from my S500 using xda app-developers app
edit
i think system fcs because i havent used correct packing of twframeworks-res.apk
so i might can fix it with ease
try this zip
if this one also gives FC of systemui.
i will need a logcat to find the problem
SpaceCaker said:
try this zip
if this one also gives FC of systemui.
i will need a logcat to find the problem
Click to expand...
Click to collapse
i will try but i have to say something, when i install the first zip , there are two twframework-res.apk in framework folder.. so it didnt remowed placed twframework-res.apk.. just want to you know
GT-S5830 cihazımdan Tapatalk 2 ile gönderildi
AceSamsung said:
i will try but i have to say something, when i install the first zip , there are two twframework-res.apk in framework folder.. so it didnt remowed placed twframework-res.apk.. just want to you know
GT-S5830 cihazımdan Tapatalk 2 ile gönderildi
Click to expand...
Click to collapse
i have twframework-res.apk ( touchwiz specific)
and
twframeworks-res.apk ( toggle-statbar) specific
the rom has 2 twframeworks one with a s after work and one without
Sent from my S500 using xda app-developers app
SpaceCaker said:
i have twframework-res.apk ( touchwiz specific)
and
twframeworks-res.apk ( toggle-statbar) specific
the rom has 2 twframeworks one with a s after work and one without
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
This one didnt work too.. same with the other one. Force close
GT-S5830 cihazımdan Tapatalk 2 ile gönderildi
AceSamsung said:
This one didnt work too.. same with the other one. Force close
GT-S5830 cihazımdan Tapatalk 2 ile gönderildi
Click to expand...
Click to collapse
could u try to take a logcat?
Sent from my S500 using xda app-developers app
try this zip
i think the problem was because of dual Carrierlabels wich where id overwriting each wich causes error
although i dont know because i didnt had a logcat
so please try this below zip once again
and if this one doesnt work i DO really need a Logcat

Create Toast from shell

Hallo,
is it possible to create a custom user-defined Toast from a shell script/command? Maybe by 'am' command, sending a broadcast to a systemapp or something?
Any ideas?
DualJoe said:
Hallo,
is it possible to create a custom user-defined Toast from a shell script/command? Maybe by 'am' command, sending a broadcast to a systemapp or something?
Any ideas?
Click to expand...
Click to collapse
I don't know what are you talking about. Toasts can be made only with Java, afaik.
Code:
String MyCustomMessage="SOME MESSAGE HERE";
Toast.makeText(getApplicationContext(), // OR getActivity(), depending on your case.
MyCustomMessage, Toast.LENGTH_LONG).show();
Have a look at this: https://groups.google.com/forum/#!topic/android-scripting/Ok0J5mcIm08
And maybe also this: http://forum.xda-developers.com/showthread.php?t=773232
nikwen said:
Have a look at this: https://groups.google.com/forum/#!topic/android-scripting/Ok0J5mcIm08
And maybe also this: http://forum.xda-developers.com/showthread.php?t=773232
Click to expand...
Click to collapse
I've tested the small Java app. It works but unfortunately its kinda buggy. The screen flashes/goes dark before the toast comes up and logcat shows weird errors (missing crypto libs(?), resource leaks..). Maybe a good time to try coding it myself...
If i fail badly i will take another look at the perl solution even though i don't like the dependency of larger 3rd party tools.
Thanks so far..
DualJoe said:
I've tested the small Java app. It works but unfortunately its kinda buggy. The screen flashes/goes dark before the toast comes up and logcat shows weird errors (missing crypto libs(?), resource leaks..). Maybe a good time to try coding it myself...
If i fail badly i will take another look at the perl solution even though i don't like the dependency of larger 3rd party tools.
Thanks so far..
Click to expand...
Click to collapse
I guess that a new Activity is launched with that apk. Using a BroadcastReceiver instead of an Activity should fix the problem.
nikwen said:
I guess that a new Activity is launched with that apk. Using a BroadcastReceiver instead of an Activity should fix the problem.
Click to expand...
Click to collapse
I think a main activity is mandatory but it probably should be invoked differently indeed. I've seen other apps starting invisible.
I maybe take it to the GScript thread. In the end, that's the tool where it makes sense.
DualJoe said:
I think a main activity is mandatory but it probably should be invoked differently indeed. I've seen other apps starting invisible.
I maybe take it to the GScript thread. In the end, that's the tool where it makes sense.
Click to expand...
Click to collapse
It isn't.
Create the toast in the onReceive() method of the BroadcastReceiver and send the broadcast as described here.
No need for an Activity.
But i thought a java class extending activity is needed to display a toast...
I am also trying to do that and i think if u put the toast-code inside onCreate() after super.onCreate() and just delete 'setContentView(R.layout.xyz)' it should display invisibly
---------------------------------
Phone : Samsung Galaxy Mini S5570
OS:
•AOSP ICS Touchwiz V5 by A_U
•Android 4.0.4
•Baseband XWKS2
•Kernel: 2.6.37.6 Badass v1.9 by alin.p
•Recovery CWM v4.0.0.5
Mods:
PureAudio, Mounts2SD, ODEX through Universal ODEX script, AdBlock by AdAway
---------------------------------
Gesendet von Tapatalk
Masrepus said:
But i thought a java class extending activity is needed to display a toast...
I am also trying to do that and i think if u put the toast-code inside onCreate() after super.onCreate() and just delete 'setContentView(R.layout.xyz)' it should display invisibly
---------------------------------
Phone : Samsung Galaxy Mini S5570
OS:
•AOSP ICS Touchwiz V5 by A_U
•Android 4.0.4
•Baseband XWKS2
•Kernel: 2.6.37.6 Badass v1.9 by alin.p
•Recovery CWM v4.0.0.5
Mods:
PureAudio, Mounts2SD, ODEX through Universal ODEX script, AdBlock by AdAway
---------------------------------
Gesendet von Tapatalk
Click to expand...
Click to collapse
The screen will turn dark for about a second as it will try to launch the new app and prepares everything. Why not do it from the BroadcastReceiver?

Categories

Resources