[android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Martin
Can you use the InfoWindowAdapter and override it's GetInfoContent handler 
to supply your own custom View and in that custom View create the clickable 
Views you require?

https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/GoogleMap.InfoWindowAdapter#getInfoContents%28com.google.android.gms.maps.model.Marker%29

Martin.


On Tuesday, March 12, 2013 9:29:00 PM UTC, elin wrote:

 According to the following link: 
 https://developers.google.com/maps/documentation/android/v1/mapkey

 *Note*: Version 1 of the Google Maps Android API as been officially 
 deprecated as of December 3rd, 2012. *This means that from March 3rd, 
 2013 you will no longer be able to request an API key for this version.* No 
 new features will be added to Google Maps Android API v1. However, apps 
 using v1 will continue to work on devices. Existing and new developers are 
 encouraged to use Google Maps Android API 
 v2https://developers.google.com/maps/documentation/android/
 .

 So I am trying to migrate my Android Map API to Google Map API V2. My Map 
 application was using ItemsizedOverlay with onTap event so that user can 
 click the Overlay on different links, views or buttons to navigate to the 
 destination or close the BalloonItem if user click the close button. But on 
 API v2, the ItemizedOverlay is replaced as InfoWindow.  As a result, any 
 listeners you set on the InfoWindow are disregarded and you cannot 
 distinguish between click events on various parts of the view.

 I cannot believe migrate to Map API v2 is going to reduce the features of 
 the Map application. Those features are something I cannot use without it. 
 Can anyone let me know any alternative for getting onTap (or onClick) 
 listener for the InfoWindow? Or what other control can provide the similar 
 feature for InfoWindow.

 Many thanks!



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] CONNECT Request sent when using HttpUrlConnection and keep-alive

2013-03-13 Thread Guillaume Lachaud
Hi !

I am using Charles Proxy to monitor HTTP requests during the development of 
my application. I have recently switched from using HttpClient to 
HttpUrlConnection and I have noticed something weird with Charles.

After issuing a few requests in a row (say something like 30), I will see a 
request that I haven't sent myself go through Charles. It uses the CONNECT 
http method and here is the RAW request sent :

CONNECT my_host:443 HTTP/1.1
Host: my_host
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; fr-fr; Galaxy Nexus 
Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile 
Safari/534.30
Proxy-Connection: Keep-Alive

But as the method my_host isn't valid, I have 501 error. I don't 
understand why this request is sent. If I disable keep-alive, it will never 
occur. Note : All my calls are made on https.

Any idea of what this request is ? Thanks

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: New SDK release for Egnos

2013-03-13 Thread Leonardo Costa
Hello!
The European Commission wanted me to remind you that the EGNOS SDK v3 is 
fully available for different OS: access the EGNOS portal for downloading 
your version of the toolkit (Download the EGNOS SDK). You can also check 
the compatibility of your OS version.
If you encounter any problem in your development or just want to discuss 
some issues about the EGNOS SDK, using the Demo App or the SDK Core, refer 
to the supporting documentation. If you do not find an answer to your 
questions, directly write us at: egnos.toolk...@gsa.europa.eu.

More simply, you can just ask by replying to this post :-). I will be glad 
to help!


On Tuesday, 31 July 2012 23:20:39 UTC+2, Leonardo Costa wrote:

 Hello,
 I'm posting this info on behalf of the European Commission, the new 
 release of the EGNOS SDK for app developers is now available.

 This EGNOS SDK allows taking advantage of the European system that 
 provides enhanced positioning accuracy and other features (e.g. information 
 on the reliability of the position itself) directly towards the 
 smartphones. It is available for free on the EGNOS Portal at 
 http://egnos-portal.gsa.europa.eu/developer-platform/egnos-toolkits/egnos-sdk

 I am available for any further info, request, questions, you may have on 
 this topic and will post reply here. I will also post further details in 
 the next weeks, following up directly  at this thread.
 Thanks and regards,
 Leonardo


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] OutofMemory Excepton error in android

2013-03-13 Thread karunakar medamoni
Hello 

Every one. This is karunakar working on android project. Am converting 
apertium based webpage to android app. When i try to run 
com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file 
and input file am getting this error. If any help from any one it would be 
helpful for me.

Here am pasting my code please have a look at once.

System.setOut(new PrintStream(new BufferedOutputStream(new 
FileOutputStream(/data/data/com.samsaadhani.sandhi1/files/output;
FileOutputStream fis = openFileOutput(input, 
Context.MODE_PRIVATE);
fis.write(input.getText().toString().getBytes());
fis.write(\n.getBytes());
fis.close();
LTProc.main(new 
String[]{/data/data/com.samsaadhani.sandhi1/files/skt_morf.bin,/data/data/com.samsaadhani.sandhi1/files/input});

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android Service

2013-03-13 Thread Dan
On Friday, March 1, 2013 2:39:59 AM UTC-5, Amith Salian wrote:

 I have a strange situation with my Service in Activity.
 My service calls a background method every 20 sec when active.  In the 
 development environment the time elapse between successive calls is exactly 
 20 sec, however in an Android device it is arbitrary.
 Anyone encountered this issue?


Real devices sleep* (shut down the application processor and only wake
up for alarms or on request by the radio processor.)  To confirm that the
sleep is the issue, plug the device into USB and check the developer
option to keep the screen on while charging and see if your calls still
happen every 20 seconds (if it's still arbitrary, you have some other
bug.)

Read up on wake locks and alarms if you need to wake it from that sleep. 

Note that battery use while awake is close to rate of use for talk time
(full to empty) and while asleep is close to standby, so keeping it awake
will drain the battery much sooner.

* note that the term sleep is overloaded and I only use it because there
isn't a preferred term for when the processor shuts down when you don't
hold a partial wake lock (vs when the screen goes blank but the processor
still gets cycles.)  My use isn't related to any language sleep function
but intended to describe large periods of time where the application 
processor
doesn't get cycles to do things because the OS has shut things down and
no wake locks or partial wake locks are being held.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: OutofMemory Excepton error in android

2013-03-13 Thread RichardC
Can you include the full stack trace from LogCat please.

On Wednesday, March 13, 2013 11:37:16 AM UTC, karunakar medamoni wrote:

 Hello 

 Every one. This is karunakar working on android project. Am converting 
 apertium based webpage to android app. When i try to run 
 com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file 
 and input file am getting this error. If any help from any one it would be 
 helpful for me.

 Here am pasting my code please have a look at once.

 System.setOut(new PrintStream(new BufferedOutputStream(new 
 FileOutputStream(/data/data/com.samsaadhani.sandhi1/files/output;
 FileOutputStream fis = openFileOutput(input, 
 Context.MODE_PRIVATE);
 fis.write(input.getText().toString().getBytes());
 fis.write(\n.getBytes());
 fis.close();
 LTProc.main(new 
 String[]{/data/data/com.samsaadhani.sandhi1/files/skt_morf.bin,/data/data/com.samsaadhani.sandhi1/files/input});


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: EditText stops displaying characters as I'm typing?

2013-03-13 Thread Chandra Sekhar Nayak
I am finding the same problem in my Kindle tablet. While typing 1st letter 
its not showing and after that from 2d to 8th letter its showing and there 
after it is not showing.

This issue happens with the edittext of some activities. Some other 
Activities are having the edittext with same attribute, but thos are not 
having this problem.

Can you please help, how you solved it?

On Saturday, 14 May 2011 01:54:31 UTC+5:30, Ben S wrote:

 Basically what happens is I will start typing on the keyboard (stock 
 and third party), and all of a sudden it stops showing characters I 
 type in the EditText, (sometimes) resets the caret to the beginning, 
 yet I know I'm still typing because the suggestions box shows the 
 characters as I type.  I've experienced the behavior on at least 5 
 different devices (running 2.2, 2.3) as well as the emulator (running 
 2.1) but can't seem to nail down a solution. 

 It is seemingly random; I'm not reading any error logs through DDMS 
 from the system, (the only thing I see being written :sometimes: is 
 WARN/IInputConnectionWrapper(991): endBatchEdit on inactive 
 InputConnection) so I'm a little baffled. 

 Here is what it looks like: http://i.stack.imgur.com/gsB49.png 

 Here is the XML layout of the EditText: 

 ?xml version=1.0 encoding=utf-8? 
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/ 
 android 
 android:orientation=vertical 
 android:layout_width=fill_parent 
 android:layout_height=fill_parent 

 ListView android:id=@android:id/list 
 android:layout_width=fill_parent 
 android:layout_height=wrap_content 
 android:layout_weight=1 
 android:transcriptMode=alwaysScroll/ 

 EditText android:id=@+id/etMain 
 android:layout_width=fill_parent 
 android:layout_height=wrap_content 
 android:inputType=text|textAutoCorrect 
 android:imeOptions=actionSend 
 requestFocus / 
 /EditText 
 /LinearLayout 


 And here is my code from the Activity: 

 et = (EditText) findViewById(R.id.etMain); 

 et.setOnEditorActionListener(new OnEditorActionListener() { 
 @Override 
 public boolean onEditorAction(TextView v, int 
 actionId, KeyEvent 
 event) { 
 if ((event != null  (event.getKeyCode() == 
 KeyEvent.KEYCODE_ENTER)) || actionId == EditorInfo.IME_ACTION_SEND) { 
 String sendText = 
 v.getText().toString(); 

 if (sendText.length()  0) { 
 v.setText(); 

  

 } 
 } 
 return true; 
 } 

 return false; 
 } 
 }); 


 Appreciate any insights...let me know if you need anything else... 

 Ben

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android Service

2013-03-13 Thread bob


On Friday, March 1, 2013 1:39:59 AM UTC-6, Amith Salian wrote:

 I have a strange situation with my Service in Activity.
 My service calls a background method every 20 sec when active.  In the 
 development environment the time elapse between successive calls is exactly 
 20 sec,* however in an Android device it is arbitrary*.


How arbitrary is it?  I would expect it to be pretty close to 20 seconds 
and probably close enough for almost all reasonable use cases.



 

 Anyone encountered this issue?



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] android cts: Why do tests in the package run fail but individual tests pass?

2013-03-13 Thread trueskew


I'm hitting failures when running 

cts-tf  run cts --package android.holo

but when I run the failed tests individually, like

cts-tf  run cts --class android.holo.cts.HoloTest --method 
testHoloWallpaperNoTitleBar

they pass.

Without knowing the internals, I'd expect that something that failed a 
package test would fail an individual test. If there was a dependency on a 
previous test, then if anything failed it would be the individual test. 

Is this a cts timing issue, something expected with holo, or something 
else? If you understand it, please enlighten me.  I'm new to cts, and this 
state isn't helping with my bug fixing.

Thanks.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-13 Thread karunakar medamoni
Hello Richard

Thank u for u reply. I will be back  with full stack from LogCat by
tomorrow morning.

 Thanks  Regards

M. Karunakar
University of Hyderabad,Hyd,
9491388035.


On Wed, Mar 13, 2013 at 6:11 PM, RichardC richard.crit...@googlemail.comwrote:

 Can you include the full stack trace from LogCat please.


 On Wednesday, March 13, 2013 11:37:16 AM UTC, karunakar medamoni wrote:

 Hello

 Every one. This is karunakar working on android project. Am converting
 apertium based webpage to android app. When i try to run
 com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file
 and input file am getting this error. If any help from any one it would be
 helpful for me.

 Here am pasting my code please have a look at once.

 System.setOut(new PrintStream(new BufferedOutputStream(new
 FileOutputStream(/data/data/**com.samsaadhani.sandhi1/files/**
 output;
 FileOutputStream fis = openFileOutput(input,
 Context.MODE_PRIVATE);
 fis.write(input.getText().**toString().getBytes());
 fis.write(\n.getBytes());
 fis.close();
 LTProc.main(new String[]{/data/data/com.**
 samsaadhani.sandhi1/files/skt_**morf.bin,/data/data/com.**
 samsaadhani.sandhi1/files/**input});

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/feA_XKu8N1o/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Sending and Receiving SMS/MMS in Android

2013-03-13 Thread Etienne


*Receiving MMS*

So after doing more research I saw some suggestions of registering a 
ContentObserver. That way you can detect when there are any changes to the 
content://mms-sms/conversations Content Provider, consequently allowing you 
to detect incoming MMS. Here is the closest example to get this to work 
that I have found: Receiving 
MMShttp://www.anddev.org/other-coding-problems-f5/where-can-i-find-information-about-sending-receiving-mms-t51284.html

However, there is a variable mainActivity of type ServiceController. Where 
is theServiceController class implemented? Are there any other 
implementations of a registeredContentObserver?

*Sending MMS*

As for sending MMS, I have come across this example: Send 
MMShttp://www.ziddu.com/download/14286605/SendMMS3.zip.html

The problem is that I tried running this code on my Nexus 4, which is on 
Android v4.2.2, and I am receiving this error:

java.lang.SecurityException: No permission to write APN settings: Neither user 
10099 nor current process has android.permission.WRITE_APN_SETTINGS.

The error gets thrown after querying the Carriers ContentProvider in the 
getMMSApns() method of the APNHelper class.

final Cursor apnCursor = 
this.context.getContentResolver().query(Uri.withAppendedPath(Carriers.CONTENT_URI,
 current), null, null, null, null);

Apparently you can't Read APNs in Android 
4.2http://stackoverflow.com/questions/13453640/read-apns-in-android-4-2

What is the alternative for all those applications which use mobile data to 
perform operations (like sending MMS) and don't know the default APN 
setting present in the device?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: android cts: Why do tests in the package run fail but individual tests pass?

2013-03-13 Thread RichardC
AOSP forums are here:
http://source.android.com/community/index.html

On Wednesday, March 13, 2013 3:49:06 PM UTC, trueskew wrote:

 I'm hitting failures when running 

 cts-tf  run cts --package android.holo

 but when I run the failed tests individually, like

 cts-tf  run cts --class android.holo.cts.HoloTest --method 
 testHoloWallpaperNoTitleBar

 they pass.

 Without knowing the internals, I'd expect that something that failed a 
 package test would fail an individual test. If there was a dependency on a 
 previous test, then if anything failed it would be the individual test. 

 Is this a cts timing issue, something expected with holo, or something 
 else? If you understand it, please enlighten me.  I'm new to cts, and this 
 state isn't helping with my bug fixing.

 Thanks.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
I will have a try and let you know the results.

Thanks!




On Wed, Mar 13, 2013 at 3:25 AM, Martin warwo...@gmail.com wrote:

 Can you use the InfoWindowAdapter and override it's GetInfoContent handler
 to supply your own custom View and in that custom View create the clickable
 Views you require?


 https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/GoogleMap.InfoWindowAdapter#getInfoContents%28com.google.android.gms.maps.model.Marker%29

 Martin.



 On Tuesday, March 12, 2013 9:29:00 PM UTC, elin wrote:

 According to the following link: https://developers.**
 google.com/maps/documentation/**android/v1/mapkeyhttps://developers.google.com/maps/documentation/android/v1/mapkey

 *Note*: Version 1 of the Google Maps Android API as been officially
 deprecated as of December 3rd, 2012. *This means that from March 3rd,
 2013 you will no longer be able to request an API key for this version.* No
 new features will be added to Google Maps Android API v1. However, apps
 using v1 will continue to work on devices. Existing and new developers are
 encouraged to use Google Maps Android API 
 v2https://developers.google.com/maps/documentation/android/
 .

 So I am trying to migrate my Android Map API to Google Map API V2. My Map
 application was using ItemsizedOverlay with onTap event so that user can
 click the Overlay on different links, views or buttons to navigate to the
 destination or close the BalloonItem if user click the close button. But on
 API v2, the ItemizedOverlay is replaced as InfoWindow.  As a result, any
 listeners you set on the InfoWindow are disregarded and you cannot
 distinguish between click events on various parts of the view.

 I cannot believe migrate to Map API v2 is going to reduce the features of
 the Map application. Those features are something I cannot use without it.
 Can anyone let me know any alternative for getting onTap (or onClick)
 listener for the InfoWindow? Or what other control can provide the similar
 feature for InfoWindow.

 Many thanks!

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: maps api 2,onlocationchanged direction

2013-03-13 Thread lbendlin
The blue marker is not your location. It is just the starting point of the 
route.  You need to manage the MyLocation overlay separately.

On Wednesday, March 13, 2013 1:40:13 AM UTC-4, Pratama Nur Wijaya wrote:


 https://lh4.googleusercontent.com/-uF1Ec7EnvVw/UUAQ9skh1-I/AfM/F_MUdqn5fs0/s1600/screenshot-1363152255861.png
 Hello,,

 i'm trying make some direction apps on android.. i was able show direction 
 line with parsing lat and longitude from 
 http://maps.googleapis.com/maps/api/directions/json?

 marker blue is mylocation.. and red is my destination,

 my problem is.. when i move walking my blue marker not follow me..
 i'm notice some method that is onLocationChange.. 

 any advice for me..? 



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
I can supply the custom view, the views have the autolink for phone or
email, but when I click the InfoWindow, it raised as whole InfoWindow
event. Here is the codes I revised from a post by Commonware. Any light?

public class TaskMapV2 extends FragmentActivity implements
OnInfoWindowClickListener {
  private static final String STATE_NAV=nav;
  private static final int[] MAP_TYPE_NAMES= { R.string.normal,
  R.string.hybrid, R.string.satellite, R.string.terrain };
  private static final int[] MAP_TYPES= { GoogleMap.MAP_TYPE_NORMAL,
  GoogleMap.MAP_TYPE_HYBRID, GoogleMap.MAP_TYPE_SATELLITE,
  GoogleMap.MAP_TYPE_TERRAIN };
  private GoogleMap map=null;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

  setContentView(R.layout.map_fragement);

  SupportMapFragment mapFrag=

(SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map);


  map=mapFrag.getMap();

  if (savedInstanceState == null) {
CameraUpdate center=
CameraUpdateFactory.newLatLng(new LatLng(40.76793169992044,
 -73.98180484771729));
CameraUpdate zoom=CameraUpdateFactory.zoomTo(15);

map.moveCamera(center);
map.animateCamera(zoom);
  }

  addMarker(map, 40.748963847316034, -73.96807193756104, A place,
Place Name);

  map.setInfoWindowAdapter(new MapPopupAdapter(getLayoutInflater()));
  map.setOnInfoWindowClickListener(this);

  }

  @Override
  public void onSaveInstanceState(Bundle savedInstanceState) {
super.onSaveInstanceState(savedInstanceState);

  }

  @Override
  public void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);

  }

  @Override
  public void onInfoWindowClick(Marker marker) {
Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show();
  }

  private void addMarker(GoogleMap map, double lat, double lon,
 int title, int snippet) {
map.addMarker(new MarkerOptions().position(new LatLng(lat, lon))
 .title(getString(title))
 .snippet(getString(snippet)));
  }

  private void addMarker(GoogleMap map, double lat, double lon,
  String title, String snippet) {
   map.addMarker(new MarkerOptions().position(new LatLng(lat, lon))
  .title(title)
  .snippet(snippet));
  }
}

public class MapPopupAdapter implements InfoWindowAdapter {
  LayoutInflater inflater=null;

  public MapPopupAdapter(LayoutInflater inflater) {
this.inflater=inflater;
  }

  @Override
  public View getInfoWindow(Marker marker) {
return(null);
  }

  @Override
  public View getInfoContents(Marker marker) {
View popup=inflater.inflate(R.layout.map_overlay_view, null);

TextView tv=(TextView)popup.findViewById(R.id.item_title);
tv.setText(marker.getTitle());

TextView snippet = (TextView)popup.findViewById(R.id.item_snippet);
snippet.setText(marker.getSnippet());

TextView phone = (TextView)popup.findViewById(R.id.item_phone);
phone.setText(262-347-5678);

return(popup);
  }
}

map_overlay_view
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=wrap_content
android:layout_height=wrap_content
android:orientation=horizontal
android:paddingBottom=35dip
android:paddingLeft=10dip
android:minWidth=200dip
android:id=@+id/balloon_main_layout
android:paddingTop=0dip
android:paddingRight=0dip
LinearLayout
android:layout_width=wrap_content
android:layout_height=wrap_content
android:orientation=vertical
android:layout_weight=1
android:paddingTop=10dip
android:id=@+id/balloon_inner_layout
TextView android:layout_height=wrap_content
android:layout_width=fill_parent
android:id=@+id/item_title
android:text=@string/item_title
android:textSize=16sp
android:textColor=#FF00/TextView
TextView android:layout_height=wrap_content
android:layout_width=fill_parent
android:id=@+id/item_snippet
android:text=@string/item_snippet
android:textSize=16sp
android:textColor=#FF00/TextView
TextView android:layout_height=wrap_content
android:layout_width=fill_parent
android:id=@+id/item_phone
android:text=@string/item_phone
android:textSize=16sp
android:autoLink=phone
android:textColor=#FF00/TextView
TextView android:layout_height=wrap_content
android:layout_width=fill_parent
android:id=@+id/item_email
android:text=@string/balloon_item_email
android:autoLink=email
android:textSize=16sp/TextView
/LinearLayout
ImageView android:layout_width=wrap_content
android:layout_height=wrap_content
android:src=@drawable/icon_close_32
android:id=@+id/close_img_button
android:paddingLeft=12dip
android:paddingBottom=12dip
android:paddingRight=6dip
android:paddingTop=6dip/ImageView
/LinearLayout

Many Thanks!




On Wed, Mar 13, 2013 at 2:34 PM, Edward Lin 

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Mark Murphy
You define views for the InfoWindow, but that's not what is rendered
on the screen, AFAIK. Instead, the views appear to be converted into a
bitmap, presumably by drawing them into a bitmap-backed Canvas. My
assumption is that this is due to the inter-process communication
between the Maps V2 library in our apps and the Play Services
Framework, and their collaboration on actually assembling the map.

You are welcome, presumably, to put your own widgets over top of the
map, by putting the Map in a RelativeLayout, FrameLayout, etc., though
I have not tried this.


On Wed, Mar 13, 2013 at 4:47 PM, Edward Lin edwardlinw...@gmail.com wrote:
 I can supply the custom view, the views have the autolink for phone or
 email, but when I click the InfoWindow, it raised as whole InfoWindow event.
 Here is the codes I revised from a post by Commonware. Any light?

 public class TaskMapV2 extends FragmentActivity implements
 OnInfoWindowClickListener {
   private static final String STATE_NAV=nav;
   private static final int[] MAP_TYPE_NAMES= { R.string.normal,
   R.string.hybrid, R.string.satellite, R.string.terrain };
   private static final int[] MAP_TYPES= { GoogleMap.MAP_TYPE_NORMAL,
   GoogleMap.MAP_TYPE_HYBRID, GoogleMap.MAP_TYPE_SATELLITE,
   GoogleMap.MAP_TYPE_TERRAIN };
   private GoogleMap map=null;

   @Override
   protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

   setContentView(R.layout.map_fragement);

   SupportMapFragment mapFrag=

 (SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map);


   map=mapFrag.getMap();

   if (savedInstanceState == null) {
 CameraUpdate center=
 CameraUpdateFactory.newLatLng(new LatLng(40.76793169992044,
  -73.98180484771729));
 CameraUpdate zoom=CameraUpdateFactory.zoomTo(15);

 map.moveCamera(center);
 map.animateCamera(zoom);
   }

   addMarker(map, 40.748963847316034, -73.96807193756104, A place,
 Place Name);

   map.setInfoWindowAdapter(new MapPopupAdapter(getLayoutInflater()));
   map.setOnInfoWindowClickListener(this);

   }

   @Override
   public void onSaveInstanceState(Bundle savedInstanceState) {
 super.onSaveInstanceState(savedInstanceState);

   }

   @Override
   public void onRestoreInstanceState(Bundle savedInstanceState) {
 super.onRestoreInstanceState(savedInstanceState);

   }

   @Override
   public void onInfoWindowClick(Marker marker) {
 Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show();
   }

   private void addMarker(GoogleMap map, double lat, double lon,
  int title, int snippet) {
 map.addMarker(new MarkerOptions().position(new LatLng(lat, lon))
  .title(getString(title))
  .snippet(getString(snippet)));
   }

   private void addMarker(GoogleMap map, double lat, double lon,
   String title, String snippet) {
   map.addMarker(new MarkerOptions().position(new LatLng(lat, lon))
   .title(title)
   .snippet(snippet));
   }
 }

 public class MapPopupAdapter implements InfoWindowAdapter {
   LayoutInflater inflater=null;

   public MapPopupAdapter(LayoutInflater inflater) {
 this.inflater=inflater;
   }

   @Override
   public View getInfoWindow(Marker marker) {
 return(null);
   }

   @Override
   public View getInfoContents(Marker marker) {
 View popup=inflater.inflate(R.layout.map_overlay_view, null);

 TextView tv=(TextView)popup.findViewById(R.id.item_title);
 tv.setText(marker.getTitle());

 TextView snippet = (TextView)popup.findViewById(R.id.item_snippet);
 snippet.setText(marker.getSnippet());

 TextView phone = (TextView)popup.findViewById(R.id.item_phone);
 phone.setText(262-347-5678);

 return(popup);
   }
 }

 map_overlay_view
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:orientation=horizontal
 android:paddingBottom=35dip
 android:paddingLeft=10dip
 android:minWidth=200dip
 android:id=@+id/balloon_main_layout
 android:paddingTop=0dip
 android:paddingRight=0dip
 LinearLayout
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:orientation=vertical
 android:layout_weight=1
 android:paddingTop=10dip
 android:id=@+id/balloon_inner_layout
 TextView android:layout_height=wrap_content
 android:layout_width=fill_parent
 android:id=@+id/item_title
 android:text=@string/item_title
 android:textSize=16sp
 android:textColor=#FF00/TextView
 TextView android:layout_height=wrap_content
 android:layout_width=fill_parent
 android:id=@+id/item_snippet
 android:text=@string/item_snippet
 android:textSize=16sp
 android:textColor=#FF00/TextView
 TextView 

Re: [android-developers] Re: Eclipse or Intellij.. what's the verdict?

2013-03-13 Thread Lew
Jason wrote:

 Sure, but the intention of the thread was to inform as to whether intellij 
 is a realistic option for Android development.  People are relaying their 
 personal experience with each, which is all valid, relevant information for 
 those interested in the answer, which I am since I posted the original 
 question.  But again, thanks for the contribution.


The intent of my post was to point out that discussion of editors (IDEs 
included) has always been an open-ended 
and subjective matter. Anything anyone says on such matters has to be taken 
with a hod-ful of salt because it is 
basically a matter of taste, or even religious fervor.

The only way to know is to try. And in my own experience, not to get too 
attached to one or another but to leverage 
each according to its strengths and weaknesses.

I guess I was being too subtle. But anyway, you're welcome. I hope you come 
to appreciate the value of my 
contribution minus your condescension.
 


  Lew wrote:

 Jason wrote:

 Not sure how that helps the discussion, but thanks.


 It puts it in perspective, that is, it illustrates the value of arguing 
 over the best editor as folks have been doing here.

 Does that make it clearer?
  


  Lew wrote:

 Jason wrote:

 My issue has never been with the features of eclipse [sic] .. [sic] 
 they're awesome.  My issue is that they just don't work.  Running CDT 
 along 
 side [sic] regular Java along side Android ADT is just broken.  I am 
 constantly getting combinations of:
  http://www.carboncrystal.com/droid-odyssey/

  
 http://en.wikipedia.org/wiki/**Editor_warhttp://en.wikipedia.org/wiki/Editor_war


-- 
Lew
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Eclipse or Intellij.. what's the verdict?

2013-03-13 Thread bob
 

I tried intelliJ on Mac yesterday, and it *was* a hassle telling it where 
the JDK and Android SDK were.

I'm not even sure how I got past that part.  A lot of fiddling and googling 
were involved.

Anyhow, it is working now, and the fonts are pretty nice on Mac.  I'd say I 
prefer them over Eclipse.

Plus, it seems a bit less sluggish than Eclipse.  



On Tuesday, March 12, 2013 5:17:28 PM UTC-5, Kostya Vasilyev wrote:


 On Tuesday, March 12, 2013 10:59:55 PM UTC+4, Martin Krischik wrote:

 Am Dienstag, 12. März 2013 17:51:41 UTC+1 schrieb b0b:

 Each time someone bashes Eclipse, it is generally followed by stating 
 how awesome Intellij is. 


 Have you ever considered that this is so because is truly Intellij IDEA 
 is awesome.

 Consider this: Almost every Java programmer has used eclipse at one time. 
 So everybody who bashes Eclipse actually knows what he / she is talking 
 about. *Have you tried Intellij IDEA?*


 I tried several times, most recently, as it happens, today.

 First, on Ubuntu.

 Fonts in IDEA are lacking antialising or hinting or both. JetBrains' 
 response on an old bug report about this is won't fix, Linux market is too 
 small, not worth it. Tried a couple magic tweaks found on the 'net, 
 still, no improvement.

 Next, rebooted into Windows 8.

 IDEA could not find the installed JDK when trying to create a new Android 
 project, so I could not get past the new Android project stage.

 Will try again when it won't make my eyes bleed and is able to find Java :)

 -- K



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Integrate app with Pinterest, Instagram...

2013-03-13 Thread Carlos Calvo
Hello,

I want to integrate my application with a storage service of images in the 
cloud type Pinteres, Instagram, etc.

You know if any of these has API to manage the images from my application?

What is the best option?

thx

kLvin

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Integrate app with Pinterest, Instagram...

2013-03-13 Thread TreKing
On Wed, Mar 13, 2013 at 5:08 PM, Carlos Calvo 1caca...@gmail.com wrote:

 What is the best option?


This has nothing to do with Android development.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
Thanks for information! That sounds like Google Map API V2 is way more
complicated than V1 if developers try to use a popup to show information
and execute different events.

If I am using RelativeLayout to position the popup over the marker, is
there any way I can get the location of the marker on the mapFragement when
I click the marker?

Regards,




On Wed, Mar 13, 2013 at 3:55 PM, Mark Murphy mmur...@commonsware.comwrote:

 You define views for the InfoWindow, but that's not what is rendered
 on the screen, AFAIK. Instead, the views appear to be converted into a
 bitmap, presumably by drawing them into a bitmap-backed Canvas. My
 assumption is that this is due to the inter-process communication
 between the Maps V2 library in our apps and the Play Services
 Framework, and their collaboration on actually assembling the map.

 You are welcome, presumably, to put your own widgets over top of the
 map, by putting the Map in a RelativeLayout, FrameLayout, etc., though
 I have not tried this.


 On Wed, Mar 13, 2013 at 4:47 PM, Edward Lin edwardlinw...@gmail.com
 wrote:
  I can supply the custom view, the views have the autolink for phone or
  email, but when I click the InfoWindow, it raised as whole InfoWindow
 event.
  Here is the codes I revised from a post by Commonware. Any light?
 
  public class TaskMapV2 extends FragmentActivity implements
  OnInfoWindowClickListener {
private static final String STATE_NAV=nav;
private static final int[] MAP_TYPE_NAMES= { R.string.normal,
R.string.hybrid, R.string.satellite, R.string.terrain };
private static final int[] MAP_TYPES= { GoogleMap.MAP_TYPE_NORMAL,
GoogleMap.MAP_TYPE_HYBRID, GoogleMap.MAP_TYPE_SATELLITE,
GoogleMap.MAP_TYPE_TERRAIN };
private GoogleMap map=null;
 
@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
 
setContentView(R.layout.map_fragement);
 
SupportMapFragment mapFrag=
 
 
 (SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map);
 
 
map=mapFrag.getMap();
 
if (savedInstanceState == null) {
  CameraUpdate center=
  CameraUpdateFactory.newLatLng(new LatLng(40.76793169992044,
 
  -73.98180484771729));
  CameraUpdate zoom=CameraUpdateFactory.zoomTo(15);
 
  map.moveCamera(center);
  map.animateCamera(zoom);
}
 
addMarker(map, 40.748963847316034, -73.96807193756104, A place,
  Place Name);
 
map.setInfoWindowAdapter(new MapPopupAdapter(getLayoutInflater()));
map.setOnInfoWindowClickListener(this);
 
}
 
@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
  super.onSaveInstanceState(savedInstanceState);
 
}
 
@Override
public void onRestoreInstanceState(Bundle savedInstanceState) {
  super.onRestoreInstanceState(savedInstanceState);
 
}
 
@Override
public void onInfoWindowClick(Marker marker) {
  Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show();
}
 
private void addMarker(GoogleMap map, double lat, double lon,
   int title, int snippet) {
  map.addMarker(new MarkerOptions().position(new LatLng(lat, lon))
   .title(getString(title))
   .snippet(getString(snippet)));
}
 
private void addMarker(GoogleMap map, double lat, double lon,
String title, String snippet) {
map.addMarker(new MarkerOptions().position(new LatLng(lat, lon))
.title(title)
.snippet(snippet));
}
  }
 
  public class MapPopupAdapter implements InfoWindowAdapter {
LayoutInflater inflater=null;
 
public MapPopupAdapter(LayoutInflater inflater) {
  this.inflater=inflater;
}
 
@Override
public View getInfoWindow(Marker marker) {
  return(null);
}
 
@Override
public View getInfoContents(Marker marker) {
  View popup=inflater.inflate(R.layout.map_overlay_view, null);
 
  TextView tv=(TextView)popup.findViewById(R.id.item_title);
  tv.setText(marker.getTitle());
 
  TextView snippet = (TextView)popup.findViewById(R.id.item_snippet);
  snippet.setText(marker.getSnippet());
 
  TextView phone = (TextView)popup.findViewById(R.id.item_phone);
  phone.setText(262-347-5678);
 
  return(popup);
}
  }
 
  map_overlay_view
  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:orientation=horizontal
  android:paddingBottom=35dip
  android:paddingLeft=10dip
  android:minWidth=200dip
  android:id=@+id/balloon_main_layout
  android:paddingTop=0dip
  android:paddingRight=0dip
  LinearLayout
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:orientation=vertical
  

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Mark Murphy
On Wed, Mar 13, 2013 at 6:39 PM, Edward Lin edwardlinw...@gmail.com wrote:
 If I am using RelativeLayout to position the popup over the marker, is there
 any way I can get the location of the marker on the mapFragement when I
 click the marker?

Well, you know the latitude and longitude of the marker, as you
created it. You can get a Projection that will help you convert that
to an on-screen pixel coordinate.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.6 Available!

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Eclipse or Intellij.. what's the verdict?

2013-03-13 Thread Jason Polites
So I've been working in Intellij all day today, although most of the time
was spent in the setup/config process.  I initially tried to get the C++
plugin http://plugins.jetbrains.com/plugin/?id=1373 to work for my NDK
related stuff but just couldn't get the paths setup correctly (I assume)
because none of my includes were resolving so I gave up.  The config of
Android SDK and JDK were a little unexpected but I wonder if that has more
to do with importing from an eclipse project or not.  Anyway this didn't
take long to setup.  I think most of the confusion is just around different
naming conventions in Intellij (project vs module).  So I now have my
Android project in Intellij building, running and debugging fine.  I
decided to just download a fresh copy of eclipse CDT only for the C/C++
work and with just CDT it seems to be running fine.  So far my experience
in actually using the tool has been good, but I'm not sure it's all that
much better than eclipse.  It's definitely faster and more responsive, but
also seems to use more RAM and I really miss the perspectives in eclipse
(debugging in Intellij can mean you run out of screen real estate really
fast.  Double monitor would probably help here).  Now that I'm running two
IDEs (CDT for C++, Intellij for Java) I'm wondering whether I'd get a
similar level of stability from running two separate eclipse instances.

I'm going to continue to use Intellij for a good amount of time to get over
the initial learning curve on the tool itself.  I'm wary about drawing
conclusions that are more about learning how to use a hammer than whether
the hammer works well.


On Wed, Mar 13, 2013 at 2:32 PM, bob b...@coolfone.comze.com wrote:

 I tried intelliJ on Mac yesterday, and it *was* a hassle telling it where
 the JDK and Android SDK were.

 I'm not even sure how I got past that part.  A lot of fiddling and
 googling were involved.

 Anyhow, it is working now, and the fonts are pretty nice on Mac.  I'd say
 I prefer them over Eclipse.

 Plus, it seems a bit less sluggish than Eclipse.



 On Tuesday, March 12, 2013 5:17:28 PM UTC-5, Kostya Vasilyev wrote:


 On Tuesday, March 12, 2013 10:59:55 PM UTC+4, Martin Krischik wrote:

 Am Dienstag, 12. März 2013 17:51:41 UTC+1 schrieb b0b:

 Each time someone bashes Eclipse, it is generally followed by stating
 how awesome Intellij is.


 Have you ever considered that this is so because is truly Intellij IDEA
 is awesome.

 Consider this: Almost every Java programmer has used eclipse at one
 time. So everybody who bashes Eclipse actually knows what he / she is
 talking about. *Have you tried Intellij IDEA?*


 I tried several times, most recently, as it happens, today.

 First, on Ubuntu.

 Fonts in IDEA are lacking antialising or hinting or both. JetBrains'
 response on an old bug report about this is won't fix, Linux market is too
 small, not worth it. Tried a couple magic tweaks found on the 'net,
 still, no improvement.

 Next, rebooted into Windows 8.

 IDEA could not find the installed JDK when trying to create a new Android
 project, so I could not get past the new Android project stage.

 Will try again when it won't make my eyes bleed and is able to find Java
 :)

 -- K

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/03O6rEVdXCY/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Ozzy's Odyssey!  A new game for Android
https://market.android.com/details?id=com.carboncrystal.odyssey
http://www.carboncrystal.com/ http://www.carboncrystal.com/droid-odyssey/

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How to merge Android project to maven project

2013-03-13 Thread chandur mani
Dear All,

 Kindly help me out above the same.

Thanks
Mani

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] image issue while view it as base64 in android mobile2.3

2013-03-13 Thread senthil kumar
Hi,
   Using phone and javascript in our application. we want to see the image 
as base64 from the sqlite db.
In some mobile all the image(i.e 4 or 5) are viewed but in some mobile some 
of the image(even 1 is not displayed) are not viewed we do not know why it 
happening...
is it due to memory? Please explain , if any know about this issue...

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] bluetooth file transfer failure

2013-03-13 Thread akash roy
here  i am trying to send a file over bluetooth but its not sending any
data.
here the main problem is that its not sending or receiving any data over
the two devices but they are connected to each other.

on configuring the bluetooth chat example.


Sending code:


 File myFile = new File(message.toURI());
 Double nosofpackets = Math.ceil(((int) myFile.length() )/4096);
 System.out.println(nosofpackets);
 BufferedInputStream bis= new BufferedInputStream(new
FileInputStream(myFile));
 byte[] send = new byte[4096];
 for(double i=0; inosofpackets; i++)
 {
  send = null ;
  a=bis.read(send, 0,send.length);
  Log.d(BluetoothChat, data packet  + i);
  if(a==-1)
  {
  break;
  }
  mChatService.write(send);
 }


Receiving code :


while((bytes = mmInStream.read(buffer))0)
{

Log.d(TAG, data is there for writing);
bos.write(buffer);

}

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-13 Thread karunakar medamoni
Hi Richard

Good Morning. As per your mail am attaching my android log file. Please
have look at once. I ran the same program from command line and also in
eclipse. I got the output , when i try to integrate with android am getting
this error.

 Thanks  Regards

M. Karunakar
University of Hyderabad,Hyd,
9491388035.


On Wed, Mar 13, 2013 at 10:43 PM, karunakar medamoni 
kannaiah.chi...@gmail.com wrote:

 Hello Richard

 Thank u for u reply. I will be back  with full stack from LogCat by
 tomorrow morning.

  Thanks  Regards

 M. Karunakar
 University of Hyderabad,Hyd,
 9491388035.


 On Wed, Mar 13, 2013 at 6:11 PM, RichardC 
 richard.crit...@googlemail.comwrote:

 Can you include the full stack trace from LogCat please.


 On Wednesday, March 13, 2013 11:37:16 AM UTC, karunakar medamoni wrote:

 Hello

 Every one. This is karunakar working on android project. Am converting
 apertium based webpage to android app. When i try to run
 com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file
 and input file am getting this error. If any help from any one it would be
 helpful for me.

 Here am pasting my code please have a look at once.

 System.setOut(new PrintStream(new BufferedOutputStream(new
 FileOutputStream(/data/data/**com.samsaadhani.sandhi1/files/**
 output;
 FileOutputStream fis = openFileOutput(input,
 Context.MODE_PRIVATE);
 fis.write(input.getText().**toString().getBytes());
 fis.write(\n.getBytes());
 fis.close();
 LTProc.main(new String[]{/data/data/com.**
 samsaadhani.sandhi1/files/skt_**morf.bin,/data/data/com.**
 samsaadhani.sandhi1/files/**input});

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/feA_XKu8N1o/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


03-14 04:47:42.618: D/dalvikvm(360): GC_FOR_ALLOC freed 47K, 3% free 
6358K/6531K, paused 41ms
03-14 04:47:42.618: I/dalvikvm-heap(360): Grow heap (frag case) to 6.789MB for 
513744-byte allocation
03-14 04:47:42.707: D/dalvikvm(360): GC_FOR_ALLOC freed 1K, 3% free 
6859K/7047K, paused 55ms
03-14 04:47:42.807: D/dalvikvm(360): GC_CONCURRENT freed 1K, 3% free 
6859K/7047K, paused 4ms+2ms
03-14 04:47:43.378: D/szipinf(360): Initializing inflate state
03-14 04:47:43.378: D/szipinf(360): Initializing zlib to inflate
03-14 04:47:51.408: V/TLINE(360): new: android.text.TextLine@4062c768
03-14 04:47:54.797: V/TLINE(360): new: android.text.TextLine@406f4e40
03-14 04:48:04.887: D/dalvikvm(360): GC_CONCURRENT freed 347K, 6% free 
7055K/7495K, paused 4ms+3ms
03-14 04:48:05.168: D/dalvikvm(360): GC_CONCURRENT freed 508K, 8% free 
7080K/7687K, paused 4ms+4ms
03-14 04:48:05.298: D/dalvikvm(360): GC_FOR_ALLOC freed 225K, 8% free 
7105K/7687K, paused 46ms
03-14 04:48:05.558: D/dalvikvm(360): GC_CONCURRENT freed 467K, 8% free 
7191K/7751K, paused 7ms+6ms
03-14 04:48:05.757: D/dalvikvm(360): GC_CONCURRENT freed 496K, 8% free 
7216K/7815K, paused 8ms+3ms
03-14 04:48:05.988: D/dalvikvm(360): GC_CONCURRENT freed 408K, 7% free 
7339K/7879K, paused 4ms+5ms
03-14 04:48:06.258: D/dalvikvm(360): GC_CONCURRENT freed 150K, 4% free 
7764K/8007K, paused 5ms+6ms
03-14 04:48:06.528: D/dalvikvm(360): GC_CONCURRENT freed 136K, 3% free 
8163K/8391K, paused 9ms+7ms
03-14 04:48:06.847: D/dalvikvm(360): GC_CONCURRENT freed 200K, 4% free 
8674K/8967K, paused 4ms+10ms
03-14 04:48:07.208: D/dalvikvm(360): GC_CONCURRENT freed 179K, 4% free 
9230K/9543K, paused 3ms+9ms
03-14 04:48:07.617: D/dalvikvm(360): GC_CONCURRENT freed 334K, 5% free 
9948K/10375K, paused 10ms+13ms
03-14 04:48:07.757: D/dalvikvm(360): 

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-13 Thread Kristopher Micinski
how big is the file you're reading..?

In general, you can't allocate that much space on Android.  To combat
this you need to be able to do lazy I/O.

But ... are you trying to read in a dictionary (using apertium?).  I'd
guess this is a few megabytes at least right?  Having a megabyte or
two on the heap won't necessarily crash your app, but having more than
that certainly can!  (This of course, depends on the device..)

Kris


On Thu, Mar 14, 2013 at 12:49 AM, karunakar medamoni
kannaiah.chi...@gmail.com wrote:
 Hi Richard

 Good Morning. As per your mail am attaching my android log file. Please have
 look at once. I ran the same program from command line and also in eclipse.
 I got the output , when i try to integrate with android am getting this
 error.

  Thanks  Regards

 M. Karunakar
 University of Hyderabad,Hyd,
 9491388035.


 On Wed, Mar 13, 2013 at 10:43 PM, karunakar medamoni
 kannaiah.chi...@gmail.com wrote:

 Hello Richard

 Thank u for u reply. I will be back  with full stack from LogCat by
 tomorrow morning.

  Thanks  Regards

 M. Karunakar
 University of Hyderabad,Hyd,
 9491388035.


 On Wed, Mar 13, 2013 at 6:11 PM, RichardC richard.crit...@googlemail.com
 wrote:

 Can you include the full stack trace from LogCat please.


 On Wednesday, March 13, 2013 11:37:16 AM UTC, karunakar medamoni wrote:

 Hello

 Every one. This is karunakar working on android project. Am converting
 apertium based webpage to android app. When i try to run
 com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file 
 and
 input file am getting this error. If any help from any one it would be
 helpful for me.

 Here am pasting my code please have a look at once.

 System.setOut(new PrintStream(new BufferedOutputStream(new
 FileOutputStream(/data/data/com.samsaadhani.sandhi1/files/output;
 FileOutputStream fis = openFileOutput(input,
 Context.MODE_PRIVATE);
 fis.write(input.getText().toString().getBytes());
 fis.write(\n.getBytes());
 fis.close();
 LTProc.main(new
 String[]{/data/data/com.samsaadhani.sandhi1/files/skt_morf.bin,/data/data/com.samsaadhani.sandhi1/files/input});

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/feA_XKu8N1o/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: OutofMemory Excepton error in android

2013-03-13 Thread Harish
Hi
 
Try this code if it helps
 
System.setOut(new PrintStream(new BufferedOutputStream(new 
FileOutputStream(/data/data/com.samsaadhani.sandhi1/files/output),1024)));
FileOutputStream fis = openFileOutput(input, 
Context.MODE_PRIVATE);
fis.write(input.getText().toString().getBytes());
fis.write(\n.getBytes());
fis.close();
LTProc.main(new 
String[]{/data/data/com.samsaadhani.sandhi1/files/skt_morf.bin,/data/data/com.samsaadhani.sandhi1/files/input});

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Sync contacts

2013-03-13 Thread shibin francis
Buddy..
Itz very simple. You can run your service when something
happened(onChange) to your contact. It can be add edit delete or
update. You must check what happened to your contact.

On 3/5/13, Johnny ask2iq...@gmail.com wrote:
 have you got the answer? Actually I am also trying to do this task.

 On Tuesday, May 8, 2012 1:51:50 PM UTC+5:30, Tarilo wrote:

 Hi

 We need to implement a contact sync. When a contact is adden on the phone

 or updated, we need to make action. This is implemented by whatsapp. I
 read
 about intents.

 Thanks



 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.