من پوش نوتیفیکیشن رو تو بیسیک راه انداختم ولی وقتی رو نوتیفیکیشن کلیک میکنم برنامه تو بازار باز نمیشه
چیکار باید بکنم؟
این کدهام
#Region Activity Attributes #FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim PreviousHash As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Activity.Title = "Notification"
End Sub
Sub Activity_Resume
Dim title, msg, Alert, Hash, Channel As String
Dim StartingIntent As Intent
Dim JSON As JSONParser
StartingIntent = Activity.GetStartingIntent
JSON.Initialize(StartingIntent.GetExtra("com.parse.Data"))
Dim DataMap As Map
DataMap = JSON.NextObject
Alert = DataMap.Get("alert")
Hash = DataMap.Get("push_hash")
Channel = StartingIntent.GetExtra("com.parse.Channel")
Log(DataMap.Get("link"))
Log(DataMap.Get("sound"))
If DataMap.Get("run") = True Then
If DataMap.Get("app") <> "" Then
End If
End If
If Hash <> PreviousHash Then
title = "New Notification"
PreviousHash = Hash
Else
title = "Old Notification"
End If
Dim market As Intent,uri As String
uri=DataMap.Get("link")
market.Initialize(market.ACTION_VIEW,uri)
StartActivity(market)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
سوال
cloner01001 38
سلام دوستان
خسته نباشید
من پوش نوتیفیکیشن رو تو بیسیک راه انداختم ولی وقتی رو نوتیفیکیشن کلیک میکنم برنامه تو بازار باز نمیشه
چیکار باید بکنم؟
این کدهام
#Region Activity Attributes #FullScreen: False #IncludeTitle: True #End Region Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. Dim PreviousHash As String End Sub Sub Globals 'These global variables will be redeclared each time the activity is created. 'These variables can only be accessed from this module. End Sub Sub Activity_Create(FirstTime As Boolean) 'Do not forget to load the layout file created with the visual designer. For example: 'Activity.LoadLayout("Layout1") Activity.Title = "Notification" End Sub Sub Activity_Resume Dim title, msg, Alert, Hash, Channel As String Dim StartingIntent As Intent Dim JSON As JSONParser StartingIntent = Activity.GetStartingIntent JSON.Initialize(StartingIntent.GetExtra("com.parse.Data")) Dim DataMap As Map DataMap = JSON.NextObject Alert = DataMap.Get("alert") Hash = DataMap.Get("push_hash") Channel = StartingIntent.GetExtra("com.parse.Channel") Log(DataMap.Get("link")) Log(DataMap.Get("sound")) If DataMap.Get("run") = True Then If DataMap.Get("app") <> "" Then End If End If If Hash <> PreviousHash Then title = "New Notification" PreviousHash = Hash Else title = "Old Notification" End If Dim market As Intent,uri As String uri=DataMap.Get("link") market.Initialize(market.ACTION_VIEW,uri) StartActivity(market) End Sub Sub Activity_Pause (UserClosed As Boolean) End Subلینک ارسال
به اشتراک گذاری در سایت های دیگر
2 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.