The DllImport Project (+/also C++ Wrapper) [Mango Support] - Windows Phone 7

HI Fiinix,
I m using your CSharp_DllImport in Developer unlock MANGO, calling from my background agent, i m running an instance which ll call your methods like
Phone.Search,OpenSearch() ..not opening search but i can run the same from normal WindowsPhone App ..
Please help me on this ..am i missing any dlls need to add..as i following u r s thread http://forum.xda-developers.com/showthread.php?t=1006331 and doing all actions mentioned.
And also i removed interopservices capabilities from WMAppmanifest.xml also
And i try to use your Postmessage
var o = DllImportCaller.lib.IntQuadCall("coredll", "PostMessageW",
0xffff,
(int)WM.WM_KEYDOWN,
(int)Phone.KeyboardHook.PhysicalKeys.BackKey,
0);
var o2 = DllImportCaller.lib.IntQuadCall("coredll", "PostMessageW",
0xffff,
(int)WM.WM_KEYUP,
(int)Phone.KeyboardHook.PhysicalKeys.BackKey,
0);
Basically i m trying to simulate Back,Home,Search key simulations on Windows Phone using u r DLL on WindowsPhone 7.5 mango

Related

[Q] Need java emulator for gingerbread 2.3.3

Hi friend anyone here who has java emulator for gingerbread 2.3.3???
Java emulator means a software who can run java apps on andorid 2.3.3
Ans will be most apriciate.
Thanx bfore
Sorry but i dont understand your question.
Anycase do you mean a virtual machine with 2.3.3?
masterbondfv said:
Sorry but i dont understand your question.
Anycase do you mean a virtual machine with 2.3.3?
Click to expand...
Click to collapse
Master m asking for some software who can able to run java apps on android phone. And m using gingerbread 2.3.3
Can u help me plz?
Maybe not understanding right.
Android apps are wrote in java code.
What you cant do is run compiled java code with jre into android. You have to compile it to dalvik virtual machine (Android's java virtual machine) whith the following software:
Cos of i cant post urls will sent by private message
masterbondfv said:
Maybe not understanding right.
Android apps are wrote in java code.
What you cant do is run compiled java code with jre into android. You have to compile it to dalvik virtual machine (Android's java virtual machine) whith the following software:
Cos of i cant post urls will sent by private message
Click to expand...
Click to collapse
Buddy u cant got it java apps means apps which is from java os in .jar extention.
I wanna run them to android OS so need a software or emulator who can run .jar files on android phones. This mater similar like game boid emulator where we can play .gba apps on android and here i wanna play .jar apps on android. Now got it?
PrajapatiKetan said:
Buddy u cant got it java apps means apps which is from java os in .jar extention.
I wanna run them to android OS so need a software or emulator who can run .jar files on android phones. This mater similar like game boid emulator where we can play .gba apps on android and here i wanna play .jar apps on android. Now got it?
Click to expand...
Click to collapse
Apps need to be made into .apks to be run inside android, .jars are for the framework so apps have a way to be run, you can't run them
Sent from my ice cream powered Nexus S
Okey now I got it. I've done it days before.
Here it goes:
1º compile your proyect in jre
2º dx --dex --output=<outputdir>\<name>.jar <projectpath>\bin\
3º push <name>.jar into /sdcard
4º use DexClassLoader class in android to get your code by reflection.
Edit: you can use DexFile to open your <name.jar>
I dont have now my code but tomorrow post some lines to do it.
masterbondfv said:
Okey now I got it. I've done it days before.
Here it goes:
1º compile your proyect in jre
2º dx --dex --output=\.jar \bin\
3º push .jar into /sdcard
4º use DexClassLoader class in android to get your code by reflection.
Edit: you can use DexFile to open your
I dont have now my code but tomorrow post some lines to do it.
Click to expand...
Click to collapse
Ohh
What is it buddy? I need software to run jar apps dat's it and wht u giving me this?
I dont know any app which do it.
But with this you can make your app to invoke code from a jar, of course you have to know methods in it.
For J2me, that is Java microedition, once there was j2me runner, but I can't file it any longer.
For 'real' jar, i. e. for Java standard edition files, I think the only solution is the one posted above.
masterbondfv said:
I dont know any app which do it.
But with this you can make your app to invoke code from a jar, of course you have to know methods in it.
Click to expand...
Click to collapse
Ohk no problem but can u tel me in which software we can make this app? Or if u have can u plz mail me?
DarkhShadow said:
Apps need to be made into .apks to be run inside android, .jars are for the framework so apps have a way to be run, you can't run them
Sent from my ice cream powered Nexus S
Click to expand...
Click to collapse
DarkhShadow dude i think u have some mistake of-course we can run .jar apps on android.
If you are 2.2 froyo user you can use jbed emulator(Google it) to run .jar files on your froyo android but Jbed is not working for gingerbread 2.3.3 and that what my problem.
so i'm finding here something software or emulator to Run .jar files on Gingerbread.
Code to invoke code from external jar:
private void getObjectsByReflection() {
try {
final String libPath = "/sdcard/intdex6.jar";
Log.d(TAG, "got ext env");
final File tmpDir = getDir("dex", 0);
Log.d(TAG, "got dex dir");
Log.d(TAG, tmpDir.getAbsolutePath());
final DexClassLoader classloader = new DexClassLoader(libPath,
tmpDir.getAbsolutePath(), null, this.getClass()
.getClassLoader());
Log.d(TAG, "got class loader");
final Class<Object> classToLoad =(Class<Object>) classloader
.loadClass("com.any.MyClass");
edit:classToLoad.getMethod("main", null);
// I supose you want main to receive args you must put it where is null in last method
} catch (Exception e) {
e.printStackTrace();
}
}
Whis it helps
Bye!
masterbondfv said:
Code to invoke code from external jar:
private void getObjectsByReflection() {
try {
final String libPath = "/sdcard/intdex6.jar";
Log.d(TAG, "got ext env");
final File tmpDir = getDir("dex", 0);
Log.d(TAG, "got dex dir");
Log.d(TAG, tmpDir.getAbsolutePath());
final DexClassLoader classloader = new DexClassLoader(libPath,
tmpDir.getAbsolutePath(), null, this.getClass()
.getClassLoader());
Log.d(TAG, "got class loader");
final Class classToLoad =(Class) classloader
.loadClass("com.any.MyClass");
edit:classToLoad.getMethod("main", null);
// I supose you want main to receive args you must put it where is null in last method
} catch (Exception e) {
e.printStackTrace();
}
}
Whis it helps
Bye!
Click to expand...
Click to collapse
Its awesome buddy but i dont knw how to use it? And also dont kmw anything about it.
By d way thanx for ur help.

PostMessage Not Running by using DllImport Project[Mango Support]

Hi All,
I m using the The DllImport Project (+/also C++ Wrapper) [Mango Support] ..
And im using the postmessage ...and i tried the following scenarios
int i = Phone.OS.PostMessage(0xffff, (int)WM.WM_CLOSE, (int)Phone.KeyboardHook.PhysicalKeys.BackKey, 0);
it Worked fine and closed the current Application .
But when i tried the following line of codes , No Action performed on the device to simulate BackKey Press
int j = Phone.OS.PostMessage(0xffff, (int)WM.WM_KEYDOWN, (int)Phone.KeyboardHook.PhysicalKeys.BackKey, 0);
int k = Phone.OS.PostMessage(0xffff, (int)WM.WM_KEYUP, (int)Phone.KeyboardHook.PhysicalKeys.BackKey, 0);
Please let me know What im missing here .. help me on this please ...
Appreciate your Response...
Thanks,

[Q] How to get ReponseData and Signature for android LVL

Hi,
I try to implement a server side verification of an application with LVL library.
I use this php code : http://code.google.com/p/android-market-license-verification/
In the file sample/verify.php, I have two lines to complete :
Code:
$responseData = '';
$signature = '';
I see in the google LVL that there is a function called verify which has these parameters :
public void verify(PublicKey publicKey, int responseCode, String signedData, String signature);
But I don't undestand where this function is called and by what function.
Also I want to get this datas.
How can I do that ?
Thank you,
Yeah!! Same here!
Can someone tell us?
Most apps use client side license verification, don't know why... This would be very useful!

Help needed in developing an Obex FTP java app

I am trying to develop a sample java app to connect my bluetooth laptop(UIbuntu 14) with my Android Phone(Moto E 1st gen) through Obex FTP.
I used the following lines
Using libraries : bluecove-2.1.1-Snapshot.jar, bluecove-gpl-2.1.1.-Snapshot.jar
String btURL = "btgoep://806C1BD808F0:10;authenticate=false;encrypt=false;master=false";
ClientSession conn = (ClientSession) Connector.open(btURL);
But IOException generated : Failed to connect [111] Connection refused. Dont know what is causing. Can anybody help me?

C# Project Using Android Lib. Help

I'm Trying To Make Android Anti Viruses Tool ...
I was Working with : "
Code:
System.Diagnostics.Process.Start(CMD);
"
But Androild Lib May Help Much more and Save my Time ...
the Point is .. I want to list the Directory : "/system/app " listview so I use this
Code:
String u;
if (android.HasConnectedDevices)
{
u = android.ConnectedDevices[0];
device = android.GetConnectedDevice(u);
Dir = device.FileSystem.GetFilesAndDirectories("//data//app").Values.ToString();
l.SubItems.Add(Dir);
listView2.Items.Add(l);
}
So The Result was This ! " Collection " in listview
what is the Current way to use this ?
Thank and Best Regards ! :good:

Categories

Resources