Ril and smartphone - General Topics

Hi,
I follow every comment present in this form about using ril.dll for accessing cellID and so on.
I still have a problem with RIL. All compilation process work well but when I start my application on Phone (MPX220) an error responce occurs...
Thanks

Hi,
what error exactly?

error: 80004005

Using the code present in itsutils from xda-developpers.com after calling RIL_Initialize....

Hi,
Unfortunately, 80004005 is defined as 'Unspecified error' (E_FAIL), which doesn't help much. However, given that you are using a Smartphone, the probable cause is that you are using a Priviledged function. Smartphones require applications to be signed in order to use priviledged functions.
For further information about this, see here.

Thanks!! now it seem works even though some other error code 80004001 or 80070057...

Hi,
Error 800004001 is 'Not implemented error' (E_NOTIMPL) which means that a function you are trying to use is not supported by the service provider.
Error 80070057 is 'One or more arguments are not valid error' (E_INVALIDARG) which means that either an argument you are providing to a function is incorrect, or that you have not specified the valid argument specifiers (dwParams) required by some structures used in some functions.
A good place to look for what errors mean is here

thanks a lot...
One more question:
- How can I get the information that Ril_CellTowerInfo should be able to provide?
on my phone exist one process "tstutil" that is the engineering mode menu...

Related

Installing MIDlet on Samsung Omnia

Hi, I recently bought an Omnia and decided I would have a go at writting my own JavaME applications for it.
The application that I have in mind requires access to the file system and, in the future, the ability to make HTTP connections. Since these parts of the API are restricted I added file read and write privilages to the JAD file and copied the JAD and JAR to my phone. When I tried to install the application it gave me the error message "error 910: application authorization failed".
I guessed the error was due to the fact that the code wasn't signed. I don't want to have to go to the expense of getting a real trusted certificate for a piece of code I will probably never release so I've set up my own root CA and installed the CA certificate on the phone. I then created my own code signing certificate and signed my applicaiton with it*. I now get the error message:
"The authentication of certificate is failed. Contact your application provider to correct this situation"
when I try to install my application. I think, therefore, that the code is signed but for some reason the trust chain isn't working. I can't tell if my code signing certificate is the problem or whether the phone isn't recognizing my CA certificate. The CA certificate shows up fine in the Certificates application (Settings > System > Certificates).
Is what I am trying to do even possible on the Omnia or is is too locked down? I have to assume it is possible as I can't believe that every devopler that wants to test their MIDlet idea is buying a certificate. Out of interest does anyone know what KVM the Omnia is using?
One option I haven't tried yet is installing JBed as described in this post (http://forum.vodafone.co.uk/index.php?showtopic=8896). I'm not exactly thrilled by this idea though as I have a nicely working (recently flashed to the latest version) phone at the moment.
Any help greatly appreciated (and if I get it working I'll write it up so others can use the information).
* Personal CA Setup Etc...
http://browndrf.blogspot.com/
http://www.mobilefish.com/tutorials/java/j...de_keytool.html
http://www.mobilefish.com/developer/openss...gn_request.html
As a follow up. Perhaps it's not possible to install a MIDlet using a self signed certificate but what about the posibility of turning the security checking off for the MIDlet manager on the Omnia.
There is a menu option for java settings which doesn't provide any useful settings (just something about the backlight) but there is also an appilcation menu which has an entry called permissions. The permissions options is always greyed out though. I wonder if this could be turned on via the registry or somthing?
Not sure whether it works in your case (haven't tested this on the Omnia): see my related bible: http://forum.xda-developers.com/showthread.php?t=339579
Cheers Menneisyys, great article btw, I had a read of it before posting. From what I've read most phones seem have some way of getting unsigned MIDlets running fairly eaisly. Looks like this phone is the exception to the rule.
I think I'll have to just give up and install JBed unless someone can come up with any ideas. Your article seems to imply it's a pretty simple and painless process to have more than one MIDlet manager running on the same phone (before reading the article I assumed you could only have one on a phone).
I've been a Java developer for years (server side) but this is my first foray into JavaME, I should have guessed that the security system would make it more trouble that it was worth!

SQL CE 3.5 - First App

I'm working on developing my first WM 6 App using SQL CE 3.5 . I'm sure there are other apps out there that do what mine does, but I'm just wanting the experience of developing it.
I'm working on a fairly simple app to track gas mileage and such. But, for some reason, whenever I debug it, the app can't seem to find the database file. I get an error saying: "The database file cannot be found. Check the path to the database. [ Data Source = .\GasTrackerDB.sdf ]"
I can browse with file explorer on the device and find the database in the same directory as the deployed application, so I'm not really sure where to go from here..
I'm doing everything through the IDE, so all of the code is generated for me to connect to the database.
Anybody experienced enough to help me troubleshoot this stupid problem?
i have been looking for an app that does the same thing as the one you are working on.
when it is finished please pm me. i wish i knew more programing, if i did i would help you.
Try
Code:
string database = string.Format(@"{0}\GasTrackerDB.sdf", GetApplicationPath());
public static string GetApplicationPath()
{
string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
return path;
}
I did figure it out after messing around with it. I think it has to do with the way VS2008 deploys the app on the emulator...
When I hard-code the path to the database file, it works. So, my app will just have to be installed on the local device and not the SD card
Don't hard-code the path! The method GetApplicationPath() returns the application path. This is also important when installing on OS with different language.
heliosdev said:
Don't hard-code the path! The method GetApplicationPath() returns the application path. This is also important when installing on OS with different language.
Click to expand...
Click to collapse
How is that possible when the Connection String was generated by the IDE? Here's what the .xsd says:
Code:
<Connection ConnectionStringObject="Data Source=\program files\gastracker\GasTrackerDB.sdf" IsAppSettingsProperty="false" Modifier="Assembly" Name="GasTrackerDBConnectionString" ParameterPrefix="@" Provider="Microsoft.SqlServerCe.Client.3.5" />
On application start create the connection string "Data Source = " + database (like post #3)
This connection string can then be passed wherever you need to connect to the database.
That's the problem.. the IDE created all the stuff for the connection string and I don't know enough about it to create everything needed manually.
How do you connect to the db? What are you calling for retrieving data from db? How do you insert data to the db? All these actions need an object which somehow knows the connectionstring. And this string can/must be changed.
Hmm.. That doesn't seem to be a valid function name. I'm using .NET CF 3.5 .I'll keep looking.
Well, I wrote my own function to get the execution path, but I still can't figure out how to modify the connection string at runtime.
This crap is ridiculous. I don't understand why it doesn't "just work" when I let the IDE do everything...
Well, I FINALLY made it work.. i ended up going through the xsd file and changing all the code that creates queries. I had to replace every instance of:
Code:
CType(Me._commandCollection(0), Global.System.Data.SqlServerCe.SqlCeCommand).Connection = New Global.System.Data.SqlServerCe.SqlCeConnection("Data Source=.\GasTrackerDB.sdf;")
With:
Code:
CType(Me._commandCollection(0), Global.System.Data.SqlServerCe.SqlCeCommand).Connection = New Global.System.Data.SqlServerCe.SqlCeConnection("Data Source=" & GetAppPath() & "\GasTrackerDB.sdf;")
That had to be done for every one of my queries created through the designer. Thankfully I only had 5!
Great! Keep in mind that changes in generated code can get lost when the ide is recreating the code. Just keep an eye on it when doing changes in this area!
heliosdev said:
Great! Keep in mind that changes in generated code can get lost when the ide is recreating the code. Just keep an eye on it when doing changes in this area!
Click to expand...
Click to collapse
Yeah, I already ran into that one If it gets to be too much of a pain, I'll see if I can create some sort of compile time script to do a find and replace.. But I haven't spent enough time going back and fixing it yet
go to
http://www.connectionstrings.com/
They have everything you need to build your connection string. From my experience, it's okay to let the IDE build everything EXCEPT the connection string....

[Q] Stack over flow error in Android

Hi All,
In calculator application while doing some monkey testing I got this force close.
Can any one tell me what is the problem and what is the solution for this...
Most likely a programmer error and there is nothing you can really do without having the source code, changing the code piece causing it and recompiling the file.
If you could print some piece of code and, more, the error log, we could help you.

[Q] Error Message

Hello Fellow Forum members
i am getting a error message in Advanced Config and other apps like this
when i open it i get a message saying Win33Exception.
what does this mean and how can i fix it
Did you do any kind of unlock on the device?
If not, i suggest the InterOp Unlock,
visit the site http://windowsphonehacker.com/windowbreak On your mobile device.
Umm... he couldn't even have installed the XAP without interop-unlock, unless he modified it prior to deploying.
OP, I suggest you go look on the TouchXperience forum. Make sure you have the latest version, and see if other people have had and fixed the same problem. I'm pretty sure the author of the TouchXperience apps (including Advanced Config) - goes by schaps - is a member of XDA-Devs, but he's not active over here.
For what it's worth, I haven't seen that particular error out of Advanced Config in a really long time. I remember it used to happen, but I don't recall why, or when it stopped. Odds are, your version is just out of date. Without more info (and schaps didn't seem inclined to include useful error messges in his apps) I can't help you more.

[Q] some question about Heathcliff74 's native code tutorial

i believe many people have read the tutorial about developing homebrew apps by Heathcliff74.But did every sussess in doing that. In fact,i failed.
i failed in this step in his article.
INative MyNativeCodeInstance = (INative)new CNative();
however,the return value of the Microsoft.Phone.InteropServices.ComBridge.RegisterComDll if 0 whicn means it success.but when his code running here the app will exits at once even i use try{}catch{}.
soem info of my device:HTC schubert t9292
OS:winphone 7.5
does anyone have the same probelm with me?
@Heathcliff74
how do you think why somebody failed when following these steps.now ,i think it may caused by my device.
If instantiating the COM object is causing a crash, the most likely problem is a bug in your object's definition. I assume you have the WPInteropManifest and all? In that case, it's almost certainly a problem in your native code.
However, without seeing your code, I can't tell you what the problem is.

Categories

Resources