<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dragly &#187; Mobile</title>
	<atom:link href="http://dragly.org/category/mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://dragly.org</link>
	<description>It was about time I started writing my own tutorials to share some of the knowledge I&#039;ve picked up from around.</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:57:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Norwegian keyboard on the N950</title>
		<link>http://dragly.org/2011/08/06/norwegian-keyboard-on-the-n950/</link>
		<comments>http://dragly.org/2011/08/06/norwegian-keyboard-on-the-n950/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 12:16:36 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[N950]]></category>
		<category><![CDATA[harmattan]]></category>
		<category><![CDATA[keymap]]></category>
		<category><![CDATA[meego]]></category>
		<category><![CDATA[n950]]></category>
		<category><![CDATA[norwegian]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=517</guid>
		<description><![CDATA[The N950 is delivered with a keyboard without Norwegian keys, so I decided to map holding the function/arrow key and pressing comma (,), period (.) or asterix (*) to ø, æ and å, respectively. I you are Norwegian and just &#8230; <a href="http://dragly.org/2011/08/06/norwegian-keyboard-on-the-n950/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The N950 is delivered with a keyboard without Norwegian keys, so I decided to map holding the function/arrow key and pressing comma (,), period (.) or asterix (*) to ø, æ and å, respectively.</p>
<p>I you are Norwegian and just want this to work straight away, you can do the following on your device:</p>
<pre class="brush:shell">ssh root@localhost
wget http://dragly.org/wp-content/uploads/2011/08/rm-680
cp /usr/share/X11/xkb/symbols/nokia_vndr/rm-680 /usr/share/X11/xkb/symbols/nokia_vndr/rm-680-backup
cp rm-680 /usr/share/X11/xkb/symbols/nokia_vndr/
setxkbmap -model nokiarm680 -layout us</pre>
<p>And that should do the trick. The keys are mapped as follows:</p>
<pre>FN + .             æ
FN + ,             ø
FN + *             å
FN + SHIFT + .     Æ
FN + SHIFT + ,     Ø
FN + SHIFT + *     Å</pre>
<p>If you&#8217;re speaking a different language and just want to edit the keymap manually, you can open up the rm-680 keymap file<span id="more-517"></span></p>
<pre class="brush:shell">nano /usr/share/X11/xkb/symbols/nokia_vndr/rm-680</pre>
<p>and find the US section close to the top:</p>
<pre class="brush:shell">// setxkbmap -model nokiarm680 -layout us
partial alphanumeric_keys
xkb_symbols "us" {
    include "nokia_vndr/rm-680(english-base)"

    name[Group1] = "English US";
}</pre>
<p>Then add the following for Norwegian characters:</p>
<pre class="brush:shell">// setxkbmap -model nokiarm680 -layout us
partial alphanumeric_keys
xkb_symbols "us" {
    include "nokia_vndr/rm-680(english-base)"

    name[Group1] = "English US";

    // dragly keys
    key &lt;AB08&gt;	{ [	comma,		semicolon,	oslash,	Oslash	] };
    key &lt;AB09&gt;	{ [	period,		colon,		ae,		AE		] };
    key &lt;AC11&gt;	{ [	apostrophe,	asterisk,	aring,	Aring	] };
};</pre>
<p>Now, this still affects the comma, period and asterix, but you can change them to whatever you like. If you have a look through the rm-680 file, you might also find other mappings that you would like to change. Do as you like, and when you&#8217;re done, just save the file by pressing CTRL+x, Y and ENTER. Afterwards, just refresh the keymap by issuing the command</p>
<pre class="brush:shell">setxkbmap -model nokiarm680 -layout us</pre>
<p>You can of course create a new keymap instead of editing the US one, but that would require you to run setxkbmap every time you reboot to load the keymap again.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2011/08/06/norwegian-keyboard-on-the-n950/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Handling locked screen event in Qt for Maemo</title>
		<link>http://dragly.org/2011/05/30/handling-locked-screen-event-in-qt-for-maemo/</link>
		<comments>http://dragly.org/2011/05/30/handling-locked-screen-event-in-qt-for-maemo/#comments</comments>
		<pubDate>Mon, 30 May 2011 11:07:28 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[dbus]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[maemo]]></category>
		<category><![CDATA[pause]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[state]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=482</guid>
		<description><![CDATA[If you want to pause an application to save battery power when the screen is turned off, you can do this by listening for the locked screen event in Qt for Maemo. However, this is not made easily available through &#8230; <a href="http://dragly.org/2011/05/30/handling-locked-screen-event-in-qt-for-maemo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you want to pause an application to save battery power when the screen is turned off, you can do this by listening for the locked screen event in Qt for Maemo. However, this is not made easily available through a wrapper function (that I know of), so in this case we&#8217;ll need to resort to listening for the right DBus call. (Thanks to Diph from Maemo.org for <a href="http://talk.maemo.org/showthread.php?p=791167">providing the recipe to make this possible</a>.)</p>
<p>First of all, you&#8217;ll need to enable dbus in your project (.pro) file:</p>
<pre class="brush:shell">maemo5 {
    CONFIG += qdbus
}</pre>
<p>Next up, in your .h file you should add the following to import the DBus headers:</p>
<pre class="brush:shell">#ifdef Q_WS_MAEMO_5
#include &lt;QtDBus/QtDBus&gt;
#endif</pre>
<p>And you&#8217;ll need to add a slot for the screen state change:</p>
<p><span id="more-482"></span></p>
<pre class="brush:cpp">class GameView : public QGraphicsView
{
    Q_OBJECT
public:
    explicit GameView();

public slots:
#ifdef Q_WS_MAEMO_5
    void screenChange(const QDBusMessage &amp;message);
#endif

...

}</pre>
<p>Then, in your .cpp file you&#8217;ll need to load the Maemo DBus definitions and create a connection. Do this outside any function to have it statically available.</p>
<pre class="brush:cpp">#ifdef Q_WS_MAEMO_5
#include &lt;mce/dbus-names.h&gt;
#include &lt;mce/mode-names.h&gt;

static QDBusConnection dBusConnection = QDBusConnection::systemBus();
#endif</pre>
<p>Next up, in the constructor of your class, we&#8217;ll set up the necessary DBus connection and interface:</p>
<pre class="brush:cpp">GameView::GameView()
{
#ifdef Q_WS_MAEMO_5
    dBusInterface = new QDBusInterface(MCE_SERVICE, MCE_REQUEST_PATH,
                                       MCE_REQUEST_IF, dBusConnection, this);

    dBusConnection.connect(MCE_SERVICE, MCE_SIGNAL_PATH, MCE_SIGNAL_IF,
                           MCE_DISPLAY_SIG, this, SLOT(screenChange(const QDBusMessage &amp;)));
#endif
}</pre>
<p>And finally, we&#8217;ll need to fill the function screenChange with something useful. The example below is from my <a title="Nanoparticles" href="http://dragly.org/source/nanoparticles/">Nanoparticles game</a> and simply pauses the game whenever the screen is locked.</p>
<pre class="brush:cpp">#ifdef Q_WS_MAEMO_5
void GameView::screenChange(const QDBusMessage &amp;message)
{
    QString state = message.arguments().at(0).toString();
    if (!state.isEmpty()) {
        if (state == MCE_DISPLAY_OFF_STRING)
            gameScene.pauseGame();
    }
}
#endif</pre>
<p>If you need to check the screen state during startup, have a look at the extra functions <a href="http://talk.maemo.org/showthread.php?p=791167">that Diph mentions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2011/05/30/handling-locked-screen-event-in-qt-for-maemo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling application minimization in Maemo with Qt</title>
		<link>http://dragly.org/2011/05/26/handling-application-minimization-in-maemo-with-qt/</link>
		<comments>http://dragly.org/2011/05/26/handling-application-minimization-in-maemo-with-qt/#comments</comments>
		<pubDate>Thu, 26 May 2011 11:47:41 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[maemo]]></category>
		<category><![CDATA[maemo5]]></category>
		<category><![CDATA[minimize]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=476</guid>
		<description><![CDATA[When you are developing with Qt on Maemo you might want to minimize or detect minimization of your application to the dashboard. Qt lacks clean functions for these use cases, but thankfully it&#8217;s still very easy to accomplish them. Minimizing &#8230; <a href="http://dragly.org/2011/05/26/handling-application-minimization-in-maemo-with-qt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you are developing with Qt on Maemo you might want to minimize or detect minimization of your application to the dashboard. Qt lacks clean functions for these use cases, but thankfully it&#8217;s still very easy to accomplish them.</p>
<h3>Minimizing the application</h3>
<p>First of all, to minimize your application you&#8217;ll need to add the following CONFIG line to your project file (the .pro file):</p>
<pre class="brush:shell">maemo5 {
    CONFIG += qdbus
}</pre>
<p>Then, in your .cpp or .h file, you&#8217;ll need to include the QtDBus headers:</p>
<pre class="brush:cpp">#ifdef Q_WS_MAEMO_5
#include &lt;QtDBus/QtDBus&gt;
#endif</pre>
<p>You may of course skip the #ifdef statements if you&#8217;d like DBus for other systems as well, but here I&#8217;d like to make this exception only for Maemo. Now, anywhere in your application you may add the following lines to minimize to Maemo&#8217;s dashboard:</p>
<p><span id="more-476"></span></p>
<pre class="brush:cpp">QDBusConnection connection = QDBusConnection::sessionBus();
QDBusMessage message = QDBusMessage::createSignal("/","com.nokia.hildon_desktop","exit_app_view");
connection.send(message);</pre>
<p>This could for example be placed inside a signal that is emitted when the users pushes a dashboard button.</p>
<h3>Detecting minimization</h3>
<p>If you&#8217;d like to detect if the user pressed CTRL + Backspace or any other button to minimize the application, you may do so by adding a changeEvent function to your top-most window. Inside you check the event-&gt;type() against QEvent::ActivationChange and test the isActiveWindow() at the same time. Here is an example from the Nanoparticles game:</p>
<pre class="brush:cpp">void GameView::changeEvent(QEvent *event) {
#ifdef Q_WS_MAEMO_5
    if(event-&gt;type()==QEvent::ActivationChange) {
        if(!isActiveWindow()) {
            gameScene.pauseGame();
        }
    }
#endif
}</pre>
<p>Whenever the game is minimized now, the game is automatically paused to avoid background rendering. The game uses OpenGL to render everything, so this saves the battery drastically.</p>
<p>Enjoy your minimized applications!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2011/05/26/handling-application-minimization-in-maemo-with-qt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trafikanten on Maemo</title>
		<link>http://dragly.org/2010/09/21/trafikanten-on-maemo/</link>
		<comments>http://dragly.org/2010/09/21/trafikanten-on-maemo/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 18:42:54 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[maemo]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=354</guid>
		<description><![CDATA[Update: The package was pushed to Extras testing on 2nd of October. It was delayed because Maemo&#8217;s package repository would not import the new package due to some trouble with the version numbering. There has been missing a native application &#8230; <a href="http://dragly.org/2010/09/21/trafikanten-on-maemo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-202228.png" rel="lightbox[354]"><img class="size-medium wp-image-355 alignright" title="Screenshot-20100921-202228" src="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-202228-300x180.png" alt="" width="300" height="180" /></a><strong>Update:</strong> <span style="font-style: italic">The package was pushed to Extras testing on 2nd of October. It was delayed because Maemo&#8217;s package repository would not import the new package due to some trouble with the version numbering.</span></p>
<p>There has been missing a native application to access information from Trafikanten on the Nokia N900. Instead it has been necessary to use the mobile version of their websites or maybe even the full version. Even though this is a pretty quick and workable solution, there are several benefits of having a native application available. One that becomes very obvious is the use of GPS to find all nearest bus stops or train stations.</p>
<p>I decided to give it a try in June this year and started by releasing some early versions of what is now named &#8220;Journey Planner for Norway&#8221; (which is &#8220;Reiseplanlegger&#8221; in Norwegian). During the summer of 2010 I have been trying to improve the application over several iterations, and feel that it has now come to a point where it is usable and stable enough to get the infamous &#8220;Version 1.0&#8243; attached to it.</p>
<p>The application is now finding its way through to the Extras-devel catalogue for Maemo and will be pushed upwards through Extras-testing before it hopefully hits Extras within two or three weeks. In the meantime you might either be a bit careless and enable Extras-devel to use the bleeding edge 1.0 version or head over to <a href="http://maemo.org/downloads/product/Maemo5/trafikanten/">Maemo Downloads to fetch the beta</a> which will be automatically updated to 1.0 whenever it is ready.</p>
<p>Below you can check out some more screenshots of the application in action:</p>

<a href='http://dragly.org/2010/09/21/trafikanten-on-maemo/screenshot-20100921-202228/' title='Screenshot-20100921-202228'><img width="150" height="150" src="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-202228-150x150.png" class="attachment-thumbnail" alt="Screenshot-20100921-202228" title="Screenshot-20100921-202228" /></a>
<a href='http://dragly.org/2010/09/21/trafikanten-on-maemo/screenshot-20100921-202446/' title='Screenshot-20100921-202446'><img width="150" height="150" src="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-202446-150x150.png" class="attachment-thumbnail" alt="Screenshot-20100921-202446" title="Screenshot-20100921-202446" /></a>
<a href='http://dragly.org/2010/09/21/trafikanten-on-maemo/screenshot-20100921-202853-2/' title='Screenshot-20100921-202853'><img width="150" height="150" src="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-2028531-150x150.png" class="attachment-thumbnail" alt="Screenshot-20100921-202853" title="Screenshot-20100921-202853" /></a>
<a href='http://dragly.org/2010/09/21/trafikanten-on-maemo/screenshot-20100921-203030/' title='Screenshot-20100921-203030'><img width="150" height="150" src="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-203030-150x150.png" class="attachment-thumbnail" alt="Screenshot-20100921-203030" title="Screenshot-20100921-203030" /></a>
<a href='http://dragly.org/2010/09/21/trafikanten-on-maemo/screenshot-20100921-203038/' title='Screenshot-20100921-203038'><img width="150" height="150" src="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-203038-150x150.png" class="attachment-thumbnail" alt="Screenshot-20100921-203038" title="Screenshot-20100921-203038" /></a>
<a href='http://dragly.org/2010/09/21/trafikanten-on-maemo/screenshot-20100921-203304/' title='Screenshot-20100921-203304'><img width="150" height="150" src="http://dragly.org/wp-content/uploads/2010/09/Screenshot-20100921-203304-150x150.png" class="attachment-thumbnail" alt="Screenshot-20100921-203304" title="Screenshot-20100921-203304" /></a>

<p>The application is developed in C++ using <a href="http://qt.nokia.com">Qt</a> with the Qt Mobility libraries. It should not be too hard to port it to Symbian as well, so I will give that a shot in the future. Symbian users does however already have an option to use the Java application &#8220;<a href="http://tegelsrud.com/trafikantenjava/">Trafikanten Sanntid</a>&#8221; made by Håvard Tegelsrud.</p>
<p>And of course, you can <a href="http://github.com/dragly/trafikanten-maemo">check out the source code here</a>. The application is licensed with the GNU GPLv3 license.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/09/21/trafikanten-on-maemo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skip the packaging step in Qt Creator 2.0</title>
		<link>http://dragly.org/2010/07/19/skip-the-packaging-step-in-qt-creator-2-0/</link>
		<comments>http://dragly.org/2010/07/19/skip-the-packaging-step-in-qt-creator-2-0/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 22:11:10 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=266</guid>
		<description><![CDATA[Qt Creator finally has support for packages, but now it is lacking the support to disable them instead. <a href="http://dragly.org/2010/07/19/skip-the-packaging-step-in-qt-creator-2-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just figured that Qt Creator is now packaging every Maemo application whenever you tell it to run one. This might be annoying if <a href="http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1637">packaging fails</a> and will in any case slow down the whole process of debugging. However, if you want to skip the packaging step, this is not an option in Qt Creator 2.0(!).</p>
<p>Luckily the Qt developers over at Nokia are aware of this and have released a fix in the latest builds of Qt Creator. To acquire these, go to <a href="http://qt.nokia.com/developer/qt-snapshots/">Qt&#8217;s snapshot homepage</a> or just download the <a href="ftp://ftp.qt.nokia.com/qtcreator/snapshots/2010-07-16/qtcreator-linux-x86-opensource-2.0.80-201007160104-setup.bin">32-bit</a> or <a href="ftp://ftp.qt.nokia.com/qtcreator/snapshots/2010-07-12/qtcreator-linux-x86_64-opensource-2.0.80-201007120237-setup.bin">64-bit</a> versions for Linux directly from the build made on 12th of July.</p>
<p>Now you may select to skip the packaging by editing the build steps in Qt Creator.</p>
<p>Be aware that the snapshot versions are in development and may have bugs causing irrevocable data loss. That&#8217;s the risk you&#8217;ve got to take these days to avoid those bloated packages.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/07/19/skip-the-packaging-step-in-qt-creator-2-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Connect to your N900 while developing via usb</title>
		<link>http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/</link>
		<comments>http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 17:16:43 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Network Manager]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=251</guid>
		<description><![CDATA[Sometimes it feels good to be a bit lazy and let your OS do that boring terminal-typing for you whenever you connect a new device. <a href="http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are developing for Nokia N900 using the Nokia Qt SDK, you are most likely following <a href="http://doc.qt.nokia.com/nokia-qtsdk-1.0/creator-developing-maemo.html">this guide</a> to set up your environment. This is all nice and easy, but if you are connecting using usb you have to open a terminal each time you plug in your N900 and write</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> usb0 192.168.2.14 up</pre></div></div>

<p>If you, like me, get tired of doing this you may instead let Network Manager in Gnome do the work for you. First of all, connect your N900 via an available USB port. Next, right click the Network Manager icon and hit &#8220;Edit Connections&#8230;&#8221;.</p>
<p><span id="more-251"></span></p>
<p><a href="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Network-Connections.png" rel="lightbox[251]"><img class="size-full wp-image-252 alignnone" title="Screenshot-Network Connections" src="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Network-Connections.png" alt="" width="436" height="300" /></a></p>
<p>This window will pop up. Press the &#8220;Add&#8221; button.</p>
<p><a href="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb.png" rel="lightbox[251]"><img class="alignnone size-full wp-image-253" title="Screenshot-Editing N900 via usb" src="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb.png" alt="" width="361" height="471" /></a></p>
<p>Type in a useful name, such as &#8220;N900 via usb&#8221;, and leave everything under &#8220;Wired&#8221; as is. Select the &#8220;IPv4 Settings&#8221; tab.</p>
<p><a href="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb-1.png" rel="lightbox[251]"><img class="alignnone size-full wp-image-254" title="Screenshot-Editing N900 via usb-1" src="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb-1.png" alt="" width="403" height="471" /></a></p>
<p>Set the Method to &#8220;Manual&#8221; and click &#8220;Add&#8221;.</p>
<p>Type in 192.168.2.14 as the address and 255.255.255.0 as the netmask. Leave the gateway blank.</p>
<p>Hit &#8220;Apply&#8221; and you are good to go!</p>
<p>Next, just click the Network Manager icon and select &#8220;N900 via usb&#8221;. If nothing went wrong, you should now be connected to your device, enabling you to use Qt Creator to its full extent. The next time you plug in your N900, Network Manager will do the work for you automatically.</p>
<p><strong>Update: </strong>Note that if you already have a wired connection, Network Manager might try to connect to this so-called &#8220;Auto Ethernet&#8221; connection when you plug in. If this happens, just click the network manager icon and select the correct connection.</p>
<p>This might also happen the other way around, connecting to your USB connection with your Ethernet card, which of course won&#8217;t work. To avoid this completely, you might want to disable auto-connection for you N900 USB.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

