Hi, im not really great at android development/ development in general, so this is a newbie question sorry...
My idea is to make a widget that displays my current prepaid money balance by sending the appropriate USSD code to my carrier and then ripping the money part out of the response. My widget is now working and finished, and i only need to implement this USSD part. After some research i found out that there isnt any official method for this, but a hidden interface called IExtendedNetworkService inside the telephony package and that there someone has implemented it: https://github.com/alaasalman/ussdinterceptor
So far so good. I downloaded the source code for that but i dont find out how to get the response string out of that service! I looked at the code and googled for it but i still have no idea :/ so i thought if maybe here at xda there is anybody that can help me and could explain it to me as easy as possible...
Thanks very very much in advance, i hope someone helps me
Edit:: I just found the blog post on that explains the service. Now so far i hav understood that i just have to activate the listener and then the reply comes as a broadcast:
//listener is active, so broadcast data and suppress it from default behavior
//build data to send with intent for activity, format URI as per RFC 2396
Uri ussdDataUri = new Uri.Builder()
.scheme(getBaseContext().getString(R.string.uri_scheme))
.authority(getBaseContext().getString(R.string.uri_authority))
.path(getBaseContext().getString(R.string.uri_path))
.appendQueryParameter(getBaseContext().getString(R.string.uri_param_name), text.toString())
.build();
sendBroadcast(new Intent(Intent.ACTION_GET_CONTENT, ussdDataUri));
Click to expand...
Click to collapse
Now my only lasting question is, what does that broadcast tell me exactly? How do i get the USSd reply out of there?
---------------------------------
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
Okay, i think i figured out how to solve that, so no need for this thread anymore
---------------------------------
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
Same code doesn't seem to be working
Masrepus said:
Okay, i think i figured out how to solve that, so no need for this thread anymore
---------------------------------
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
====
HI
I am new to Android...I have tried the same code...
but it does not work..
Could you please help me
Masrepus said:
Okay, i think i figured out how to solve that, so no need for this thread anymore
---------------------------------
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
I am also trying to get the USSD response into a string or something, can you share your solution? It seems there is no offical support for this from google.
thx
@stunnahonsa
I had a private conversation with karuna.joshi about this and he told me it turned out that this solution doesn't work with newer android versions anymore. I haven't continued my project du to other problems in the meanwhile so i can't tell you for sure whether it works or not.
But i could imagine that if you register a broadcast receiver for that mentioned broadcast above, then in the onReceive method you get the data uri by calling intent.getData(). So now i researched that you will get the appended query item (in this case the ussd response) by calling uri.getEncodedQuery()
Would be cool if you try this and tell me if it worked
Related
Hello all
I opened this thread for all users that have problems to find/download kernels & fimg updates from cm7a7 thread/ ICS/CM9 thread.
Downloads:
Update: 15/04/2012
I've made an update.zip & .tarball of latest cm7 1.4 1000mhz kernel for users that requested it:
NOTE: This kernel works only on CM7.2 alpha8 build by @Marcellusbe & it's meant for those users that flashed other (Arakmars) kernel on CM7.2 alpha8
and want to go back to stock CM7.2a8 kernel without reflashing a whole ROM....
cm7 1.4 1000mhz_update.zip
Cm7 1.4 1000mhz.tar
Thanks to Marcellusbe for creating kernel
Update: 12/04/2012
G3MOD_arakmar_12-04-2012.zip[/SIZE]
Thanks goes to ryba84
Update: 08/04/2012
openFIMG_Arakmar-07.04.2012.zip
Photos taken are now in correct colors...no more reverted colors
Thanks goes to ryba84 again
And to Arakmar ofcourse
Update: 08/04/2012
openFIMG_Arakmar-05.04.2012.zip
^^^Update with Cm7.2 alpha8 OpenFimg libs & Arakamars latest kernel...
Thanks to ryba84 for making
update.zip.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update: 06/04/2012
Kernel 1 :
Commit date: 4.4.2012
Team g3mod by Arakmar(camera preview fixed)...working flawlesly om CM7 alpha 8
Thanks to ryba84 for compiling the kernel
Kernel 2:
Commit date: 5.4.2012
Compatible with Cm7 alpha 8
Camera preview fixed
G3MOD_arakmar-05-04-2012.zip
Thanks to ryba84 for compiling the kernel. (again)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update 13/03/2012:
Here is latest update for OpenFIMG released by Arakmar(thanks)
Changes for the kernel :
- G3D Power management
- CWM touch
- Fixes for /sdext in CWM
Downloads:
Kernel:
ICS26arakmar.zip
Kernel + OpenFIMG:
OpenFIMG-Latest+ICS26kernel.zip
Works on cm7/Ics/MIUI/froyo
------------------------------------------
FIMG CM7 new.zip(thanks to unreal3000)
fimg ics new.zip(thanks to unreal3000)
Arakmar_ICS24.zip (1Ghz)
CM7_GT-I5800_Test_OpenFIMG_update_Colors-fixed.zip cm7 1.3 h.v kernel included(1Ghz)
(thanks to Kyrillos13)
CM7-Kernel-1.3-high_voltage.tar(1Ghz
cm7_kernel_800mhz_1.2.tar
cm7_kernel_oc_1.2.tar(1Ghz)
cm7_kernel_ultra_1.2.tar(1.26Ghz)
CM7_FIMG_Revert-1.zip(1Ghz)
(thanks to xda user(don't remember who he is))
gapps-gb-20110613-signed.zip
I will update this thread as soon as new updates are out
If i've missed some update feel free to remind me..i'll add it ASAP
To @PG101
if i posted sth that shouln't be here....feel free to take any action needed.
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
Great, thanks
Yeah,nice thread.Useful for those who have problems with finding correct links
rkoby13 said:
Hello all
I opened this thread for all users that have problems to find/download kernels & fimg updates from cm7a7 thread/ ICS/CM9 thread.
Downloads:
fimg ics new.zip(thanks to unreal3000)
Arakmar_ICS24.zip
CM7_GT-I5800_Test_OpenFIMG_update_Colors-fixed.zip
(thanks Kyrillos13)
CM7-Kernel-1.3-high_voltage.tar
cm7_kernel_800mhz_1.2.tar
cm7_kernel_oc_1.2.tar
cm7_kernel_ultra_1.2.tar
CM7_FIMG_Revert-1.zip
(thanks to xda user(don't remember who he is))
gapps-gb-20110613-signed.zip
I will update this thread as soon as new updates are out
If i've missed some update feel free to remind me..i'll add it ASAP
To @PG101
if i posted sth that shouln't be here....feel free to take any action needed.
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
great! but i posted one with cm7 and newest fing which fixes camera buttons... u have only given a link for kyrillos's older one. its somewhere in cm thread..
unreal3000 said:
great! but i posted one with cm7 and newest fing which fixes camera buttons... u have only given a link for kyrillos's older one. its somewhere in cm thread..
Click to expand...
Click to collapse
the very first one "fimg ics new.zip"...is yours...found it attached in ics/cm9 thread ....is that correct?..
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
Is the ics kernel have false colors issue ? Does it have the G3 mod boot logo ?
Sent from my GT-I5800 using xda premium
Darius_AWS said:
Is the ics kernel have false colors issue ? Does it have the G3 mod boot logo ?
Sent from my GT-I5800 using xda premium
Click to expand...
Click to collapse
if i remember correct, Arakmar based his newest kernel on cm7 kernel...as for ics24.zip is still g3mod base...
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks, I was always lost
Can you detail more, what is the arakmar_ics24.zip
҉ Envoyé depuis mon Samsung Galaxy 3 avec Kyorarom 5.2 ҉
SerkSerk said:
Thanks, I was always lost
Can you detail more, what is the arakmar_ics24.zip
҉ Envoyé depuis mon Samsung Galaxy 3 avec Kyorarom 5.2 ҉
Click to expand...
Click to collapse
It's G3MOD with some patches to support CM7 and CM9, CWM5, etc ...
It works with Samsung's FIMG and openFIMG.
Thanks mate
Hmm any info for the kernel included in the last fimg update?
Sent from a parallel universe!
kyrillos13 said:
Hmm any info for the kernel included in the last fimg update?
Sent from a parallel universe!
Click to expand...
Click to collapse
here you go:
unreal3000 said:
here u go!
newest fimg patch (fixes camera buttons, better performance)
for ics attached. taken from miui patch. works for ics. arakmars kernel, 1200mhz oc.
HIT TKS IF I HELPED!
Click to expand...
Click to collapse
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
can you please tell how much mhz are the kernels?
ChrisTK said:
can you please tell how much mhz are the kernels?
Click to expand...
Click to collapse
check 1st post again
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
rkoby13 said:
the very first one "fimg ics new.zip"...is yours...found it attached in ics/cm9 thread ....is that correct?..
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
yeah... but there is one for cm7 also.... which fixes camera....i attached it here again...that one is only for ics with ics kernel..... btw for the ics one if u get wierd colours flash again and problem solved
this one is for cm7, with high voltage kernel...
ok, i don't understand the fimg business.....
i am reverting to cm7 again and need to know which kernel is recommended??
BTW is the camera preview fixed??everyone talking about some camera fix?
reddead66 said:
ok, i don't understand the fimg business.....
i am reverting to cm7 again and need to know which kernel is recommended??
BTW is the camera preview fixed??everyone talking about some camera fix?
Click to expand...
Click to collapse
With openfimg the buttons in the camera app were not good displayed untill tom3q fixed it. Now theyre just fine
Can you make a little description of the update zips, for a noob like me , it's hard to know what they do
rkoby13 said:
here you go:
~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Kyrillos' ROM v10 GWK74 beta
powered by
CM7-kernel 1.3 H.V.
~~~~~~~~~~~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
Thanks and... Arakmars kernel is based on g3mod, huh??
kyrillos13 said:
Thanks and... Arakmars kernel is based on g3mod, huh??
Click to expand...
Click to collapse
Yes : https://github.com/Arakmar/G3MOD
But it's not sync with dharamg's repo since a while.
Can't seem to get a custom boot animation to run!?....Samsung Galaxy Tab 2 GT- P-3113 Running UEBLG5 / I.C.S. v4.0.4 [ROOTED] And i have a ROOT Browser installed!
Gizmo said:
Can't seem to get a custom boot animation to run!?....Samsung Galaxy Tab 2 GT- P-3113 Running UEBLG5 / I.C.S. v4.0.4 [ROOTED] And i have a ROOT Browser installed!
Click to expand...
Click to collapse
You can't change it on the stock rom iirc.
You can do it on tab2lite or cyanogenmod.
scottx . said:
You can't change it on the stock rom iirc.
You can do it on tab2lite or cyanogenmod.
Click to expand...
Click to collapse
Thanks for the reply! I had a funny feeling about that....:crying:
Do you know if AOKPCB [R2] [Official] [b37] ROM will work? ....Going to give Tab2Lite [RC1] [P3113] a try! Didn't care for CyanogenMod v9.0 [RC1] ....Got to have my Task Manager button! :silly: Just use to the ICS v4.0.4 layout!
Gizmo said:
Do you know if AOKPCB [R2] [Official] [b37] ROM will work? ....Going to give Tab2Lite [RC1] [P3113] a try! Didn't care for CyanogenMod v9.0 [RC1] ....Got to have my Task Manager button! :silly: Just use to the ICS v4.0.4 layout!
Click to expand...
Click to collapse
Those aokp and unofficial cm ics builds lack hardware acceleration. Best bet is to use cm9 or cm10 as far as custom ROM's goes.
Vote
gauravj said:
Vote
Click to expand...
Click to collapse
please add LegacyXperia CM10.1 to the poll
om22 said:
please add LegacyXperia CM10.1 to the poll
Click to expand...
Click to collapse
+1
Legacy Xperia cm10.1
Sent from my Xperia Pro using xda app-developers app
Xperia Z Jelly Bean v3 :good:
CM10.1 - Android 4.2.2 - LegacyXperia Project - Build 20130801
Very happy with it but had to mess around with the phone sounds to get it to ring.
CM10.1 - Android 4.2.2 - LegacyXperia Project - Build 20130801
Running great so far. Only got location provider wake lock once kill the battery after messing with location settings.
Superleggerav6 :thumbup:
Enviado desde mi Nexus 7 usando Tapatalk 4 Beta
xperiaTrom
facing problem in adding a new poll sorry
Stock 2.3.4 everything works, blazing fast and no issues
Doomkernel v22
Rom did 999 hours without reboot.
Sent from my LT18i using xda premium
Legacy Xperia cm10.1
Ultimate HD with LuPuS kernel, 1,4GHz OC, smoothass governor and this mod is the best ROM I ever had. You must try it
Rom: SUPER JELLYBEAN 5.5
Kernel: Fusion 5.5 @ 134 - 806 MHz - NOOP ( 1d 15h Akku inkl. 12h FM Radio)
CM10.2 Android 4.3 Fisrt alpha
browser force close with HD4, very often.
what is the most stable rom for Jelly Bean?
Stock .587 4.0, rooted
stock kernel.
sorry, if my question like stupid tarzan.... this polling for what??
and suggestion for polling ROM :
1. CM 7.2
2. AOKP milestone 6 ICS
3. AOKP Jellybean
4. Paranoid Android
5. JJ's HYBRID ROM
6. x-stronger
7. Smart Xperia™ROM JB/ICS
8. Racing Bean
9. etc
:angel::angel::angel::angel::angel::angel::angel::angel::angel::angel::angel:
LegacyXperia CM10.1
I dont know how this thread has lasted as long as it has, but best Rom type threads are not allowed. Thread Closed
Thanks
Hey guys I would like to develop and app in which there will be tips and tricks etc...Thats is simple...
But what I dont know and want to learn is like I would like to update the tricks on daily or whenever a new trick is available in the app. Not like updating the whole app but just like if the Tricks are in the ListView I want that somehow I can update the content and add a new trick which will add one new list to the activity with the content as the Trick,,,,
Hope I have explained which I need. Rest if still I'm not clear please let me know I will try to explain it in more detailed manner.
Thanks
You could put your trick strings on the internet, for example on a google dev server, i dont know exactly how this service is called, but google gives u a place on one of their servers where u can put data. Then in ur app u can collect this data by connecting to the internet
---------------------------------
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:
You could put your trick strings on the internet, for example on a google dev server, i dont know exactly how this service is called, but google gives u a place on one of their servers where u can put data. Then in ur app u can collect this data by connecting to the internet
---------------------------------
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
You talking about google app engine??
Yeah thats it!
But also any other server on the internet can be used
---------------------------------
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:
You could put your trick strings on the internet, for example on a google dev server, i dont know exactly how this service is called, but google gives u a place on one of their servers where u can put data. Then in ur app u can collect this data by connecting to the internet
---------------------------------
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
Any guidance on the same?
Personal help would be preferred as I'm new to Web services.
Thanks
Sent from my Micromax A116
Before you go on and implement them, I'd suggest you reconsider whether it's a good decision. As a user before than a developer, I feel tips&tricks pop-ups/pages feel very 90s, outdated and IMO makes sense only in those cumbersome app where you need to explain your bad designed UI.
Sent from my Nexus 4 using xda app-developers app
Well you can firstly create a collection of some tips etc inside the app without using web services, if u first are not sure about whether to implement this... personal help with this is kinda diffucult as i myself dont really have experience with it it only was explained in my android/java learning book, and that one's in german
---------------------------------
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
Hmmmm thanks for the suggestions...will look into this more...
Thanks again
From my understanding and I could be completely wrong but the AR Drone communicates with smartphones using WIFI and it is two way communication. Is there a way for two phones to communicate using WIFI?
Wifi direct is such a thing, the s3 has that for example
---------------------------------
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
Does anyone know if any games or apps use direct WIFI?
I know it is being used for file sharing, but i dont know games that use this. Although i think this should be technically possible, as using this in a game is basically nothing else than 'sharing' (tiny) 'files'
---------------------------------
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
Well if the AR Parrot drone is receiving flying instructions and sending back video then I would think that it could be used to setup some kind of wifi game that could be played between two phones. Don't you think?
This is about Wifi Direct: http://developer.android.com/guide/topics/connectivity/wifip2p.html