[android-beginners] Re: problem about linux (ubuntu) develop android with Eclispe

2008-09-03 Thread Olexiy K.



On 3 сент, 06:11, anderson [EMAIL PROTECTED] wrote:
 i have some problem with linux (ubuntu)
 when use apt-get install eclipse  , that will install eclipse
 3.2.2-5ubuntu2

 but it's recommand to use  Eclipse 3.3 (Europa), 3.4 (Ganymede)

 http://code.google.com/android/intro/installing.html
 supported Development Environments:
 * Eclipse IDE
 o Eclipse 3.3 (Europa), 3.4 (Ganymede)

I installed Eclipse 3.2 on Ubuntu and everything works.
But I didn't try to run Snake

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] connection to a distant socket server

2008-09-03 Thread Julien veneziano
Hi all,
I tried to connect to a distant socket server and i've got this error
message :

ERROR/OSNetworkSystem(458): unknown socket error -1

Since i just do :

Socket conn = new Socket(my.distant.server.ip, my_distant_server_port);


I don't think the code is the problem (on top of that, it work when a launch
this command throught a java). Then I thought it would be an emulator
setting problem. I used this redir cmd but didn't work. If somebody know
about it...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: No repository found at https://dl-ssl.google.com/android/eclipse/

2008-09-03 Thread Filipe Abrantes

I finally got this to work... Apparently it had something to do with gcj 
(I'm on linux). After uninstalling gcj the thing worked.

Cheers,
Filipe


Aramor wrote:
 I don't know what that in particular means. I was getting a different
 error on both the local ATP downloaded file and the https site.
 Also when it finally did work it was on the 
 http://dl-ssl.google.com/android/eclipse/
 site.
 Oh, I also had to disable my firewall (Using Kerio Personal Firewall)
 2.1.5
 Hope this helps.

 On Sep 1, 2:54 pm, Filipe Abrantes [EMAIL PROTECTED] wrote:
   
 I have just rebooted but the problem persists,

 No repository found athttps://dl-ssl.google.com/android/eclipse/site.xml
   Error reading update 
 sitehttps://dl-ssl.google.com/android/eclipse/site.xml.
   HANDSHAKE_FAILURE: locally generated; FATAL

 Anything has a clue on what this means?

 Cheers,
 Filipe

 Aramor wrote:
 
 I tried all of these options about 100 times.
 Restarting fixed the issue.
   
 On Aug 29, 6:54 pm, Filipe Abrantes [EMAIL PROTECTED] wrote:
   
 has anyone had success with this problem...
 
 I am getting this error repeatedly even if I try installing through
 http:// or .zip file locally:
 
 An error occurred during provisioning.
 Cannot connect to keystore.
 JKS
 
 Cheers,
 Filipe
 
 Gies,Brad wrote:
 
 I’m also had the same problem a couple of times (I installed Android
 on 2 work machines and 2 home machines). In both of the cases where it
 didn’t work properly the first time, trying again a couple of minutes
 later worked. Maybe the repository is just very busy??
   
 Sincerely,
   
 Brad Gies
 -
 NLM Software
 Southfield, MI, USA
 -
   
 If you get today's work done today, but do it in a way that you can't
 possibly get tomorrow's work done tomorrow, then you lose.
   
 
   
 *From:* android-beginners@googlegroups.com
 [mailto:[EMAIL PROTECTED] *On Behalf Of *???
 *Sent:* Tuesday, August 26, 2008 10:58 AM
 *To:* android-beginners@googlegroups.com
 *Subject:* [android-beginners] Re: No repository found at
 https://dl-ssl.google.com/android/eclipse/
   
 if you can send the picture about what you discrible,I think I need it
   
 This e-mail or communication, including any attachments, is intended
 only for the person or entity to which it is addressed and may contain
 confidential and/or legally privileged material. Any
 review,retransmission, dissemination or other use of, or taking of any
 action in reliance upon, this information by persons or entities other
 than the intended recipient is prohibited. If you received this
 message in error, please contact the sender immediately and
 permanently delete all copies, electronic or other, you may have or
 from your computer. Any disclosure, copying, distribution, reliance or
 use of the contents or information received in error is strictly
 prohibited. The foregoing applies even if this notice is imbedded in a
 message that is forwarded or attached.
   

 
   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] linux(ubuntu) 利用 eclipse 開發 環境設定問題?

2008-09-03 Thread anderson

ubuntu上開發android出現一點問題
直接利用apt-get install eclipse
會安裝 eclipse 3.2.2-5ubuntu2

但好像需要比較新的版本
http://code.google.com/android/intro/installing.html
supported Development Environments:
* Eclipse IDE
o Eclipse 3.3 (Europa), 3.4 (Ganymede)

於是就自己去下載了Eclipse 3.4
跟著google 網頁上的步驟之後
打開現有的sample/Snake
直接run卻發生cant find Snake.apk

console出現的訊息如下:

- Snake] Android Launch!
- Snake] adb is running normally.
- Snake] Could not find Snake.apk!

會是什麼問題呢?
還需要另外設定ant ?

希望有在linux平台開發的朋友提供點方向
感謝

--
環境:
java version 1.6.0_07
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

--

打command line 直接利用
./activitycreator --out ../samples/Snake/ com.android.snake.Snake
之後得到Snake/build.xml 執行ant 卻
出現 :

Buildfile: build.xml

dirs:
 [echo] Creating output directories if needed...
[mkdir] Created dir: /home/test/android-sdk-linux_x86-0.9_beta/
samples/Snake/bin/classes

resource-src:
 [echo] Generating R.java / Manifest.java from the resources...

aidl:
 [echo] Compiling aidl files into Java classes...

compile:
[javac] Compiling 4 source files to /home/test/android-sdk-
linux_x86-0.9_beta/samples/Snake/bin/classes

dex:
 [echo] Converting compiled files and external libraries into bin/
classes.dex...

package-res:

package-res-and-assets:
 [echo] Packaging resources and assets...

debug:
 [echo] Packaging bin/Snake-debug.apk, and signing it with a debug
key...
 [exec] null

BUILD FAILED
/home/test/android-sdk-linux_x86-0.9_beta/samples/Snake/build.xml:210:
exec returned: 1


--

但在 ~/android-sdk-linux_x86-0.9_beta/samples/Snake/bin 下有看到
但是用file指令查詢
file Snake-debug.apk

結果
Snake-debug.apk: empty

所以他有產生 但是沒有東西@@





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: problem about linux (ubuntu) develop android with Eclispe

2008-09-03 Thread Chihau Chau
Hi you can download the last version of Eclipse for Linux in www.eclipse.org

2008/9/3 Olexiy K. [EMAIL PROTECTED]




 On 3 сент, 06:11, anderson [EMAIL PROTECTED] wrote:
  i have some problem with linux (ubuntu)
  when use apt-get install eclipse  , that will install eclipse
  3.2.2-5ubuntu2
 
  but it's recommand to use  Eclipse 3.3 (Europa), 3.4 (Ganymede)
 
  http://code.google.com/android/intro/installing.html
  supported Development Environments:
  * Eclipse IDE
  o Eclipse 3.3 (Europa), 3.4 (Ganymede)
 
 I installed Eclipse 3.2 on Ubuntu and everything works.
 But I didn't try to run Snake

 



-- 
Chihau Chau

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Api Android??

2008-09-03 Thread [EMAIL PROTECTED]

Salve a tutti,
volevo sapere come si programma per Android, non ci sono le Java
Swing...
Un tutorial fatto meglio, che ti dice tutto quello che puoi usare?

Grazie

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: problem about linux (ubuntu) develop android with Eclispe

2008-09-03 Thread Fredrik Markström
I had this problem:
- Make that the the keytool in your path is not gcj:s !
- Remove ~/.android/debug.keystore
- Try again !

/Fredrik


On Wed, Sep 3, 2008 at 5:11 AM, anderson [EMAIL PROTECTED] wrote:


 i have some problem with linux (ubuntu)
 when use apt-get install eclipse  , that will install eclipse
 3.2.2-5ubuntu2

 but it's recommand to use  Eclipse 3.3 (Europa), 3.4 (Ganymede)

 http://code.google.com/android/intro/installing.html
 supported Development Environments:
 * Eclipse IDE
 o Eclipse 3.3 (Europa), 3.4 (Ganymede)

 so i download Eclipse 3.4 unzip it and follow the document

 i open the project that already in sample/Snake 
 but cant find Snake.apk

 eclipse console message :

 - Snake] Android Launch!
 - Snake] adb is running normally.
 - Snake] Could not find Snake.apk!

 so i try to use command line

  ./activitycreator --out ../samples/Snake/ com.android.snake.Snake 
 then u get sample/Snake/build.xml
 then run ant
 it shows
 ---

 Buildfile: build.xml

 dirs:
 [echo] Creating output directories if needed...
[mkdir] Created dir: /home/test/android-sdk-linux_x86-0.9_beta/
 samples/Snake/bin/classes

 resource-src:
 [echo] Generating R.java / Manifest.java from the resources...

 aidl:
 [echo] Compiling aidl files into Java classes...

 compile:
[javac] Compiling 4 source files to /home/test/android-sdk-
 linux_x86-0.9_beta/samples/Snake/bin/classes

 dex:
 [echo] Converting compiled files and external libraries into bin/
 classes.dex...

 package-res:

 package-res-and-assets:
 [echo] Packaging resources and assets...

 debug:
 [echo] Packaging bin/Snake-debug.apk, and signing it with a debug
 key...
 [exec] null

 BUILD FAILED
 /home/test/android-sdk-linux_x86-0.9_beta/samples/Snake/build.xml:210:
 exec returned: 1

 ---

 but
 at  ~/android-sdk-linux_x86-0.9_beta/samples/Snake/bin
 Snake-debug.apk exists

 but file Snake-debug.apk 

 it shows : Snake-debug.apk: empty

 i dont know why ? it's a problem with ubuntu enviroment setting or
 eclipse setting ?


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Need Help

2008-09-03 Thread Ravi Savaliya
Hey Prabhat..

here is code for reading data from URL,, u can test it just pass url.. it
will return all data. on that url.


public String requestURLData(String uri)
{
  String result=null;

  InputStream input_stream=null;
BufferedReader buffered_stream=null;
URLConnection connection_object=null;
  try
   {
 //construct url
  URL url_object = new URL(uri);

  // Open Connection for url
  connection_object = url_object.openConnection();

  //connect
  connection_object.connect();
  input_stream = connection_object.getInputStream();
  // Reader rd=new Reader(input_stream);
  // Buffered is always good for a performance plus.
   buffered_stream = new BufferedReader(new
InputStreamReader(input_stream));


result=buffered_stream.readLine();


 }
catch(Exception e){e.printStackTrace();}
finally
 {
  try
 {
  //close streams
  buffered_stream.close();
  input_stream.close();

 } catch(Exception e)
 { e.printStackTrace();}
 }
   return result;

}


Cheers,
Ravi Savaliya
On Wed, Sep 3, 2008 at 10:36 AM, PRABHAT KUMAR 
[EMAIL PROTECTED] wrote:

 Hi Friends,

   I am new to android  I am not able to understand how
 to fetch data from a site using API..

 Can anyone of you mail me a sample code ... I am using
 Eclipse with android plugin



 --
 Thanks  Regards
 --
 Prabhat Kumar


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: connection to a distant socket server

2008-09-03 Thread Megha Joshi
First, can your browser app on the emulator connect to the internet? If not,
check your proxy settings, there are quite a few threads on the forum on
setting emulator proxy.
Next, did you add uses-permission
android:name=android.permission.INTERNET / tag to your app's
AndroidManifest.xml?
The new SDK requires that permission for network calls.


2008/9/3 Julien veneziano [EMAIL PROTECTED]

 Hi all,
 I tried to connect to a distant socket server and i've got this error
 message :

 ERROR/OSNetworkSystem(458): unknown socket error -1

 Since i just do :

 Socket conn = new Socket(my.distant.server.ip, my_distant_server_port);


 I don't think the code is the problem (on top of that, it work when a
 launch this command throught a java). Then I thought it would be an emulator
 setting problem. I used this redir cmd but didn't work. If somebody know
 about it...

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] ActivityCreator

2008-09-03 Thread JK

There seems to be an error on the online-tutorial:
http://code.google.com/android/intro/hello-android.html#upgrading
Section: Creating the Project without Eclipse

activitycreator.py --out HelloAndroid com.android.hello.HelloAndroid

For 0.9-beta it seems to be working with:
activitycreator.bat --out HelloAndroid com.android.hello.HelloAndroid

for m5 with:
activitycreator.exe --out HelloAndroid com.android.hello.HelloAndroid

Can somebody confirm ?

Is this going to be corrected ?

JK

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Local-side IPC implementation stub classes

2008-09-03 Thread jtaylor



What is the story about all of these Local-side IPC implementation
stub class classes inside packages, such as Location? I have a vague
understanding that it probably deals with Inter Process Communication
regarding possibilities an app may take in terms of the package.


- Juan T.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problem with basic Map application

2008-09-03 Thread Rani v
Hey

Thanks for reply

Now it is working after adding folowing lines to menifest file

uses-permission android:name=android.permission.ACCESS_LOCATION
/uses-permission
uses-permission android:name=android.permission.INTERNATE
/uses-permission
uses-permission android:name=android.permission.ACCESS_GPS
/uses-permission
uses-permission android:name=android.permission.ADD_SYSTEM_SERVICE

I didn't do any proxy changes.

thnx,
rani






On Tue, Sep 2, 2008 at 11:34 PM, Justin (Google Employee) [EMAIL 
PROTECTED]wrote:


 The map tiles probably aren't appearing because you're behind a proxy
 at your office. The emulator has some issues working behind a proxy,
 for more information on this take a look at

 http://groups.google.com/group/android-developers/browse_frm/thread/3042e0626f197f95
 on the Android Developers forum.

 The problem with the zoom is probably that the map isn't ready yet to
 receive that event. You probably want to wait to adjust zoom until the
 map does some basic loading. Check that MapView.canCoverCenter()
 returns true and that MapView.getLongitudeSpan() and
 MapView.getLatitudeSpan() return non-zero values.

 Cheers,
 Justin
 Android Team @ Google

  On Aug 28, 11:14 pm, Rani v [EMAIL PROTECTED] wrote:
  Hi Justin,
 
  Thanks for reply !!
 
  well, When i uncomment mc.zoomIn(); , it gives an error {The application
  (process.com.Map) has stopped unexpectedely],but  mc.setZoom(10); don't
  gives an error message.
  **
  *But my problem is somthing very different, in my office Pc, it dont
 display
  any thing except a blank screen i am sending you the logcat and
 screenshot
  of Map Application and the following code :*
 
  @Override
 
  *public* *void* onCreate(Bundle savedInstanceState) {
 
  *super*.onCreate(savedInstanceState);
 
  mMapView = *new* MapView(*this*, map);
 
  // Latitude and Longitude
 
  GeoPoint p = *new* GeoPoint((*int*) (28.38 * 100),
 
  (*int*) (77.12 * 100));
 
  MapController mc = mMapView.getController();
 
  mc.animateTo(p);
 
  mc.setZoom(10);
 
  setContentView(mMapView);
 
  mMapView.isSatellite();
 
  }
 
  @Override
 
  *protected* *boolean* isRouteDisplayed() {
 
  // *TODO* Auto-generated method stub
 
  *return* *true*;
 
  }
 
  *Why do we need to override this method in 0.9 beta version ? should it
  return false always ?*
  *[Note:  i am using **android-sdk-windows-0.9_beta *and* Eclipse 3.3 ]*
  **
  And at home i am using *android-sdk_m5-rc15_windows *and *eclipse 3.3
  ,*here it is working fine and displaying the images too , i dont know
  ,where
  is the problem ? whether in network or in API
 
  please Suggest!!!
 
  On Thu, Aug 28, 2008 at 11:22 PM, Justin (Google Employee)
  [EMAIL PROTECTED]wrote:
  
 
 
// mc.zoomIn(); //Not working
 
   Define not working. It throws an exception? It returns false?
 
   Try adjusting the zoom level after setting the MapView to the content
   view of the Activity. Does it work if you use setZoom instead? What is
   the return from MapView.getZoomLevel()?
 
   Cheers,
   Justin
   Android Team @ Google
 
   On Aug 28, 1:50 am, Rani v [EMAIL PROTECTED] wrote:
Hi All,
 
I am writing a class to display basic Map, but it is showing only a
 blank
screen ,can any one suggest me how to display the map
sending you the code
**
 
*
 
public* *class* MapExample *extends* MapActivity {
 
*private* MapView mMapView;
 
*private* String map = Browse Map;
 
/** Called when the activity is first created. */
 
@Override
 
*public* *void* onCreate(Bundle savedInstanceState) {
 
*super*.onCreate(savedInstanceState);
 
mMapView = *new* MapView(*this*, map);
 
// Latitude and Longitude
 
GeoPoint p = *new* GeoPoint((*int*) (28.38 * 100),
 
(*int*) (77.12 * 100));
 
// MapController manages panning and zooming of a map
 
MapController mc = mMapView.getController();
 
mc.setCenter(p);
 
// mc.zoomIn(); //Not working
 
setContentView(mMapView);
 
mMapView.isSatellite();
 
}
 
 }
I am using *android-sdk-windows-0.9_beta *and* Eclipse 3.3 *
 
 
 
   andy1.bmp
  1422KViewDownload
 
   andy2.doc
  39KViewDownload
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---