Interested In Speaking At Android Meetup At Palo alto?

by Brian » Mon, 13 Apr 2009 12:03:57 GMT


Sponsored Links
 Dear All,

I am not sure if it is the right place to post such a message.
We(ExtendLogic.  http://www.extendlogic.com ) host regular Android
meetup every month at Palo Alto CA U.S. Our next meetup will be held
on April 22. The main purpose for the meetup is to share knowledge and
thoughts about Android technology development trend.

We are going to have 3-4 speakers at each meetup, and now we still
have one speech slot open. Please feel free to contact me by brianz at
extendlogic.com if you are based in Silicon Valley and interested in
talking about your insights Android.

Thanks and I look forward to hearing from you.

Best regards,
Brian Zhou

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



Other Threads

1. Android Vs J2ME

I have a basic question. J2ME is a subset of core Java + Special
functionality specific to mobile devices. The reason : Mobile devices
are resource constrained devices. Lack of memmory , processing power
etc etc...
Now Android can use the entire core java.(Correct me if i am wrong).
So is it because of just increased capability of Android mobile
devices or any other reasons..
Thanks,
Alok.
--~--~---------~--~----~------------~-------~--~----~

2. AYMSG, Building YM for Android Error 3

di src - org.if_itb.aymsg - AYmsgService.java

====================================

package org.if_itb.aymsg;

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import org.if_itb.client.AYmsgType;
import android.app.Service;
import android.content.Intent;
import android.os.DeadObjectException;
import android.os.IBinder;
import android.os.RemoteCallbackList;
import android.util.Log;

/**
 * @author ahmy
 * This is the main Service. its implement the android Service block
 */
public class AYmsgService extends Service
{
 private static final String TAG = "AYmsg";
 private AYmsgLib aymsg = new AYmsgLib(this); //library
 private final IAYmsgService.Stub mBinder = new IAYmsgService.Stub() {
  
 
  /* (non-Javadoc)
   * @see org.if_itb.aymsg.IAYmsgService#setDisconnectHandled(boolean)
   */
  public void setDisconnectHandled(boolean handled) throws DeadObjectException
  {
   AYmsgService.this.aymsg.setDcHandled(handled);
  }

  /* (non-Javadoc)
   * @see org.if_itb.aymsg.IAYmsgService#getState()
   */
  public byte getState() throws DeadObjectException
  {
   if (AYmsgService.this.aymsg != null)
    return AYmsgService.this.aymsg.getConnectionState();

   return -1;
  }

  /* (non-Javadoc)
   * @see org.if_itb.aymsg.IAYmsgService#login(java.lang.String, 
java.lang.String)
   */
  public void login(String username, String password)
  throws DeadObjectException
  {
   String[] key = { "1" };
   String[] value = new String[1];
   value[0] = username;
   try
   {
    Log.d(TAG,"AYmsgService : starting thread ");
    AYmsgService.this.aymsg.startThread();
    AYmsgService.this.aymsg.sendYahooPacket(key, value, 0x57, 0, 0);
   } catch (UnknownHostException e)
   {
    AYmsgService.this.sendErrorCallback("Error in Connection : Unknown Host " + 
e.getMessage());
    e.printStackTrace();
   }
   catch (IOException e)
   {
    AYmsgService.this.sendErrorCallback("Error in Connection : " + 
e.getMessage());
    Log.e(TAG,"Login error: ",e);
    e.printStackTrace();
   }   
  }


  /* (non-Javadoc)
   * @see 
org.if_itb.aymsg.IAYmsgService#registerCallback(org.if_itb.aymsg.IAYmsgServiceCallback)
   */
  public void registerCallback(IAYmsgServiceCallback cbs)
  throws DeadObjectException
  {
   if (cbs != null)
    AYmsgService.this.mCallbacks.register(cbs);
  }

  /* (non-Javadoc)
   * @see org.if_itb.aymsg.IAYmsgService#sendPacket(int, int, int, byte[])
   */
  public void sendPacket(int service, int status, int sesionId, byte [] data) 
throws DeadObjectException
  {
   try
   {
    AYmsgService.this.aymsg.sendYahooPacket(service, status, sesionId,data);
   } catch (IOException e)
   {
    Log.e(TAG,"AYmsgService.Sendpacket : ",e);
    e.printStackTrace();
   } 
  }

  /* (non-Javadoc)
   * @see org.if_itb.aymsg.IAYmsgService#setState(byte)
   */
  public void setState(byte state) throws DeadObjectException
  {
   if (AYmsgService.this.aymsg != null)
    AYmsgService.this.aymsg.setConnectionState(state);
  }

  /* (non-Javadoc)
   * @see org.if_itb.aymsg.IAYmsgService#startThread()
   */
  public void startThread() throws DeadObjectException
  {
   if (AYmsgService.this.aymsg != null)
    try
   {
     AYmsgService.this.aymsg.startThread();
   } catch (UnknownHostException e)
   {
    AYmsgService.this.sendErrorCallback("Unknown host : " + e.getMessage());
    e.printStackTrace();
   } catch (IOException e)
   {
    AYmsgService.this.sendErrorCallback("Start thread IO : " + e.getMessage());
    e.printStackTrace();
   }

  }

  /* (non-Javadoc)
   * @see org.if_itb.aymsg.IAYmsgService#stopThread()
   */
  public void stopThread() throws DeadObjectException
  {
   if (AYmsgService.this.aymsg != null)
    AYmsgService.this.aymsg.stopThread();

  }

  /*
   * (non-Javadoc)
   * 
   * @see 
org.if_itb.aymsg.IAYmsgService#unregisterCallback(org.if_itb.aymsg.IAYmsgServiceCallback)
   */
  public void unregisterCallback(IAYmsgServiceCallback cb)
  throws DeadObjectException
  {
   if (cb != null)
    AYmsgService.this.mCallbacks.unregister(cb);
  }


 };

 /**
  * The Callbacks
  */
 final RemoteCallbackList<IAYmsgServiceCallback> mCallbacks = new 
RemoteCallbackList<IAYmsgServiceCallback>();

 /**
  * Send Error message to client side
  * @param msg the error emssage
  */
 private void sendErrorCallback (String msg)
 {
  List<String> keys = new ArrayList<String>();
  keys.add("1");
  List<String> vals = new ArrayList<String>();
  vals.add(msg);

  this.sendCallback(keys, vals, AYmsgType.AYMSG_ERROR, 0, 0);
 }

 @Override
 public IBinder onBind(Intent intent)
 {
  if (IAYmsgService.class.getName().equals(intent.getAction()))
  {
   Log.i(TAG, "AYmsgService: onBind");
   return this.mBinder;
  }
  return null;
 }

 /**
  * Send Callback to Client side
  * @param key the keys
  * @param value the values
  * @param Service service type, see AYmsgType
  * @param Status status type, see AYmsgType
  * @param SessionId the session id filed
  */
 public void sendCallback(List<String> key, List<String> value, int Service, 
int Status, int SessionId)
 {
//  Broadcast to all clients the new value.
  final int N = this.mCallbacks.beginBroadcast();
  for (int i=0; i<N; i++) {
   try {
    this.mCallbacks.getBroadcastItem(i).rawPacketHandler(key, value, Service, 
Status, SessionId );
   } catch (DeadObjectException e) {
    // The RemoteCallbackList will take care of removing
    // the dead object for us.
   }
  }
  this.mCallbacks.finishBroadcast();
 }

 @Override
 protected void onCreate()
 {
  Log.i(TAG, "on create");
 }
===================================

error line this.mCallbacks.getBroadcastItem(i).rawPacketHandler(key, value, 
Service, Status, SessionId );
Unhandled exception type RemoteException
-----------------------------------------------------------------------

error line protected void onCreate()
Multiple markers at this line
- Cannot reduce the visibility of the inherited method from Service
- overrides android.app.Service.onCreate

--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:
 

3. Hi Yahoo

4. Exchange ActiveSync Support??

5. AYMSG, Building YM for Android Error 2

6. How to get the rtsp (rtcp rtp packets) message ?

7. Why Update buffering is always 0% when mediaplayer play the rtsp ?