提交 eef9c064 编写于 作者: T Takeya Yuki

Fix Push Service

上级 bbc80c4c
......@@ -12,5 +12,5 @@ Volume Control Features<br/>
Yuki Push Service<br/>
## Current Version
1.0.9-git-201709041527<br/>
[ ![Download](https://api.bintray.com/packages/takeya-yuki-studio/maven/rubylib/images/download.svg?version=1.0.9) ](https://bintray.com/takeya-yuki-studio/maven/rubylib/1.0.9/link)
1.0.10-git-201709101131<br/>
[ ![Download](https://api.bintray.com/packages/takeya-yuki-studio/maven/rubylib/images/download.svg?version=1.0.10) ](https://bintray.com/takeya-yuki-studio/maven/rubylib/1.0.10/link)
......@@ -43,7 +43,7 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER123456" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
......
......@@ -64,7 +64,6 @@ public class MainActivity extends Activity {
data+=Pi.name+":"+Pi.loadDescription(packageManager)+"<br/>";
}
wv.loadData(data,"text/html","utf-8");
ActivityCompat.requestPermissions(this,null,0);
}
}
......
......@@ -18,7 +18,7 @@ import yuki.msg.extended.YukiPushService;
public class TestService extends YukiPushService {
@Override
public String GetRemoteEndPoint() {
return "10.1.1.134:10086";
return "10.1.1.134:8134";
}
@Override
......@@ -40,5 +40,9 @@ public class TestService extends YukiPushService {
Intent j=new Intent(Intent.ACTION_VIEW, Uri.parse(msg));
j.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(j);
/*Intent i=new Intent(Intent.ACTION_VIEW, Uri.parse("msg://msg"));
PendingIntent pi=PendingIntent.getActivity(getApplicationContext(),0,i,PendingIntent.FLAG_UPDATE_CURRENT);
NotificationController.Notify(getApplicationContext(),GetServiceID(),GetIcon(),pi,
"Yuki Push Service","Yuki Push Service",msg, Notification.FLAG_NO_CLEAR|Notification.FLAG_AUTO_CANCEL);*/
}
}
......@@ -7,7 +7,7 @@ publish {
userOrg = 'takeya-yuki-studio' //bintray注册的用户名
groupId = 'jp.ruby.rubylib' //compile引用时的第1部分groupId
artifactId = 'rubylib' //compile引用时的第2部分项目名
publishVersion = '1.0.9' //compile引用时的第3部分版本号
publishVersion = '1.0.10' //compile引用时的第3部分版本号
desc = 'Ruby Extended Controls'
website = 'https://github.com/Takeya-Yuki/RubyLib.git'
}
......@@ -21,7 +21,7 @@ android {
minSdkVersion 21
targetSdkVersion 26
versionCode 9
versionName "1.0.9"
versionName "1.0.10"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
......
......@@ -60,15 +60,16 @@ public abstract class YukiPushService extends Service {
String readline;
readline=sin.readLine();
while(readline!=null){
while(true){
readline=sin.readLine();
if(readline.isEmpty()){continue;}
if(readline==null){
break;
continue;
}
else {
MessagePushed(readline);
}
MessagePushed(readline);
}
socket.close();
}
catch(IOException ex) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册