[android-developers] CONTACT_ID - Keeping it in sync

2010-12-06 Thread Mak
I am interested in your opinions on the best way to keep a robust
reference to a contact starting android 2.0. I have read a lot
regarding this issue but i don't know which technique is advisable and
if there's any new ones. Below are the 3 options i found so far:

1- Don't use your own db. Extend the contacts.contract to write your
data

2 - Use ContentObserver to keep track of any changes made to the
contacts. This technique would however require your application to be
running

3- Store all RAW contact IDs related to a CONTACT_ID in your db and
infer the content of the aggregate contact from all its constituent
RAW contacts

In my case i need to keep a separate db and i was wondering if there's
any other new technique of keeping the CONTACT_ID current after
aggregations and dis-aggregations..

-- 
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


[android-developers] Re: how to setViewText in SimpleCursorTreeAdapter?

2009-11-09 Thread Ronald Mak
It is supported by API level 5 i.e. Android 2.0.

On 22nd October 2009, jerryfan2000  wrote:
> Hi,
>
> I want to do some Local based number formatting. However, I cannot
> find function similar to setViewText inSimpleCursorTreeAdapter. So I
> am wondering is there any alternative solution to do manual text view
> binding inSimpleCursorTreeAdapter? 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


[android-developers] Re: Logcat View fails with "Could not create the view: For input string: "our" "

2009-10-13 Thread Mak

Okay, I got a solution for my problem.
Hope this will help others with the same problem.

Thanks to Misun Ryu:

_
Someone replied the post that the solution was found.
I have not tried it but guess it is worth to try it before re-
installing eclipse.



hide details Aug 18

I have had the same problem.

The logcat view crashes after I inserted a filter containing a ":" in
the filtername.
I solved the problem by changing the settings in the file
".metadata/.plugins/org.eclipse.core.runtime/.settings/
com.android.ide.eclipse.ddms.prefs" placed in the workspace of
eclipse.
com.android.ide.eclipse.ddms.logcat.filters= was the key of the fault
setting.



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Logcat View fails with "Could not create the view: For input string: "our" "

2009-09-30 Thread Mak

Hi all.
I have a problem with my DDMS in eclipse.
In the logcat view appears only this failure:
Logcat View fails with "Could not create the view: For input
string: "our" "

I uninstalled and reinstalled the adt and ddms already without any
change.
I can use the logcat in the command line (tools- adt logcat) but this
is not as comfortable as
using the logcat in eclipse.

Does anyone know this problem and a solution?

Thanks and best regards

Mak



More details of this failure message are:

java.lang.NumberFormatException: For input string: "our"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.android.ddmuilib.logcat.LogFilter.loadFromString(Unknown
Source)
at com.android.ide.eclipse.ddms.views.LogCatView
$FilterStorage.getFilterFromStore(Unknown Source)
at com.android.ddmuilib.logcat.LogPanel.createFilters(Unknown Source)
at com.android.ddmuilib.logcat.LogPanel.createControl(Unknown Source)
at com.android.ddmuilib.Panel.createPanel(Unknown Source)
at com.android.ide.eclipse.ddms.views.LogCatView.createPartControl
(Unknown Source)
at org.eclipse.ui.internal.ViewReference.createPartHelper
(ViewReference.java:371)
at org.eclipse.ui.internal.ViewReference.createPart
(ViewReference.java:230)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:
2131)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView
(WorkbenchPage.java:1062)
at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:
3773)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:
3770)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:
3746)
at org.eclipse.ui.handlers.ShowViewHandler.openView
(ShowViewHandler.java:165)
at org.eclipse.ui.handlers.ShowViewHandler.execute
(ShowViewHandler.java:80)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute
(HandlerProxy.java:281)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:
476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks
(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand
(SlaveHandlerService.java:247)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection
(CommandContributionItem.java:619)
at org.eclipse.ui.menus.CommandContributionItem.access$10
(CommandContributionItem.java:605)
at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent
(CommandContributionItem.java:595)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)


--~--~-~--~~---

[android-developers] Re: clear sms notifications

2009-08-11 Thread Mak

i think the sound notification can be switched off for all incoming
sms.
after filtering the control- sms you send a notification for the
"normal" messages.
but there will still be the problem of the notification on the status
bar.


Mak
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Is It Possible to get Nottification

2009-08-04 Thread Mak

Maybe you will better post links, that are not as old as this and
where the code is up to date and running.

On 22 Jul., 17:04, iPaul Pro  wrote:
> http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-s...
>

The first link seems to be a better one.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to receive events on MapView using Overlay

2009-07-02 Thread mak

Team,

Below code is working as I need to select first View by pressing left
arrow key which maked MapView as Current view and then pressing back
button. It is getting called.

Thanks for your patience.

Regards,
_-_Mayank Rana_-_

On Jul 3, 11:04 am, mak  wrote:
> Overlay Code:
>
>  public class MyLocationOverlay extends
> com.google.android.maps.Overlay {
> �...@override
> public boolean onKeyDown(int keyCode,KeyEvent event, MapView view){
>         System.out.println("==INSIDE onKeyDown
> ==");
>          if(keyCode == KeyEvent.KEYCODE_BACK) {
>                         System.out.println("HMM... Calling Your Key Event 
> \n");
>                         return true;
>         }
>         return false;
>
> }
>
> Do I need to call this method explicitly from MapView Acitivity or as
> any keydown this will get called ?
>
> Appreciate your input on it.
>
> Regards,
> _-_Mayank Rana_-_
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] How to receive events on MapView using Overlay

2009-07-02 Thread mak


Overlay Code:

 public class MyLocationOverlay extends
com.google.android.maps.Overlay {
 @Override
public boolean onKeyDown(int keyCode,KeyEvent event, MapView view){
System.out.println("==INSIDE onKeyDown
==");
 if(keyCode == KeyEvent.KEYCODE_BACK) {
System.out.println("HMM... Calling Your Key Event 
\n");
return true;
}
return false;
}

Do I need to call this method explicitly from MapView Acitivity or as
any keydown this will get called ?

Appreciate your input on it.

Regards,
_-_Mayank Rana_-_


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] About Receiving Keyboard events on MapView

2009-07-02 Thread mak

Hi All,

I am developing application which is Google Map based one.
I want to receive KeyPress Event on Mapview.
I got OnKeyListener on it but it is not receiving any key events.

Any suggestions ..
Any examples.

Appreciate your inputs.
Thanks.



Regards,
_-_Mayank Rana_-_
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] GPS Enable/Disable from Settings - Race Condition / Deadlock

2009-05-04 Thread mak

Hi All,

If I am enabling / disabling GPS from Settings Menu, I can see that
it
is calling respective APIs from GpsLocationProvider.java. But when I
am trying with disable GPS from Settings Menu, it is getting block
and
after time out process is getting killed. I am digging out the code
from .java to .cpp interaction and I come to know that it calls
wait_for_event which is basically getting event from reportStatus and
reportLocation.

It looks to me that thread is getting block forever and not able to
meet the pthread_cond_wait criteria. Can anyone gives me pointers/
suggestion how to digg
out this kind of Race Condition / Deadlock in Android ?


Regards,
_-_Mayank Rana_-_

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] How to Disable GPS Provider from Application

2009-04-30 Thread mak

Hi All,

In Android settings, Enable GPS Satellite menu is provided to enable /
disable GPS.
How to enable/disable GPS from Any android java application ?
I understood that there is no api expose to do that.

Any workaround or solution.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] ConnectivityManager

2009-04-30 Thread Mak

What is the right use of the function
 int stopUsingNetworkFeature(int networkType, String feature)
of the ConnectivityManager?
I want to stop the use of the Type_Mobile Network, but i'm not sure
about
the right combination of the NetworkType and the Feature.
I tried

ConnectivityManager conManag = (ConnectivityManager)
  context.getSystemService(Context.CONNECTIVITY_SERVICE);
int value = conManag.stopUsingNetworkFeature( 0, "Unknown");

and also with the parameter (1, "GPRS"),  (2, "EDGE") and (3, "UMTS).
but everytime i get "-1" as result everytime, what shows me that a
failure happend.

Is this the right method to stop the use of the network and how can i
use this?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: written file not found

2009-03-27 Thread Mak

What is the best way to create a file in my application, that I can
use/ read outside of the application?
Aren't i able to set a path for my file e.g. write it on the sdcard?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: written file not found

2009-03-26 Thread Mak



>
> Probably, that is because they cannot browse /data due to security
> restrictions.

What permissions do i need to see all files on the device?
tools like ASTRO have -i hope so- the permissions for reading all
self written files on my device.
maybe my application has not enough permissions?
i set WRITE_OWNER_DATA but i wasn't sure weather i need it.
>
> They are in the same spot on the device as they are in the emulator. You
> just cannot browse to them. However, you can use adb pull to download them.

I thought that the adb pull is a tool for eclipse and the emulator.
how can i use that on the g1?
I think i need root for that, right?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] written file not found

2009-03-25 Thread Mak

Hi.
I've written an file with the following comands:

String ausgabe;

try{
   java.io.BufferedWriter fos = (new java.io.BufferedWriter(new
java.io.OutputStreamWriter(
openFileOutput("testfile.txt", MODE_APPEND ;

if (ausgabe.length() != 0){
 fos.write(ausgabe);
}

catch (FileNotFoundException f){
   System.out.println("Not found");
}

Everything works and on the emulator i've got no problem.
The written file "testfile.txt" can be found in /data/data/mypackage/
files.
But on my G1 the folder "/data" is empty, no folder /data/packages can
be found with
"Astro File Manager" or LindaFileManager.

Anyone any idea where to find the files of my applications?
Why do i have only the folders /data, /sdcard and /system on the
emulator but
on the device there are much more?

Thanks for an answer.

Mak
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] BroadcastReceiver to log PhoneState during of my activity

2009-03-14 Thread Mak

Hi.
I'd like to log some telephonyManager and phoneState events as
onCellLocationChanged and onCallStateChanged.. during my activity.
Cause i need this for more than one activity,  i created an
broadcastReceiver that receives broadcasts, when something special in
my activities happen.

But my problem is that i can't define a telephonyManager in the
broadcastReceiver
like in an activity.
Why wont the following work in?

.
TelephonyManager tmanager = (TelephonyManager)
  getSystemService
(Context.TELEPHONY_SERVICE);
tmanager.listen( new PhoneStateListener(){

public void onCallStateChanged(int state, String incomingNumber) {
super.onCallStateChanged(state, incomingNumber);
callstate =  state;
   }

}, PhoneStateListener.LISTEN_CALL_STATE);
...

Why is getSystemService(String) undefined for a broadcastReceiver?
Where is my fault?
Thanks for an answer.
Mak
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] webView in a loop

2009-02-17 Thread Mak

Hi.
I'd like to build an application that loads different urls in a
webview.
I prefered the webview cause that gives the chance of deleting cache
and
things like that.
But loading an URL in a loop has the effect that everything but the
webView
is executed, till the end of the loop.

for(int i = 0; i < 10; i++) {
   WebView ansicht = new WebView(getBaseContext());
   ansicht.loadUrl(adress.toString());
setContentView(ansicht);
ansicht.clearCache(true);
sleep(15000);
System.out.println("instead something else");
}

i get the print "instead something else" every 15 seconds and after 10
times
the url will be loaded.

Why can't the webView be called in a loop?
What's my fault?

Another problem is that i want to call the loop in a seperate thread
but
have problems with the context. I store the context in the onCreate-
method
of the activity but in the thread it won't work.

Thanks,

Mak
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] How to find a busy call

2009-02-17 Thread Mak

Hi.
I'm developing an application that helps getting an connection with
busy phoners. My application should try to call a number and if
the number is busy it repeats after 30 seconds till the number is
accessible.
The problem is, that i don't get a callState like "number is busy".
i don't know the right way to see when the callState is ringing on the
other side
and when the other side is busy.

My idea was the following:

public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);

  TelephonyManager manager = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
  manager.listen( new PhoneStateListener(){

  public void onCallStateChanged(int state, String incomingNumber) {
super.onCallStateChanged(state, incomingNumber);

while(state == 0) {   //CallState = 0 // Device call state: No
activity

try {
Intent callIntent = new Intent (Intent.ACTION_CALL, 
phoneNumber);
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(callIntent);
Thread.sleep(3);
}
catch(Exception e)  {
e.printStackTrace();;
}
}
}
}, PhoneStateListener.LISTEN_CALL_STATE);
}

Hope someone can help me.

Thanks,

Mak
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Playing an audio file during a call

2009-02-04 Thread Mak

I want to accept incoming calls and play an audio file for the caller.
Is there a possibility of playing an audio file during a phonecall,
so that the caller hears a wav- file?
It seems to me that nothing is possible during a phone call since
release 1.0.
Hope this is getting better in the next release.
Has anybody information about the next release?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Playing an audio file during a call

2009-01-30 Thread Mak

I want to accept incoming calls and play an audio file for the caller.
Is there a possibility of playing an audio file during a phonecall,
so that the caller hears a wav- file?
It seems to me that nothing is possible during a phone call since
release 1.0.
Hope this is getting better in the next release.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] About Google Map Installation Package

2009-01-28 Thread mak

Hi All,

I have couple of doubts regarding Google Map Usage as below:

1. I am able to run Google Map Application on Emulator with proper API
key. Google Map is not open source and not available on Target Board,
so I am not able to execute this application. Does same API Key hold
good for Target Board also or Is there something else need to be done
for it ?

2. What will Google provide as Google Map Installation Package ( Legal
one )  for Google Map for Target ? i.e. How Google Map Installer will
be different from Emulator's Google Map ? What are the other security
means used to Secure Google Map Installer from running on Target Board
except API Key and signed .apk file ?


Regards,
_-_Mayank Rana_-_
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Button On Map

2009-01-20 Thread mak

As I learned from your below details that you are able to create
Google Map Application.
I am trying to do that but not able to use Mapview in application.
Can you please give some details about how to bring up the simplest
Google Map Application ?




Regards,
_-_Mayank Rana_-_

On Jan 21, 6:06 am, Cadge  wrote:
> Its ok I figured out how to pin buttons to GeoPoints so all is fine
> now.
>
> On Jan 20, 8:17 pm, Cadge  wrote:
>
>
>
> > Currently I have a MapView and an Itemized overlay which displays
> > different locations on the map.
>
> > When one of these locations is "tapped" the onTap method creates a new
> > Overlay object which draws an empty speech bubble (the type you would
> > find normally on google maps).
>
> > What I want to do is then populate this empty speech bubble with some
> > buttons but I am unsure how to do the following:
>
> > 1) Get a reference to a button from an xml file in the Overlay class
> > ( can't use findViewById() as it isn't an Activity? ).
>
> > 2) Pin a button so it stays with the speech bubble.
>
> > Would it be best to create a new layout which contains buttons and
> > place this over the speech bubble? Is that even possible?- Hide quoted text 
> > -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] About using MAP Api

2009-01-20 Thread mak

Hi All,

I am developing Google Map Application on Emulator ( I found that
Google Map is not open source , but emulator has map application on
it.)


Can anyone explain about below things?
1, What is Google Map API Key ? I got couple of it, but it didn't
help.
2, How to use MapView APIs to develop Application?
3, I am able to see GPS location information on Text Box on Emulator
(i.e. application which displays location data in TextBox), but If I
am trying to use MAP APIs it gives errors saying that " Unexpected
errors has happened".


I am refering this article about it:
http://www.devx.com/wireless/Article/39239/0/page/3


Thanks in Advance.


Regards,
_-_Mayank Rana_-_


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] About using findViewById

2009-01-20 Thread mak

Hi All,

I am trying to create small simple application on emulator.
I want to create button and display with some click event.
I am not able to use findViewById method with R.id.abc.
It always gives error as R.id cannot be resolved.

Any working example ??

Regards,
_-_Mayank Rana_-_
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Intercept Outgoing Calls

2009-01-12 Thread Mak

Hi.
I've a similar problem.
I want to end a call automated after 1 minute, but
don't get the task stopped.
So my idea was to simulate the "end_call" button pressed.
but if you say, that this wont work, i don't know a solution.

On Jan 12, 11:45 am, Kamal Hasan  wrote:
> Hi,
>
> Any body know, how to intercept out going call. I just want to block
> the out going calls using my code.
> I have tried to dispatch key event, which is not working.Is there any
> way to inject Key events globally ?
>
> Thanks a lot
> Kamal

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---