Related
This is hopefully painfully easy for experienced developers on here, but I've googled till my fingers bled and have not been able to find a suitable answer.
How do I force the Titanium menu in WM6.5 to refresh... i.e. pick up new data from the Windows registry?
For the old "Today" screen, advice seems to be use the Send Message command to broadbast an INI change to all open Windows:
Code:
Public Shared HWND_BROADCAST As IntPtr = IntPtr.op_Explicit(&HFFFF)
Public Const WM_WININICHANGE = &H1A
---------------------------------------
ret = SendMessage(HWND_BROADCAST, WM_WININICHANGE, 252, 0)
But this doesn't seem to be working for Titanium.
Anyone got any ideas?
I'm just using the refresh Titanium.exe which can be found in Twolf's Multiplugin Cab found here: http://forum.xda-developers.com/showthread.php?p=3906994
Thanks for the link.
Couldn't see any exes in the cab, just what I assume are mortscripts. Do you write you apps in .NET or in mortscript? If the former, how do you "shell" the script from within your program?
digital_elysium said:
Thanks for the link.
Couldn't see any exes in the cab, just what I assume are mortscripts. Do you write you apps in .NET or in mortscript? If the former, how do you "shell" the script from within your program?
Click to expand...
Click to collapse
Me & Twolf, use mortscript, the plugin you see there is by Twolf.
Owh yh, it probably is the Refresh Titanium.mscr, which i ment, there's just a link made in the start menu folder. Refresh Titanium will refresh the today screen...
To use it in another mortscript file, just use: Run(\Program Files\...\Refresh Titanium.mscr) where ... stands for the folder where you put it in...
Maybe a bit off topic but does somone know what is the command to disable and enable (not refresh) the today screen in wm6.5? I need it for use in a mort script.
claus1953 said:
Maybe a bit off topic but does somone know what is the command to disable and enable (not refresh) the today screen in wm6.5? I need it for use in a mort script.
Click to expand...
Click to collapse
I don't really know, but i wonder why Twolf uses double RefreshToday in his mscr. So maybe just one time will disable it?:s not sure.
---edit---
i figured it out for you claus...
So first write 0 (for disable) to: HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\"Windows Default":Enabled
Then RedrawToday
Now today screen will be empty and you can do whatever you want...
larbke666 said:
I don't really know, but i wonder why Twolf uses double RefreshToday in his mscr. So maybe just one time will disable it?:s not sure.
---edit---
i figured it out for you claus...
So first write 0 (for disable) to: HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\"Windows Default":Enabled
Then RedrawToday
Now today screen will be empty and you can do whatever you want...
Click to expand...
Click to collapse
Thanks a lot, it worked
Sorry, only read this now.
I used to use the refresh.exe made by a forum menber (I have no idea who... ).
Now Im using only the today refresh option of Mortscript that is simply:
Code:
RedrawToday
claus1953 said:
Thanks a lot, it worked
Click to expand...
Click to collapse
Hi,
I don't know much about mortscript, I am looking for one that will reload Windows Default after I change the cpr ( I hope this is what you are talking about )
In case you dont have it yet...
Thanks Twolf, my life is easier now
digital_elysium said:
This is hopefully painfully easy for experienced developers on here, but I've googled till my fingers bled and have not been able to find a suitable answer.
How do I force the Titanium menu in WM6.5 to refresh... i.e. pick up new data from the Windows registry?
For the old "Today" screen, advice seems to be use the Send Message command to broadbast an INI change to all open Windows:
Code:
Public Shared HWND_BROADCAST As IntPtr = IntPtr.op_Explicit(&HFFFF)
Public Const WM_WININICHANGE = &H1A
---------------------------------------
ret = SendMessage(HWND_BROADCAST, WM_WININICHANGE, 252, 0)
But this doesn't seem to be working for Titanium.
Anyone got any ideas?
Click to expand...
Click to collapse
I don't know if you still want to do this in .net but here is the working code:
Declare Function SendMessage Lib "coredll.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As IntPtr
Declare Function GetDesktopWindow Lib "coredll.dll" () As IntPtr
Private Const WM_WININICHANGE As Long = &H1A ' 0x1a = 26 ; &HF2 = 242
SendMessage(GetDesktopWindow(), WM_WININICHANGE, &HF2, 0)
Click to expand...
Click to collapse
have fun!
I downloaded some games and apps from samsungapps site a few days ago, now when i try to install them to my wave via kies it gives me error "Network Error: The server is temporarily unable to carry out your request due to maintanence downtime or capacity issues".
The apps are saved in my computer i dont why Kies giving me this error, another error i am getting while accessing my computer via Kies like opening video files to convert of images to transfer to my Wave when i click open it says "Error: Unhandled Exception" and it gives a list of errors which i am including, i bought Wave today but i cant do anything
Code:
2010-08-06 19:30:57
Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException
Stack Trace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
#####1's Inner Exception#####
The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
System.ApplicationException
Stack Trace:
at System.Threading.ThreadPool.BindIOCompletionCallbackNative(IntPtr fileHandle)
at System.Threading.ThreadPool.BindHandle(SafeHandle osHandle)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
at MSC.Thunder.Services.FileServiceImpl.LocalFolder_.FileWatcherStart()
at MSC.Thunder.Services.FileServiceImpl.LocalFolder_.set_FileInfo(IFileInfo_ value)
at MSC.Thunder.Services.FileServiceImpl.LocalDrive_.Init(DriveInfo d)
at MSC.Thunder.Services.FileServiceImpl.FileService_.CreateLocalDriveNode(String name)
at MSC.Thunder.Services.FileServiceImpl.MyComputer_.ListChildThreadFunc(Object state)
at MSC.Thunder.Services.FileServiceImpl.FileJob_.Begin()
at MSC.Thunder.Services.FileServiceImpl.Desktop_.ListChildThreadFunc(Object state)
at MSC.Thunder.Services.FileServiceImpl.FileJob_.Begin()
at MSC.Thunder.Services.FileServiceImpl.FileService_.RootFolder(IDeviceConnection connection)
at MSC.Thunder.Services.FileServiceImpl.FileService_.GetDrive(IDeviceConnection connection, String fullPath)
at MSC.Thunder.Services.FileServiceImpl.FileService_.GetFileSystemObject(IDeviceConnection connection, String fullPath, Boolean isChildListingIgnore)
at MSC.Thunder.Services.FileServiceImpl.FileService_.GetFileSystemObject(IDeviceConnection connection, String fullPath)
at MSC.Thunder.UI.Common.FileWindow.SetCurrentFolder(String fullPath, Dictionary`2 fileFilterDictionary, Boolean addHistory)
at MSC.Thunder.UI.Common.FileWindow.<OnLoaded>b__0()
Code:
target thumb C: charger <= system/core/charger/charger.c
system/core/charger/charger.c: In function 'wait_next_event':
system/core/charger/charger.c:888: warning: implicit declaration of function 'ev_wait'
system/core/charger/charger.c:890: warning: implicit declaration of function 'ev_dispatch'
system/core/charger/charger.c: In function 'input_callback':
system/core/charger/charger.c:899: warning: implicit declaration of function 'ev_get_input'
system/core/charger/charger.c: In function 'main':
system/core/charger/charger.c:946: error: too many arguments to function 'ev_init'
system/core/charger/charger.c:951: warning: implicit declaration of function 'ev_add_fd'
system/core/charger/charger.c:975: warning: implicit declaration of function 'ev_sync_key_state'
I'm compiling CM9 and nearly get done with the build when this shows up. Obviously I am missing something because no one else is having a problem compiling for their devices.
Any ideas? I'm trying to declare them in minui.h and see if that helps at all
for example
Code:
int ev_add_fd(void)
and that didn't work so trying something else.
Figured it out.
giveen said:
Figured it out.
Click to expand...
Click to collapse
What did you do to fix it? I started getting this error yesterday.
When will there be an AirMirror support for Linux?
Perhaps we can start deconstructing the windows app and then see if we can bring that to wine
---------- Post added at 08:14 PM ---------- Previous post was at 08:13 PM ----------
Perhaps we can start deconstructing the windows app and then see if we can bring that to wine. The feature request has been open for a while. I'd be interested to know how the mirroring works. I would imagine alot of root users run linux
jago25_98 said:
Perhaps we can start deconstructing the windows app and then see if we can bring that to wine
---------- Post added at 08:14 PM ---------- Previous post was at 08:13 PM ----------
Perhaps we can start deconstructing the windows app and then see if we can bring that to wine. The feature request has been open for a while. I'd be interested to know how the mirroring works. I would imagine alot of root users run linux
Click to expand...
Click to collapse
Very useful feature! Native Linux support will be great. Does anyone tried to run it under Wine?
UPD.
Tried to run under Wine 1.7.30 - does not start after installation:
Code:
$ wine AirDroid.exe
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"configSections" in state 2
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"sectionGroup" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"section" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"system.net" in state 2
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"settings" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"httpWebRequest" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"servicePointManager" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"connectionManagement" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"applicationSettings" in state 2
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"iTong.My.MySettings" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
Unknown heap type: #GUlD
Unknown heap type: #Blop
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for <Module> ---> System.InvalidProgramException: Invalid IL code in gRpfcjfJ9IflOON1qqa.EVhIvFfNiVUIg77JM3y:gUqkvCGVHdK (): IL_002b: brtrue IL_3894
at <Module>..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for <Module> ---> System.InvalidProgramException: Invalid IL code in gRpfcjfJ9IflOON1qqa.EVhIvFfNiVUIg77JM3y:gUqkvCGVHdK (): IL_002b: brtrue IL_3894
at <Module>..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
expecting too ...
Still no Linux support...
Still looking forward for some Linux support!
Airdroid client om wine
It looks like the desktop client is a Mono application.
I will make a 32-bit prefix in wine with dotnet45 and try it out.
Run in wine
I have got it to start in wine after installing in a 32-bit prefix with dotnet42.
However it is slow and barly usable.
But it it a step on the way
I'll post my progress here.
Hello everybody,
I've been watching thenewboston's Android App Development series on youtube and its been pretty helpful, but I've had several situations where I'll get some sort of error and I have no idea what to do. I've tried searching forums, downloading more components with jdk, all to no avail.
My most recent issue is upon initiating a new activity, I get an error saying RelativeLayout needs LayoutHeight and LayoutWidth to be defined; but they are defined in the xml file.
I'm posting from my phone right now, tomorrow I'll follow up with a screen shot.
It really gets me down when I'm trying to be excited about learning something new and on my own, but I experience so many road bumps that I have no idea how to fix or solve. :crying:
Details of the issue
Error Displayed:
Rendering Problems NOTE: One or more layouts are missing the layout_width or layout_height attributes. These are required in most layouts. <RelativeLayout> does not set the required layout_width attribute: ****Set to wrap_content, Set to match_parent <RelativeLayout> does not set the required layout_height attribute: ****Set to wrap_content, Set to match_parent Or: Automatically add all missing attributes
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns="http//schemasandroidcom/apk/res/android"
xmlns:app="http//schemasandroidcom/apk/res-auto"
xmlns:tools="http//schemasandroidcom/tools"
xmlns:android="AndroidDomInspection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
androidaddingBottom="@dimen/activity_vertical_margin"
androidaddingTop="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="comeric522.facebook.example2.MainActivity"
tools:showIn="@layout/activity_main" />
</RelativeLayout>
Other notes: automatically add all missing attributes doesn't work; wrap_content or match_parent doesn't work either.
'.' and ':' removed in between schemasandroidcom because I'm getting flagged for spam
I'm also getting these errors on the xml, and I don't understand why; I haven't done anything yet it's system generated:
Element RelativeLayout doesn't have required attribute layout_height Element RelativeLayout doesn't have required attribute layout_width 'layout_height' attribute should be defined less... (Ctrl+F1)
Validates resource references inside Android XML files.
'layout_width' attribute should be defined less... (Ctrl+F1)
Validates resource references inside Android XML files.