how to open network data usage by code - Java for Android App Development

hi
how to open network data usage by code ? (for android)
i need to open this screen:
{
"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"
}
thanks in advance

No one knows ?

u could try to launch the acticity
of settings by adding a code that loads
com.android.settings
and as activity
com.android.settings$DataUsage
or how the msthod is called that is being launcher for thr data usage method
Sent from my S500 using xda app-developers app

thanks for the help
i try this:
Intent i2 = new Intent();
PackageManager manager = getPackageManager();
i2 = manager.getLaunchIntentForPackage("com.android.settings$DataUsage");
i2.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(i2);
but it dont work ):

GoldSoft said:
thanks for the help
i try this:
Intent i2 = new Intent();
PackageManager manager = getPackageManager();
i2 = manager.getLaunchIntentForPackage("com.android.settings$DataUsage");
i2.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(i2);
but it dont work ):
Click to expand...
Click to collapse
that can be because DataUsage might not be correct file to load from the smali of settings
Sent from my S500 using xda app-developers app

So, how it is possible to solve this ?

GoldSoft said:
So, how it is possible to solve this ?
Click to expand...
Click to collapse
decompile settings.apk
and check what it loads from
xml/settingsheaders.xml
Sent from my S500 using xda app-developers app

GoldSoft said:
So, how it is possible to solve this ?
Click to expand...
Click to collapse
You can start the following with the intent:
Code:
com android.Settings$DataUsageSummaryActivity
Found this using nova-> addtohome->shortcuts - >activities - >settings

Related

(REQ) JB satus bar for cm7

someone can do this http://forum.xda-developers.com/showthread.php?t=1953934
??'
PLEASE
or an flshaeable zip?
I will do tomorrow if I have some free time
Sent from my LG-P500 using xda premium
http://forum.xda-developers.com/showthread.php?t=1953934&highlight=cm7
It seens that guide was messed up and I failed , will try again with the new guide
Sent from my LG-P500 using xda premium
Hi, after trying and trying I finally gave up on this... if I ever get it working I'll post it here
didnot able to add setting shortcut.
{
"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"
}
test here
https://www.box.com/s/p8ktkkz3uaajj50vwggp
bug: black text
x-dira said:
test here
https://www.box.com/s/p8ktkkz3uaajj50vwggp
bug: black text
Click to expand...
Click to collapse
Can you tell how do you manage to add setting shortcut in statusbar.
setting button is added.
x-dira said:
test here
https://www.box.com/s/p8ktkkz3uaajj50vwggp
bug: black text
Click to expand...
Click to collapse
i guess the black bug is theme related...
install gingerdx v29.... it already have jelly bean status bar..
vikasb32 said:
setting button is added.
Click to expand...
Click to collapse
nice.......can u share
Techgod said:
i guess the black bug is theme related...
Click to expand...
Click to collapse
bug is transparent dateview
x-dira said:
nice.......can u share
Click to expand...
Click to collapse
Yes, please share with us

[MOD-CM10.1] Lockscreen PinCode Bug Remover

Hi all, all users find the bug in CM10.1 in the loockscreen with pin code annoying.
I have created patch for the CM10.1 20130412 by Mardon
____________________________________________________________________________________
How to install it:
1. Download the file attached in this post.​2. Copy it into the sdcard.​3. Go in recovery mode and flash it.​Note: The first boot can take a while.
____________________________________________________________________________________
Flash at your own risk. I'm not responsible for any damage or brick.
When I see that there is new release I add new patch.
Screenshots:
{
"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"
}
can you consider to tell us what you modded so it can be implemented in framework in source?
Sent from my GT-S5660 using xda app-developers app
OldDroid said:
can you consider to tell us what you modded so it can be implemented in framework in source?
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
layout and probaply also png
.but mostly layout
Sent from my S500 using xda app-developers app
SpaceCaker said:
layout and probaply also png
.but mostly layout
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
You are right. I have changed the numbers size in the layout.
Has anyone tried this with other builds from OldDroid, Erickas, and Biel? And does this affect other lockscreen security elements like the pattern lock?

Apktool error

Okay guys,so am on vacation for a few weeks and i installed apktool on my laptop but i seem to get an error everytime i try compiling somethings..and i really need to finish some mods..
Using:
APKTOOL 1.5.2
Intalled JDK Latest version (Checked environment paths and if its working correctly.it is)
Install latest Framework-res,twFramework-res and Systemui all successfully..
Tried a few different apks from a few different firmwares..like MEA.MF4,MF8...I can decompile its compiling which is an issue.. i think it has something to do with aapt.exe but i am not sure..
-Actually SEARCHED XDA and didnt find a solution...
heres a screenshot
{
"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"
}
Thanks Guys
Anyone..?
Sent from my GT-N7100 using xda app-developers app
What edits did you do?
Sent from my Nexus 4 using Tapatalk 4 Beta
Does the secsettings\res directory actually exist with those files in it?
No edits where made.just decompiled and then compiled again..
Sent from my GT-N7100 using xda app-developers app
Yes they do exist I checked
Sent from my GT-N7100 using xda app-developers app
Stavr0s91i said:
Yes they do exist I checked
Sent from my GT-N7100 using xda app-developers app
Click to expand...
Click to collapse
read in forum fix error
jo1r said:
read in forum fix error
Click to expand...
Click to collapse
That kind of help will keep you at 0 thanks

Help plz

I have an android app.I have a preference in my app which allows a user to enter his desired storage location for video recording it can be internal or external now the question is how can i determine if the user has entered the correct storage location path if he didnt enter the right path then how to show a toast and reset the path.
This is the preference
{
"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"
}
This is the editext
Now if the user enters wrong path for example there are spaces in the path or the path is incorrect for video recording how can i check that
Without seeing some code it would be difficult to show you a way that would be easily integrated in to your app.
zalez said:
Without seeing some code it would be difficult to show you a way that would be easily integrated in to your app.
Click to expand...
Click to collapse
Yep, and when is it the "right" path?
The right oath is where a video recording file can be created it can be internal or external
If you've got a file object, you could check these:
Code:
boolean isFile = myFile.isFile();
boolean isDirectory = myFile.isDirectory();
I would implement a chooser instead of relying on your end user to type the correct path.
Take a look at this:
http://www.codeproject.com/Articles/547636/Android-Ready-to-use-simple-directory-chooser-dial
zalez said:
I would implement a chooser instead of relying on your end user to type the correct path.
Take a look at this:
http://www.codeproject.com/Articles/547636/Android-Ready-to-use-simple-directory-chooser-dial
Click to expand...
Click to collapse
Oh, you're right. Much more fool proof. :good:

[GUIDE] Enable navbar on S3 mini (should work on all ROMS)

So in order for this to work your phone needs to be rooted
Then simply open build.prop and at the end add following line:
qemu.hw.mainkeys
I am not sure but I think you will need to do this each time you install / update ROM
{
"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"
}
Yeah! That's an old trick (for CM roms, at least):laugh: I already include it a long time ago in my faq too. Yes, you need to edit the b.prop everytime you update the rom.
How to mod/theme stock rom nav bar???
send for I8190N R-Mod v3 using XDA Premium 4 mobile app
pang34 said:
How to mod/theme stock rom nav bar???
send for I8190N R-Mod v3 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Try this app
Does it's work for stock rom 4.1.2 ?
I have always wondered why Samsung relies on using hardware buttons instead of using the Google navbar.
Thanks OP, will use this if my buttons act up.
I did the exact process, but nothing seems so be showing up. I'm on CM11
@-SyncSoft-
The OP miss the "=0" at the end. Read my FAQ instead. You need to reboot after add the line.

Categories

Resources