I have checked the documentation of Android[0]. The library provides a UUID class exposing the <span style="font-family: courier new,monospace;" class="sympad">randomUUID</span><span style="font-family: courier new,monospace;">()</span> function. This function is supposed to generate universally unique ids. I hope this will work. Let me know if there&#39;s any catch to it.<br>

<br>As <span style="font-family: courier new,monospace;">libuui</span> is a C library, I will have to port it to Andriod(java) if this is what I should use. I wonder if this is preferred.<br><br>[0] : <a href="http://developer.android.com/reference/java/util/UUID.html">http://developer.android.com/reference/java/util/UUID.html</a><br>

<br><br><br><div class="gmail_quote">On Thu, May 26, 2011 at 6:30 AM, Fernando Vilas <span dir="ltr">&lt;<a href="mailto:fvilas@iname.com">fvilas@iname.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Wednesday, May 25, 2011 19:31:04 Thomas Baumgart wrote:<br>
&gt; Hi guys (did not spot any gals yet),<br>
&gt;<br>
</div>[...]<br>
<div class="im">&gt;<br>
&gt; Sorry, but I have to object here. The source of the transaction (in this<br>
&gt; case the mobile device) *must* assign the unique ID. See<br>
&gt; <a href="http://linux.die.net/man/3/libuuid" target="_blank">http://linux.die.net/man/3/libuuid</a> for example. Use existing stuff and don&#39;t<br>
&gt; reinvent the wheel.<br>
&gt;<br>
&gt; The transaction is generated by the mobile app and later transfered to the<br>
&gt; desktop.<br>
&gt;<br>
<br>
</div>+1.<br>
<br>
UUID algorithms are available in several places, but the library suggested<br>
would be a good starting point. If a certain mobile device could not use that<br>
library, the library could be ported; or failing that, the algorithms<br>
implemented on the device. The chance of collision is vanishingly small, but<br>
there is a penalty in length of the ID. That trade is worth it in almost every<br>
case.<br>
<br>
[...]<br>
<font color="#888888">--<br>
Thanks,<br>
Fernando Vilas<br>
<a href="mailto:fvilas@iname.com">fvilas@iname.com</a><br>
</font><br>_______________________________________________<br>
Kde-finance-apps mailing list<br>
<a href="mailto:Kde-finance-apps@kde.org">Kde-finance-apps@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-finance-apps" target="_blank">https://mail.kde.org/mailman/listinfo/kde-finance-apps</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>samir<br>{ <a href="http://www.incurlybraces.com" target="_blank">www.incurlybraces.com</a> }<br><br>