yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] djjonastybe:
I have trouble creating a service for a mediaplayer. I would like to have startforeground instead of this as well. But I have no proof of my service running. So I dont know if my code actually works. Can someone help me?

If someone is able to help me completely setting up my service, I may pay €5-10. I received €50 from the company to set up a developer account. So I have €25 left.

I am creating a streaming app for a radio station to listen to the internet stream.

package jonashendrickx.radioplayer.rgrfm;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

public class RadioService extends Service {
private final IBinder mBinder = new RadioBinder();

@Override
public void onCreate() {
Toast.makeText(this, "Let's Go", Toast.LENGTH_SHORT).show();
}

@Override
public IBinder onBind(Intent arg0) {
Log.e("LocalService", "Launched");
return mBinder;
}

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.i("LocalService", "Received start id " + startId + ": " + intent);
return START_STICKY;
}

public class RadioBinder extends Binder {
RadioService getService() {
return RadioService.this;
}
}

}

package jonashendrickx.radioplayer.rgrfm;

import android.os.Bundle;
import android.os.IBinder;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.util.Log;
import android.view.Menu;

public class MainActivity extends Activity {
private ServiceConnection mConnection = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName className, IBinder service) {
mRadioService = ((RadioService.RadioBinder)service).getService();
}
@Override
public void onServiceDisconnected(ComponentName className) {
mRadioService = null;
}
};
private RadioService mRadioService;
private boolean mIsBound;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
doBindService();
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

@Override
protected void onDestroy() {
super.onDestroy();
doUnbindService();
}

void doBindService() {
bindService(new Intent(this, RadioService.class), mConnection, Context.BIND_AUTO_CREATE);
mIsBound = true;
Log.e("", "service started");
}

void doUnbindService() {
if (mIsBound) {
// Detach our existing connection.
unbindService(mConnection);
mIsBound = false;
}
}

}
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
MT788 is the RAZR I China mobile version, it has the same hardware to RAZR i.(except 3G )

But mt788's ROM is different form RAZR I's.It have a lot of new features.

It has a app named "DLNA server", a smoother launcher with 3D effect ,a FM radio, a notification bar with toggles,three new widgets call"social networks",and"activity map" ,"RSS" which is useful i think.And there are "Recoder,sticy note ,firewall,task,task manager ,rss app" etc..(there is 3rd party apps can replace some of these,but I it is not battery friendly and stable as these built-in apps.)

So how can i port these features to Razr i? I try to copy the to system\app but it doesn't work(only the app "task" can run correctly).And will i brick my phone by only flashing the system Partition of mt788?

View attachment 1845823

View attachment 1845824

2013.5.16

I unpack the system.img of the MT788 4.1 ROM, and copy some of the files to My RAZR I, Some Of them don't work.

And when I replace the systemui.apk and framework-res.apk,the phone go to a boot loop.

View attachment 1966146

activity map and blur toggles (activity map seems can't work properly, it can't add app automaticly)

View attachment 1966147

RSS widget is working fine

View attachment 1966148

fmRadio widget(not work) and world time widget

View attachment 1966149

launcher with 3d effect

View attachment 1966150

activity map skin setting

View attachment 1966151

stopwatch

View attachment 1966152

task manager (will fc)

View attachment 1966153

performance master(working fine)

View attachment 1966154

blur music

View attachment 1966155

quick notes

View attachment 1966156

quick notes

View attachment 1966159

firewall

View attachment 1966160

Data Backup

View attachment 1966168

FM Radio (not working)，when i plug in the headphone， it FC
[RAZR i Q&A, Help & Troubleshooting] HSD-Pilot:
AW: [Q] MT788 features port to RAZR i

Where did you get the Fastboot Files from? I'would like to have an look @ it, when i'm back home.

I loved to run the chinese jb on my XT910, it has really some great features that are missing on the EU Version.

Gesendet von meinem XT890 mit Tapatalk 2
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
Here you can download it :http://pan.baidu.com/share/link?shareid=170070&uk=3391653272

click the button right beside the blue button to download.(at buttom).

Mt788 is still in android 4.0.4. And as i konw, the Rom is not developed by Moto itself but a chinese team.So it is separate form US,EU version.
[RAZR i Q&A, Help & Troubleshooting] HSD-Pilot:
Downloadspeed > 10kb/s - 25kb/s

Chinese Hoster are really Fast, still 4hours to go :silly:
[RAZR i Q&A, Help & Troubleshooting] pajo985:
just to say a small info

moto still have software teams in china...so those ROMs are moto's work, too..

I think that after restructuring of company, they will move all R&D and software workforce to america
[RAZR i Q&A, Help & Troubleshooting] HSD-Pilot:
No Luck flashing the System & Boot.img. It just gives an unknown error and flash failure.
[RAZR i Q&A, Help & Troubleshooting] Boss442:
uncompiling system img & boot,img with dxda kitchen and create a flashable.zip?
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
mt788 is upgrade to 4.1 now, when i get the fastboot files , i'll try it
[RAZR i Q&A, Help & Troubleshooting] Sandjah:
This would be sweet. I really miss those extra functions
[RAZR i Q&A, Help & Troubleshooting] shaftenberg:
Has it got Call Recording working? Do someone know this?
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
Yes,Call Recording is built-in in MT788.
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
Is there anyone can make the FM radio and the notification bars with toggles working?
[RAZR i Q&A, Help & Troubleshooting] Hazou:
The toggles options can work. someone need to know much about the framework-res and smali files.

But the FM-radio cannot work. In the latest JB release they havent included the drivers and connections in the build. Even if we can manage to build an AOSP rom, there is a huge change that we cant make the fm radio working. Intel/motorola havent released the source code for the fm-radio.

The ICS have a working driver, but i doubt it will work on JB
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
MT788 has the same hardware as Razr i, so can it's driver be used on RAZR I?

FM Radio is working fine in mt788
[RAZR i Q&A, Help & Troubleshooting] Hazou:
hmm, maybe it would work, was only looking at our eu rom...

but then it will take time to look into it. Some files need to be modified or replaced. The whole ALSA-sound files needs to be replaced, maybe also a part of the modem. It will be difficult, but can be done i think if someone wants to study it ;)
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
that sounds great !
[RAZR i Q&A, Help & Troubleshooting] shaftenberg:
So, please make a system dump, when it's possible :)

Especially the whole folder /system - that would be great. Upload it to any sharehoster.
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
Here is the whole rom; http://pan.baidu.com/share/link?shareid=476683&uk=1160557519

View attachment 1968564
[RAZR i Q&A, Help & Troubleshooting] shaftenberg:
Can you provide the password of this archive? :D

Or better, simply copy the contents of your /system folder, there's no private data in it.

If this above is a Motorola official, it would be hard to extract the files.
[RAZR i Q&A, Help & Troubleshooting] Omar-Avelar:
I am also interested in that system dump in order to get the FM radio going on JellyBean :laugh:, but pw is required... :angel:
[RAZR i Q&A, Help & Troubleshooting] shaftenberg:
Password is: bbs.mfunz.com

:D

(thanks to Google I learned Chinese in 10 seconds...)

[EDIT]

Omar, how do you extract the system.img? unyaffs and winimage don't work.

If you are able to extract it, please share the content again, that would be very nice!
[RAZR i Q&A, Help & Troubleshooting] Omar-Avelar:
I loopmount in Linux, here you go:

haxr.org/omar/android/RaZR i - XT890/MISC
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
Sorry , I forgot tell you the password. The password is bbs.mfunz.com

You can unzip the system.img.gz and copy system.img to Ubuntu,

use mount -o -loop system.img system(the directory where you want to mount the img) to unpack the img.

I can't pack the system folder , it throw a failure.
[RAZR i Q&A, Help & Troubleshooting] changguangyu:
waiting for fm radio and dlna
[RAZR i Q&A, Help & Troubleshooting] MauricioRPP:
Interesting discovery. I will follow this topic!
[RAZR i Q&A, Help & Troubleshooting] killuayugi:
anything new?
[Galaxy S III Q&A, Help & Troubleshooting] Celaniry:
Hello,

I was trying to install the Paranoid Android ROM (http://xdaforums.com/showthread.php?t=2203301).

I did everything as always but unfortunately I receive an error:

CWM-based Recovery v.5.5.0.4 :: CF-v.1.5

-- Installing: /sdcard/pa_i9053-3.15-23MAR2013-gokussjx.zip
Finding update package...
Opening update package...
[COLOR="DarkRed"]Installing update...
assert failed: getprop("ro.product.device") == "m3" || getprop("ro.built.product") == "m3" ||
getprop("ro.product.device") == "i9305" || getprop("ro.built.product") == "i9305" ||
getprop("ro.product.device") == "GT-I9305" || getprop("ro.built.product") == "GT-I9305"
E:Error in /sdcard/pa_i9053-3.15-23MAR2013-gokussjx.zip
(Status 7)
Installation aborted[/COLOR]

Im not a software developer for mobile phones but I guess it is trying to tell me, that the ROM which I'm trying to install isnt working on my device.

But I am absolutely sure that I got an I9305 as you can see on the attached screenshot.

Any ideas?
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
I9305 Q&A forum this is I9300 .

But suspect a faulty download judged on your information .

INSTRUCTIONS,

1. UPDATE RECOVERY

2. FACTORY RESET

3. INSTALL ROM, GAPPS

4. WIPE CACHE & DALVIK CACHE

5. REBOOT

PA 3+ UPDATES DO NOT NEED A FACTORY RESET,

BUT YOU NEED TO INSTALL GAPPS ASWELL.
[Galaxy S III Q&A, Help & Troubleshooting] Celaniry:
Sorry... my mistake.

This thread can be closed after I have already reopened it in the correct forum (http://xdaforums.com/showthread.php?p=39743752#post39743752).

Thank you.
[HTC One S] lostassassin:
Is there a way to add quick settings to to a sense based ROM that doesn't have them?
[HTC One S] zaak00:
Look for AntTek Quick Settings in the Play Store. That might be what you're looking for :)

Sent from my One S. Please hit thanks if I helped.
[HTC One S] lostassassin:
Its a useful app but there isn't any way I can add viper Rom quick settings to any other sense rom?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Scythemore:
thanks!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Clark Joseph Kent:
OP please use one thread for your topic, Thanks.
[Galaxy S III Q&A, Help & Troubleshooting] grapher:
Hi,

have following problem - have gallery app on my device, but it sync not any of picasa albums. I see only albums from my device.

Tryed to find some sync account in settings, but found just G+ account, where image sharing is set to on.

any clues? Thanks.
[Samsung Galaxy SL i9003] MR.Volkf:
S3 Theme Status Bar DDLF2​

How To Install

ScreenShoot

Version 1

Uploading soon

Version 1 Test 1

Bugs

Changelog

Download

​

[/FONT]
[Samsung Galaxy SL i9003] simratcs:
Upload it faster.ill install it and provide the screenshots for the same !!

thanks dude was waiting for something like this.ammar ty bro :p
[Samsung Galaxy SL i9003] MR.Volkf:
v1 uploaded,OP update.
[Samsung Galaxy SL i9003] MR.Volkf:
uploaded bro :fingers-crossed: give me feedback for next release :o
[Samsung Galaxy SL i9003] simratcs:
downloading it.will review the moment after installing it.and i will also attach screenshots :)

---------- Post added at 04:52 PM ---------- Previous post was at 04:37 PM ----------

but mine was already deodexed and nothing happened.

did u tested it ??

during flashing it there was a line NOTHING TO MOD ??
[Samsung Galaxy SL i9003] MR.Volkf:
see in status bar like battery and signal ?Nothing to Mod or Nothing to Morph?because just in XTRAS i put it, i was testing it but work based on DDLF2,or you can manually try push systemUI.apk to system/app and framework-res.apk to system/framework set permissioan same as the other
[Samsung Galaxy SL i9003] MR.Volkf:
Now uploading V1 Test 1,screenshoot uploaded
[Samsung Galaxy SL i9003] MR.Volkf:
OP Update:o
[Samsung Galaxy SL i9003] MR.Volkf:
BIG UPDATE FOR THE ICON GUYS... Work in progress :p
[Samsung Galaxy SL i9003] MR.Volkf:
first progress ;)
[Samsung Galaxy SL i9003] MR.Volkf:
No one interest about this :(

Development Stopped
[Samsung Galaxy SL i9003] redflash52:
A lot of people are interested on this theard, please don't stop the development of this theme :)

---------- Post added at 11:49 PM ---------- Previous post was at 11:37 PM ----------

Maybe you can also update your work to the new value pack DDMF1 :)
[Samsung Galaxy SL i9003] MR.Volkf:
Sorry ma friend,i've been moved to CM10.1 so if you want me to make icon,i will make it for you and also you can use it for DDMF1:o
[Samsung Galaxy SL i9003] redflash52:
Yes it would be great, thank you :thumbup:

Also the theme in the screenshot in the last post in page 1 was really cool ;)
[Samsung Galaxy SL i9003] MR.Volkf:
Thank you:o but this theme stuck on changing clock size i can't find it easily in gb :( here is my latest progress

View attachment 2184020
[Samsung Galaxy SL i9003] redflash52:
It looks good :D please share it if you can :)
[Samsung Galaxy SL i9003] MR.Volkf:
Ok this,only SystemUI.apk :p take any .png file from SystemUI.apk/res/drawable-hdpi
[Samsung Galaxy SL i9003] prabuflash:
nice one
[Samsung Galaxy SL i9003] kithmal11:
That actually looks good. Nice!
[Samsung Galaxy Ace Plus S7500] zzztidurvirus:
Is it possible to mod vold.fstab and link2sd together? Its irritating that I cant get to ext3 on external with original vold.fstab. Or should I do vold.fstab after partitioning the external? Its for my friends ace plus.

Now using:

Sony Xperia tipo ST21i

stock 4.0.4

11.0.A.4.22

(rooted, locked bootloader)

Current problem:

Cant get past installing flash drivers in xp.
[Samsung Galaxy Ace Plus S7500] zzztidurvirus:
Vold.fstab + link2sd?

I kinda messed up the vold.fstab. Anyone successfully done this?
[Samsung Galaxy Ace Plus S7500] vickyg.coolest:
http://xdaforums.com/showpost.php?p=41154322&postcount=22
[MDA II, XDA II, 2060 Accessories] mgolanlan:
http://www.gps4fun.com/ph_sdio.php

Who's the first to pop it into the XDA II?

I want one!

I tihnk it will be far more useful than a BT gps.

One can always install a redirecting antenna in his car ...

though I've got a non-metal roof:-)
[MDA II, XDA II, 2060 Accessories] shire29:
re

I have the Sandisk SD Wifi card which works very well with the xda 2 although delivers rapid power drain.

I suspect this will be the same drain on power ?

Also, if you use the SD slot for the GPS, where do you store the map files ?

Just my initial thoughts.

Cheers, Shire
[MDA II, XDA II, 2060 Accessories] mgolanlan:
power for WiFi is a problem due to transmission. The way Ethernet

works, the sender "assumes" you didn't "get the message" and resend

it, unless you acknoledge it. You must also acknoledge at the same

speed that you got the data. Even if you only acknoledge in 10 bytes

every 2K you get, it is still doing lots of Transmits [note: I'm not

really familiar with WiFi details, just Ethernet in general]

the GPS is just a reciever. they claim 100mA. This should give us

approx 5 hours use on full charge, with the phone powered on and

the map running ... In fact, I'm pretty sure the BT gps would not

do better, batterywise.

On maps, you got me! I guess most cities can be loaded into

te internal memory or the \storage card. If you design a good

maping software, it will "cache" your SDcard data and ask you

to swap it only when absolutely need. Having NEVER played with

GPS software (tomtom destinator etc) I really don't know the answer.

But my Garmin has just 16Mb of memory which it claims can be used

to give detailed maps - downloading part from the PC one at a time...

so the PPC must be much better.

Also, GPS cards (ie CF) is nothing new, so someone must have the answers - so come on guys, give it to us! :-)
[MDA II, XDA II, 2060 Accessories] shire29:
re

well thats what I'm holding out for, a GPS CF card. My theory being you still have the sd slot free for memory card and plenty of detailed maps.

Plus with the back pack u get a bit more juice and the VGA out.

Can't seem to get it anywhere yet though, but accessories always seem to be slow to market, no point in mass producing stuff till there are enough machines out there I guess.

mmm I digress, sorry.

Cheers, Shire
[MDA II, XDA II, 2060 Accessories] mgolanlan:
CF GPS

CF GPS card have been available for over a year, what r u talkin about?

just gogle "cf gps" or go to eg www.ecost.com.

This isn't a real solution. I can go around town with the SD GPS in

my shirt's pocket, and if I need it, I'll use it. When you or a BT GPS

user will need their's, it will be in the parked car or at home ...

mobility! mobility! mobility!

OF course, I want my XDA iii - stable OS, GPS builtin, 512Mb flash builtin,

camera 1.3Mpixel, and WiFi built in. and a larger battery, of course....

I expect to buy it early 2005.
[MDA II, XDA II, 2060 Accessories] shire29:
re

lol, I was referring to the xda 2 back pack, with built in CF slot, Battery and VGA out. It's not available in the UK atm.

I didn't think the CF GPS was that big, the only thing I am not sure of is where the CF slot is in the back pack, and whether a CF GPS will fit.

Cheers, Shire
[MDA II, XDA II, 2060 Accessories] applecom:
Looking at that CF bakpak the CF slot is on the bottom, so if have the CF card GPS then the GPS aerial would be upside down.

or do you try and find a program to invert your screen when you start you map software. or get a external aerial for the CF GPS.

or is it just me and the CF slot is on the top of the CF bakpack

John
[Galaxy S II Q&A, Help & Troubleshooting] mikenike500:
I went to a Metro shop today and learned that they no longer flash phones after December 31st...

I asked the clerk if someone can do it for me or if I can still do it myself, he told me that I can't and it's impossible to ever get it on Metro...

Is this true?
[Galaxy S II Q&A, Help & Troubleshooting] mikenike500:
Bump.
[AT&T Samsung Galaxy S II SGH-I777] 50c0mcmd:
I flashed my SGH-i777 using the Entropy512's Return/Unbrick to Stock, Kernel + Rooted System Package, as instructed in the sticky.

It boots up fine to the initial start up screen where it wants you to setup your phone, however i cannot complete this or do anything because all google apps repeatedly force close.

Please help and thanks :)
[AT&T Samsung Galaxy S II SGH-I777] Phalanx7621:
Your data wasn't wiped from the rom you were on, so boot into recovery and wipe data /cache.
[AT&T Samsung Galaxy S II SGH-I777] 50c0mcmd:
I really appreciate the advice! but before you replied I went off and flashed the siyah 3.4.2 nomicswap kernel, thinking a kernel was the problem. Now i cant get my phone into a proper download mode to reflash a rom kernel combo...

please and thanks :)

EDIT: scratch that, the download mode is working however, in ODIN it seems to have a problem with not flashing :/
[AT&T Samsung Galaxy S II SGH-I777] 50c0mcmd:
Update: I've plugged my phone into laptop instead and odin appears to be working, perhaps i have faulty usb ports on my desktop, i have yet to see when its done flashing the stock rooted rom if it works or not. Hopefully so! :D
[AT&T Samsung Galaxy S II SGH-I777] 50c0mcmd:
Okay, im pretty much back to square one, ive rebooted into recovery with the stock rooted rom and cleared the cache, still the same problem with google apps repeatedly force closing and not being able to do anything...

Any help would be greatly appreciated!

please and thanks!
[AT&T Samsung Galaxy S II SGH-I777] Nick281051:
Do as Phalanx said and wipe data, that's why you're having issues.

Sent from my Zanpakuto using Getsuga Tensho!
[Android Q&A, Help & Troubleshooting] Drugoli:
Hey

I'm using a Galaxy S i9000 with the custom rom SlimBean 4.2.2 (version 3). I really want to try out the gesture typing, but to do that I need a dictionary, which in my case is Danish.

I go into the keyboard options, click add-on dictionaries. At first danish doesn't show up, but after a refresh it pops up. I click on it, and choose "install". After a couple of seconds, without touching the device at all, it now says "Installed" under the Danish dictionary in the list.

I then exit, and try to use the dictionary, but it doesn't work. I go back into the settings, and it's not installed anymore.

Can anyone help?

TLDR version: Tried to install a Danish add-on dictionary, shows as installed in the list after a couple of seconds, but actually didn't install.

The solution was to install a new version of Gapps and install LatinIME.
[HTC Desire X] mindlesSheep:
Name of topic is clear, does anyone have drivers for this working in ubuntu? tried to search htc sync for linuks, but not succeded.

(also I am pretty noobish in linux, my roommate is giving adviced whenever he can, but he has samsung smartphone and another linux using friends have nexus devices...)
[HTC Desire X] navmad:
You don't need HTC sync in Ubuntu. Download the Linux version of adb and fastboot and you're good to go.

Regards,

navmad
[HTC Desire X] mindlesSheep:
why fastboot devices inst working then?
[HTC Desire X] navmad:
Working fine for me.

Regards,

navmad
[HTC Desire X] Jann F:
Install android-tools-adb and android-tools-fastboot via a package manager.

To use ADB and Fastboot, you have to start and run them as root, to have hardwareaccess.

To do so, just use:

sudo adb kill-server
sudo adb start-server
sudo adb [command]

also

sudo fastboot [command]

have a nice day :)
[One (M7) Q&A, Help & Troubleshooting] dibdin:
I have installed handcent, and I seem to be having trouble after having assigned different notifications tones to my contacts.. When I receive a message from that contact, instead of me hearing the tone I set for that person it appears to just play the standard htc default tone.

How can I stop this from happening?

Many thanks
[Galaxy Tab 2 Q&A, Help & Troubleshooting] GrandMasterPlank:
I'm in the same ROM searching boat as a few others on here but can't find a definitive answer.

Recently got the Tab 2 and after reading some good reviews I'm really disappointed with the endless glitchyness. I've got an Ipad2 which is smooth as silk but I don't get on with IOS at all. Have an Android phone and love it and originally bought a Motorola Xoom and ended up selling it because of the glitchyness and bought the iPad. Couple of years on whilst I didn't expect the Tab 2 to match the Ipad I just wasn't ready for the constant sticking when even doing the simplest of tasks such a browsing and I'm not overloading it at all. On the face of it the Tab 2 seems no better than the Xoom. I hope I'm wrong.

I didn't want to start rooting as I did with the Xoom (then in an effort fo make it smoother) so I feel I'm back to square one but am hoping there is a Rom that can make the Tab 2 as smooth as the iPad. If there is or if there is another way to smooth it out if I'd really appreciate any help there is out there. Have done a hard reset a couple of times also without much, if any, improvement. Thx.