I got the source code of sipdroid following the link
http://code.google.com/p/sipdroid/source/checkout
using the command :: svn checkout http://sipdroid.googlecode.com/svn/trunk/ sipdroid-read-only
Sipdroid uses pbxes.org to tunnel voip calls. But I want to configure this and use different sipserver to make voip calls.
As a new comer in this field I need help and suggestion about how to change this server.
In org.sipdroid.sipua.ui.Settings.java, you can find this:
public static final String DEFAULT_SERVER = "pbxes.org";
Replace it with your name.
There is a search box on the page you linked to (search trunk).
http://www.google.com/codesearch#search&q=pbxes.org+package:http://sipdroid%5C.googlecode%5C.com
It seems that the server setting is in Settings.java.
Related
I have created an android sample project using AWS Mobile Hub with User Sign-In and Push Notifications services.
I've downloaded the project and opened it through Android Studio, in order to take the necessary files for push notifications from the sample project and to integrate it in my existing Android app.
I thought it would be simple, but then I found out this huge files branch:
It is difficult to understand what files I do need and what files I don't need. Could you please help me to figure out what do I need to import into my existing project in order to integrate Push Notifications in my app?
You should copy the contents of MySampleApp/app/src/main/java/com/amazonaws verbatim into your new project and Also parts of AndroidManifest.xml and build.gradle and Application.java.
For a complete instruction, I would recommend that you go through Mobile Hub Console > Project Name > Build > Select Android > On Left side go to develop > Use as an Example.
You will find all the instructions you need for your android project
The "PushListenerService" class is basically a useful example class where the magic happens. So keep every file that support that class. The
private static void generateNotification(Context context, final String message)
is what displays the notification message.
Another important note is how to get the user's device endpoint value. This can be gotten using the "PushManager" class.
String endpoint = pushManager.getEndpointArn();
The endpoint ARN of a device help you send direct notification to that device.
PublishRequest publishRequest = new PublishRequest();
publishRequest.setMessage(message);
publishRequest.setSubject(subject);
publishRequest.withTargetArn(endpoint); //This can also be a "topic" ARN
snsClient.publish(publishRequest);
Pretty nice job done by the guys at AWS. Big thanks to them! :D
There is no easy way out. Just take your time and go through all the code in the classes that relate to the AWS service you want to implement. Good luck!
Btw, make sure your app is not open on the test device when you send a notification to it or else you won't see a notification since your app is already running. I notice this is a default behaviour.
Im building mob app for ios and android using xamarin studio on Mac and i want to connect to a mysql DB . so Ive downloaded the MySql connector from the below link : http://dev.mysql.com/downloads/connector/net/
and referenced it in my code and added the below code :
MySqlConnectionStringBuilder conn_string = new MySqlConnectionStringBuilder ();
conn_string.Server = "serverIP";
conn_string.UserID = "user";
conn_string.Password = "pssword";
conn_string.Database = "DBTest";
MySqlConnection conn = new MySqlConnection(conn_string.ToString());
conn.Open();
conn.Close()
When i build the solution ,the build is successful but when I run the solution ,it will give me the following error :
System.TypeLoadException has been thrown Could not load type 'MySql.Data.MySqlClient.MySqlTrace' from assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'.
at
conn.Open();
I found later that this version is not compatible with xamarin.ios or xamarin.android profile .
After long research ,the choices available are :
-Use a MySql.Data.dll assembly built against a PCL profile that is supported by Xamarin.Android or Xamarin.iOS
-Recompile the MySql.Data source against the Xamarin.Android or Xamarin.iOS profile assemblies.
Does anybody have a workable DLL or was able to go through the above solutions or if there are any other ideas ?
Really appreciate it
I think the general approach when connecting to remote databases from a mobile app is to call a webservice (preferably rest based service with JSON). This way your logic for connecting to a MySQL, Oracle, SQL server database is solely on the server. For connecting to local databases on the device generally most folks will use SQLite. Hope this helps.
As of my opinion it won't be wise to connect directly to a MySQL database from an iOS app.
Personally I would need to make a web-based backend using REST, JSON or PHP. Or even a combo :)
Check this link for understanding the logic behind it: http://codewithchris.com/iphone-app-connect-to-mysql-database/#connectiphonetomysql
Otherwise try check your thread at the Xaramin forums :) Link for others
I want to get product info by using barcode and want to query it in https://www.factual.com. How can I use factual API for Android and how I configure it ?
Start from factual's developer website .
You can follow up the get start in the documentation,
Here is the link: http://developer.factual.com/get-started/
Do it step by step, and on the step 4, you will get some example you need to try it out.
Go This page and download the relevant example
http://developer.factual.com/examples/
and start exploring.
You have to use http call to query the factual.com tables.
Here are some http examples you have to call on your code: (after you have your api key)
http://api.v3.factual.com/t/products-cpg?q=shampoo
http://api.v3.factual.com/t/products-cpg?q=shampoo&filters={"brand":"pantene"}
http://api.v3.factual.com/t/products-cpg?filters={"upc":"052000131512"}
You can look on this page for more examples:
http://developer.factual.com/working-with-factual-products/
I think you are looking for this table field: upc_e = The UPC-E barcode used for identifying products. 8-digits in length.
The product table schema is here:
http://www.factual.com/data/t/products-cpg/schema
I solved my issue by placing php driver of factual in root directory of WAMP server.Instead of android, i use php driver. Now i am sending barcode form android device to WAMP (server) PHP driver.
Now, I have a web application made using [html, asp.net, sql server,javascript & ajax].
As usual I use ajax to send data to the server using the aspx page.
My Application is working fine, but I want to deploy it on Android.
The asp urls I use at the ajax function are:
url:'http://localhost:49169/xxxxx.aspx'
As you can see, this won't be working on the mobile coz the url changes everytime.
So what should I do in order to change the url and IP Address to make them static & take the new configurations of the IP without recompiling the project ?
Thanks.
It depends upon which version of visual studio you are using. But the general gist is that you can set the port from "using dynamic port" which it chooses one for you e.g. 49169 to a fixed port which you can specify.
Here are the intructions for vissual studio 2008, I believe it's the same intructions (or very similar) for other versions of visual studio:
http://msdn.microsoft.com/en-us/library/ms178109%28v=vs.90%29.aspx
I have created an application in Android for RabbitMQ using RabbitMQ-Android tutorial. It is working fine. Now I want to create two applications in Android and I want to make a communication between them using RabbitMQ.
I have not found any example nor tutorial regarding this issue.
It would be a great help, if you could provide a link with code.
Thanks for your reply. I have created my first application using this tutorial only. But this tutorial shows the connection between Android and .NET application through RabbitMQ. I don't have .NET application. So, I want to create one more application in Android, and I want to send message between these two applications using RabbitMQ.
Is it possible??
Please give me any suggestion on this topic.
Thanks
Simon Dixon has a good tutorial that should get you going: http://simonwdixon.wordpress.com/2011/06/03/getting-started-with-rabbitmq-on-android-part-1/
You can use a Python script below to send message to Android client application.
#!/usr/bin/env python
import pika
import time
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
i = 0
while True:
channel.basic_publish(exchange='logs',
routing_key='hello',
body='Hello World, ' + str(i))
print " [x] Sent 'Hello World!'" + str(i)
i += 1
time.sleep(1)
connection.close()