Related
Can anyone tell me what "exactly" HTCColdBoot.exe does on a cold boot? Copies files? Runs provxml's? I'm trying to troubleshoot a homescreen layout issue that only occurs after HTCColdBoot.exe runs on my Cavalier.
Thanks in advance.
This is the best explanation I have seen floating around. It is here in one of the threads, but this excerpt is taken from Willem Jan Hengeveld aka Itsme.
this is a description of all the files which are relevant to coldbooting a windows ce device.
databases, filesystem, and registry are initialized by filesys.exe based on the following config files
default.fdf
this is the registry information, as generated by regcomp.exe from the platform builder.
struct header {
DWORD signature; // 0x1d8374b2
DWORD size; // size of entire file
struct entry entry[];
};
struct entry {
WORD entrysize;
WORD entrytype; // 1 = path, 2 = key,value pair
union {
struct pathentry;
struct keyvalentry;
};
};
struct pathentry {
WORD hive; // 0 = HKCR, 1 = HKCU, 2 = HKLM
WORD pathlen; // in nr of wchars
WORD zero; // always 0 !!! this field is not present in wince4.x
WCHAR path[];
};
struct keyvalentry {
WORD valuetype; // 1 = string, 2 = empty, 3 = binary, 4 = dword, 7 = wbinary
WORD keysize; // in nr of wchars
WORD valuesize; // in bytes
WCHAR key[];
BYTE value[];
};
key/path size is including terminating NUL
the key 'Default' is the '@' default key.
initdb.ini
this initializes all databases
initobj.dat
this initializes the filesystem
calibrate + cut-paste tutorial
the program that does this is 'welcome.exe'.
initobj.dat contains a line that links 'welcome.lnk' into the startup folder. causing it to run as soon as the shell starts up.
welcome.exe deletes this link when it is finished
welcome.lnk contains 'MSWELCOME', which refers to the 'HKLM\SOFTWARE\Microsoft\Shell\Rai\:MSWELCOME' key in the registry, which points to "\Windows\Welcome.exe"
other things that welcome.exe does:
ImmDisableIME(0)
InitRichInkDLL
RegisterWindowMessage("SHWMappNotify")
ShowWindow("Taskbar", 0)
make \My Documents\Templates\*.psi, *.psw, *.xlt, *.pxt ro_hidden
for all in Comm\DefaultConnections, set ras some params
do more stuff to device.
pass 'defaultconfig.xml' to configmanager.dll
call method that does something with 'voicemail.lnk'
SHSipPreference(6)
load imgdecmp.dll
fload, coredll:2043
SHSipPreference(2)
ShowWindow(?, 1)
TouchCalibrate
ClockDll ...
run 'clocknot.exe' at later time.
deletelink
oeminfo.xml
contains public keys for HTC, and microsoft
.rgu files
since pocketpc 2003, many registry settings have moved from default.fdf to .rgu files. these files are processed by regupdater.exe, but I have not yet researched how and when exactly.
AutoConfig.exe
AutoConfig is loaded via a 'startup' item set by initobj.dat.
it locates the operator rom data, and presents a list of supported configurations found in the customtab.dat file.
Click to expand...
Click to collapse
GSLEON3 said:
This is the best explanation I have seen floating around. It is here in one of the threads, but this excerpt is taken from Willem Jan Hengeveld aka Itsme.
Click to expand...
Click to collapse
It's too bad that information (while good!) doesn't help him at all as it has nothing to do with htccoldboot.exe.. Notice the HTC in the file name ?
Htccoldboot.exe processes all provxml's among other things. So you assumed right You could try trimming them one by one, until your issue goes away...
NRGZ28 said:
It's too bad that information (while goog!) doesn't help him at all as it has nothing to do with htccoldboot.exe.. Notice the HTC in the file name ?
Htccoldboot.exe processes all provxml's among other things. So you assumed right You could try trimming them one by one, until your issue goes away...
Click to expand...
Click to collapse
Thats what I figured. Thanks. The main issue is that after about 10 minutes of "idle", you go back to the home screen and it's white saying "The layout cannot be loaded". Sometimes the Start menu will work so I can get back into Settings\Home Screen and change it. When I do, it comes back.
Any idea what can be affecting that? Happens with HTC Sliding Panels, regular Sliding Panels, and both CPR's. Also, regardless of what color "scheme" I choose. It's like there is some background service that times it out!?
Any ideas?
I've asked this elsewhere, but no one has been able to help me. i'm hoping the good people here at XDA will be able to provide some food for thought, if not a full resolution to my issue.
I have a layout.xml set for an activity, which is essentially a RelativeLayout containing several Views including an EditText. Every View is set to layout_width="match_parent" except for 3 Buttons across the bottom, and a single line EditText with a Button on its right. Every View is set to layout_height="wrap_content", but the multiline EditText that I am concerned with uses relative anchors to align the top with a single-line EditText View above it, and the bottom with the Buttons below it.
Everything looks perfectly fine when the Activity launches, but when I touch the multiline EditText, because it is low on the screen, the iME Keyboard completely covers the multiline EditText. For obvious reasons, it is unacceptable to use the soft keyboard to type into a View that is completely covered and not visible.
It's been suggested that I modify the Activity's windowSoftInputMode parameter in the Manifest, but neither adjustPan nor adjustResize creates the desired result. With adjustPan, the keyboard simply covers the Buttons and the multiline EditText. With adjustResize, the keyboard still completely covers the multiline EditText, but the buttons actually shift up as if they are attached to the top of the keyboard.
The issue seems to be that the Views above the multiline EditText cannot be resized--a Date Picker, a Time Picker, a single line EditText (adjacent to a Button) and then the multiline EditText in question.
I can't for the life of me figure out why the EditText completely gets covered despite the fact that it has focus.
Any suggestions/thoughts?
To close this thread up, I found out that minSdkVersion being set below "4" (it was "3" for me) causes some issues with the soft keyboard. I upped it to "4", and voila, it worked perfectly.
hi,
I want to divide my smartphone display into two parts (left/right) . On the left Side i will display a normal 2d Video in a videoview and on the right side i will display an exact copy of the currently running Video from the left.
All approaches that I tried failed.
approach1:
Two VideoViews: one Videoview on the right and one Videoview on the left side.The left Side played normally and the right Side synchronized with mvideoviewright.seekto (mvideoviewleft.getCurrentPo position ()) to the left.
exact synchronization is not possible because in my opinion mvideoviewright.seekto (...) is not working properly.
second problem: you can hear 2 audios from the 2 videofiles
approach2:
copy the left VideoView to a bitmap -> and put the bitmap in an ImageView (right side)
This fails because it is not possible to copy VideoView (SurfaceView) to a Bitmap
Do you have other ideas of how to implement such a thing with sdk ?
MFG
Markus
markusschulze said:
hi,
I want to divide my smartphone display into two parts (left/right) . On the left Side i will display a normal 2d Video in a videoview and on the right side i will display an exact copy of the currently running Video from the left.
All approaches that I tried failed.
approach1:
Two VideoViews: one Videoview on the right and one Videoview on the left side.The left Side played normally and the right Side synchronized with mvideoviewright.seekto (mvideoviewleft.getCurrentPo position ()) to the left.
exact synchronization is not possible because in my opinion mvideoviewright.seekto (...) is not working properly.
second problem: you can hear 2 audios from the 2 videofiles
approach2:
copy the left VideoView to a bitmap -> and put the bitmap in an ImageView (right side)
This fails because it is not possible to copy VideoView (SurfaceView) to a Bitmap
Do you have other ideas of how to implement such a thing with sdk ?
MFG
Markus
Click to expand...
Click to collapse
You will not be able to get them playing exactly synchronized. However, you could mute the audio of one of the views.
Your second approach is too slow, but it would work in theory. You could get it as a bitmap if you draw it to a Canvas using the draw method and then save this as a bitmap. Performance will be very bad!
I have a gridview supporting multiple selection, when user selects one item the action bar shows the classic AcitonMode and the menu items as defined in layout/menu files, every works fine.
Now I want to add a spinner and show it on the left side (like Gallery does) but defining it on the menu.xml it is positioned near other menu items (on right), so how can I create a spinner on left side and menu items on right side like on Gallery app??
I've searched on Gallery source code but it is really complicated
My current menu definition is show below
Code:
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_selection_spinner"
android:actionViewClass="android.widget.Spinner"
android:showAsAction="always"/>
<item
android:id="@+id/action_edit"
android:showAsAction="always"
android:title="@string/edit_title"/>
</menu>
My onPrepareActionMode method
Code:
public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
Spinner selectionSpinner = (Spinner) menu.findItem(
R.id.item_selection_spinner).getActionView();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActionBar()
.getThemedContext(), R.layout.path_spinner_dropdown_item);
selectionSpinner.setAdapter(adapter);
adapter.addAll("One item selected", "Select All");
return true;
}
I'm not sure, but I think you have to use a custom layout instead of your menu-xml file.
Regards
EmptinessFiller said:
I'm not sure, but I think you have to use a custom layout instead of your menu-xml file.
Regards
Click to expand...
Click to collapse
Yes, using setCustomView works fine, thanks
I have a scroll view with table layout of 14 rows and each row is having 2 EditText Fields. I have button which the user clicks and the program computes and prints the answer. The problem is as soon as the user clicks the button and then makes changes in the EditText and again clicks the button and then scrolls up the character entered in changed EditText field disappears but when the user clicks on it it reappers. Please help me to solve this problem. Here is the xml file.
Problem in Detail:-
1. User enters the text in the EditText Fields.
2. User clicks the button.
3. User makes change in one or more EditText Fields.
4. User Clicks the button and then scrolls.
5. The character entered in the last changed EditText Field disappears.
Link To Full XML Code:- http://pastebin.com/G01TcXN1
Link To Full JAVA Code:- http://pastebin.com/utRMQ60B
Please help me to solve this problem.