|
Think of those versions as being deprecated and unsupported. All public devices running those operating systems have received updates to at least 1.5. The Android toolchain no longer supports targeting them, it's not really a matter of Helios supporting them.
There's very little reason to target those versions other than for research.
|
|
|
|
|
I have a WP7 Silverlight application that uses gestures as primary user input. But, also I want to catch keybord clicks on WP7 devices with hardware keyboard (like LG Optimus Quantum).
I added Key_Down event handler to page LayoutRoot, swith my emulator to hardware keyboard (PgDn), but that event is not fired (unless I put TextBox on page, but I do not want that). Anyway, my page has no controls that can receive focus, which means that KeyDown pressed event cannot occur.
Any ideas how can I catch keyboard clicks? Is it possible to use XNA KeyboardState structure somehow in WP7 Silverlight application?
|
|
|
|
|
hi,
here i am coping vb.net code to "detect usb mass storage device when connected" , the code is working in vb.net but not working in window CE application.Please tell me how to write code to detect usb device in Windows Ce Application.
1.
Imports System.Runtime.InteropServices
2.
Public Class Form1
3.
4.
Private Const WM_DEVICECHANGE As Integer = &H219
5.
Private Const DBT_DEVICEARRIVAL As Integer = &H8000
6.
Private Const DBT_DEVTYP_VOLUME As Integer = &H2
7.
8.
'Device information structure
9.
Public Structure DEV_BROADCAST_HDR
10.
Public dbch_size As Int32
11.
Public dbch_devicetype As Int32
12.
Public dbch_reserved As Int32
13.
End Structure
14.
15.
'Volume information Structure
16.
Private Structure DEV_BROADCAST_VOLUME
17.
Public dbcv_size As Int32
18.
Public dbcv_devicetype As Int32
19.
Public dbcv_reserved As Int32
20.
Public dbcv_unitmask As Int32
21.
Public dbcv_flags As Int16
22.
End Structure
23.
24.
'<<<< Function that gets the drive letter from the unit mask >>>>
25.
Private Function GetDriveLetterFromMask(ByRef Unit As Int32)
26.
Dim i As Integer
27.
For i = 0 To 25
28.
If Unit And i Then Exit For
29.
Unit = Unit >> 1
30.
Next
31.
Return Chr(i + 1 + Asc("A"))
32.
End Function
33.
34.
'Override message processing to check for the DEVICECHANGE message
35.
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
36.
If m.Msg = WM_DEVICECHANGE Then
37.
If m.WParam = DBT_DEVICEARRIVAL Then
38.
Dim DeviceInfo As DEV_BROADCAST_HDR
39.
DeviceInfo = Marshal.PtrToStructure(m.LParam, GetType(DEV_BROADCAST_HDR))
40.
If DeviceInfo.dbch_devicetype = DBT_DEVTYP_VOLUME Then
41.
Dim Volume As DEV_BROADCAST_VOLUME
42.
Volume = Marshal.PtrToStructure(m.LParam, GetType(DEV_BROADCAST_VOLUME))
43.
Dim DriveLetter As String = (GetDriveLetterFromMask(Volume.dbcv_unitmask) & ":\")
44.
Dim FileList() As String = IO.Directory.GetFiles(DriveLetter, "test.txt")
45.
If FileList.Count > 0 Then
46.
MessageBox.Show("Found Config File")
47.
'<<<< The test file has been found >>>>
48.
Else
49.
MessageBox.Show("Could not find config file")
50.
'<<<< Test file has not been found >>>>
51.
End If
52.
End If
53.
End If
54.
End If
55.
MyBase.WndProc(m)
56.
End Sub
57.
58.
59.
End Class
Regards,
Ramakrishna.
modified on Wednesday, May 4, 2011 9:26 AM
|
|
|
|
|
Hi
i have to develop a PDA application to make payments through paypal. PDA part of application will be used just for payments and rest of the admin side and other functionality will be done through web application on a computer. should i develop a PDA application and then access internet to make payments or should i develop a PDA specific web application that can be accessed on PDA to make payments.
can we use standard paypal with PDA applications.
Regards
Aijaz
|
|
|
|
|
Hi
i have to start mobile programming from today. i know nothing about mobile programming in .net. please tell me what i need to take care of while developing mobile applications. and suggest some help from where i can start programming. can i develop mobile applications for windows mobiles only in .net or any type of application can be developed with .net. suggest some beginner and expert sites that are helpful for the development of mobile applications.
Thanks a lot
|
|
|
|
|
S_Aijaz1 wrote: i have to start mobile programming from today. i know nothing about mobile programming in .net.
Not a good starting point. Try Google and search for "mobile .NET wp7 android". That should give you enough to get started.
[edit]I just discovered I answered this same question from you a month ago, what have you been doing since then?[/edit]
The best things in life are not things.
|
|
|
|
|
actually a priority project came that time and was working on that. now again i have to start working on mobile apps
|
|
|
|
|
Well I have twice given you some pointers, so the rest should be easy.
The best things in life are not things.
|
|
|
|
|
|
hi for all
<b>(SORRY FOR MY BAD ENGLISH)</b>
i am trying to rereceive a number from a Servlet
i send the request from J2ME using HttpConnection to a servlet , then a servlet make a session to count the number of times
i send the requests
and the servlet send back to me that number
but in HttpConnection i can send just one times terminated after that third states
so every time i send the request the number i received is 1
this is the code in J2ME
<pre>
HttpConnection hc = null;
DataInputStream in = null;
DataOutputStream out = null;
String UrlServer = "http://localhost:8080/DeleteWebApplication/RomaServlet";
StringBuffer sb = new StringBuffer();
private void sendGetContactsRequest() {
try {
UrlServer = "http://localhost:8080/Server2/SessionServlet";
sb = new StringBuffer();
hc = (HttpConnection) Connector.open(UrlServer, Connector.READ_WRITE);
hc.setRequestMethod(HttpConnection.POST);
out = hc.openDataOutputStream();
String getContacts = "getContacts";
byte[] getContactsBytes = getContacts.getBytes();
for (int i = 0; i < getContactsBytes.length; i++) {
out.writeByte(getContactsBytes[i]);
}
in = hc.openDataInputStream();
long len = hc.getLength();
int ch;
if (len != -1) {
for (int i = 0; i < len; i++) {
if ((ch = in.read()) != -1) {
sb.append((char) ch);
}
}
in.close();
hc.close();
out.flush();
out.close();
} else {
sb.append("ERRORR R ");
}
System.out.println(sb.toString());
} catch (IOException ex) {
ex.printStackTrace();
}
}
</pre>
don't care about all the code just about send and receive
this is the code in my servlet
<pre>
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
System.out.println("he totti asdf asdf asdf asdf ");
HttpSession session=request.getSession(false);
if(session==null){
session=request.getSession(true);
Integer times=new Integer(0);
session.setAttribute("count", times);
}
Integer times=(Integer) session.getAttribute("count");
times=new Integer(times.intValue()+1);
session.setAttribute("count", times);
response.getWriter().println("the number of times is "+times.intValue());
}
</pre>
i believe that a session is the best solution but i don't know how to use it
plz help me
ty very much
|
|
|
|
|
ty very much
i solved the problem using a third class with a STATIC variables
|
|
|
|
|
Dear Friends;
I have a database and I want to insert Cyrillic and utf-8 characters, however all Cyrillic characters are displayed as '?'.
How can I handle it?
Thank You.
|
|
|
|
|
This has nothing to do with your database, but the way you are displaying results. check your character set and font settings.
The best things in life are not things.
|
|
|
|
|
I may re-create database,
so I found from internet and will try
CREATE DATABASE dbName COLLATE Cyrillic_General_CI_AI
guess that will be succeed.
|
|
|
|
|
public static Intent getIntentForHome(Activity paramActivity, int paramInt)
{
if ((paramActivity == null) || (paramInt == -1));
Intent localIntent1;
for (Object localObject = null; ; localObject = localIntent1)
{
return localObject;
localIntent1 = new Intent(paramActivity, HomesMapActivity.class);
Intent localIntent2 = localIntent1.setAction("android.intent.action.VIEW");
Intent localIntent3 = localIntent1.putExtra("android.intent.extra.TEXT", paramInt);
}
}
the above method return the following error or warning:
the error is on "return localObject;"
Multiple markers at this line
- Type mismatch: cannot convert from Object
to Intent
- Type mismatch: cannot convert from Object
to Intent
|
|
|
|
|
When I reviewed your code, I found the following things. I used line numbers for reference.
3: You close your if with a ; this will render your if useless. Change it to using curly braces.
5: You use a for loop with no clear start condition, end condition.
7: The first line of the for loop returns localObject which is of type Object and is null, this is where your error comes from. You return an Object but the signature of the Method says you will return an Intent.
9, 10, 11: Lines are useless as there is no way for the program to get to this code.
Patrick Kalkman
My latest article: Digest Authentication on WCF
My Blog: SemanticArchitecture.net
modified on Thursday, April 21, 2011 3:56 PM
|
|
|
|
|
I agree with Patrick.
In the end of if statement replace ";" with "{"
Your for loop, initialize localObject of type Object = null, NO END condition and assign localObject = localIntent
Their is no meaning for this loop as you are returning on first run, you can remove the for loop and work normally. Yet with your problem, replace return statement after Intent localIntent3... and typecast it :
return (Intent)localObject;
This will free you from the error and if you code is proper, then will receive proper results.
Hope this helps.
Thanks & Regards,
|
|
|
|
|
Hello everybody,
i'm working on a small console application for Windows CE 5.0
Is there a possibility to perform a getch()?
Because each key-stroke must be validated with the Return-Key to store the input into the stdin-buffer.
So I need to analyse a key-stroke, without waiting for the Return.
Is it also possible to perform a Clear-Screen on a Win CE console application or to set the position of the cursor?
Or is it really impossible?
Big thanks for any help
Greetings
|
|
|
|
|
|
Hello,
I'm programming an application for use on Mobile Data Terminals. A customer is using the MC95 from Motorola with Windows ME 6.5 on it.
Strangly the camera is not respondive when I try to access it via coding.
I've tried it it with the SHCameraCapture-Function:
SHCAMERACAPTURE scc;
SecureZeroMemory(&scc, sizeof(scc));
scc.cbSize = sizeof(scc);
scc.hwndOwner = NULL;
scc.pszInitialDir = NULL;
scc.pszDefaultFileName = NULL;
scc.pszTitle = NULL;
scc.StillQuality = CAMERACAPTURE_STILLQUALITY_DEFAULT;
scc.Mode = CAMERACAPTURE_MODE_STILL;
res = SHCameraCapture( &scc );
as well as with the ICaptureGraphBuilder2 interface:
LOG('I', "Camera::LoadDriver. Starting");
GUID guidCamera = { 0xCB998A05, 0x122C, 0x4166, 0x84, 0x6A,
0x93, 0x3E, 0x4D, 0x7E, 0x3C, 0x86 };
HRESULT res = 0;
HANDLE hFind = NULL;
DEVMGR_DEVICE_INFORMATION pdi;
DEVMGR_DEVICE_INFORMATION pdi2;
IPersistPropertyBag* pPropBag = NULL;
CPropertyBag propBag;
CameraErrorLog* pErrorLog = new CameraErrorLog();
pdi.dwSize = sizeof(DEVMGR_DEVICE_INFORMATION);
hFind = FindFirstDevice(DeviceSearchByGuid,&guidCamera,&pdi);
LOG('I', "Camera::LoadDriver. Calling FindFirstDevice");
if (hFind == INVALID_HANDLE_VALUE || pdi.hDevice == NULL)
{
LOG('I', "Camera::LoadDriver. Calling FindFirstDevice failed");
res = HRESULT_FROM_WIN32(GetLastError());
LOG('I', "Camera::LoadDriver. Calling FindFirstDevice HRESULT = (%d)", res);
goto CLEANUP;
}
LOG('I', "Camera::LoadDriver. Calling FindNextDevice");
if(FindNextDevice(hFind, &pdi2))
{
propBag.driverName = SysAllocString(pdi2.szLegacyName);
}
else
{
propBag.driverName = SysAllocString(pdi.szLegacyName);
}
CHK(pFilter->QueryInterface(IID_IPersistPropertyBag,(VOID**)&pPropBag));
LOG('I', "Camera::LoadDriver. QueryInterface IID_IPersistPropertyBag");
res = pPropBag->Load(&propBag, pErrorLog);
if(FAILED(res))
{
LOG( 'E', "Camera::LoadDriver pPropBag->Load faile HRESULT = (%x)", res );
goto CLEANUP;
}
LOG('I', "Camera::LoadDriver. pPropBag Load");
CLEANUP:
FindClose(hFind);
RELEASE(pPropBag);
return res;
return S_OK;
In the first case SHCameraCapture is return the value 80070037 indicating an error (FILE_NOT_FOUND/DEV_NOT_FOUND?).
In the second case pPropBag->Load is returning the value 80070037.
But if I'm using the standard Pictures&Videos-Application the camera is working.
When I'm installing my application on a PSION Ikön with Windows ME 6.1 the camera capture with second (which is the standard way I'm using) is working.
Our Development Enviroment is embedded Visual C++ 4.0 with the Mobile SDK 6.
I'm new to the mobile development and now reaching my limits.
Has anyone an idea what's going on?
Zynismus ist der geglückte Versuch die Welt zu verstehen.
Zwei Dinge sind unendlich. Das Universium und die menschliche Dummheit. Nur beim ersteren bin ich mir nicht sicher.
Albert Einstein
|
|
|
|
|
I have same problem.
The reason is that camera and infrared scanner use the same port in Motorola MC95/MC75. if you want to use the camera you need to deactivate DataWedge with DataWedgeAPI.
When you use camera manually, OS 6.5 deactivates it automatically, and re-activate it when you out of camera application.
Note that if you enter in media window, infrared scanner is deactivated (scanner buttonn does nothing)
|
|
|
|
|
Hi All,
I am trying to make a application(java) in which
1.I required to make a read message into unread message
2.we can say that to hold a incoming message
If anyone have related information or view that related to above mention problem then please reply
Thanks & Regard
Zakir Hussain
|
|
|
|
|
|
Hi everyone,
I am trying to consume web service having complex data type as request and response....
I have used ksoap2 stub generator for android.Stub generated is giving error for org.apache.axis and javax.xml.rpc
Pls help in this..
|
|
|
|
|
Hello,
i am having lots of problems with previewing imdb trailer video on my android phone. I tryed embbed webview(flash), but as i figured out, its only supported on android 2.2+(froyo). I am working for 2.1. So i was wondering if anyone has idea where to get link from searched video by title, so i could put it in stream and play it with video player on android phone?
Best regards
|
|
|
|