Enabling Animated GIFs on our ROMs - Droid Eris Android Development

Has anyone looked into applying the following fix in one of their ROMs?
code.google.com/p/android/issues/detail?id=3422#c134
(sorry for the lack of hyperlink, the boards are preventing me from posting with a link)
Basically, its a small code change that will enable animated GIFs in the browser.
The bug owner warns that quite a bit of extra memory is needed to render them and can prove unstable on some phones if the needed memory isn't present.
The heavy memory usage is a limitation of Webkit and how it renders GIFs.

That would be nice.

Related

Browser reloading pages by ifself bug

Ever since I have my HTC Magic on Vodafone UK, I have that utterly annoying issue of Magic's internal browser reloading webpages that were previously loaded and switched into background. Simple example: I load a webpage, making sure it's fully loaded. Then I go back to home screen, play around with icons or other apps etc., or open new browser window and load another page. After short while, when I go back to that first loaded page (already fully loaded and sitting in the background) - I get blank browser window, and page gets reloaded from the scratch. Uber-annoying, especially when I try to get few pages pre-loaded for later reading while in the Tube.
There is a bug floating around Android's bugtrack: http://code.google.com/p/android/issues/detail?id=2171 - however I was wondering whether other Magic users are experiencing same thing and if there's any workaround for this?
eva_d said:
Ever since I have my HTC Magic on Vodafone UK, I have that utterly annoying issue of Magic's internal browser reloading webpages that were previously loaded and switched into background. Simple example: I load a webpage, making sure it's fully loaded. Then I go back to home screen, play around with icons or other apps etc., or open new browser window and load another page. After short while, when I go back to that first loaded page (already fully loaded and sitting in the background) - I get blank browser window, and page gets reloaded from the scratch. Uber-annoying, especially when I try to get few pages pre-loaded for later reading while in the Tube.
There is a bug floating around Android's bugtrack: http://code.google.com/p/android/issues/detail?id=2171 - however I was wondering whether other Magic users are experiencing same thing and if there's any workaround for this?
Click to expand...
Click to collapse
Is it a bug or is it just that the web browser has been moved off RAM to make space for another application so that when its re-opened, it has to reload everything again.
If you load a website that is just text only without any graphics or javascript and then go to another application and come back, it will not be reloaded, because the footprint is small.
dwang said:
Is it a bug or is it just that the web browser has been moved off RAM to make space for another application so that when its re-opened, it has to reload everything again.
If you load a website that is just text only without any graphics or javascript and then go to another application and come back, it will not be reloaded, because the footprint is small.
Click to expand...
Click to collapse
Yes, I can understand this point of view, however I'd still regard this as a bug, or at least as a feature that massively undermines user experience as for internet-centric mobile device...
In fact, this is the very first device I've had in my hand that has such 'feature', in every other phone or internet tablet (like Nokia N810) that has multi-window browser, I am able to load many webpages simultaneously and keep them persistent in the background. The new and shiny, internet-centric HTC Magic suddenly offers that 'magic' feature of saving RAM at a cost of utterly horrendous user experience...
dwang said:
Is it a bug or is it just that the web browser has been moved off RAM to make space for another application so that when its re-opened, it has to reload everything again.
Click to expand...
Click to collapse
Anyway, content should then have been cached on sdcard (or internal memory).
have you tried swapper?
http://forum.xda-developers.com/showthread.php?t=483110
that extends the internal ram out to flash so maybe that will help.
Seems to work fairly well. I can have imeem streaming and other stuff and the browser pages still stay in "memory" and aren't reloaded.
dwang said:
have you tried swapper?
http://forum.xda-developers.com/showthread.php?t=483110
that extends the internal ram out to flash so maybe that will help.
Seems to work fairly well. I can have imeem streaming and other stuff and the browser pages still stay in "memory" and aren't reloaded.
Click to expand...
Click to collapse
Good idea, but I'd need to root my phone first, which is actually quite good excuse to do it.
Thanks for a tip!
eva_d said:
Good idea, but I'd need to root my phone first, which is actually quite good excuse to do it.
Thanks for a tip!
Click to expand...
Click to collapse
yeah, i've been using it for a few hours and once everything is loaded into memory and swap, and its not bad and I haven't encoutered a browser page reload yet.
Of course when a swap from flash to memory occurs, there's a pretty significant pause, but thats to be expected.
Just a quick update, I've finally managed to install swapper and set the swap space to 32MB. It helps to the issue, however when many other windows are opened, there is still that reloading issue...
I guess it's not a bug, but just a feature of Android and its 'clever' memory management. Fingers crossed that they would improve it in future versions...

Enable animated GIFs in stock browser

I notice that animated GIFs are still not enabled by default in the browser after the Froyo update. Does anyone know how to do this?
FMXP said:
I notice that animated GIFs are still not enabled by default in the browser after the Froyo update. Does anyone know how to do this?
Click to expand...
Click to collapse
I'm interested in this also
Sub'd for hopeful solution
my friends droid 1 has the froyo update and it has animated GIFs... this has been my biggest complaint about the OS. I go to spikedhumor.com and I enjoy my daily GIFs, but can only (semi) enjoy them because the wife is present
I hope this is in the final build of Froyo.
I have been posting on the google code site about this issue since early 2009.
one of the google reps on the page replied with a way to implement it, and I posted it on this site elsewhere a while back. I'll repost it here with a link to the source.
If you want to work around this with your own Android build, you'll need to modify C++ code, rebuild, and
reflash your phone. You'll need to make two fixes to the released sources.
1) edit the function should_use_animated_gif() in
external/webkit/WebCore/platform/graphics/android/ImageSourceAndroid.cpp (around line 217). Return true
to animate gifs.
2) Change setRGBA() in /WebCore/platform/image-decoders/ImageDecoder.h (around line 173) to call
*dest = SkPackARGB32(a, r, g, b);
instead of
*dest = (a << 24 | r << 16 | g << 8 | b);
With these changes, gifs will animated correctly on large memory devices like Droid and Nexus One.
There's no code path for animating gifs in arbitrary applications like Gallery, except by rewriting it to host a
WebView modded as described above.
Click to expand...
Click to collapse
http://code.google.com/p/android/issues/detail?id=3422#c134
FMXP said:
I notice that animated GIFs are still not enabled by default in the browser after the Froyo update. Does anyone know how to do this?
Click to expand...
Click to collapse
Have you tired it with the latest build of Adobe Flash Player? Found here > http://forum.xda-developers.com/showthread.php?t=763584
Animated GIFs have nothing to do with flash. Nothing whatsoever.
Animated GIFs are several images (GIFs) contained within the single shell GIF.
They typically trigger browsers to play it which makes it look animated.
This is similar to how the boot animations and some live backgrounds are done on Android devices. Except they do it with PNG files.
i havent gone to any .gif sites but the forums that i visit regularly that have .gif avatars play just fine since the update to 2.2
uptheforest said:
i havent gone to any .gif sites but the forums that i visit regularly that have .gif avatars play just fine since the update to 2.2
Click to expand...
Click to collapse
that is where i usually see gifs as well, but not working for me. just shows the one picture.
Running unrooted 2.2 on my dX gives me Animated gifs. Default settings in stock browser, not sure if anything else i did may have enabled them but basically they just work.
Feel free to point me to look at some settings for you guys if you want to try to make it work on your phones, im new to android (Smart phones in general actually) so ill need some points.

Android 4.0/ICS Ice Cream Sandwich question

Will all apps have to be updated to take advantage of GPU UI rendering, or will Android be able to render all apps via the GPU natively? I desperately hope every app won't require an update to stop using the CPU to render the app's UI with, but I'm afraid that is probably the case. Anyone know for sure?
Roland Deschain said:
Will all apps have to be updated to take advantage of GPU UI rendering, or will Android be able to render all apps via the GPU natively? I desperately hope every app won't require an update to stop using the CPU to render the app's UI with, but I'm afraid that is probably the case. Anyone know for sure?
Click to expand...
Click to collapse
If you look at honeycomb you have to enable hardware rendering in the manifest. But that was because some things don't work properly. Hopefully they've either fixed it so all hardware rendering works, or added a new manifest option to turn off hw instead of turning it on.
Ok; thanks.
HomerSp said:
If you look at honeycomb you have to enable hardware rendering in the manifest. But that was because some things don't work properly. Hopefully they've either fixed it so all hardware rendering works, or added a new manifest option to turn off hw instead of turning it on.
Click to expand...
Click to collapse
This is true, but just wanted to add a bit from what I understand the reason they put it so you had to manually enable it in your app was because HW acceleration caused slowdows on certain types of 2D drawing, especially lines. So this may not change for ICS. If the HW for 3D stuff is still designed around triangles, then the 2d stuff would still be slow.
Basically I think they wanted people to manually enable it to be aware of how and when to use it. If Android were to move to a 3D interface, then there would be more use for it on UI components.
Anyways this is basically what the Google engineers were telling me at the Developer Labs a couple weeks ago. (This is as far as I understood it, I'm no expert in this area, so I may be getting some bits wrong).
Basically this may not really be a "bug" that will ever get "fixed" so to speak. It may be intentional to not use 3d rending when lower-power, faster, 2d rendering would do.

[MOD] Ingress broot mod v1.26.1-broot-0.2.0 (2013.05.26) [CLOSED]

Unfortunately Niantic contacted me to abort this mod. More info: http://forum.xda-developers.com/showthread.php?p=42027875#post42027875
TL;DR version: I have created an Ingress app mod, it is awesome and will make you coffee. You can download it below.
OVERVIEW
Hi,
after more than a 2 years of inactivity in the modding field I'm back with a new mod. This time it's Ingress app. I think and hope it'll be much greater and more advanced than Google Maps mod. There are a lot of things to improve and I think some of them won't be ever added by Niantic, so it's a good idea to mod this app.
First I want to clarify I will never add any kind of cheating to this mod. My goal is to make Ingress game more enjoyable, not less. Questions about location faking, items cloning, etc. are not welcome here. I'm serious. Still if you think this mod is a bad thing and/or if you're from Niantic then please read a section about my motivations below and feel free to ask, suggest or criticize. I make it for Ingress players and I'm very interested in their opinions.
DOWNLOAD
First: you do this at your own risk! I'm sure it won't brick your phone, but remember you may be banned by Niantic. My mod doesn't do any kind of cheating behavior, it doesn't do anything that original app doesn't do, but there is always the risk.
Also if you downloaded apk from different site then check sha1 of this file to make sure it's ok. Unfortunately such mods create good opportunity to inject some malware, because users search for an application in the internet and anyone can redistribute it. I sign this app with my own keys, so if you have installed my mod earlier, now you have downloaded newer version from the internet and Android says it has different certificates then don't install it!
"Mute" variant has all sounds removed, so apk is ~2.5 times smaller and most likely it uses less memory.
ingress-1.26.1-broot-0.2.0-mute.apk
SHA1: 976342081c963998f8a6e56b735fe97581ab335f
ingress-1.26.1-broot-0.2.0.apk
SHA1: dce5399802c8f11287a7cf399c1bb5265f8251e2
Older versions:
ingress-1.26.0-broot-0.1.0.apk
SHA1: ea95d8e36324c6c4a175e0cf254cd65a4797049f
If you have original Ingress app installed then you have to uninstall it first. Same if you want to install original app over a modded one.
FEATURES / TODO LIST
I know simplifying and automation of too many things may be considered cheating, so I have divided all features into several categories: from the most "innocent" ones to some smart assistants. As I stated above, if you think some of them are just too much then feel free to write about it. For me features up to 3. category are ok. Category 4. may be controversial and I'm not sure if I want to implement it. I'm glad for your opinions. Some features (e.g. 2.11., 3.7.) aren't actually related to category descriptions, but I "feel" them as category 2., 3., etc.
I don't want to force people to use every modification, I'll try to make them all opt-in, so modded app will work exactly as the original one until you change this in the mod menu. If you see e.g. "Fullscreen" feature below then read it as "An option to enable fullscreen mode".
Below is just a list of features to make it clear. Descriptions, notes, statuses, implementation proposals, etc. are here.
Legend:
green - completed
orange - not sure about it
red - rejected
black - waiting / todo
1. Changes strictly technical and/or 4fun - they don't affect gameplay at all:
UI for small screens, but this is never ending task
Disable some graphics effects to make it less GPU consuming:
portal particles
xm particles
Fullscreen.
Remove globe intro.
Change colors of factions.
Exit confirmation dialog - it's good for low memory devices.
Keep sceen on.
Disable vibrator.
2. UI changes: new screens, shortcuts, etc. - it makes things easier, but it won't do anything for you:
New screen with mod settings, credits, etc.
New inventory screen with items presented as a clear table.
Number of all items in the inventory - it's very important because of items limit.
New portal keys screen.
Remove original items screen.
Shortcuts to various actions from the main screen.
Modify chat to make it easier to read and harder to accidentally send private message to public channel.
Link to portals from system messages in the chat.
Real-time distance to portal on details and upgrade screen - its necessity is obvious to anyone who played Ingress
Additional info about the portals directly on the map screen.
Logging and statistics.
Circles around the player similar to one at 40m - just for better feeling of the distance.
Number of keys on portal info, upgrade and linking screens.
Config: update interval.
Config: maximum scanner zoom out.
Deploy button uses highest available resonator, not lowest.
3. Automation of some more complicated or repetitive tasks - it delegates multi-clicking to the squad of highly trained monkeys, but it won't think for you:
Dropping/recycling multiple items of the same type at once.
Firing multiple XMP
Picking up all items in the range - with above it's very easy to give items to other agents.
Hacking all portals in range - not very useful because of timers
Auto deploy resonators using a template.
Templates specific to a portal.
Other agents presence detector.
4. Smart assistants:
Hacking timers for each portal: both 5m and 4h ones.
Auto hacking portals in range while moving (using timers).
Smart auto-deploy.
XMP damage assistant.
Linking assistant for optimum CFs in a specific area.
Continuous linking assistant.
Bugs:
The maps are gray when submitting new portals or reporting bad ones.
NEWS
v1.26.1-broot-0.2.0 has been released!
2013.05.26
Updated Ingress to 1.26.1.
Added layouts for small screens: Eugene's 1.26.0.20130526
Added mute version - for smaller size and likely smaller memory usage.
Added fullscreen mode.
Added option to disable portal particles and xm particles.
Added restart button - it's useful for reloading UI changes (fullscreen mode, layouts, etc.).
Fixed gray maps problem.
v1.26.0-broot-0.1.0 has been released!
2013.05.22
Initial version.
New screen with mod settings, credits, etc.
New inventory screen with items presented as a clear table.
Number of all items in the inventory.
CREDITS
Eugene Kartashov - layouts for small screens.
Of course Niantic Project for this awesome game!
Thanks!
FEATURES DESCRIPTION AND NOTES
1.5. Change colors of factions.
I did this before and it's kind of cool: https://plus.google.com/u/0/106080343103638200670/posts/a9krpWApjz5
2.4. New portal keys screen.
I have some ideas, e.g.:
keys grouping/tagging
group/tag keys manually or automatically by their location, name, etc.
filters and sorting by: name, distance, level, owner, etc.
, but I think Niantic want to improve keys management, so I wait for their move.
2.5. Remove original items screen.
For now even if you prefer new items screen the original one is still needed to access portal keys. We can wait for 2.4. or at least add an option to limit original items screen to portal keys and rename it accordingly.
2.6. Shortcuts to various actions from the main screen.
I think it's one of the most important additions, so it has to be well designed. I see it as a HUD-like buttons similar to "FIRE XMP" when you long-press on a map, but much smaller, probably square with icons. Things to consider:
toolbar at the top or the bottom of the screen - I think it's better than left/right
fixed with 5-6 icons (4" screen) or scrolling horizontally
fixed icons or customize them and their positions
an option to open a full semi-transparent menu with all available actions
Actions could be:
fire last XMP
fire highest/lowest XMP
fire XMP of specific level
same for power cubes
hack portal - click button then click portal. This way you don't have to enter portal details screen which is faster and you don't lose the map.
link portal - same as above
set target? It's in a long-press menu already, but we can add it here for consistency and maybe to remove long-press menu.
actions from other mod additions
2.7. Modify chat to make it easier to read and harder to accidentally send private message to the public channel.
Current problems are:
is there anyone who has never sent a private message to the public channel? Is there anyone who did this only once or twice?
it's hard to read conversations between agents, especially public ones, because they're mixed up with system messages
I was considering adding some kind of filters to select which types of messages you want to see, but it doesn't fix first problem. Now I think of something else - 4 tabs/channels:
faction - as normal
public - public conversation only, so system messages won't disturb you and you don't accidentally respond [secure] messages
system - you can't send a message here
all - all above, so it's similar to current "All", but you can't send a message here - you have to choose proper channel intentionally. It can have additional filters to select messages to show.
This feature may be hard to do or even impossible, because most probably Ingress server doesn't have API to filter messages as above. Of course I can read "All" channel and filter it on the app side, but it may not be that good.
Also I won't be surprised if Niantic itself will redesign chat in the near future, because it's definitely wrong.
2.10. Additional info about the portals directly on the map screen.
E.g.: level, if you have a key (how many?), etc. It could be customizable and there could be a shortcut to toggle showing this info.
2.11. Logging and statistics.
I love this one I can log all kind of actions like: hacking, attacking, dropping and picking up items and XM, deploying resonators and portal mods, adding custom "snapshot points" to organize above, etc. and then create a lot of various statistics:
how many hacks did you do (faction, enemy, neutral) today, in last week or month?
how many items did you get from these hacks?
what were the levels of hacked portals and items?
how many XM did you get?
how did you spend this XM?
how many resonators did you deploy and what were their levels?
how many resonators did you destroy, how many portals did you capture?
how many links and CFs did you create/destroy, what were their MU values?
which portals do you hack/attack/build most often?
how much time you was playing?
what items did you spend to build up a farm and what items did you get from it?
Statistics could be tabular, graph, pie and very flexible. I'm also considering two things:
sending some of above statistics to my server to create global statistics for all users. It would let us do some research, e.g.: what is the probability to get L7 item from L6 portal, etc. Of course sending these statistics would be fully optional, you would have to enable it by yourself.
optional paid application to read these statistics - in addition to the free one. It could let you remove ads or just say "thank you" (i.e. it would be the same as free one), but I don't want to piss off someone in Niantic. I think it would be fair, because statistics app would be quite complicated and time consuming and there will be free version, but you never know what's the opinion of other people.
What do you guys think about above two things?
3.5. Auto deploy resonators using a template.
Agent can configure multiple templates and choose one of them when doing an auto-deploy. Template could be defined by:
its name
minimum and maximum level for each resonator
prefer lower/higher level for each resonator
Examples:
"Lowest portal" - each resonator set to L1-L8 and prefer lower for all - it's the same as clicking "deploy" 8 times.
"Highest portal" - L1-L8 and prefer higher for all
"Highest <L7" - L1-L6, prefer higher for all
"Standard L4" - L1-L6, L1-L4, L1-L5, L1-L4, L1-L6, L1-L4, L1-L5, L1-L4, prefer higher for all - it's standard 4xL4 2xL5 2xL6 and it'll use lower resonators if you don't have all of them
another "Standard L4" - same as above, but L6-L6, L5-L5 and L4-L4 - it won't automatically downgrade resonators, but warn you about the lack of resonators
Also some templates could be predefined by default.
It won't work well with existing resonators, it won't choose optimal way to upgrade them, but this is how it should be - it's just: "do it using a template", not: "Calculate optimal situation".
3.6. Templates specific to a portal.
Extension to above: sometimes you know that e.g. NE resonator of some portal is harder to destroy, so you want to place highest resonator there. You can create a template specific to a portal, so it won't mess up main list of templates and it will be auto selected when doing auto deploy for this portal.
3.7. Other agents presence detector.
It read system messages log to find the last actions and positions of other agents (actually positions of portals they've built/attacked). This information could be used to e.g.:
show last position and action of specific agent
show a list of nearby agents: allied or enemy
alert if some other agent will show up below specific distance from you
4.3. Smart auto-deploy.
E.g.:
calculate max level of a portal that you can build alone - depending on your inventory and already deployed resonators
deploy minimum number and optimum resonators to get to specific portal level
prioritize excess resonators and save scarce ones
deploy high and low resonators evenly to make attacking a little harder
if upgrading existent resonators, prefer to upgrade ones with low XM
4.4. XMP damage assistant.
E.g.:
approximate damage dealt using specific XMP in current position
calculate the best spot to fire XMP of some level
4.5. Linking assistant for optimum CFs in a specific area.
You select a group of nearby portals, assistant build links and guide you through place to get as many CFs and AP as possible.
4.6. Continuous linking assistant.
You see an icon near the portal if it's possible to create a link(s) from it to create a CF. It let you create this CF with few clicks.
It may be not possible to do, because it would have to scan big area to know if there are a link between remote portals.
MOTIVATIONS AND FEW WORDS TO NIANTIC
As I stated above my goal is to make Ingress game better and more enjoyable for people. If you think it's evil then please read my motivations and explanation below:
There aren't and never will be features for cheating: location faking, sending same action several times, automatic passcode submitter, etc.
As I said above I have divided mod features into categories of different "dirtness level". I focus on "clean" features and I'm open to suggestions or criticism from players or even from Niantic itself.
I don't share my code and I obfuscate it to not make Ingress easier to hack by other people.
A whole game and world of Ingress is about hacking and reading between lines. I think my mod fits this world perfectly. There are some people who leak Ingress app from NIA and there is some guy somewhere in the internet who tries to get even more from it. It makes perfect sense
I think there are many good features that will be never added by Niantic. I see several reasons: statistics won't be added because it doesn't make much sense for storyline. Why NIA would add such feature? Intro skipping or new items screen won't be added because these features prioritize quick access over a nice look. Niantic can't do the same because Ingress would look like a game for nerds. But there are many people who don't care about the look because... they're nerds ;-P
And finally: I won't fight Niantic, so if they don't like my mod and decide to react then there will be no mod anymore.
If you're from Niantic then please think what is the best for Ingress users. If you don't like one or two of my features then I'll remove them and keep the valuable ones. If you still think this mod isn't good and it's a matter of time before you react then please do it sooner, not later. Mod won't be very popular yet, Ingress players won't be disappointed so much and I won't lose a lot of my time
FINAL NOTES FOR USERS
Once more: feel free to suggest new features or changes to existent ones. You can also criticize a whole mod idea. I want to know what do you guys think about it.
If you get a force close then post a logcat and mod version here.
If something doesn't look ok then post a screenshot. I have a 320x480 and 480x800 devices, but I can't test it on 240x320 and >480x800 resolutions.
You can also report language faults in the app or even here. English isn't my native and I often write something that doesn't seem natural even to me. I would be happy if someone would suggest better names or descriptions for configuration options, etc.
Of course you can redistribute this mod, but please don't do that if you don't have a good reason. I just want to know how popular it is. Also if you redistribute it then please add a link to this thread to give users a full context.
If you want to make a donation then link is in my signature, but remember that this mod may be killed by Niantic at any time.
[RESERVED]
[RESERVED2]
Very amazing
I'm gonna try it out on a new account just to be safe, but I love the work and holy cow you did a lot and I can't believe it.
Niantic better sit down and learn some must needed features and options. The globe one for sure
Sent from my MI 2 using Tapatalk 2
Keep up outstanding work. I just installed this mod and I confirm that it works flawless.
I'm looking forward to future updates.
iBotPeaches: I did a lot? But you have noticed that above features list is mostly a TODO and for now there are just new items screen and intro skipping? I'm not sure if this is clear from above posts.
I wanted to release it early to get some ideas from people.... or be banned
What about a nosound version? It reduces the app size and removes the annoying sounds for people that are tired of hearing those squeaks
Please find attached a nosound version prototype.
it will be possible to have screen: "exit. are you sure?" when accidentally using back button?
Brut.all said:
iBotPeaches: I did a lot? But you have noticed that above features list is mostly a TODO and for now there are just new items screen and intro skipping? I'm not sure if this is clear from above posts.
I wanted to release it early to get some ideas from people.... or be banned
Click to expand...
Click to collapse
Ahh, I thought you did all that stuff that was bolded in the features list Guess I didn't read it well enough.
Hi, on mine HTC Desire it crash suddnly..
EDIT: Reinstalled, work like a charm..
One thing possibly worth pointing out: I think this version will not handle the new push messages, as I believe those are restricted by the certificate used to sign the app. Are you able to confirm this?
Otherwise, very cool work
phyreskull said:
One thing possibly worth pointing out: I think this version will not handle the new push messages, as I believe those are restricted by the certificate used to sign the app. Are you able to confirm this?
Otherwise, very cool work
Click to expand...
Click to collapse
They do work for me, at least the "@" notifications
Needs further testing.
Jackos said:
What about a nosound version? It reduces the app size and removes the annoying sounds for people that are tired of hearing those squeaks
Click to expand...
Click to collapse
Usually more variants = more problems, but I think mute version may be worth it. It's almost 3 times smaller and space is crucial on many devices. It might also use less RAM and start up faster, because sfx are usually preloaded into memory. I'll do some benchmarks.
ataru said:
it will be possible to have screen: "exit. are you sure?" when accidentally using back button?
Click to expand...
Click to collapse
Sure, but what for? If you accidentally exit application, you can return to it in no time.
phyreskull said:
One thing possibly worth pointing out: I think this version will not handle the new push messages, as I believe those are restricted by the certificate used to sign the app. Are you able to confirm this?
Click to expand...
Click to collapse
I'm not sure about it. I got comm notification today, but I was using Ingress just moments earlier, so it might be background service, not push. We'll see.
Brut.all said:
Usually more variants = more problems, but I think mute version may be worth it. It's almost 3 times smaller and space is crucial on many devices. It might also use less RAM and start up faster, because sfx are usually preloaded into memory. I'll do some benchmarks.
Click to expand...
Click to collapse
Exactly my point of view
However it's a pity that the app uses this same amount of RAM. It might get better if you remove corresponding baksmali lines, I just removed the sound files.
Brut.all said:
Sure, but what for? If you accidentally exit application, you can return to it in no time.
Click to expand...
Click to collapse
I guess it's because on low ram devices the app gets closed instantly. So a back fail-safe button would save him the app loading time.
Impressions and suggestions
Nice mod!
I am an addicted Ingress player and I really appreciate your work!
The new item tab is awesome!!
I only want you to know that there is a G+ user that is modding Ingress too:
Have a look here.
He did a version even for 240x320 screen.
Maybe you can have a look at his work
I hope you can keep this up to date
Works perfectly!
I'll keep an eye on that, your features list sounds extremely promising!
ingress-1.26.1-broot-dev1.apk
It's muted and should work on all screen sizes. Layouts for 240x320 and 320x480 were created by Eugene Kartashov (thanks!), but I have integrated them into single universal apk. It's just ~0.5MB larger than Eugene's separate apks. I can't test it on 240x320 because I don't have such device. Please confirm if it's ok or not. I'll add fullscreen feature before 0.2.0 release, so upgrade button won't overflow on some devices.
Also I can confirm sounds are loaded on demand, they aren't preloaded, so muted version shouldn't boot up faster. It should take less memory though.
Is there anyone who miss these sounds? As I said I would like to avoid fragmentation and I think muted version is just better.
And if you have 240x320 device then please tell me if new items screen looks ok, especially if you have 100+ items of one type. 320x480 seems to be ok.

[Q] Device Fragmentation - How do you solve it?

I've got a question for all you mobile developers. There are so many different mobile devices out there. What solutions, techniques or processes are you following or doing to make sure you have a high confidence that your app works on these different devices?
When building your apk , you check the versions you want to support, but there is always some limit, memory, screen size, etc.
http://developer.android.com/training/basics/supporting-devices/index.html
Thank for the link. I was wondering from an experience perspective, what elements are to look out for when testing from device to device (e.g. screen size, resolution, layout etc.)
jralabs said:
Thank for the link. I was wondering from an experience perspective, what elements are to look out for when testing from device to device (e.g. screen size, resolution, layout etc.)
Click to expand...
Click to collapse
The main issues I've seen caused by fragmentation are (in no particular order): the assumption of a portrait screen orientation (i.e. that you won't wind up with apps running in/on devices with square or landscape default orientations), assumption of a certain phone speed/heap size (pretty obvious when lots of image/drawable processing is involved and an app runs badly on an early device), assumption of at least a certain number of dps from width/height (some layouts might have overlapping elements/hidden elements on phones that have a small physical area), using the "device default" themes (some manufacturers -- wrongfully -- change these themes to make OEM apps work better, but then mess up other apps that rely on these), and (this deserves its own special spot) Samsung compatibility quirks. At least in my experience, Samsung devices tend to way more issues with fragmentation as Samsung themes/tweaks Android so heavily it occasionally breaks expected Android behavior.

Categories

Resources