<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Java Programming Forums - The Java Community - Android Development</title>
		<link>http://www.javaprogrammingforums.com/</link>
		<description>Discussion on developing apps for the Android OS.</description>
		<language>en</language>
		<lastBuildDate>Sat, 25 May 2013 19:34:56 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.javaprogrammingforums.com/images/misc/rss.png</url>
			<title>Java Programming Forums - The Java Community - Android Development</title>
			<link>http://www.javaprogrammingforums.com/</link>
		</image>
		<item>
			<title>adb shell - installing or moving apk from /data to /mnt/sdcard</title>
			<link>http://www.javaprogrammingforums.com/android-development/29567-adb-shell-installing-moving-apk-data-mnt-sdcard.html</link>
			<pubDate>Tue, 21 May 2013 17:45:35 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I'm working on a script via shell for the installation of one or more apk from an USB key plugged in the device. The device is a MID...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I'm working on a script via shell for the installation of one or more apk from an USB key plugged in the device. The device is a MID custom, made in China, with root permissions. Android 4.x on-board.<br />
<br />
My need is to make sure that the target installation directory (or sub-directory) is in /mnt/sdcard (on which we have much more space than on /data).<br />
<br />
I created a file &quot;run.sh&quot; executable (with executable permissions) and I tested various installation methods:<br />
<br />
 - pm install -s &lt;apkName&gt;.apk<br />
 - pm set-install-location 2; pm install &lt;apkName&gt;.apk<br />
<br />
In both cases, &quot;pm&quot; allows me to &quot;point&quot; to the sd location.<br />
<br />
Until I launch this script directly via shell or invoking external &quot;adb (-s) install&quot; commant etc... Android does his duty and the apk will be installed on /mnt/sdcard.<br />
<br />
I shall digress:<br />
(((I noticed that when I point the intallation targeto to /mnt/sdcard using pm and with the -s option,  Android creates a virtual filesystem forking with a lot of &quot;/mnt/asec/xxx&quot; ... but I have not found any information about this to try to reproduce this process manually.)))<br />
<br />
The problem arises when I have to invoke this script run.sh from an activity.<br />
<br />
Calling pm (in any case, with the option -s or not) will fail ... the apk will not be installed and the logcat will back to me this list of messages (which I'm not able to understand)<br />
<br />
On the other hand, using the manual method (which is to copy the apk into the directory /data/app and let Android do the work) everything works perfectly, both invoking the script via shell or invoking the script from an activity (through the function above). But, of course, in this case the target destination is &quot;/data&quot; and this is not good for us.<br />
<br />
Does anyone have suggestions about that?<br />
Thanks in advance.<br />
<br />
Mauro Cecamore</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>verbose</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29567-adb-shell-installing-moving-apk-data-mnt-sdcard.html</guid>
		</item>
		<item>
			<title>Creating an app that allows customization for notifications such as led colors, vibrate ... ect.</title>
			<link>http://www.javaprogrammingforums.com/android-development/29551-creating-app-allows-customization-notifications-such-led-colors-vibrate-ect.html</link>
			<pubDate>Mon, 20 May 2013 18:42:19 GMT</pubDate>
			<description>So I want to create an app where the user can adjust the colors of led, vibrate, and other notifications. I made a small app practicing working with...</description>
			<content:encoded><![CDATA[<div>So I want to create an app where the user can adjust the colors of led, vibrate, and other notifications. I made a small app practicing working with the LED's but I don't know how to change the built in Android preferences. Any ideas of how to do this, where I should look for help? I've been reading the documentation but I have not been able to find out how Android stores these preferences.<br />
<br />
The app I am looking to create would be similar to light flow - LED Controller app.</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>gongshow20</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29551-creating-app-allows-customization-notifications-such-led-colors-vibrate-ect.html</guid>
		</item>
		<item>
			<title>is it possible to zoom layout in android</title>
			<link>http://www.javaprogrammingforums.com/android-development/29532-possible-zoom-layout-android.html</link>
			<pubDate>Sun, 19 May 2013 06:13:59 GMT</pubDate>
			<description>hello friends, 
i am developing apps which has layout and i put some controls on it like button,image so is it possible to zoom in out the layout...</description>
			<content:encoded><![CDATA[<div>hello friends,<br />
i am developing apps which has layout and i put some controls on it like button,image so is it possible to zoom in out the layout without changing position of controls</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>shreyaskrane</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29532-possible-zoom-layout-android.html</guid>
		</item>
		<item>
			<title>I need Latest Android Themes.</title>
			<link>http://www.javaprogrammingforums.com/android-development/29508-i-need-latest-android-themes.html</link>
			<pubDate>Fri, 17 May 2013 11:18:44 GMT</pubDate>
			<description>Hello Friends,  
 
I am a crazy fan to use different Android themes on Smartphone. Already I have many themes but those are not enough for me. 
...</description>
			<content:encoded><![CDATA[<div>Hello Friends, <br />
<br />
I am a crazy fan to use different Android themes on Smartphone. Already I have many themes but those are not enough for me.<br />
<br />
Please share source from where i can download free Android themes....<br />
<br />
Thanks in Advance</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>annaharris</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29508-i-need-latest-android-themes.html</guid>
		</item>
		<item>
			<title>How to start mobile programming?</title>
			<link>http://www.javaprogrammingforums.com/android-development/29504-how-start-mobile-programming.html</link>
			<pubDate>Fri, 17 May 2013 05:22:21 GMT</pubDate>
			<description>Hi guys, I just wanted to ask how to start programming android. Because I want to be an android developer in the future.Could anyone please help me.</description>
			<content:encoded><![CDATA[<div>Hi guys, I just wanted to ask how to start programming android. Because I want to be an android developer in the future.Could anyone please help me.</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>razel8288</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29504-how-start-mobile-programming.html</guid>
		</item>
		<item>
			<title>Just starting</title>
			<link>http://www.javaprogrammingforums.com/android-development/29495-just-starting.html</link>
			<pubDate>Thu, 16 May 2013 20:00:27 GMT</pubDate>
			<description><![CDATA[Hi guys! I'm keen on being a Java programmer but I have a very simple question. When I write a simple code, for example "Hello, World", can I run it...]]></description>
			<content:encoded><![CDATA[<div>Hi guys! I'm keen on being a Java programmer but I have a very simple question. When I write a simple code, for example &quot;Hello, World&quot;, can I run it on my Android phone? If not, how can you make mobile applications with Java? Every answer will be appreciated! :)</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>Snaksa</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29495-just-starting.html</guid>
		</item>
		<item>
			<title>Read Textfile from server, memory issue</title>
			<link>http://www.javaprogrammingforums.com/android-development/29398-read-textfile-server-memory-issue.html</link>
			<pubDate>Sat, 11 May 2013 09:44:36 GMT</pubDate>
			<description><![CDATA[Hello;), I use this code to read a textfile from my server: 
 
<div class="bbcode_container"> 
                 
<div class="bbcode_description"...]]></description>
			<content:encoded><![CDATA[<div>Hello;), I use this code to read a textfile from my server:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">String nextLine;
       URL url = null;
       URLConnection urlConn = null;
       InputStreamReader  inStream = null;
       BufferedReader buff = null;
       try{
          url  = new URL(&quot;mytextfile.txt&quot; );
          urlConn = url.openConnection();
          inStream = new InputStreamReader( 
          urlConn.getInputStream());
           buff= new BufferedReader(inStream);
&nbsp;
&nbsp;
        while (true){
            nextLine =buff.readLine();  
            if (nextLine !=null){
                System.out.println(nextLine); 
            }
            else{
               break;
            } 
        }
     } catch(MalformedURLException e){
       System.out.println(&quot;Please check the URL:&quot; + 
                                           e.toString() );
     } catch(IOException  e1){
      System.out.println(&quot;Can't read  from the Internet: &quot;+ 
                                          e1.toString() ); 
  }
 }</pre></div></code><hr />
</div> <br />
I call this every 10 seconds to read the text file. The used memory is increased then every minute, and after 2/3 hours the service gets killed. I'am not sure why the memory is increased every minute. I'am not storing the string or appending it to something.<br />
I need to read every 10 seconds my text file and it would be very nice if there is a solution.<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>XxxXxx896</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29398-read-textfile-server-memory-issue.html</guid>
		</item>
		<item>
			<title>RECORDING APP</title>
			<link>http://www.javaprogrammingforums.com/android-development/29090-recording-app.html</link>
			<pubDate>Fri, 03 May 2013 08:57:40 GMT</pubDate>
			<description>HI everyone i am developing a music app that allows user to record two different instrument 
drums and bass,  which has playback, multitracking, midi...</description>
			<content:encoded><![CDATA[<div>HI everyone i am developing a music app that allows user to record two different instrument<br />
drums and bass,  which has playback, multitracking, midi editing. i find different apps regarding to single instruments like drums, guitar, etc. in google store that has different GUI's but the same function. <br />
<br />
any one here have a good links and advice for this project<br />
response is much appreciated :o</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>louieseer</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29090-recording-app.html</guid>
		</item>
		<item>
			<title>paint brush not leaving trail?</title>
			<link>http://www.javaprogrammingforums.com/android-development/29034-paint-brush-not-leaving-trail.html</link>
			<pubDate>Thu, 02 May 2013 20:32:12 GMT</pubDate>
			<description><![CDATA[Hey, I'm new to android, and I just started fiddling with some simple example code I found online to get some practice. I found some code that has a...]]></description>
			<content:encoded><![CDATA[<div>Hey, I'm new to android, and I just started fiddling with some simple example code I found online to get some practice. I found some code that has a red dot follow your finger, but I'd like to make the dot leave a trail like a paint brush. It looks like the program erases the previous paint area and puts down a new dot at your finger each frame; I made the 'V' in the upper left corner move to find that. Anyone have any clues?<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnTouchListener;
import android.view.ViewGroup.LayoutParams;
&nbsp;
public class MainActivity extends Activity implements OnTouchListener  {
    private float x;
    private float y;
    private int moveX;
    Paint paint = new Paint();
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        MyCustomPanel view = new MyCustomPanel(this);
&nbsp;
        ViewGroup.LayoutParams params = 
                            new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT,
                                                       LayoutParams.FILL_PARENT);
        addContentView(view, params);
        view.setOnTouchListener(this);
&nbsp;
    }
    private class MyCustomPanel extends View {
&nbsp;
        public MyCustomPanel(Context context) {
            super(context);
&nbsp;
        }
        @Override
        public void onDraw(Canvas canvas) {
&nbsp;
            paint.setColor(Color.GREEN);
            paint.setStrokeWidth(6);
&nbsp;
            canvas.drawLine(moveX,10,50,50,paint);
            paint.setColor(Color.RED);
&nbsp;
            canvas.drawLine(50, 50, 90, 10, paint);
            canvas.drawCircle(50, 50, 3, paint);
            moveX++;
            canvas.drawCircle(x,y,3,paint);
        }
    }
    public boolean onTouch(View v, MotionEvent event) {
        x = event.getX();
        y = event.getY();
        v.invalidate();
        return true;
    }
}</pre></div></code><hr />
</div> </div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>JavaInProgress</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/29034-paint-brush-not-leaving-trail.html</guid>
		</item>
		<item>
			<title><![CDATA[Application & Data base]]></title>
			<link>http://www.javaprogrammingforums.com/android-development/28898-application-data-base.html</link>
			<pubDate>Sat, 27 Apr 2013 15:58:10 GMT</pubDate>
			<description><![CDATA[I'm new in the android development, I will like to do an application that is linked to a data base. How can I do this connection between my...]]></description>
			<content:encoded><![CDATA[<div>I'm new in the android development, I will like to do an application that is linked to a data base. How can I do this connection between my application code and the data base? where can I store the data base so I don't have to access internet for the application to run?<br />
All help will be welcome<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>chinchilla</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/28898-application-data-base.html</guid>
		</item>
		<item>
			<title>help with google maps starter</title>
			<link>http://www.javaprogrammingforums.com/android-development/28824-help-google-maps-starter.html</link>
			<pubDate>Fri, 26 Apr 2013 23:14:41 GMT</pubDate>
			<description><![CDATA[Hi, i'm new with android and google maps i play google maps when i clic on a button but it showin me that :  
 
Attachment 2039...]]></description>
			<content:encoded><![CDATA[<div>Hi, i'm new with android and google maps i play google maps when i clic on a button but it showin me that : <br />
<br />
<a href="http://www.javaprogrammingforums.com/attachments/android-development/2039d1367018021-help-google-maps-starter-sans_titre-jpg"  title="Name:  Sans_titre.jpg
Views: 2
Size:  6.9 KB">Sans_titre.jpg</a><br />
<br />
please help how can i do <br />
<br />
thanks a lot</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://www.javaprogrammingforums.com/images/attach/jpg.gif" alt="File Type: jpg" />
	<a href="http://www.javaprogrammingforums.com/attachments/android-development/2039d1367018021-help-google-maps-starter-sans_titre-jpg">Sans_titre.jpg</a> 
(6.9 KB)
</li>
			</ul>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/android-development/">Android Development</category>
			<dc:creator>devzero</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/android-development/28824-help-google-maps-starter.html</guid>
		</item>
	</channel>
</rss>
