[development]-kernel 3.4-freexperia - Sony Ericsson Xperia Neo, Pro

this is where all action is taking place
http://forum.xda-developers.com/showthread.php?t=2044262

Related

[Q] Basic Gallery questions

basic Gallery questions....
I moved nearly 400 pictures from my PC to an SD card and uploaded them the Picture folder on the Prime. I then used Gallery to browse them - pretty nice but.
- the order that Gallery browses in from newest to oldest - I want to browse from oldest to newest. The picture properties were preserved. The file names from the camera is still preserved. How can I sort by date taken or filename? It is not obvious to me.
- some of the pictures required some editing. I lightened some up and hit "save" - popup said it was "saved to edited album". I then hit back (lower left back - not edit back) to return to the browse mode and the picture appeared as if it were not edited. Where does Gallery save the new picture? I would have thought it would have saved it in the album hat is being browsed.
I know these are basic questions - but it is the easy stuff not being obvious that is most annoying. Thank for any pointers or links to Gallery how-tos

[Q]Take photo without opening camera app?

We all had these moments when we just had the opportunity to take the perfect picture, but the camera app slowed us down and we missed it.
Thats why i came up with an idea which will allow you to take photos from your homescreen / anywhere with help of one of the hardware buttons without opening the camera app first.
This is where you guys come in. How do i go on from here and is this something you can achieve with the app tasker?
Would appreciate if you could give your thoughts or put me in the right direction if anything like this already exist!
Im using the galaxy s2 if that would make any difference
Managed to do something almost as good as i want it, its a tasker widget which open the camera and takes a picture.
Its a bit glitchy since it wont take a pic 2 of 5 times and it back out to fast if i add an option to either go home or kill the camera app.
I can post the tasker profile if anyone would like to take a look at it and help me out.
Take pics without opening the camera with tasker + instant upload & auto delete pics
I know this threads pretty old but it doesnt seem to have been fully answered and i wanted this function so... After lookin around i found this post but it didnt do what i wanted, tasker has been updated a lot since this was originally posted so...
A little more googling was done and a while later i came across a way of taking photos without waiting for the camera app to load up...
Create a widget to take a photo instantly without opening the camera by long pressing your home screen for the add dialog, selecting widgets and add a tasker, task widget.
Create a new task and name it
Add a new action - media, take photo
Set parameters - choose camera to use, specify filename, set naming sequence to series/chronological, check discreet for no sounds
*(uncheck 'show in gallery' if using the method described lower down to upload and delete photos with dropsync)
OK this and choose an icon. Then add the widget.
Click widget to take a photo.
A folder named tasker will have been created in /DCIM with the photo in.
I added this as well to save me from filling my phone with photos.
I'm assuming that you have Dropbox already for this...
Download and install DROPSYNC from the play store.
During the setup you will be prompted to link folders -
Link your /DCIM/CAMERA folder on the phone to the Camera Uploads folder of Dropbox
You will be asked what kind of sync you want - set this to upload and delete.
Turn on instant upload and set parameters as desired. 
Now your phone will auto upload your camera's pictures straight to Dropbox and then delete the original on the device immediately. Make sure dropsync is not checked in any task killer you have as instant upload may not work.
You can change the dropsync linked folder (or add another if you have pro) to /DCIM/tasker to have your instant snaps instantly uploaded and deleted from handset.
NOTE:
I dont think this requires root access

[TUTORIAL+KIT] DO-IT-YOURSELF Battery Icon

Download the attachments below.
I attached my own Penguin battery icon that I made, but it looks too small when used. So you should try to use as much of the image canvas size as possible.
START
Open the battery blueprint PSD image file with Photoshop. There are 10 layer sets, each with 10 layers inside.
GET THE BATTERY TUBE IMAGE
Open the image you want to use as the battery, select the part of the image you want using marquee tool, magic wand, etc.
(the image better be of size smaller than 150x150). CTRL+C to copy the selected part of the image. close this image window (not the whole photoshop application).
PLACE THE BATTERY TUBE IMAGE
In the BATTERY image, switch to the 'BATTERY TUBE' layer (used as the topmost layer) and the press CTRL+V to paste
the previously selected image in that layer. The image will appear. Press CTRL+T and resize the image so that it
fits inside the canvas by dragging the corners of the selection (or you can move by dragging the image from inside
it)
EMPTY THE TUBE
While in BATTERY TUBE layer, select the part of the image where the battery juice should be contained/displayed
and press delete to make a hole in the layer.
PUT THE JUICE INSIDE THE TUBE
You need to resize the image so that the hole will cover all (and exactly) the battery bars. Using the rectangular
marquee tool, select an area that covers the entire battery tube image (THE WHOLE IMAGE NOT ONLY THE JUICE HOLE) .
Transform the image by pressing CTRL+T and drag or move such that the juice hole covers exactly the 1% bar from
the bottom and 100% bar from the top, that is, cover the battery juice (not necessarily exact if its too much of a
trouble). Make sure to center the image on the canvas size too. Move with arrow keys for more precision.
REMOVE ANY JUICE OUTSIDE THE TUBE
While still in the BATTERY TUBE layer. select the juice hole with magic wand, then press SHIFT+CTRL+I to invert
the selection. Now, without discarding the selection,
Switch to the 'Layer 1' and press delete.
Switch to the 'Layer 2' and press delete....
Continue doing this for all layers - Layer 3 upto Layer 100
(i.e., switch to each and every layer and press delete)
CHECK CURRENT STATUS
Congrats! Your battery icon is now complete!!!
If you get something that looks like an elephant, then you probably skipped reading some lines.
If you get something that looks exactly like what you started with, go and play hide and seek with your neighbour kids and come back five years later!!!
Otherwise, follow...
GET THE NAMES AND DIMENSIONS OF THE ORIGINAL BATTERY IMAGES
Minimise Photoshop.
Open your SystemUI.apk with WINRAR. Open the 'res' folder and extract the 'drawable-mdpi' or any folder containing
the battery icons (depends on your ROM) anywhere on your computer.
Close winrar. Open the extracted drawable-mdpi folder. Delete all other images except the ones used for the status bar battery.
These battery images are named as stat_sys_battery_<battery level>.png and stat_sys_battery_charge_anim<0 to
5>.png but they might differ depending on your ROM. Note the dimensions of a battery by placing your mouse
over an image or right click\properties\details.
For the sake of this tutorial, I take it that the battery icons are in res/drawable-mdpi folder
RESIZE YOUR IMAGE TO STANDARD SIZE
Restore Photoshop again. Resize the image (menu bar\Image\Image size...) and enter the dimensions you noted earlier.
SAVE THE BATTERY LEVEL IMAGES
In the layers window, hide all battery level layers and 'SAVE AS' (press CTRL+SHIFT+S) the image. Select the
format as 'PNG' and browse to the folder 'drawable-mdpi' (used earlier) containing the battery images. Click on
the stat_sys_battery_0.png and save, allowing the prompt to replace the existing image.
Then make the Layer 1 visible and 'SAVE AS' it in PNG format and click on the stat_sys_battery_1.png, replacing
the existing image. Next, make Layer 1 and Layer 2 visible and do the same, but replacing the
stat_sys_battery_2.png. Continue making the next higher layer (indicating the battery percentage) visible and
'SAVE AS' it as the stat_sys_battery_<battery level>.png where <battery level> is the highest visible layer.
Continue to 100%
Renaming the battery level images depends on your ROM. So match the names to the names of the images of your ROM.
SAVE THE CHARGING ANIMATIONS IMAGES
For the five charging animations images, Create another layer(topmost) and draw a charging indicator (like a
bolt). Center it.
Then make ONLY the Layer sets 1-10 and 11-20 visible and save as stat_sys_battery_charge_anim0.png
Next make the layer sets 21-30 and 31-40 also visible and save as stat_sys_battery_charge_anim1.png.
Continue like this till 100% by incrementing by 20% (or equivalently 2 layer sets) till you get
stat_sys_battery_charge_anim5.png.
Charging animation names also depend on your ROM.
EQUIP SYSTEMUI.APK
Now you have everything ready. Open your SystemUI.apk again with WINRAR. open the res\drawable-mdpi folder within
winrar. Switch to the window containing your newly made battery icons. CTRL+A to select all the images and then
drag them to the 'drawable-mdpi' folder of the WINRAR window, selecting OK for the prompt.
CLOSING
CLOSE EVERYTHING!!! Save your Battery image in Photoshop for future use.
BUILDING FLASH ZIP
Open the update.zip attachment with WinRAR. Open system folder then app folder (within the zip). Drag your edited SystemUI.apk to this app folder.
Close the WinRAR window.
TRANSFERRING
Place the update.zip in /sdcard of your phone
FLASHING
Reboot.into recovery. In recovery, choose apply update from sdcard (or manually install update.zip).
Reboot when done.
THINKING
?????
LOOKING
Be proud to see your own battery icon!!!
By default I've set the level colours as
RED - 0-14%
ORANGE - 15-29%
YELLOW - 30-39%
GREEN - 40-100%
Feel free to change the level colours or apply any styles to not make it look cartoonish
All the best.
great job, very well explained :highfive:
jose385 said:
great job, very well explained :highfive:
Click to expand...
Click to collapse
Thanks bro...
:good: :good: very :good: keep it up
Great works!!
next time i'll use it. Thanks man.
Keep great work
Defhawk said:
Great works!!
next time i'll use it. Thanks man.
Keep great work
Click to expand...
Click to collapse
Thanks man. Glad to help.

[ help needed in developing an app ]

Hello everyone. I have started to learn making android apps. I have just played wid buttons textviews editTexts layouts.
So now I have planned to make something usefull which can be used by other. I have think of to make app which can take attendance directly in our phone.
For that I need a 1st page just to display the welcome screen and author name etc. then I need a second page in which the actual content will be there I.e my attendance stuff with button etc.
So I have created a splash. xml in which there a custom background which I made in PS , a analog clock in middle of layout and a textView.
the text of textView is "press to continue" and I have set the property clickable to true so that if I press on that textView I want to transfer my control from splash.xml to main_activity.xml.
So my questions is
1. how to transfer control from one .xml to another .xml
2. how to add a list in layout which is scrollable
3. how to store abset and present list separately in sdcard and each time the user save the result it should keep all the record and should not erase the previously saved records

Long Screenshot

What do the makers meant by long screenshot when the image rendered by a long screenshot is not readable at all?

Categories

Resources