[Q] Mobile Network widget for non-Sense - Droid Incredible Q&A, Help & Troubleshooting

The one thing I miss after switching to LauncherPro is my HTC Mobile Network widget, which disabled data but left the radio on for calls/text. I know I can still access this from the power button, but was curious if it was possible to build a widget.
I ran logcat before using the switch to see what it does on a software level. Is there any way to use this to build a widget? I know various Power Control-esque widgets have APN controls, but they only seem to work reliably with GSM devices. I tried poking around in LauncherPro shortcuts, but the APN screen shortcut is just blank.
D/DataConnectionTracker( 196): disableApnType(default)
D/DataConnectionTracker( 196): setEnabled(0, false) with old state = true and enabledCount = 1
D/DataConnectionTracker( 196): disableApnType(mms)
D/DataConnectionTracker( 196): disableApnType(supl)
D/DataConnectionTracker( 196): setDataEnabled(false)
D/DataConnectionTracker( 196): disableApnType(dun)
D/DataConnectionTracker( 196): disableApnType(hipri)
D/DataConnectionTracker( 196): disableApnType(wapgateway)
D/DataConnectionTracker( 196): disableApnType(httpproxy)
D/DataConnectionTracker( 196): disableApnType(fota)
D/DataConnectionTracker( 196): EVENT_APN_ENABLE_REQUEST 0, 0
D/DataConnectionTracker( 196): dataEnabled = true, enabledCount = 1, isApnTypeActive = true
D/DataConnectionTracker( 196): enabledCount(0) -> 0
D/DataConnectionTracker( 196): disableApnType(admin)
Click to expand...
Click to collapse

I too am interested in this.
What does CyanogenMod have to do this?

try smoda widgetfrom the market...seems to work

Related

Create PopUp with dimmed background

Hello devs
Im developing an application for Windows Mobile in Visual Basic.NET.
Now I would like to make some kind of PopUp with all the stuff seen in background "dimmed". This can be seen on all newer Manila-Style applications and of course HTC is making those popups.
But, how do I create such popups? I know that it has something to do with AlphaBlending, but I don't really understand how to make it.
Does anyone of you probably have a working sample solution in VB.NET?
Many thanks in advance for any help...
raftbone
Here you go. http://blogs.msdn.com/priozersk/archive/2009/03/31/dimming-the-background.aspx
This guys blog is great. All kinds of tips and tricks to make mobile apps work and look better.
Many thanks for the link. I'll try to get this code changed to VB.NET.
Seems to lock pretty easy and it's exactly what I was looking for
OK, I've managed to change the code into VB. This is the code:
Code:
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
Dim dimBackground As Bitmap = New Bitmap(Me.Width, Me.Height)
Dim gxTemp As Graphics = Graphics.FromImage(dimBackground)
gxTemp.Clear(Color.Black)
e.Graphics.drawalpha(dimBackground, 100, 0, 0)
gxTemp.Dispose()
dimBackground.Dispose()
End Sub
The code is working execpt "DrawAlpha". DrawAlpha seems to be unknown in VisualBasic.NET with .NET CF 3.5.
Can anyone help me how to get the DrawAlpha method working?
Code:
Public Module opacity
Public Structure BlendFunction
Public BlendOp As Byte
Public BlendFlags As Byte
Public SourceConstantAlpha As Byte
Public AlphaFormat As Byte
End Structure
Public Declare Function AlphaBlendCE Lib "Coredll.dll" Alias "AlphaBlend" (ByVal hdcDest As IntPtr, _
ByVal xDest As Int32, ByVal yDest As Int32, ByVal cxDest As Int32, _
ByVal cyDest As Int32, ByVal hdcSrc As IntPtr, ByVal xSrc As Int32, _
ByVal ySrc As Int32, ByVal cxSrc As Int32, ByVal cySrc As Int32, _
ByVal blendFunction As BlendFunction) As Int32
Public Enum BlendOperation As Byte
AC_SRC_OVER = &H0
End Enum
Public Enum BlendFlags As Byte
Zero = &H0
End Enum
Public Enum SourceConstantAlpha As Byte
Transparent = &H0
Opaque = &HFF
End Enum
Public Enum AlphaFormat As Byte
AC_SRC_ALPHA = &H0
End Enum
Public Sub DrawAlpha(ByVal gx As Graphics, ByVal image As Bitmap, _
ByVal transp As Byte, ByVal x As Integer, ByVal y As Integer)
Try
Using gxSrc As Graphics = Graphics.FromImage(image)
Dim hdcDst As IntPtr = gx.GetHdc()
Dim hdcSrc As IntPtr = gxSrc.GetHdc()
Dim bf As New BlendFunction()
bf.BlendOp = CByte(BlendOperation.AC_SRC_OVER)
bf.BlendFlags = CByte(BlendFlags.Zero)
bf.SourceConstantAlpha = transp
bf.AlphaFormat = CByte(AlphaFormat.AC_SRC_ALPHA)
AlphaBlendCE(hdcDst, x, y, image.Width, image.Height, hdcSrc, _
0, 0, image.Width, image.Height, bf)
gx.ReleaseHdc(hdcDst)
gxSrc.ReleaseHdc(hdcSrc)
End Using
Catch ex As Exception
Logger.log("Device dont support alphablending.", Logger.logLevel.NOTICE)
Logger.log(ex, Logger.logLevel.NOTICE)
End Try
End Sub
End Module
usage:
Code:
opacity.DrawAlpha(e.graphics, bmp, 128), 0, 0) 'draw your bmp with 50% opacity
Hope it help it's the quicker method that I found. I have cutted out some specific code from my app, so you ca find error, I've not test the code. Let me know if you have trouble.
If you are intrested there is an other way to make opacity bitmap that work pixel per pixel but is too slow.
If you found better method please post it.
Ciao
Hi
Many thanks for your code. It seems to work pretty using the code I have posted initally. There I was using a new form with WindowState = Maximized etc.
But now I don't really understand on how to exactly use your code in my project.
I have one form and multiple controls on it. The controls are normally invisible and set to Visible = True if I need to show them.
How can I now dim the background with your code, before setting a specific control to Visible = True?
I tried something like this:
Code:
Private Sub ShowPanel()
Dim dimBackground As Bitmap = New Bitmap(Me.Width, Me.Height)
Dim gxTemp As Graphics = Graphics.FromImage(dimBackground)
gxTemp.Clear(Color.Black)
modOpacity.DrawAlpha(gxTemp, dimBackground, 128, 0, 0)
gxTemp.Dispose()
dimBackground.Dispose()
Me.Panel2.Visible = True
End Sub
But if I do this code, I get an error in your code at the line:
Code:
Dim hdcSrc As IntPtr = gxSrc.GetHdc()
It seems, that the object gxSrc does not have a method GetHdc(), but I simply don't understand why...
Could you probably get me into the right direction?
raftbone
As explained in the blog I've created a form 'BackgroundForm'
Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.Drawing;
namespace UI
{
public partial class BackgroundForm : Form
{
public BackgroundForm()
{
InitializeComponent();
}
protected override void OnPaint(PaintEventArgs e)
{
using (Bitmap dimBackGround = new Bitmap(this.Width, this.Height))
using (Graphics gxTemp = Graphics.FromImage(dimBackGround))
{
gxTemp.Clear(Color.Black);
opacity.DrawAlpha(e.Graphics, dimBackGround, 100, 0, 0);
}
}
protected override void OnPaintBackground(PaintEventArgs e)
{
}
}
}
and changed it to be fullscreen (in the designer):
Code:
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
WindowState = System.Windows.Forms.FormWindowState.Maximized;
Then I've created a static helper class
Code:
using System;
using System.Windows.Forms;
namespace UI
{
public static class FormHelper
{
public static DialogResult ShowMessageBox(string text)
{
return ShowMessageBox(text, string.Empty, MessageBoxButtons.OK, MessageBoxIcon.None);
}
public static DialogResult ShowMessageBox(string text, string caption)
{
return ShowMessageBox(text, caption, MessageBoxButtons.OK, MessageBoxIcon.None);
}
public static DialogResult ShowMessageBox(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
{
BackgroundForm form = new BackgroundForm();
form.Show();
DialogResult result = MessageBox.Show(text, caption, buttons, icon, MessageBoxDefaultButton.Button1);
form.Close();
return result;
}
}
}
And now you can simply use one of the three methods to show a message box with dimmed background e.g.
Code:
FormHelper.ShowMessageBox("Text", "Caption", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
To convert from C# to VB.net use for example convert csharp to vb.
Hi
Thanks for your answer. Meanwhile I was already able to get it working with your blog info about using a new form.
Thanks to everyone helping me
raftbone

problem on screen orientation

Hi all,
i want to lock the screen orientation in portrait mode.
how can i do it in programming??
Thank you
try this, is not too clean sorry:
Code:
Public Class display
'DEVICEMODE
<Runtime.InteropServices.DllImport("coredll.dll")> _
Friend Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet
End Function
'Declare Function ChangeDisplaySettingsEx Lib "coredll.dll" (ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet
Public Shared Function ChangeDisplayOrientation(ByVal degree As Integer) As String
Dim devMode As New devicemodeW()
devMode.dmFields = DM_Fields.DM_DISPLAYORIENTATION
If degree = 0 Then
devMode.dmDisplayOrientation = DMD.DMDO_0
ElseIf degree = 90 Then
devMode.dmDisplayOrientation = DMD.DMDO_90
ElseIf degree = 180 Then
devMode.dmDisplayOrientation = DMD.DMDO_180
ElseIf degree = 270 Then
devMode.dmDisplayOrientation = DMD.DMDO_270
End If
Dim ret As CDSRet = ChangeDisplaySettingsEx(Nothing, devMode.Data, IntPtr.Zero, 0, IntPtr.Zero)
Return (ret.ToString())
End Function
' from pinvoke.net
Public Enum DMD
DMDO_0 = 0
DMDO_90 = 1
DMDO_180 = 2
DMDO_270 = 4
End Enum
Public Enum DM_Fields
DM_DISPLAYORIENTATION = 8388608
DM_DISPLAYQUERYORIENTATION = 16777216
End Enum
Public Enum DM_Orient
DMORIENT_PORTRAIT = 1
DMORIENT_LANDSCAPE = 2
End Enum
' Flags for ChangeDisplaySettings
Enum CDSFlags
CDS_VIDEOPARAMETERS = &H20
CDS_RESET = &H40000000
End Enum
' Return values for ChangeDisplaySettings
Enum CDSRet
DISP_CHANGE_SUCCESSFUL = 0
DISP_CHANGE_RESTART = 1
DISP_CHANGE_FAILED = -1
DISP_CHANGE_BADMODE = -2
DISP_CHANGE_NOTUPDATED = -3
DISP_CHANGE_BADFLAGS = -4
DISP_CHANGE_BADPARAM = -5
End Enum
Public Class devicemodeW
Inherits SelfMarshalledStruct
Private _DM_Orient As DM_Orient
Private _DM_Fields As DM_Fields
Private _DMD As DMD
Public Sub New()
MyBase.New(192)
dmSize = CUShort(Data.Length)
End Sub
Public Property dmDeviceName() As String
Get
Return GetStringUni(0, 64)
End Get
Set(ByVal value As String)
SetStringUni(value, 0, 64)
End Set
End Property
Public Property dmSpecVersion() As UShort
Get
Return GetUInt16(64)
End Get
Set(ByVal value As UShort)
SetUInt16(64, value)
End Set
End Property
Public Property dmDriverVersion() As UShort
Get
Return GetUInt16(66)
End Get
Set(ByVal value As UShort)
SetUInt16(66, value)
End Set
End Property
Public Property dmSize() As UShort
Get
Return GetUInt16(68)
End Get
Set(ByVal value As UShort)
SetUInt16(68, value)
End Set
End Property
Public Property dmDriverExtra() As UShort
Get
Return GetUInt16(70)
End Get
Set(ByVal value As UShort)
SetUInt16(70, value)
End Set
End Property
Public Property dmFields() As DM_Fields
Get
'Return DirectCast(GetUInt32(72), DM_Fields)
Return _DM_Fields
End Get
Set(ByVal value As DM_Fields)
_DM_Fields = value
SetUInt32(72, CInt(value))
End Set
End Property
Public Property dmOrientation() As DM_Orient
Get
'Return DirectCast(GetInt16(76), DM_Orient)
Return _DM_Orient
End Get
Set(ByVal value As DM_Orient)
SetInt16(76, CShort(value))
End Set
End Property
Public Property dmPaperSize() As Short
Get
Return GetInt16(78)
End Get
Set(ByVal value As Short)
SetInt16(78, value)
End Set
End Property
Public Property dmPaperLength() As Short
Get
Return GetInt16(80)
End Get
Set(ByVal value As Short)
SetInt16(80, value)
End Set
End Property
Public Property dmPaperWidth() As Short
Get
Return GetInt16(82)
End Get
Set(ByVal value As Short)
SetInt16(82, value)
End Set
End Property
Public Property dmScale() As Short
Get
Return GetInt16(84)
End Get
Set(ByVal value As Short)
SetInt16(84, value)
End Set
End Property
Public Property dmCopies() As Short
Get
Return GetInt16(86)
End Get
Set(ByVal value As Short)
SetInt16(86, value)
End Set
End Property
Public Property dmDefaultSource() As Short
Get
Return GetInt16(88)
End Get
Set(ByVal value As Short)
SetInt16(88, value)
End Set
End Property
Public Property dmPrintQuality() As Short
Get
Return GetInt16(90)
End Get
Set(ByVal value As Short)
SetInt16(90, value)
End Set
End Property
Public Property dmColor() As Short
Get
Return GetInt16(92)
End Get
Set(ByVal value As Short)
SetInt16(92, value)
End Set
End Property
Public Property dmDuplex() As Short
Get
Return GetInt16(94)
End Get
Set(ByVal value As Short)
SetInt16(94, value)
End Set
End Property
Public Property dmYResolution() As Short
Get
Return GetInt16(96)
End Get
Set(ByVal value As Short)
SetInt16(96, value)
End Set
End Property
Public Property dmTTOption() As Short
Get
Return GetInt16(98)
End Get
Set(ByVal value As Short)
SetInt16(98, value)
End Set
End Property
Public Property dmCollate() As Short
Get
Return GetInt16(100)
End Get
Set(ByVal value As Short)
SetInt16(100, value)
End Set
End Property
Public Property dmFormName() As String
Get
Return GetStringUni(102, 64)
End Get
Set(ByVal value As String)
SetStringUni(value, 102, 64)
End Set
End Property
Public Property dmLogPixels() As UShort
Get
Return GetUInt16(166)
End Get
Set(ByVal value As UShort)
SetUInt16(166, value)
End Set
End Property
Public Property dmBitsPerPel() As UInteger
Get
Return GetUInt32(168)
End Get
Set(ByVal value As UInteger)
SetUInt32(168, value)
End Set
End Property
Public Property dmPelsWidth() As UInteger
Get
Return GetUInt32(172)
End Get
Set(ByVal value As UInteger)
SetUInt32(172, value)
End Set
End Property
Public Property dmPelsHeight() As UInteger
Get
Return GetUInt32(176)
End Get
Set(ByVal value As UInteger)
SetUInt32(176, value)
End Set
End Property
Public Property dmDisplayFlags() As UInteger
Get
Return GetUInt32(180)
End Get
Set(ByVal value As UInteger)
SetUInt32(180, value)
End Set
End Property
Public Property dmDisplayFrequency() As UInteger
Get
Return GetUInt32(184)
End Get
Set(ByVal value As UInteger)
SetUInt32(184, value)
End Set
End Property
Public Property dmDisplayOrientation() As DMD
Get
'Return DirectCast(GetUInt32(188), DMD)
Return _DMD
End Get
Set(ByVal value As DMD)
_DMD = value
SetUInt32(188, CInt(value))
End Set
End Property
End Class
Public Class ScreenMode
'DEVICEMODE
<Runtime.InteropServices.DllImport("coredll.dll")> _
Friend Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet
End Function
'Declare Function ChangeDisplaySettingsEx Lib "coredll.dll" (ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet
Public Function ChangeMode(ByVal degree As Integer) As String
Dim devMode As New devicemodeW()
devMode.dmFields = DM_Fields.DM_DISPLAYORIENTATION
If degree = 0 Then
devMode.dmDisplayOrientation = DMD.DMDO_0
ElseIf degree = 90 Then
devMode.dmDisplayOrientation = DMD.DMDO_90
ElseIf degree = 180 Then
devMode.dmDisplayOrientation = DMD.DMDO_180
ElseIf degree = 270 Then
devMode.dmDisplayOrientation = DMD.DMDO_270
End If
Dim ret As CDSRet = ChangeDisplaySettingsEx(Nothing, devMode.Data, IntPtr.Zero, 0, IntPtr.Zero)
Return (ret.ToString())
End Function
Public Sub SetLandscape()
Try
ChangeMode(90)
Catch ex As Exception
'MsgBox(ex.ToString)
End Try
End Sub
Public Sub SetPortrait()
Try
ChangeMode(0)
Catch ex As Exception
'MsgBox(ex.ToString)
End Try
End Sub
End Class
End Class
usage:
Code:
display.ChangeMode(angle)
i use Win32API to write my app. But , your code is VB.
i will try my best to understand it.
Thank alessandroame so much =]

[Q] [ROM] TNz BLEND Latest 2.6.1 [EL29] "Hella FAST" TSM Parts Optional [01/24/2012]

[Q] [ROM] TNz BLEND Latest 2.6.1 [EL29] "Hella FAST" TSM Parts Optional [01/24/2012]
Anyone know how to change the drop down bar icons so it has a button for GPS? Not sure if I am using the correct lingo to describe what i am saying. Its the drag down notification bar that has WiFi, mobile data, bluetooth, sound etc. I am running the latest TNz Blend rom. It seems to be very customizable. Just cant figure this one out.
Thanks
Settings, lockscreen setting, statusbar settings, all the way at the bottom, "widget buttons" and "widget order". You can choose which toggles and what order.
Sent from my SPH-D710 using xda premium
Thanks, I had just figured it out and was getting ready to post how i found it. Thanks again.
Does anyone know how to fix this?
Code:
E/GpsLocationProvider( 2917): An exception was thrown by callback 'nmea_callback'.
E/GpsLocationProvider( 2917): java.lang.NumberFormatException:
E/GpsLocationProvider( 2917): at org.apache.harmony.luni.util.FloatingPointParser.parseFloat(FloatingPointParser.java:305)
E/GpsLocationProvider( 2917): at java.lang.Float.parseFloat(Float.java:323)
E/GpsLocationProvider( 2917): at com.android.server.location.GpsLocationProvider$SensorAiding.SensorAidingKeepOriginalNmea(GpsLocationProvider.java:2465)
E/GpsLocationProvider( 2917): at com.android.server.location.GpsLocationProvider$SensorAiding.SensorAidingReportNmea(GpsLocationProvider.java:1823)
E/GpsLocationProvider( 2917): at com.android.server.location.GpsLocationProvider$SensorAiding.access$1900(GpsLocationProvider.java:1413)
E/GpsLocationProvider( 2917): at com.android.server.location.GpsLocationProvider.reportNmea(GpsLocationProvider.java:1369)
E/GpsLocationProvider( 2917): at dalvik.system.NativeStart.run(Native Method)

S-View timeout settings

Is it possible to change the S-View timeout settings? I haven't found any settings for this and would like to extend or disable the timout completely
fg said:
Is it possible to change the S-View timeout settings? I haven't found any settings for this and would like to extend or disable the timout completely
Click to expand...
Click to collapse
What timeout are you referring to? Like, how long it takes once you look away?
elesbb said:
What timeout are you referring to? Like, how long it takes once you look away?
Click to expand...
Click to collapse
I think that's smart screen (smart stay, smart pause). S-View is the small portion of the display activated by the S-View flip case and visible through the window. Currently it stays on for less than 10 seconds. I can press power or open/close the flap to reactivate temporarily.
Ideally I'd like it on for longer (at least a minute), and would prefer the option to have it remain on unless I manually turn it off.
fg said:
I think that's smart screen (smart stay, smart pause). S-View is the small portion of the display activated by the S-View flip case and visible through the window. Currently it stays on for less than 10 seconds. I can press power or open/close the flap to reactivate temporarily.
Ideally I'd like it on for longer (at least a minute), and would prefer the option to have it remain on unless I manually turn it off.
Click to expand...
Click to collapse
Where can i find that in the settings? I don't use the Flip cover but im sure through smali its customizable.
elesbb said:
Where can i find that in the settings? I don't use the Flip cover but im sure through smali its customizable.
Click to expand...
Click to collapse
There are no obvious settings, that's what I'm trying to find.
dmesg when closing the flip cover
<6>[ 7612.792632] [SSP]: MSG From MCU - PUP
<6>[ 7612.792632] PCK
<6>[ 7612.792663] PST1 83
<6>[ 7612.792663] P4
<6>[ 7612.792663] Close 73 60
<6>[ 7612.792663] ssp_sensorhub_list: 1, 1, 14, 1
<6>[ 7612.792785] ssp_sensorhub_read: 1, 1, 14, 1
<6>[ 7612.797637] cypress_touchkey 16-0020: flip_cover_mode_enable 1
<6>[ 7612.797668] [Touchkey] IC id 20065
<6>[ 7612.811950] [NACB:6]<
<6>[ 7612.816009] [CHKRA:6]>
<6>[ 7612.816009] [0ns]READ :01 15 00 80 03 01 04 00 00 51 00 09 00 14 06 00
<6>[ 7612.816772] Write: 01 0c 00 00 03 01 00 f4 09 4f 00 00 00
<6>[ 7612.827972] [NACB:6]<
<6>[ 7612.832000] [CHKRA:6]>
<6>[ 7612.832000] [30518ns]READ :01 21 00 80 03 01 02 f4 09 4f 00 15 00 02 04 00
<7>[ 7612.907165] [keys_no_delay] flip_cover_work : 0
<6>[ 7612.909606] cypress_touchkey 16-0020: [Touchkey] flip_mode Enabled
<6>[ 7612.909637] cypress_touchkey 16-0020: glove_mode_enable 0
<6>[ 7612.909698] cypress_touchkey 16-0020: [Touchkey] Enabled flip cover mode.
<6>[ 7612.909698] synaptics_rmi4_i2c 3-0020: cmd_store: Command = clear_cover_mode,2
<6>[ 7612.909728] synaptics_rmi4_i2c 3-0020: synaptics_rmi4_glove_mode_enables: [02]: only flip cover enable
<6>[ 7612.910217] cypress_touchkey 16-0020: flip_cover_mode_enable 1
<6>[ 7612.910247] [Touchkey] IC id 20065
<6>[ 7613.019653] cypress_touchkey 16-0020: [Touchkey] flip_mode Enabled
<6>[ 7613.019714] cypress_touchkey 16-0020: glove_mode_enable 0
<6>[ 7613.019744] synaptics_rmi4_i2c 3-0020: cmd_store: Command = clear_cover_mode,3
<6>[ 7613.019775] cypress_touchkey 16-0020: [Touchkey] Enabled flip cover mode.
<6>[ 7613.019775] synaptics_rmi4_i2c 3-0020: synaptics_rmi4_glove_mode_enables: [03]: only clear cover enable
<6>[ 7613.021301] set_freq_limit: 0x2 1890000, min 1890000, max 1890000
<6>[ 7613.119903] synaptics_rmi4_i2c 3-0020: [0][P] 0x06
<6>[ 7613.119964] set_freq_limit: 0x1 1134000, min 1890000, max 1890000
<6>[ 7613.120147] cypress_touchkey 16-0020: glove_mode_enable 0
<6>[ 7613.120178] cypress_touchkey 16-0020: [Touchkey] Enabled flip cover mode.
<6>[ 7613.226928] synaptics_rmi4_i2c 3-0020: [0][R] 0x00 M[9] V[55]
<6>[ 7613.300628] brightness_control brightness_level : 98, candela : 119, auto : 0
<6>[ 7613.318298] set_freq_limit: 0x1 810000, min 1890000, max 1890000
<6>[ 7613.331634] mipi_samsung_disp_backlight 122
<6>[ 7613.331725] brightness_control brightness_level : 119, candela : 143, auto : 0
<6>[ 7613.364898] mipi_samsung_disp_backlight 143
<6>[ 7613.518279] set_freq_limit: 0x1 -1, min 1890000, max 1890000
<6>[ 7613.779937] [NACB:6]<
<6>[ 7613.783965] [CHKRA:6]>
<6>[ 7613.783996] [30518ns]READ :01 15 00 80 03 01 04 00 00 51 00 09 00 14 06 00
<6>[ 7613.784728] Write: 01 0c 00 00 03 01 00 f5 09 4f 00 00 00
<6>[ 7613.795959] [NACB:6]<
<6>[ 7613.799987] [CHKRA:6]>
<6>[ 7613.799987] [0ns]READ :01 21 00 80 03 01 02 f5 09 4f 00 15 00 02 04 00
logcat | grep -i cover
D/SContextService( 765): resetSContextService() : service = Flip Cover Action
V/CAE ( 765): enable(FlipCoverActionRunner.java:109)
I/CAE ( 765): showListenerList(ContextAwareService.java:228) - Listener : and[email protected]44a82300, Service : FLIP_COVER_ACTION
D/SContextService( 765): addSContextService() : service = Flip Cover Action
D/SContextService( 765): Listener : [email protected], Service : Flip Cover Action
D/SContextManager( 765): .registerListener : service=Flip Cover Action
D/CAE ( 765): display(ContextProvider.java:430) - ================= FLIP_COVER_ACTION =================
D/SContextService( 765): sendEvent() : event = Flip Cover Action
D/SContextUpdateContext( 765): reportMessage : Service : Flip Cover Action
D/SContextService( 765): updateSContext() : event = Flip Cover Action
D/InputReader( 765): setFlipCoverTouchEnabled/clearCoverOpen/adjustTouch: 0,0, 0
D/MotionRecognitionService( 765): [ FLIP_COVER_ACTION_CLOSE ]
D/MotionRecognitionService( 765): setFlipCoverTouchEnabled to false
D/InputReader( 765): tsp/touchkey sysfs don't update because setting value is not enabled or clear cover closed, not flip cover.
I/CAE ( 765): showListenerList(ContextAwareService.java:228) - Listener : and[email protected]44a82300, Service : FLIP_COVER_ACTION
D/SContextService( 765): Listener : [email protected], Service : Flip Cover Action
V/CAE ( 765): disable(FlipCoverActionRunner.java:122)
D/SContextService( 765): removeSContextService() : service = Flip Cover Action
D/SContextManager( 765): .unregisterListener : service =Flip Cover Action
D/PhoneStatusBarView( 1129): marqueeStatusBar:24, mClearCover:102
logcat | grep -i cover with cover closed, activating s-view with the power button
V/WindowManager( 765): rotationForOrientationLw(orient=-1, last=0); user=0 sensorRotation=-1 isCoverOpen=false mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false
D/GestureService( 1651): clearCoverChangeReceiver: onReceive - com.samsung.cover.OPEN
D/GestureService( 1651): bClearCoverOpened: false
D/PhoneApp( 1319): receive isCoverOpen : false
V/SmartFaceService( 765): onReceive: com.samsung.cover.OPEN
E/SmartFaceService( 765): mClearCoverOpened: false
D/PowerManagerService( 765): [api] mCoverIntentReceiver : mIsCoverClosed = true
V/WindowManager( 765): rotationForOrientationLw(orient=1, last=0); user=0 sensorRotation=-1 isCoverOpen=false mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false
D/PhoneStatusBarView( 1129): clear cover closed : 102
D/PhoneStatusBarView( 1129): marqueeStatusBar:12, mClearCover:102
I/CAE ( 765): showListenerList(ContextAwareService.java:228) - Listener : and[email protected]43339320, Service : FLIP_COVER_ACTION
D/SContextService( 765): Listener : [email protected], Service : Flip Cover Action
V/CAE ( 765): disable(FlipCoverActionRunner.java:122)
D/SContextService( 765): removeSContextService() : service = Flip Cover Action
D/SContextManager( 765): .unregisterListener : service =Flip Cover Action
D/PhoneStatusBarView( 1129): marqueeStatusBar:6, mClearCover:102
For anyone looking, I haven't looked further for solutions.
Not really wanting to bump this older thread, but looking for a solution to this for my Galaxy S5 for this same issue and haven't found anything...

[Q]Refreshing Zooper from SL4A

I've got a Zooper module that I'm using to control the lights in my apartment. I'm calling SL4A scripts from Zooper that call an API running on a webserver to toggle the lights. I'm using wget with #SEX# in zooper to query the status of the lights off my server.
The problem I'm having is that I can't update the widget after the lights toggle. I did just start playing with it today, but I'm not seeing any means to do this from SL4A.
I'm using Python in SL4A.
Edit: I tried sending an intent to Zooper to set an unused variable from SL4A, though I don't think it's sending right.
Code:
activity = 'org.zooper.zw.action.TASKERVAR'
extras = {}
extras['org.zooper.zw.tasker.var.extra.STRING_VAR'] = '#Ta#'
extras['org.zooper.zw.tasker.var.extra.STRING_TEXT'] = 'a'
extras['org.zooper.zw.tasker.var.extra.INT_VERSION_CODE'] = '1'
packagename = 'org.zooper.zw'
classname = 'org.zooper.zw.tasker.var.extra.BUNDLE'
intent = droid.makeIntent(activity, None, None, extras, None, packagename, classname).result
droid.sendBroadcastIntent(intent)

Categories

Resources