|
I am trying to build a real-time messaging application for android. I am not sure what approach to take in this regard. Building an entire server/client architecture is a huge task that can take sometime (with some flaws no doubt). Using an existing infrastructure like pusher (pusher.com) or pubnub (pubnub.com) is expensive and I can't afford that road. For anyone who has experience with this sort of problem please provide me with some guidance and help. This is my first network based application so any guidance will be much appreciated.
|
|
|
|
|
Hello,
Have a look at these tutorials.
Regards,
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
i make an Animation based game in J2ME(java) for low memory and small screen size mobile.Any one have any idea how to sell or promote this apps. if any mail or suggest me
|
|
|
|
|
You can use an advertisement portal like LeadBolt[^] from within this application.
|
|
|
|
|
|
I am currently a .Net developer who has been tasked to pick out a tool for Mobile Development. I have looked at Phone Gap, Titanium, and a few others. The tool should be able to decrease development time of applications for IOS, Android and Windows phones and tablets.
I am curious as to what tools developers are using and if they would choose the same product again.
Thanks!
Vix
|
|
|
|
|
Hello,
I am using PhoneGap for developing cross-platform mobile business applications (HTML5/Javascript/Twitter Bootstrap/JQuery). However I do think that there is no better tool than Visual Studio Express 2012 for Windows Phone, though limited for Windows Phone 8 only.
Regards,
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
Hi,
I am beginner in Android and trying to implement my game idea on Android. what i want, When we blow by mouth on the screen of Android Device we have to detect it's force value in our application.
It's is possible in android??..please give some suggestions how we can do it. will be highly thankful to you.
|
|
|
|
|
I am new to android programming,while i am running my application i am getting of lots of error in Logcat i dont know what to do plz help me
this is the error which i am getting:
05-06 18:20:26.916: D/AndroidRuntime(329): Shutting down VM
05-06 18:20:26.926: W/dalvikvm(329): threadid=1: thread exiting with uncaught exception (group=0x40015560)
05-06 18:20:26.946: E/AndroidRuntime(329): FATAL EXCEPTION: main
05-06 18:20:26.946: E/AndroidRuntime(329): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{aniket.gmsfinal/aniket.gmsfinas.MainActivity}: java.lang.ClassNotFoundException: aniket.gmsfinas.MainActivity in loader dalvik.system.PathClassLoader[/data/app/aniket.gmsfinal-1.apk]
05-06 18:20:26.946: E/AndroidRuntime(329): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.os.Handler.dispatchMessage(Handler.java:99)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.os.Looper.loop(Looper.java:123)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.app.ActivityThread.main(ActivityThread.java:3683)
05-06 18:20:26.946: E/AndroidRuntime(329): at java.lang.reflect.Method.invokeNative(Native Method)
05-06 18:20:26.946: E/AndroidRuntime(329): at java.lang.reflect.Method.invoke(Method.java:507)
05-06 18:20:26.946: E/AndroidRuntime(329): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-06 18:20:26.946: E/AndroidRuntime(329): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-06 18:20:26.946: E/AndroidRuntime(329): at dalvik.system.NativeStart.main(Native Method)
05-06 18:20:26.946: E/AndroidRuntime(329): Caused by: java.lang.ClassNotFoundException: aniket.gmsfinas.MainActivity in loader dalvik.system.PathClassLoader[/data/app/aniket.gmsfinal-1.apk]
05-06 18:20:26.946: E/AndroidRuntime(329): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
05-06 18:20:26.946: E/AndroidRuntime(329): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
05-06 18:20:26.946: E/AndroidRuntime(329): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-06 18:20:26.946: E/AndroidRuntime(329): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
05-06 18:20:26.946: E/AndroidRuntime(329): ... 11 more
05-06 18:20:31.407: I/Process(329): Sending signal. PID: 329 SIG: 9
|
|
|
|
|
This is the error because you have not added the class in your Android Manifest file. Try adding the class name i.e activity to your Manifest.xml and run it. It must work..
|
|
|
|
|
I thick you changed manifest.xml
in that see wheather the <activity android:name=".MainActivity">
is there
|
|
|
|
|
Hi All,
I am just developing one Android app, in which we have to capture the video. Now user will capture the video in portrait view but while it will play, it will automatically play in landscape.
i.e. video is capture in portrait view, though it will play in landscape view. when i will check in memory card, video is still captured in portrait view and also while playing video from memory card, it will play in portrait view.
I have checked, manifest file and seems all files are fine.
Please let me know if any one have any idea.
Regards
Keyur Satyadev
|
|
|
|
|
Actually i have same problem so when you find please share with me.Thanks
|
|
|
|
|
Which Device you are using? Its working fine with my HTC but having issue with Samsung.
Regards
Keyur Satyadev
|
|
|
|
|
Hello,
I've been trying to make my first Android app.
I created a library project that cointain an activity called 'Reader':
public class Reader extends Activity {
private String ID;
public void setID(String id) {
ID = id;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_reader);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_reader, menu);
return true;
}
}
also i created a (test) project that contain another activity called 'MainActivity':
public class MainActivity extends Reader {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setID("bla_bla_bla");
}
}
when it comes to the GUI the inheritance is working well, i can see everything I placed in 'Reader' on 'MainActivity', but when it comes to using inherited methods such as 'setID(String)' i get a compilation error Eclipse Quote: The method setID(String) is undefined for the type MainActivity
How can it be?
thank you very much!!!
|
|
|
|
|
Have you tried using
super.setID("bla_bla_bla");
Regards,
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
Hello,
I've been trying to make my first Android app.
I created a library project that cointain an activity called 'Reader':
|
|
|
|
|
hi all,
how can I execute adb command for android mobile phone from my dialog based application and get return value of these command in application and show.
please help me for this.
thanks in advance.
|
|
|
|
|
How do I add method for last_insert_rowid
I added a record to the table. As soon as it is entered I want to get the rowed that SQLite gave to it. How can I accomplish this?
|
|
|
|
|
You should be able to use last_insert_rowid for the last row id that was inserted for that connection. Basically, inside the same connection, issue a separate select command:
SELECT last_insert_rowid
|
|
|
|
|
Hi Pete,
I tried this and it wont let me compile. I don't know the correct syntax. There is not much out there for WP8 SQLite
string query = "select last_insert_rowid() as id from myTable";
using (var db = new SQLite.SQLiteConnection(System.IO.Path.Combine(ApplicationData.Current.LocalFolder.Path, "SM.db"), true))
{
SQLite.SQLiteCommand cmd = new SQLite.SQLiteCommand(db);
var result = cmd.ExecuteNonQuery();
}
|
|
|
|
|
No. Only select last_insert_rowid();. You don't need the rest. There's a reaaon I didn't include it in my answer there.
|
|
|
|
|
I tried that and I get this error
SQLite.SQLiteException: Misuse
|
|
|
|
|
I tried this also and the error is "Row"
SQLite.SQLiteCommand cmd = new SQLite.SQLiteCommand(db);
cmd.CommandText = query.ToString();
var result2 = cmd.ExecuteNonQuery();
|
|
|
|
|
If you're trying to retrieve the record, use ExecuteScalar , not ExecuteNonQuery .
|
|
|
|