Re: [android-developers] Re: Listen to Incoming Calls through BroadcasrReceiver

2011-04-01 Thread Kapil Lokhande
Hi guys,

GREETINGS OF THE DAY,

in your broadcast reciver u have to implement phone state listener's
onCallStateChanged method. this method gives state of phone i.e. ringing,
idle, offhook.

You can find details about it on android developer by firing serach on phone
state listener. hope this works for you.

--
Thanks  Regards,
Kapil Lokhande | Dexter Advisory Pvt. Ltd. http://dexterltd.com/ | Android
Developer
[image: dexterlogo.jpg]


On Fri, Apr 1, 2011 at 11:06 AM, Sven sirdarthna...@googlemail.com wrote:

 Have a loot at there:
 http://developer.android.com/reference/android/telephony/TelephonyManager.html

 You have to register a BroadcastReciever in your Manifest (like your
 outgoing one) with the intent filter android.intent.action.PHONE_STATE
 and you need the Permission READ_PHONE_STATE.
 If you check for the state CALL_STATE_RINGING, then you know there is
 a incoming call. Then you can start your app. You can start your
 activity or service.

 I'm working on a app using this as well, but at the moment I'm at work
 and don't have the source in front of me, to give you detailed
 example. Maybe you can find out with the help i gave you here, if not
 i can post some example later the day when I'm at home.



 On Mar 31, 12:17 pm, C Sardar crsardar@gmail.com wrote:
  Hi,
 
  Whenever a new outgoing call in placed OS broadcast a native action
  ACTION_NEW_OUTGOING_CALL and we can listen to an outgoing call as
  follows
 
  public class OutgoingCallListenerCRS extends BroadcastReceiver{
 
  @Override
  public void onReceive(Context context, Intent intent) {
 
  Log.e(Chitta : , Its working);
  }
 
  }
 
   manifest as follows
 
  application android:icon=@drawable/icon android:label=@string/
  app_name
 
  receiver android:name=OutgoingCallListenerCRS
  android:enabled=true
  intent-filter
  action
 android:name=android.intent.action.NEW_OUTGOING_CALL/
  category
  android:name=android.intent.category.DEFAULT /
  /intent-filter
  /receiver
 
  /application
 
  uses-permission
  android:name=android.permission.PROCESS_OUTGOING_CALLS/
 
  Similarly I want to do same for an incoming call,
  I want to make an app that will start by itself whenever a new
  incoming call appears, by listening to OS's Native Android Broadcast
  Actions, is it possible?
 
  If not, how can I make an app that will start by itself whenever a
  incoming call comes in device even though my app was not started
  before the incoming call.
 
  Please give some idea or sample etc
 
  Thanks  Regards
  CR Sardar

 --
 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 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=endexterlogo.jpg

[android-developers] Re: Dev Console profile edit page??

2011-04-01 Thread Maps.Huge.Info (Maps API Guru)
 The statistics are reset back to March 1st.

That's a hoot!

-John Coryat

-- 
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] CTS Gingerbread testBuildConstants fails

2011-04-01 Thread Atul Raut
HI,

While running CTS on Gingerbread seen below test fail in below mention line
while checking Build.SERIAL
* testBuildConstantsally  :=*
assertTrue(SERIAL_NUMBER_PATTERN.matcher(Build.SERIAL).matches());

It check Build.SERIAL what values needs to be here ?
e.g. for Build.DEVICE it is : mytarget_345 like that.


Thanks,

 --
 Atul Raut
 http://rautatul.weebly.com/
 http://atulraut.wordpress.com/ http://rautatul.wordpress.com/
 Mobile : 9581819292
 atulrau...@gmail.com hack...@android.com

 hack...@android.com


-- 
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: Can i give Time Duration to my activity in Android??

2011-04-01 Thread gjs
http://developer.android.com/reference/android/os/Handler.html see
postDelayed

On Apr 1, 4:18 pm, Onkar Dhane,Trainee Software Developer,Alphabricks
Technology pvt. ltd dhane.on...@gmail.com wrote:
 Hi,actually i have one full screen image and on that image there is
 one button.if user click on that button control goes to next
 activity.. So,now i want to give time limit for that full screen image
 activity..so that it will get visible/pop-up after given particular
 time(Ex. image screen popup after every 2sec.) Please give me
 suggestions and samples for the same

 Thanks in Advance--

-- 
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: Listen to Incoming Calls through BroadcasrReceiver

2011-04-01 Thread Zsolt Vasvari
 GREETINGS OF THE DAY,

What are you?  A Nigerian spammer?

-- 
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: Dev Console profile edit page??

2011-04-01 Thread rich friedel
Seems they've added the in-app billing!

-- 
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: Dev Console profile edit page??

2011-04-01 Thread MagouyaWare
I just tried uploading an update to one of my apps... Yeah, I hope
they fix that soon.  I tried multiple times and got this error every
time:

An unexpected error occurred. Please try again later

On Apr 1, 12:13 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
  The statistics are reset back to March 1st.

 That's a hoot!

 -John Coryat

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


Re: [android-developers] Re: Dev Console profile edit page??

2011-04-01 Thread Kostya Vasilyev

01.04.2011 11:06, rich friedel пишет:

Seems they've added the in-app billing!


They did. And it seems like it actually worked for a few hours :)

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


Re: [android-developers] Re: Dev Console profile edit page??

2011-04-01 Thread Justin Anderson
And now... not 30 seconds after I post this... it is working again.  Sorry
for the false scare!

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Apr 1, 2011 at 1:01 AM, MagouyaWare magouyaw...@gmail.com wrote:

 I just tried uploading an update to one of my apps... Yeah, I hope
 they fix that soon.  I tried multiple times and got this error every
 time:

 An unexpected error occurred. Please try again later

 On Apr 1, 12:13 am, Maps.Huge.Info (Maps API Guru)
 cor...@gmail.com wrote:
   The statistics are reset back to March 1st.
 
  That's a hoot!
 
  -John Coryat

 --
 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 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: Dev Console profile edit page??

2011-04-01 Thread Zsolt Vasvari
 Seems they've added the in-app billing!

That's been there for the last few days already.

-- 
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] isSMSReceive this api is not wrking.

2011-04-01 Thread swarnendu
in python-- for android automation


import android
phone_1=android.Android('1')
stat=phone_1.isSMSReceive('5556','text')

verifying the already send msg, but alwals shows

{'result': False, 'id': 1, 'error': None}

q is why it always return false? when the sms is in inbox? is the
argument pass is correct?
plz give a details with an example.? waiting for a early reply

-- 
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] Is Android Smartphone application development similar to Android Tablet..???

2011-04-01 Thread sourabh
Hi Friends,

i want to develop application for Android Tablet, i already developed
this application for android smartphones.

how can i use my code(smartphone) for Android Tablet Application.

please help me,

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: Use one handler for multiple activties

2011-04-01 Thread Nand
Hi,
Thanks for the reply.
Can you please provide some links whihc gives information about
implementing listeners?

Regards,
Nand

-- 
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 handle web service respose

2011-04-01 Thread Pinkesh Gupta
hi

i am new to android

i am using soap in order to obtain the response from the .net web
service

the problem is that when i give a call for a response by using the
code:


SoapObject response = (SoapObject)this.call(SOAP_ACTION +
functionName, envelope);
SoapObject s = (SoapObject) 
response.getProperty(diffgram);

SoapObject c =(SoapObject)s.getProperty(0); 
so at cobject of soap
i got the response as

anyType{Table1=anyType{articleid=33770; annuaireid=33462;
villeid=78152; article_titre=Evasion verte Domaine national de Saint
Cloud; article_intro=Profitez des joies des parcours acrobatiques dans
les arbres en famille, entre amis ou en couple.; article_texte=Ouvert
à l'année !!
Avril à Octobre 10h à 20h réservation fortement conseillée
Novembre à Mars de 12h à la tombée de la nuit sur réservation
obligatoire
Cinq parcours pour enfants et adultes de niveaux différents sur un
forfait de 3h.
Une façon originale de découvrir le milieu naturel, de fêter un
anniversaire, un enterrement de vie de jeune fille/garçons ou encore
pour une teambuilding.
Pout toute réservation : www.evasion-verte.fr ou le 06.12.80.06.75;
article_site=http://www.evasion-verte.izispot.com/; article_valide=3;
article_adresse=Parc de Saint Cloud, près des entrées Garches et
Marnes La Coquette; article_tel=01 47 41 07 29; article_fax=anyType{};
article_modify=true; article_notification=1; article_qualite=1;
article_horaire=anyType{}; }; Table2=anyType{ville_nom=Saint Cloud;
ville_cp=92210; article_titre=Evasion verte Domaine national de Saint
Cloud; articleid=33770; artimagid=511; artimg_nom=5113080light.jpg;
artimg_ordre=511; }; Table2=anyType{ville_nom=Saint Cloud;
ville_cp=92210; article_titre=Evasion verte Domaine national de Saint
Cloud; articleid=33770; artimagid=512;
artimg_nom=512lebois2004light.jpg; artimg_ordre=512; };
Table2=anyType{ville_nom=Saint Cloud; ville_cp=92210;
article_titre=Evasion verte Domaine national de Saint Cloud;
articleid=33770; artimagid=513; artimg_nom=513photo030light.jpg;
artimg_ordre=513; }; Table3=anyType{distance=2.1129132010606257; };
Table4=anyType{evalid=0; }; Table5=anyType{ville_longitude=2.205900;
ville_latitude=48.849100; ville_nom=Saint Cloud; ville_cp=92210; }; }


means five tables as a soap response

i am capable of handling response of two tables and stored them in
arrrays

so my question is how to handle it for five tables

i did even implement  splitting response into  strings
but that method uses lots of phone memory  and even slower down the
application

i here need a smart method which parse my response class and give me a
response in the format

so that i am capable of displaying the response items on my android
screen.

-- 
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] Inflate alloc a new View or reuse it

2011-04-01 Thread pedr0
Hi,

I am a little bit confused about this piece of code :


for(int i = 0; i  poi.getCommenti().size();i++){
item = poi.getCommenti().get(i);
commento = li.inflate(R.layout.commento, null);
commento_data = (TextView)
commento.findViewById(R.id.commento_data);
commento_descrizione =(TextView)
commento.findViewById(R.id.commento_descrizione);
commento_name = (TextView)
commento.findViewById(R.id.commento_nome);
commento_foto = (ImageView)
commento.findViewById(R.id.commento_foto);
commento_data.setText(item.getData());
commento_descrizione.setText(item.getTesto());
commento_name.setText(item.getUtente().getName());
contenitore_commenti.addView(commento); // 
contenitore_commenti is
an LinearLayout
image[i] = new ImageViewURL(commento_foto, 
item.getAnteprimaURL());
 thread_image_commenti = new
ImageThreadURL(this);
thread_image_commenti.execute(new 
ImageViewURL(commento_foto,
item.getAnteprimaURL()));

}


thread image is a simple thread which do a download of an image and
take 2 param:

1) an ImageView where thread call setImage(Bitmap)

2) an String representing an URL (for download image)


The problem is that I can see all my photo flicker when a single image
is downloaded and all photo have the same image (URL are not the
same).

This is the right way ? Inflate  a NEW view for each element create a
NEW VIEW OBJECT for each iteration or them are the same object ?

What's wrong?

Thanks a lot in advance.

pedr0



--
undefined

-- 
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 Android Smartphone application development similar to Android Tablet..???

2011-04-01 Thread Zsolt Vasvari
1) Run app on Android Tablet
2) Note any errors
3) Any Errors?  No, go to Step 6
4) Fix errors
5) Go to Step 1
6) Done

On Apr 1, 3:21 pm, sourabh sourabh.zal...@gmail.com wrote:
 Hi Friends,

 i want to develop application for Android Tablet, i already developed
 this application for android smartphones.

 how can i use my code(smartphone) for Android Tablet Application.

 please help me,

 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] Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread mack2978
Hi All,

I am trying to show full image when clicking on one of the thumbnail
of grid view, i am able to view the grid with thumbnails but as soon
as i click on any thumbnail to show it in full screen, handling
onItemClick(), it crashes. below is my complete code, please help

package com.example.HelloGridView;


import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Toast;

public class HelloGridView extends Activity{
int current_pos;
private Bitmap[] mTileArray;
private MyView myView;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
GridView gridview = (GridView) findViewById(R.id.gridview);
gridview.setAdapter(new ImageAdapter(this));
gridview.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View v, int
position, long id)
{
Toast.makeText(HelloGridView.this,  + position,
Toast.LENGTH_SHORT).show();
current_pos = position;
myView.invalidate();
}
});

}

public class ImageAdapter extends BaseAdapter {
private Context mContext;

public ImageAdapter(Context c) {
mContext = c;
}

public int getCount() {
return mThumbIds.length;
}

public Object getItem(int position) {
return null;
}

public long getItemId(int position) {
return 0;
}

// create a new ImageView for each item referenced by the
Adapter
public View getView(int position, View convertView, ViewGroup
parent) {
ImageView imageView;
if (convertView == null) {  // if it's not recycled,
initialize some attributes
imageView = new ImageView(mContext);
imageView.setLayoutParams(new
GridView.LayoutParams(85, 85));
 
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView.setPadding(8, 8, 8, 8);
} else {
imageView = (ImageView) convertView;
}

imageView.setImageResource(mThumbIds[position]);
return imageView;
}

// references to our images
private Integer[] mThumbIds = {
 R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_0
};
}



public class MyView extends View {

private Bitmap[] mTileArray;
private final Paint mPaint = new Paint();

public MyView(Context context, AttributeSet attrs, int
defStyle) {
super(context, attrs, defStyle);

//TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.TileView);
//mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
//a.recycle();
Resources r = this.getContext().getResources();
loadTile(0,
r.getDrawable(R.drawable.sample_0));
loadTile(1, r.getDrawable(R.drawable.sample_1));
loadTile(2, r.getDrawable(R.drawable.sample_2));
loadTile(3, r.getDrawable(R.drawable.sample_0));
}

public MyView(Context context, AttributeSet attrs) {
super(context, attrs);

Resources r = this.getContext().getResources();
loadTile(0,
r.getDrawable(R.drawable.sample_0));
loadTile(1, r.getDrawable(R.drawable.sample_1));
loadTile(2, r.getDrawable(R.drawable.sample_2));
loadTile(3, r.getDrawable(R.drawable.sample_0));
}


public void loadTile(int key, Drawable tile) {
Bitmap bitmap = Bitmap.createBitmap(191, 285,
Bitmap.Config.ARGB_);
Canvas canvas = new Canvas(bitmap);
tile.setBounds(0, 0, 191, 285);
tile.draw(canvas);
mTileArray[key] = bitmap;
}


@Override
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.drawBitmap(mTileArray[1], 0,0, mPaint);

}

}

}

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

Re: [android-developers] Re: Unique ID for a device: why aren't devices certified Android-compliant?

2011-04-01 Thread Kostya Vasilyev

01.04.2011 9:04, Dianne Hackborn пишет:


As far as ANDROID_ID -- please be aware that some people concerned 
about privacy very much do not like applications being able to 
retrieve something that uniquely identifies their device that can be 
correlated across applications.


Ah, those users again :)

As such, don't be surprised if in the future there appears the ability 
to restrict access to ANDROID_ID.


I very strongly recommend not using ANDROID_ID.


The sample LVL implementation uses ANDROID_ID for security (this is how 
the duplicates were discovered).


In app billing documentation suggests encrypting purchase data with some 
ID unique to the phone.


Tim Bray's blog post from yesterday concludes that for a unique ID, the 
best approach is probably the use of ANDROID_ID.


What is the Android team's position on this then? Is there one?

Implementing trial period support on one's own (since there in none in 
LVL or In-App Billing) also needs some kind of unique ID, and the 
alternatives (using the primary Google account associated with the 
device, or the telephony ID if available) are definitely worse for privacy.


What is your suggestion for this? Generate a unique ID in the 
application and back it up using bmgr?


If you want to have settings retained if the user uninstalls and then 
re-installs, consider using the backup manager. This also has the 
advantage of allowing you to restore the user's settings across devices.


Is that really only 2.2 and up? It seems that my 2.1 phone has bmgr 
accessible through adb shell, do you think that's a manufacturer 
back-port, or was it really in 2.1, just not documented?


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


Re: [android-developers] Inflate alloc a new View or reuse it

2011-04-01 Thread Kostya Vasilyev

li.inflate(R.layout.commento, null);

gives you a new view object hierarchy each time.

The rest is... probably bugs in your code.

I see that you do

new ImageViewURL(commento_foto,item.getAnteprimaURL()

twice for each commento item. Doesn't seem right to me.

-- Kostya

01.04.2011 11:49, pedr0 пишет:

Hi,

I am a little bit confused about this piece of code :


for(int i = 0; i  poi.getCommenti().size();i++){
item = poi.getCommenti().get(i);
commento = li.inflate(R.layout.commento, null);
commento_data = (TextView)
commento.findViewById(R.id.commento_data);
commento_descrizione =(TextView)
commento.findViewById(R.id.commento_descrizione);
commento_name = (TextView)
commento.findViewById(R.id.commento_nome);
commento_foto = (ImageView)
commento.findViewById(R.id.commento_foto);
commento_data.setText(item.getData());
commento_descrizione.setText(item.getTesto());
commento_name.setText(item.getUtente().getName());
contenitore_commenti.addView(commento); // 
contenitore_commenti is
an LinearLayout
image[i] = new ImageViewURL(commento_foto, 
item.getAnteprimaURL());
  thread_image_commenti = new
ImageThreadURL(this);
thread_image_commenti.execute(new 
ImageViewURL(commento_foto,
item.getAnteprimaURL()));

}


thread image is a simple thread which do a download of an image and
take 2 param:

1) an ImageView where thread call setImage(Bitmap)

2) an String representing an URL (for download image)


The problem is that I can see all my photo flicker when a single image
is downloaded and all photo have the same image (URL are not the
same).

This is the right way ? Inflate  a NEW view for each element create a
NEW VIEW OBJECT for each iteration or them are the same object ?

What's wrong?

Thanks a lot in advance.

pedr0



--
undefined




--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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] Regarding Size Of Tab Tiltle...

2011-04-01 Thread yogendra G
Hi All,

How To Increase The size of Tab Title(Text Or Font)...??

Regards,
Yogi

-- 
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] WebActivity: How to prevent page not found messages

2011-04-01 Thread Stephan Wiesner
Hi,
when using WebActivites, I want to display a friendly page not found
message to the user when the phone is offline. I do not want to display the
default message that shows the URL that could not be loaded.

Any way I can catch those page not found messages and display a local html
file instead?

Thanks,
Stephan

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

2011-04-01 Thread b_t
Hi,

When I pick a shortcut I can get a ShortcutIconResource from the
intent (Intent.EXTRA_SHORTCUT_ICON_RESOURCE).
I would like to display this icon. How can I get a Bitmap or Drawable
from it?

Thanks,
T.

-- 
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: Inflate alloc a new View or reuse it

2011-04-01 Thread pedr0
I am so sorry for the mistake, problem happen during THIS PIECE OF
CODE

for(int i = 0; i  poi.getCommenti().size();i++){
item = poi.getCommenti().get(i);
commento = li.inflate(R.layout.commento, null);
commento_data = (TextView)
commento.findViewById(R.id.commento_data);
commento_descrizione =(TextView)
commento.findViewById(R.id.commento_descrizione);
commento_name = (TextView)
commento.findViewById(R.id.commento_nome);
commento_foto = (ImageView)
commento.findViewById(R.id.commento_foto);
Log.d(TAG, commento_foto:+commento_foto);
commento_data.setText(item.getData());
commento_descrizione.setText(item.getTesto());
commento_name.setText(item.getUtente().getName());
contenitore_commenti.addView(commento);
   image[i] = new ImageViewURL(commento_foto,
item.getAnteprimaURL());
}

// I start only one thread for all images
thread_image_commenti = new ImageThreadURL(this);
thread_image_commenti.execute(image);

On 1 Apr, 10:09, Kostya Vasilyev kmans...@gmail.com wrote:
 li.inflate(R.layout.commento, null);

 gives you a new view object hierarchy each time.

 The rest is... probably bugs in your code.

 I see that you do

 new ImageViewURL(commento_foto,item.getAnteprimaURL()

 twice for each commento item. Doesn't seem right to me.

 -- Kostya

 01.04.2011 11:49, pedr0 пишет:









  Hi,

  I am a little bit confused about this piece of code :

  for(int i = 0; i  poi.getCommenti().size();i++){
                     item = poi.getCommenti().get(i);
                     commento = li.inflate(R.layout.commento, null);
                     commento_data = (TextView)
  commento.findViewById(R.id.commento_data);
                     commento_descrizione =(TextView)
  commento.findViewById(R.id.commento_descrizione);
                     commento_name = (TextView)
  commento.findViewById(R.id.commento_nome);
                     commento_foto = (ImageView)
  commento.findViewById(R.id.commento_foto);
                     commento_data.setText(item.getData());
                     commento_descrizione.setText(item.getTesto());
                     commento_name.setText(item.getUtente().getName());
                     contenitore_commenti.addView(commento); // 
  contenitore_commenti is
  an LinearLayout
                     image[i] = new ImageViewURL(commento_foto, 
  item.getAnteprimaURL());
                            thread_image_commenti = new
  ImageThreadURL(this);
                     thread_image_commenti.execute(new 
  ImageViewURL(commento_foto,
  item.getAnteprimaURL()));

             }

  thread image is a simple thread which do a download of an image and
  take 2 param:

  1) an ImageView where thread call setImage(Bitmap)

  2) an String representing an URL (for download image)

  The problem is that I can see all my photo flicker when a single image
  is downloaded and all photo have the same image (URL are not the
  same).

  This is the right way ? Inflate  a NEW view for each element create a
  NEW VIEW OBJECT for each iteration or them are the same object ?

  What's wrong?

  Thanks a lot in advance.

  pedr0

  --
  undefined

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

--
undefinedI a

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

2011-04-01 Thread Andreas Agvard
Like this:

Drawable shortcutIconDrawable = null;

Parcelable iconResourceParcelable =
shortcutData.getParcelable(Intent.EXTRA_SHORTCUT_ICON_RESOURCE);
if (iconResourceParcelable != null  iconResourceParcelable
instanceof Intent.ShortcutIconResource) {
Intent.ShortcutIconResource iconResource =
(Intent.ShortcutIconResource)iconResourceParcelable
Resources resources =
getPackageManager().getResourcesForApplication(iconResource.packageName);
if (resources != null) {
int id = resources.getIdentifier(iconResource.resourceName,
null, null);
shortcutIconDrawable = resources.getDrawable(id);
}

On Apr 1, 10:22 am, b_t bartata...@gmail.com wrote:
 Hi,

 When I pick a shortcut I can get a ShortcutIconResource from the
 intent (Intent.EXTRA_SHORTCUT_ICON_RESOURCE).
 I would like to display this icon. How can I get a Bitmap or Drawable
 from it?

 Thanks,
 T.

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


Re: [android-developers] Re: Inflate alloc a new View or reuse it

2011-04-01 Thread Kostya Vasilyev
So, is it working now?
01.04.2011 12:28 пользователь pedr0 pulsarpie...@gmail.com написал:
 I am so sorry for the mistake, problem happen during THIS PIECE OF
 CODE

 for(int i = 0; i  poi.getCommenti().size();i++){
 item = poi.getCommenti().get(i);
 commento = li.inflate(R.layout.commento, null);
 commento_data = (TextView)
 commento.findViewById(R.id.commento_data);
 commento_descrizione =(TextView)
 commento.findViewById(R.id.commento_descrizione);
 commento_name = (TextView)
 commento.findViewById(R.id.commento_nome);
 commento_foto = (ImageView)
 commento.findViewById(R.id.commento_foto);
 Log.d(TAG, commento_foto:+commento_foto);
 commento_data.setText(item.getData());
 commento_descrizione.setText(item.getTesto());
 commento_name.setText(item.getUtente().getName());
 contenitore_commenti.addView(commento);
 image[i] = new ImageViewURL(commento_foto,
 item.getAnteprimaURL());
 }

 // I start only one thread for all images
 thread_image_commenti = new ImageThreadURL(this);
 thread_image_commenti.execute(image);

 On 1 Apr, 10:09, Kostya Vasilyev kmans...@gmail.com wrote:
 li.inflate(R.layout.commento, null);

 gives you a new view object hierarchy each time.

 The rest is... probably bugs in your code.

 I see that you do

 new ImageViewURL(commento_foto,item.getAnteprimaURL()

 twice for each commento item. Doesn't seem right to me.

 -- Kostya

 01.04.2011 11:49, pedr0 пишет:









  Hi,

  I am a little bit confused about this piece of code :

  for(int i = 0; i  poi.getCommenti().size();i++){
 item = poi.getCommenti().get(i);
 commento = li.inflate(R.layout.commento, null);
 commento_data = (TextView)
  commento.findViewById(R.id.commento_data);
 commento_descrizione =(TextView)
  commento.findViewById(R.id.commento_descrizione);
 commento_name = (TextView)
  commento.findViewById(R.id.commento_nome);
 commento_foto = (ImageView)
  commento.findViewById(R.id.commento_foto);
 commento_data.setText(item.getData());
 commento_descrizione.setText(item.getTesto());
 commento_name.setText(item.getUtente().getName());
 contenitore_commenti.addView(commento); //
contenitore_commenti is
  an LinearLayout
 image[i] = new ImageViewURL(commento_foto,
item.getAnteprimaURL());
thread_image_commenti = new
  ImageThreadURL(this);
 thread_image_commenti.execute(new
ImageViewURL(commento_foto,
  item.getAnteprimaURL()));

 }

  thread image is a simple thread which do a download of an image and
  take 2 param:

  1) an ImageView where thread call setImage(Bitmap)

  2) an String representing an URL (for download image)

  The problem is that I can see all my photo flicker when a single image
  is downloaded and all photo have the same image (URL are not the
  same).

  This is the right way ? Inflate  a NEW view for each element create a
  NEW VIEW OBJECT for each iteration or them are the same object ?

  What's wrong?

  Thanks a lot in advance.

  pedr0

  --
  undefined

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 --
 undefinedI a

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

Re: [android-developers] Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread Kostya Vasilyev
Logcat output?
01.04.2011 12:04 пользователь mack2978 smashmah...@gmail.com написал:
 Hi All,

 I am trying to show full image when clicking on one of the thumbnail
 of grid view, i am able to view the grid with thumbnails but as soon
 as i click on any thumbnail to show it in full screen, handling
 onItemClick(), it crashes. below is my complete code, please help

 package com.example.HelloGridView;


 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Context;
 import android.content.res.Resources;
 import android.graphics.Bitmap;
 import android.graphics.Canvas;
 import android.graphics.Paint;
 import android.graphics.drawable.Drawable;
 import android.util.AttributeSet;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.AdapterView;
 import android.widget.AdapterView.OnItemClickListener;
 import android.widget.BaseAdapter;
 import android.widget.GridView;
 import android.widget.ImageView;
 import android.widget.Toast;

 public class HelloGridView extends Activity{
 int current_pos;
 private Bitmap[] mTileArray;
 private MyView myView;
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 GridView gridview = (GridView) findViewById(R.id.gridview);
 gridview.setAdapter(new ImageAdapter(this));
 gridview.setOnItemClickListener(new OnItemClickListener() {
 public void onItemClick(AdapterView? parent, View v, int
 position, long id)
 {
 Toast.makeText(HelloGridView.this,  + position,
 Toast.LENGTH_SHORT).show();
 current_pos = position;
 myView.invalidate();
 }
 });

 }

 public class ImageAdapter extends BaseAdapter {
 private Context mContext;

 public ImageAdapter(Context c) {
 mContext = c;
 }

 public int getCount() {
 return mThumbIds.length;
 }

 public Object getItem(int position) {
 return null;
 }

 public long getItemId(int position) {
 return 0;
 }

 // create a new ImageView for each item referenced by the
 Adapter
 public View getView(int position, View convertView, ViewGroup
 parent) {
 ImageView imageView;
 if (convertView == null) { // if it's not recycled,
 initialize some attributes
 imageView = new ImageView(mContext);
 imageView.setLayoutParams(new
 GridView.LayoutParams(85, 85));

 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
 imageView.setPadding(8, 8, 8, 8);
 } else {
 imageView = (ImageView) convertView;
 }

 imageView.setImageResource(mThumbIds[position]);
 return imageView;
 }

 // references to our images
 private Integer[] mThumbIds = {
 R.drawable.sample_0, R.drawable.sample_1,
 R.drawable.sample_2, R.drawable.sample_0
 };
 }



 public class MyView extends View {

 private Bitmap[] mTileArray;
 private final Paint mPaint = new Paint();

 public MyView(Context context, AttributeSet attrs, int
 defStyle) {
 super(context, attrs, defStyle);

 //TypedArray a = context.obtainStyledAttributes(attrs,
 R.styleable.TileView);
 // mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
 //a.recycle();
 Resources r = this.getContext().getResources();
 loadTile(0,
 r.getDrawable(R.drawable.sample_0));
 loadTile(1, r.getDrawable(R.drawable.sample_1));
 loadTile(2, r.getDrawable(R.drawable.sample_2));
 loadTile(3, r.getDrawable(R.drawable.sample_0));
 }

 public MyView(Context context, AttributeSet attrs) {
 super(context, attrs);

 Resources r = this.getContext().getResources();
 loadTile(0,
 r.getDrawable(R.drawable.sample_0));
 loadTile(1, r.getDrawable(R.drawable.sample_1));
 loadTile(2, r.getDrawable(R.drawable.sample_2));
 loadTile(3, r.getDrawable(R.drawable.sample_0));
 }


 public void loadTile(int key, Drawable tile) {
 Bitmap bitmap = Bitmap.createBitmap(191, 285,
 Bitmap.Config.ARGB_);
 Canvas canvas = new Canvas(bitmap);
 tile.setBounds(0, 0, 191, 285);
 tile.draw(canvas);
 mTileArray[key] = bitmap;
 }


 @Override
 public void onDraw(Canvas canvas) {
 super.onDraw(canvas);
 canvas.drawBitmap(mTileArray[1], 0,0, mPaint);

 }

 }

 }

 --
 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 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: Unique ID for a device: why aren't devices certified Android-compliant?

2011-04-01 Thread blindfold
 As far as ANDROID_ID -- please be aware that some people concerned about
 privacy very much do not like applications being able to retrieve something
 that uniquely identifies their device

I only use ANDROID_ID to identify my own test phones and suppress ads
when running my app on these test phones, to avoid inadvertently
clicking on my Google AdMob ads once in while during app testing. So
ANDROID_ID is in this use case never broadcast in any way, and there
is no privacy issue for users while I need not make any code changes
before release. Alternatively, I can implement a workaround by
checking for the presence of some secret file that I manually put on
my test phones, but using ANDROID_ID seemed a little more elegant. I
understand that it may be hard for Google to verify whether or not an
app broadcasts (encoded) unique identifiers along with non-identifying
data.

 As such, don't be surprised if in the future there appears the ability to 
 restrict access to ANDROID_ID.

Is your advice then to use the special-file-checking workaround
instead of ANDROID_ID? Both work fine technically.

Thanks

On Apr 1, 7:04 am, Dianne Hackborn hack...@android.com wrote:
 On Thu, Mar 31, 2011 at 6:19 PM, davemac davemac...@gmail.com wrote:
  It wasn't so much the unique ID I was looking for, rather some
  reassurance that Google has a certification program. From this
  particular case, and others I've heard about, it ought to be more
  robust than it is.

 It's not perfect.  Few things are.  As problems are found, it is improved.

 As far as ANDROID_ID -- please be aware that some people concerned about
 privacy very much do not like applications being able to retrieve something
 that uniquely identifies their device that can be correlated across
 applications.  As such, don't be surprised if in the future there appears
 the ability to restrict access to ANDROID_ID.

 I very strongly recommend not using ANDROID_ID.  If you want to have
 settings retained if the user uninstalls and then re-installs, consider
 using the backup manager.  This also has the advantage of allowing you to
 restore the user's settings across devices.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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


Re: [android-developers] Regarding Size Of Tab Tiltle...

2011-04-01 Thread Fredrik Hyttnäs-Lenngren
Hi Yogi,

Create an xml for your tab:

- # LinearLayout xmlns:android=*
http://schemas.android.com/apk/res/android*;
android:id=*@+id/tabsLayout*android:layout_width
=*fill_parent* android:layout_height=*fill_parent* android:background=*
@drawable/tab_bg_selector* android:padding=*10dip* android:gravity=*
center* android:orientation=*vertical*
   TextView android:id=*@+id/tabsText* android:layout_width=*
wrap_content* android:layout_height=*wrap_content*
android:text=*Title*android:textSize=YOUR
FONT SIZE android:textColor=*@drawable/tab_text_selector* /
 /LinearLayout


Then in the code where you create your tab you can do:

  @Override
public void onCreate(Bundle savedInstanceState) {
setupTab(TAB NAME, new Intent(this,TAB.class));
   }
   private void setupTab( final String tag, final Intent i) {
View tabview = createTabView(mTabHost.getContext(), tag);
TabSpec content =
mTabHost.newTabSpec(tag).setIndicator(tabview).setContent(i);
mTabHost.addTab(content);
   }

private static View createTabView(final Context context, final String
text) {
View view = LayoutInflater.from(context).inflate(R.layout.tabs_bg,
null);
TextView tv = (TextView) view.findViewById(R.id.tabsText);
tv.setText(text);

tv.setTypeface(Typeface.createFromAsset(context.getAssets(),YOURFONT.ttf));
return view;
}

Regards,
Fredrik

-- 
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: Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread mack2978
logs:
Thread [1 main] (Suspended (exception NullPointerException))
HelloGridView$1.onItemClick(AdapterView, View, int, long) line: 38
GridView(AdapterView).performItemClick(View, int, long) line: 284
AbsListView$PerformClick.run() line: 1696
ViewRoot(Handler).handleCallback(Message) line: 587
ViewRoot(Handler).dispatchMessage(Message) line: 92
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4627
Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 868
ZygoteInit.main(String[]) line: 626
NativeStart.main(String[]) line: not available [native method]


On Apr 1, 1:54 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Logcat output?
 01.04.2011 12:04 пользователь mack2978 smashmah...@gmail.com написал:



  Hi All,

  I am trying to show full image when clicking on one of the thumbnail
  of grid view, i am able to view the grid with thumbnails but as soon
  as i click on any thumbnail to show it in full screen, handling
  onItemClick(), it crashes. below is my complete code, please help

  package com.example.HelloGridView;

  import android.app.Activity;
  import android.os.Bundle;
  import android.content.Context;
  import android.content.res.Resources;
  import android.graphics.Bitmap;
  import android.graphics.Canvas;
  import android.graphics.Paint;
  import android.graphics.drawable.Drawable;
  import android.util.AttributeSet;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.BaseAdapter;
  import android.widget.GridView;
  import android.widget.ImageView;
  import android.widget.Toast;

  public class HelloGridView extends Activity{
  int current_pos;
  private Bitmap[] mTileArray;
  private MyView myView;
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  GridView gridview = (GridView) findViewById(R.id.gridview);
  gridview.setAdapter(new ImageAdapter(this));
  gridview.setOnItemClickListener(new OnItemClickListener() {
  public void onItemClick(AdapterView? parent, View v, int
  position, long id)
  {
  Toast.makeText(HelloGridView.this,  + position,
  Toast.LENGTH_SHORT).show();
  current_pos = position;
  myView.invalidate();
  }
  });

  }

  public class ImageAdapter extends BaseAdapter {
  private Context mContext;

  public ImageAdapter(Context c) {
  mContext = c;
  }

  public int getCount() {
  return mThumbIds.length;
  }

  public Object getItem(int position) {
  return null;
  }

  public long getItemId(int position) {
  return 0;
  }

  // create a new ImageView for each item referenced by the
  Adapter
  public View getView(int position, View convertView, ViewGroup
  parent) {
  ImageView imageView;
  if (convertView == null) { // if it's not recycled,
  initialize some attributes
  imageView = new ImageView(mContext);
  imageView.setLayoutParams(new
  GridView.LayoutParams(85, 85));

  imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
  imageView.setPadding(8, 8, 8, 8);
  } else {
  imageView = (ImageView) convertView;
  }

  imageView.setImageResource(mThumbIds[position]);
  return imageView;
  }

  // references to our images
  private Integer[] mThumbIds = {
  R.drawable.sample_0, R.drawable.sample_1,
  R.drawable.sample_2, R.drawable.sample_0
  };
  }

  public class MyView extends View {

  private Bitmap[] mTileArray;
  private final Paint mPaint = new Paint();

  public MyView(Context context, AttributeSet attrs, int
  defStyle) {
  super(context, attrs, defStyle);

  //TypedArray a = context.obtainStyledAttributes(attrs,
  R.styleable.TileView);
  // mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
  //a.recycle();
  Resources r = this.getContext().getResources();
  loadTile(0,
  r.getDrawable(R.drawable.sample_0));
  loadTile(1, r.getDrawable(R.drawable.sample_1));
  loadTile(2, r.getDrawable(R.drawable.sample_2));
  loadTile(3, r.getDrawable(R.drawable.sample_0));
  }

  public MyView(Context context, AttributeSet attrs) {
  super(context, attrs);

  Resources r = this.getContext().getResources();
  loadTile(0,
  r.getDrawable(R.drawable.sample_0));
  loadTile(1, r.getDrawable(R.drawable.sample_1));
  loadTile(2, r.getDrawable(R.drawable.sample_2));
  loadTile(3, r.getDrawable(R.drawable.sample_0));
  }

  public void loadTile(int key, Drawable tile) {
  Bitmap bitmap = Bitmap.createBitmap(191, 285,
  Bitmap.Config.ARGB_);
  Canvas canvas = new Canvas(bitmap);
  tile.setBounds(0, 0, 191, 285);
  tile.draw(canvas);
  mTileArray[key] = bitmap;
  }

  @Override
  public void onDraw(Canvas canvas) {
  super.onDraw(canvas);
  

[android-developers] Re: Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread Andreas Agvard
myView is never initialized and thus null
myView.invalidate(); causes NullPointerException as a result

On Apr 1, 11:09 am, mack2978 smashmah...@gmail.com wrote:
 logs:
 Thread [1 main] (Suspended (exception NullPointerException))
         HelloGridView$1.onItemClick(AdapterView, View, int, long) line: 38
         GridView(AdapterView).performItemClick(View, int, long) line: 284
         AbsListView$PerformClick.run() line: 1696
         ViewRoot(Handler).handleCallback(Message) line: 587
         ViewRoot(Handler).dispatchMessage(Message) line: 92
         Looper.loop() line: 123
         ActivityThread.main(String[]) line: 4627
         Method.invokeNative(Object, Object[], Class, Class[], Class, int,
 boolean) line: not available [native method]
         Method.invoke(Object, Object...) line: 521
         ZygoteInit$MethodAndArgsCaller.run() line: 868
         ZygoteInit.main(String[]) line: 626
         NativeStart.main(String[]) line: not available [native method]

 On Apr 1, 1:54špm, Kostya Vasilyev kmans...@gmail.com wrote:

  Logcat output?
  01.04.2011 12:04 ÐÏÌØÚÏ×ÁÔÅÌØ mack2978 smashmah...@gmail.com ÎÁÐÉÓÁÌ:

   Hi All,

   I am trying to show full image when clicking on one of the thumbnail
   of grid view, i am able to view the grid with thumbnails but as soon
   as i click on any thumbnail to show it in full screen, handling
   onItemClick(), it crashes. below is my complete code, please help

   package com.example.HelloGridView;

   import android.app.Activity;
   import android.os.Bundle;
   import android.content.Context;
   import android.content.res.Resources;
   import android.graphics.Bitmap;
   import android.graphics.Canvas;
   import android.graphics.Paint;
   import android.graphics.drawable.Drawable;
   import android.util.AttributeSet;
   import android.view.View;
   import android.view.ViewGroup;
   import android.widget.AdapterView;
   import android.widget.AdapterView.OnItemClickListener;
   import android.widget.BaseAdapter;
   import android.widget.GridView;
   import android.widget.ImageView;
   import android.widget.Toast;

   public class HelloGridView extends Activity{
   int current_pos;
   private Bitmap[] mTileArray;
   private MyView myView;
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   GridView gridview = (GridView) findViewById(R.id.gridview);
   gridview.setAdapter(new ImageAdapter(this));
   gridview.setOnItemClickListener(new OnItemClickListener() {
   public void onItemClick(AdapterView? parent, View v, int
   position, long id)
   {
   Toast.makeText(HelloGridView.this,  + position,
   Toast.LENGTH_SHORT).show();
   current_pos = position;
   myView.invalidate();
   }
   });

   }

   public class ImageAdapter extends BaseAdapter {
   private Context mContext;

   public ImageAdapter(Context c) {
   mContext = c;
   }

   public int getCount() {
   return mThumbIds.length;
   }

   public Object getItem(int position) {
   return null;
   }

   public long getItemId(int position) {
   return 0;
   }

   // create a new ImageView for each item referenced by the
   Adapter
   public View getView(int position, View convertView, ViewGroup
   parent) {
   ImageView imageView;
   if (convertView == null) { // if it's not recycled,
   initialize some attributes
   imageView = new ImageView(mContext);
   imageView.setLayoutParams(new
   GridView.LayoutParams(85, 85));

   imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
   imageView.setPadding(8, 8, 8, 8);
   } else {
   imageView = (ImageView) convertView;
   }

   imageView.setImageResource(mThumbIds[position]);
   return imageView;
   }

   // references to our images
   private Integer[] mThumbIds = {
   R.drawable.sample_0, R.drawable.sample_1,
   R.drawable.sample_2, R.drawable.sample_0
   };
   }

   public class MyView extends View {

   private Bitmap[] mTileArray;
   private final Paint mPaint = new Paint();

   public MyView(Context context, AttributeSet attrs, int
   defStyle) {
   super(context, attrs, defStyle);

   //TypedArray a = context.obtainStyledAttributes(attrs,
   R.styleable.TileView);
   // mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
   //a.recycle();
   Resources r = this.getContext().getResources();
   loadTile(0,
   r.getDrawable(R.drawable.sample_0));
   loadTile(1, r.getDrawable(R.drawable.sample_1));
   loadTile(2, r.getDrawable(R.drawable.sample_2));
   loadTile(3, r.getDrawable(R.drawable.sample_0));
   }

   public MyView(Context context, AttributeSet attrs) {
   super(context, attrs);

   Resources r = this.getContext().getResources();
   loadTile(0,
   r.getDrawable(R.drawable.sample_0));
   loadTile(1, r.getDrawable(R.drawable.sample_1));
   loadTile(2, r.getDrawable(R.drawable.sample_2));
   loadTile(3, r.getDrawable(R.drawable.sample_0));
   }

   public void loadTile(int key, Drawable tile) {
   Bitmap bitmap = 

[android-developers] Re: Import/Export data file

2011-04-01 Thread Alaeddine Ghribi
For storing a picture, here is the code:
File file = new File(getExternalFilesDir(null), DemoFile.jpg);

For storing the data file from /data/data:
File file = new File(getExternalFilesDir(/data/data.),
storedfile);

Is that true ?
On 1 avr, 02:03, Alaeddine Ghribi alaeddineghr...@gmail.com wrote:
 I assembled some codes to have this example: IS THAT TRUE ?
 boolean mExternalStorageAvailable = false;
         boolean mExternalStorageWriteable = false;
         String state = Environment.getExternalStorageState();

         if (Environment.MEDIA_MOUNTED.equals(state)) {
             // We can read and write the media
             mExternalStorageAvailable = mExternalStorageWriteable = true;
         } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
             // We can only read the media
             mExternalStorageAvailable = true;
             mExternalStorageWriteable = false;
         } else {
             // Something else is wrong. It may be one of many other states,
 but all we need
             //  to know is we can neither read nor write
             mExternalStorageAvailable = mExternalStorageWriteable = false;
         }

         void createExternalStoragePrivateFile() {
             // Create a path where we will place our private file on external
             // storage.
             File file = new File(getExternalFilesDir(null), DemoFile.jpg);

             try {
                 // Very simple code to copy a picture from the application's
                 // resource into the external file.  Note that this code does
                 // no error checking, and assumes the picture is small (does
 not
                 // try to copy it in chunks).  Note that if external storage
 is
                 // not currently mounted this will silently fail.
                 InputStream is =
 getResources().openRawResource(R.drawable.balloons);
                 OutputStream os = new FileOutputStream(file);
                 byte[] data = new byte[is.available()];
                 is.read(data);
                 os.write(data);
                 is.close();
                 os.close();
             } catch (IOException e) {
                 // Unable to create file, likely because external storage is
                 // not currently mounted.
                 Log.w(ExternalStorage, Error writing  + file, e);
             }
         }

         void deleteExternalStoragePrivateFile() {
             // Get path for the file on external storage.  If external
             // storage is not currently mounted this will fail.
             File file = new File(getExternalFilesDir(null), DemoFile.jpg);
             if (file != null) {
                 file.delete();
             }
         }

         boolean hasExternalStoragePrivateFile() {
             // Get path for the file on external storage.  If external
             // storage is not currently mounted this will fail.
             File file = new File(getExternalFilesDir(null), DemoFile.jpg);
             if (file != null) {
                 return file.exists();
             }
             return false;
         }

 }

 In this example he copied a picture from the app, but me i want to
 copy the file data on /data/data.. ! how doing it ?
 Thank you :).

 On 30 mar, 14:05, Kostya Vasilyev kmans...@gmail.com wrote:







  30.03.2011 22:00, Alaeddine Ghribi пишет:

   Ah okay i think that i understand the point now !
   1st link: how to copy two file.
   2nd link: where to copy it.

   That's it ?

  That's right!

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
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: Inflate alloc a new View or reuse it

2011-04-01 Thread pedr0
Yes it works!

On 1 Apr, 10:47, Kostya Vasilyev kmans...@gmail.com wrote:
 So, is it working now?
 01.04.2011 12:28 пользователь pedr0 pulsarpie...@gmail.com написал:







  I am so sorry for the mistake, problem happen during THIS PIECE OF
  CODE

  for(int i = 0; i  poi.getCommenti().size();i++){
  item = poi.getCommenti().get(i);
  commento = li.inflate(R.layout.commento, null);
  commento_data = (TextView)
  commento.findViewById(R.id.commento_data);
  commento_descrizione =(TextView)
  commento.findViewById(R.id.commento_descrizione);
  commento_name = (TextView)
  commento.findViewById(R.id.commento_nome);
  commento_foto = (ImageView)
  commento.findViewById(R.id.commento_foto);
  Log.d(TAG, commento_foto:+commento_foto);
  commento_data.setText(item.getData());
  commento_descrizione.setText(item.getTesto());
  commento_name.setText(item.getUtente().getName());
  contenitore_commenti.addView(commento);
  image[i] = new ImageViewURL(commento_foto,
  item.getAnteprimaURL());
  }

  // I start only one thread for all images
  thread_image_commenti = new ImageThreadURL(this);
  thread_image_commenti.execute(image);

  On 1 Apr, 10:09, Kostya Vasilyev kmans...@gmail.com wrote:
  li.inflate(R.layout.commento, null);

  gives you a new view object hierarchy each time.

  The rest is... probably bugs in your code.

  I see that you do

  new ImageViewURL(commento_foto,item.getAnteprimaURL()

  twice for each commento item. Doesn't seem right to me.

  -- Kostya

  01.04.2011 11:49, pedr0 пишет:

   Hi,

   I am a little bit confused about this piece of code :

   for(int i = 0; i  poi.getCommenti().size();i++){
                      item = poi.getCommenti().get(i);
                      commento = li.inflate(R.layout.commento, null);
                      commento_data = (TextView)
   commento.findViewById(R.id.commento_data);
                      commento_descrizione =(TextView)
   commento.findViewById(R.id.commento_descrizione);
                      commento_name = (TextView)
   commento.findViewById(R.id.commento_nome);
                      commento_foto = (ImageView)
   commento.findViewById(R.id.commento_foto);
                      commento_data.setText(item.getData());
                      commento_descrizione.setText(item.getTesto());
                      commento_name.setText(item.getUtente().getName());
                      contenitore_commenti.addView(commento); //

 contenitore_commenti is  an LinearLayout
                      image[i] = new ImageViewURL(commento_foto,

 item.getAnteprimaURL());                            thread_image_commenti 
 = new
   ImageThreadURL(this);
                      thread_image_commenti.execute(new

 ImageViewURL(commento_foto,







   item.getAnteprimaURL()));

              }

   thread image is a simple thread which do a download of an image and
   take 2 param:

   1) an ImageView where thread call setImage(Bitmap)

   2) an String representing an URL (for download image)

   The problem is that I can see all my photo flicker when a single image
   is downloaded and all photo have the same image (URL are not the
   same).

   This is the right way ? Inflate  a NEW view for each element create a
   NEW VIEW OBJECT for each iteration or them are the same object ?

   What's wrong?

   Thanks a lot in advance.

   pedr0

   --
   undefined

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

  --
  undefinedI a

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

--
undefinedY

-- 
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: Need Help to Develope my first Android Project.

2011-04-01 Thread Robert
IS this for a class at your college?  If so give a little background
on the type of class.

On Mar 31, 5:22 am, Kirti Joshi joshikirti...@gmail.com wrote:
 can anybudy tell me how to start it ?

 which module i do first ? n which one is last ?

 if you poeple are not able to help me then, provide another link or
 fourm where people are help me in develop this project.

 i just spend my one month with android , so, no more exp. in android,
 and now situation is very thight to devlope this project. i've no more
 time just 2 month left. thats why i ask for help.

 please help me or provide another community or forum where people
 have time 4 me.

 please

 thanks in advance.

 On 3/31/11, Indicator Veritatis mej1...@yahoo.com wrote:









  It is also going to look really bad ad a collage;)

  On Mar 30, 2:13 pm, Miguel Morales therevolti...@gmail.com wrote:
  Why don't you just do it yourself?  I thought college was a place to learn
  to do things in the real world.
  You won't get help like this in the real world.

  On Wed, Mar 30, 2011 at 1:44 AM, Kirti Joshi
  joshikirti...@gmail.comwrote:

   Hi! everyone,

   i need help to develop my first android project.

   i have just 1 month of expriance in android,   but i want to develop
   this project for my collage submition.
   ==
   --
   Defination of Project
   --
   Project Name :   Personal Mobile Assistant

   Description :

                          Design and develop software that can provide
   facility to user to plan the timetable and schedule for a day, week
   and month.  It should maintain the different appointments like
   personal meeting, discussions, get-together, official meeting,
   cultural event, celebration, functions, etc...,  This personal
   assistant can be integrated with the mobile number and through
   internet can provide reminder SMS service about the task, with, a
   message and some musical tones. Give the facility to the user to set
   different priority levels, according to the priority levels different
   reminder messages and tones should appear.

   ==

   Anybudy help me to develop this above defined application with android.
   please guide me,  how to start it to develop ?

   Help me please..

   Thanks in advance.

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

  --
  ~ Jeremiah:9:23-24
  Android 2D MMORPG:http://solrpg.com/http://www.youtube.com/user/revoltingx

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

 --http://tiny.cc/Money_Machine

 -Mr.Kirti Joshi

-- 
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: Programmaticly adding playlists

2011-04-01 Thread Farhan Mehmood
can anyone direct me to a running code for this??? any example or piece of 
code will help! :( actually reading the android documentation and then using 
this knowledge in my code! :O well its quite a challenge 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

Re: [android-developers] Re: Import/Export data file

2011-04-01 Thread Marcin Orlowski
On 1 April 2011 12:32, Alaeddine Ghribi alaeddineghr...@gmail.com wrote:

 For storing a picture, here is the code:
 File file = new File(getExternalFilesDir(null), DemoFile.jpg);


For pictures I'd rather use:

File path = getExternalFilesDir(Environment.DIRECTORY_PICTURES);


to get the right path

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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: read multiple sqlite query from file

2011-04-01 Thread lbendlin
There is a thing on the Interwebs called The Google. Rather interesting.
 
http://sagistech.blogspot.com/2010/07/notes-on-android-sqlite-bukl-insert.html

-- 
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 test In-app billing without a device with Market 2.3.4

2011-04-01 Thread rudas
Hi,

How can I test my in-app implementation if I don't have any hw with
Market 2.3.4?

The only options I can see are
1. Find a new market for my android phone, but this is not available
anywhere... I'm using a custom rom so my market does not seem to auto-
update...
2. Install market on the emulator... this does not seem to be all too
easy, please advise.

Please advise how you expect developers to implement fully tested/
verified application to your platform with this lack of test
environment.
It is really poor that this cannot be tested on the emulator in a fast
and easy way. Google please fix this asap!!

BR,
/Rasmus

-- 
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: Clicking on grid item is not showing up full image view, handling onItemClick()

2011-04-01 Thread mack2978
Thanks Andreas, issue was solved but onDraw is not caling and because
of this my full image is not showing, below is my changed code

package com.example.HelloGridView;


import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Toast;

public class HelloGridView extends Activity{
int current_pos;
public MyView myView;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 myView = new MyView(this);
GridView gridview = (GridView) findViewById(R.id.gridview);
gridview.setAdapter(new ImageAdapter(this));
gridview.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View v, int
position, long id)
{
Toast.makeText(HelloGridView.this,  + position,
Toast.LENGTH_SHORT).show();
current_pos = position;
myView.invalidate();
}
});

}

public class ImageAdapter extends BaseAdapter {
private Context mContext;

public ImageAdapter(Context c) {
mContext = c;
}

public int getCount() {
return mThumbIds.length;
}

public Object getItem(int position) {
return null;
}

public long getItemId(int position) {
return 0;
}

// create a new ImageView for each item referenced by the
Adapter
public View getView(int position, View convertView, ViewGroup
parent) {
ImageView imageView;
if (convertView == null) {  // if it's not recycled,
initialize some attributes
imageView = new ImageView(mContext);
imageView.setLayoutParams(new
GridView.LayoutParams(85, 85));
 
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView.setPadding(8, 8, 8, 8);
} else {
imageView = (ImageView) convertView;
}

imageView.setImageResource(mThumbIds[position]);
return imageView;
}

// references to our images
private Integer[] mThumbIds = {
 R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_0
};
}



public class MyView extends View {

private Bitmap[] mTileArray;
private final Paint mPaint = new Paint();

public MyView(Context context) {
super(context);

//TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.TileView);
//mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
//a.recycle();
}

public MyView(Context context, AttributeSet attrs, int
defStyle) {
super(context, attrs, defStyle);

//TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.TileView);
//mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
//a.recycle();
}

public MyView(Context context, AttributeSet attrs) {
super(context, attrs);

}
 public void initresources()
 {
 Resources r = this.getContext().getResources();
 loadTile(0, r.getDrawable(R.drawable.sample_0));
 loadTile(1, r.getDrawable(R.drawable.sample_1));
 loadTile(2, r.getDrawable(R.drawable.sample_2));
 loadTile(3, r.getDrawable(R.drawable.sample_0));
 }

public void loadTile(int key, Drawable tile) {
Bitmap bitmap = Bitmap.createBitmap(191, 285,
Bitmap.Config.ARGB_);
Canvas canvas = new Canvas(bitmap);
tile.setBounds(0, 0, 191, 285);
tile.draw(canvas);
mTileArray[key] = bitmap;
}


@Override
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.drawBitmap(mTileArray[1], 0,0, mPaint);

}

}

}

On Apr 1, 2:29 pm, Andreas Agvard andreas.agv...@sonyericsson.com
wrote:
 myView is never initialized and thus null
 myView.invalidate(); causes NullPointerException as a result

 On Apr 1, 11:09 am, mack2978 smashmah...@gmail.com wrote:



  logs:
  Thread [1 main] (Suspended (exception NullPointerException))
          HelloGridView$1.onItemClick(AdapterView, View, int, long) line: 38
          

[android-developers] Re: Android sqlite and multithreading

2011-04-01 Thread Evgeny Nacu
Thanks to everyone!
  I've heard that ContentProviders do not have such problem. May be
I'll try to use them, but I have many things to change.
Thanks for the suggestion.

Evgeny

On 1 апр, 05:11, gjs garyjamessi...@gmail.com wrote:
 Hi,

 I (strongly?) suggest you wrap access to the sqlite3 database in a
 Content Provider if you are accessing concurrently (doing both
 readwrite) from Activity  Service - particularly if Service is in
 different process.

 Content Provider seems to manage concurrent access for you ok, without
 having to get involved with semaphores/synchronization yourself.

 Regards

 On Apr 1, 9:21 am, lbendlin l...@bendlin.us wrote:







  yes, semaphores are the way to go, especially for bulk write operations. it
  helps if you read some of the data from the database into a buffer. Then you
  can use the buffered data while the database update is processed, and the
  users may not even notice.

-- 
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 change a position of a bitmap on canvas

2011-04-01 Thread ama10285
Hi all^^
I try to show a position on a map (in the position(100,100) of the
map). This work fine with this code:

options = new BitmapFactory.Options();
options.inTempStorage = new byte[16*1024];
Bitmap bitmapImage =
BitmapFactory.decodeResource(getResources(),R.drawable.dasa_map,options);
Bitmap myMap=bitmapImage.copy(Bitmap.Config.ARGB_, true);
Bitmap
positionIcon=BitmapFactory.decodeResource(getResources(),R.drawable.ic_maps
_indicator_current_position);
Canvas c = new Canvas(myMap);
Paint paint= new Paint();
c.drawBitmap(b, 100, 100, paint);

Now i want to change the position of my positionIcon on the
MapmyMap( for example to (200,200)), how can i do this?
Pls help me
Thanks in advance

-- 
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: SendIntendException when sending an intent

2011-04-01 Thread Eduardo Yáñez Parareda
More information... This is the code of my widget:

public class GproWidgetProvider extends AppWidgetProvider {
// Log tag
private static final String TAG = GproWidgetProvider;


public void onUpdate(Context context, AppWidgetManager
appWidgetManager, int[] widgetIds) {
Log.d(TAG, onUpdate);
final int N = widgetIds.length;

// Por cada widget asociado al provider
for (int i = 0; i  N; i++) {
int widgetId = widgetIds[i];
updateWidget(context, appWidgetManager, widgetId,
GproUtils.getDriver(context, widgetId,
GproWidgetConfigure.loadManagerName(context, widgetId)));
}
}

/**
 * Inicializa el widget, configura los botones, y actualiza la
información de la pantalla del widget.
 * Consulta la clasificación, y muestra la posición, el tiempo y
la diferencia con el primer clasificado.
 */
static void setUpWidget(Context context, AppWidgetManager
appWidgetManager, int widgetId, String manager) {
Log.d(TAG, Setting up GproWidget [ + widgetId + ]);
// Obtenemos las vistas del widget
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.gpro_widget);

// Crear un intent para lanzar una activity
Intent intent = new Intent(context, GproGridViewer.class);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
widgetId);
PendingIntent pendingIntent =
PendingIntent.getActivity(context, 0, intent,
PendingIntent.FLAG_UPDATE_CURRENT);

// Asociamos la llamada al intent anterior en el onclick del
botón
views.setOnClickPendingIntent(R.id.grid_button,
pendingIntent);

// Crear un intent para lanzar una activity
Intent intentRace = new Intent(context, GproRaceViewer.class);
intentRace.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
widgetId);
PendingIntent pendingIntentRace =
PendingIntent.getActivity(context, 0, intentRace,
PendingIntent.FLAG_UPDATE_CURRENT);

// Asociamos la llamada al intent anterior en el onclick del
botón
views.setOnClickPendingIntent(R.id.race_button,
pendingIntentRace);

// Actualizamos el texto del widget
Driver driver = GproUtils.getDriver(context, widgetId,
manager);
String info = ;
if (driver != null) {
info = driver.shortToString();
} else {
info = context.getString(R.string.not_qualified);
}
views.setTextViewText(R.id.text, info);

// Actualizar el widget
appWidgetManager.updateAppWidget(widgetId, views);
}

/**
 * Actualiza la información de la pantalla del widget con los
datos del piloto recibido. No actualiza ni los botones
 * ni nada más.
 */
static void updateWidget(Context context, AppWidgetManager
appWidgetManager, int widgetId, Driver driver) {
Log.d(TAG, Updating driver info for GproWidget [ + widgetId
+ ]);
// Obtenemos las vistas del widget
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.gpro_widget);

String info = ;
if (driver != null) {
info = driver.shortToString();
} else {
info = context.getString(R.string.not_qualified);
}
views.setTextViewText(R.id.text, info);

// Actualizar el widget
appWidgetManager.updateAppWidget(widgetId, views);
}
}

-- 
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: Need Help to Develope my first Android Project.

2011-04-01 Thread Jake Colman
 ZV == Zsolt Vasvari zvasv...@gmail.com writes:

please help me or provide another community or forum where
people have time 4 me.

   ZV Yes, I'd try:

   ZV http://www.howtogetpeopletodomyworkformeforfree.com

There must be a typo in your URL since I am getting Server not found.
Can you please post the correct URL so that I can get my project moving?

Thanks.

-- 
Jake Colman -- Android Tinkerer

-- 
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 change a position of a bitmap on canvas

2011-04-01 Thread lbendlin
please don't double post.

https://groups.google.com/forum/?pli=1#!topic/android-developers/T7z5vTX5Tso

-- 
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: Call a WebView javascript function from the activity?

2011-04-01 Thread Maps.Huge.Info (Maps API Guru)
You have most of it. Just add a call to the JavaScript function from
your code like this:

mWebView.loadUrl(javascript:bookBtn();) ;

That will fire the function just like if you did it in the address bar
of a browser.

Mark Murphy has this method documented in one of his books (http://
commonsware.com/). You might shell out for a subscription. Well worth
it.

-John Coryat

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


Re: [android-developers] Re: Is Android Smartphone application development similar to Android Tablet..???

2011-04-01 Thread Justin Giles
On Fri, Apr 1, 2011 at 2:56 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 1) Run app on Android Tablet
 2) Note any errors
 3) Any Errors?  No, go to Step 6
 4) Fix errors
 5) Go to Step 1
 6) Done


I thought goto statements were generally frowned upon in Java? :)

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

Re: [android-developers] Re: Is Android Smartphone application development similar to Android Tablet..???

2011-04-01 Thread Justin Giles
On Fri, Apr 1, 2011 at 9:57 AM, Justin Giles jtgi...@gmail.com wrote:

 On Fri, Apr 1, 2011 at 2:56 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 1) Run app on Android Tablet
 2) Note any errors
 3) Any Errors?  No, go to Step 6
 4) Fix errors
 5) Go to Step 1
 6) Done


 I thought goto statements were generally frowned upon in Java? :)


Aside from the fact that there are no goto statements in java...still :)

-- 
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: Call a WebView javascript function from the activity?

2011-04-01 Thread Streets Of Boston
First, have you tried javascript:loadTOC*()* instead of javascript:loadTOC. 
You forgot the open and close braces.
 
Secondly, i'm not sure what your script does.
You want to execute an anonymous function when your document finished 
loading. This anonymous function just declares another function called *
loadTOC*, which is never called. I'm getting a little rusty in JavaScript, 
but the scope of loadTOC does not seem to be global (it is local to that 
anonymous function). 
Try to make this loadTOC function global by moving the 'function loadTOC() { 
... }' outside of the anonymous function (and be sure to not forget the open 
and close braces in your Activity when calling loadTOC).
 

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

Re: [android-developers] Re: Is Android Smartphone application development similar to Android Tablet..???

2011-04-01 Thread Kostya Vasilyev
He probably meant:

continue top_of_the_loop;
01.04.2011 19:00 пользователь Justin Giles jtgi...@gmail.com написал:
 On Fri, Apr 1, 2011 at 9:57 AM, Justin Giles jtgi...@gmail.com wrote:

 On Fri, Apr 1, 2011 at 2:56 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 1) Run app on Android Tablet
 2) Note any errors
 3) Any Errors? No, go to Step 6
 4) Fix errors
 5) Go to Step 1
 6) Done


 I thought goto statements were generally frowned upon in Java? :)


 Aside from the fact that there are no goto statements in java...still :)

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

Re: [android-developers] Re: Is Android Smartphone application development similar to Android Tablet..???

2011-04-01 Thread Greg Donald
On Fri, Apr 1, 2011 at 9:59 AM, Justin Giles jtgi...@gmail.com wrote:
 I thought goto statements were generally frowned upon in Java? :)

 Aside from the fact that there are no goto statements in java...still :)

My java binary is full of of goto statements, in the form of 'jmp' entries :)


-- 
Greg Donald
destiney.com | gregdonald.com

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


Re: [android-developers] Re: Use one handler for multiple activties

2011-04-01 Thread Justin Anderson
Here is a good one:
http://lmgtfy.com/?q=java+listeners

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Apr 1, 2011 at 1:13 AM, Nand nandithab...@gmail.com wrote:

 Hi,
 Thanks for the reply.
 Can you please provide some links whihc gives information about
 implementing listeners?

 Regards,
 Nand

 --
 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 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] Xperia play - how are they filtering by device like that ?

2011-04-01 Thread niko20
So I saw that all the games for Xperia play somehow know they are only
allowed to be installed on that approved device. How are they doing
that? Did they have Google update the  market up or something to
filter in some other ways? I know we certainly can't filter based on
device!


-nik

-- 
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 change a position of a bitmap on canvas

2011-04-01 Thread ama10285
ah sorry
i was not sure if my message is arrived, because I couldn t seen him
with the posted messages.

On Apr 1, 4:09 pm, lbendlin l...@bendlin.us wrote:
 please don't double post.

 https://groups.google.com/forum/?pli=1#!topic/android-developers/T7z5...

-- 
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 android application development

2011-04-01 Thread kajal patil
Hi All,
  How to set edittext background color and edittext border line which
seems an orange?
Thank You.

-- 
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: Mount sdcard from code

2011-04-01 Thread FrankG
Hi Feng,

IMHO at the end it must be the vold, which does via Volume-Fat-
doMount the sys/mount call.

Good luck ! Frank



On 31 Mrz., 10:34, Feng Chris chris@gmail.com wrote:
 Hi FrankG,

 Do you know who the NativeDaemonConnector  communicate with via socket?

 Thanks,
 Chris

 2011/2/9 FrankG frankgru...@googlemail.com







  BTW .. the Settings app simply uses the AIDL Interface to the
  mount service via IMountService and calls mount.

  And com.android.server.MountService sends the notifications.

  The mountVolume call has this check inside :

  validatePermission(android.Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS);

  The MountService then communicates using the NativeDaemonConnector via
  sockets
  ( I assume with then native SystemServer  )

  Good luck ! Frank

  On 9 Feb., 06:32, maikelalonso maikelalonsob...@gmail.com wrote:
   Thanks for the reply. The solution might be to run a portion of code
   that makes the same as Menu- Settings- External Storage- Mount
   SDCARD. I understand you're telling me that's impossible.

   (Congratulations for your blog. Is very interesting).

   On 8 feb, 19:34, Kostya Vasilyev kmans...@gmail.com wrote:

How about checking the source yourself?

   http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;.
  ..

However, Settings might be using an internal API not available to
applications (most likely is), and, AFAIK, is signed with the platform
key, which you can't replicate in your code, root or not.

Your best bet might be to directly exec mount with appropriate
parameters. Also try asking on android-porting or onhttp://
 www.xda-developers.com/-programmersthere should be able to
tell you for sure.

-- Kostya

08.02.2011 20:04, maikelalonso пишет:

 Hi,  I've rooted my device and I've root privileges. All is Ok. The
 only one problem is the code to run in order to get mounted the sd
 card.
 What's the command running in Android when I make Menu-Settings-
 External storage-Mount SD CARD?
 On 8 feb, 17:45, Marcin Orlowskiwebnet.andr...@gmail.com  wrote:
 On 8 February 2011 16:41, maikelalonsomaikelalonsob...@gmail.com
   wrote:

 Hi:
 Anyone know how to mount the sdcard from code? I umount this
  storage
 from menu-settings-umount sd card and I want to mount it from an
 androd application.  I can get the state with
  getExternalStorageState
 and the path to the mounted sdcard folder but I dont know if it's
 possible to mount the device from java code.
 Mount requires certain privileges your app simply does not have
  unless
 you got rooted device (and grant yourself root rights)

--
Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com-Zitierten Text ausblenden -

   - Zitierten Text anzeigen -

  --
  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 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: Change the Position for a drawed bitmap on a canvas

2011-04-01 Thread ama10285
ty for the answer
Wich bitmap do you mean? myMap or positionIcon? myMap has its own 
imageview 
can you more explain pls
Thanks in advance

-- 
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: Call a WebView javascript function from the activity?

2011-04-01 Thread Maps.Huge.Info (Maps API Guru)
If you're having trouble debugging the JavaScript and HTML portion of
your webview, you can always load that portion in a browser and use
the standard debugging tools it provides to reveal errors. The
debugging capabilities of webview are pretty limited. Do check your
logs for JavaScript errors though, some show there, although they are
more cryptic than we are used to seeing in the browser console.

-John Coryat

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


Re: [android-developers] help me -insert image into google map with java script !!!!!!!!!!!!!!!!!!!!!!!!!!!!

2011-04-01 Thread TreKing
On Thu, Mar 31, 2011 at 2:52 AM, hoang vantan9...@gmail.com wrote:

 I have a blueprint to insert threads into GOOGLE MAP. look forward to your
 help.


1 - Read your own question back to yourself.
2 - Ask yourself Does this make any friggin' sense?.
3 - Answer yourself no, it does not. At all. Not one damn bit.
4 - Read this:http://www.catb.org/~esr/faqs/smart-questions.html
5 - Try again.

-
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

[android-developers] Re: Change the Position for a drawed bitmap on a canvas

2011-04-01 Thread lbendlin
positionIcon as that is what you want to move around on the map, 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] Re: Import/Export data file

2011-04-01 Thread Alaeddine Ghribi
And how to do it if i want tp copy a file from /data/data/android/
android.dat to a directory android in the SDCARD ?
Thanks :).

On 1 avr, 12:10, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 1 April 2011 12:32, Alaeddine Ghribi alaeddineghr...@gmail.com wrote:

  For storing a picture, here is the code:
  File file = new File(getExternalFilesDir(null), DemoFile.jpg);

 For pictures I'd rather use:

 File path = getExternalFilesDir(Environment.DIRECTORY_PICTURES);

 to get the right path

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
 *Twitterhttp://webnetmobile.com/twitter/
 *

-- 
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] Layout spacing question

2011-04-01 Thread Chris Stewart
I have a ScrollView, in a fragment, which takes up the remaining width of
the screen.  There are two fragments that proceed this fragment on the left
side of the screen.

What I'd like to do is add another layout to the right of the ScrollView
that only takes up a small amount of width and hugs the right side of the
screen, and effectively lets the ScrollView take up what's left.  I've
done things like set the ScrollView's marginRight to 10dp and similar to
leave some space for the final layout, but it doesn't seem to work.  I've
tried searching for similar scenarios but maybe I just haven't found the
right keyword combination to yield the results I'm after.

Does this ring any bells for anyone?  Any insight would be helpful, thanks.

--
Chris Stewart
http://chriswstewart.com

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

Re: [android-developers] Xperia play - how are they filtering by device like that ?

2011-04-01 Thread Dianne Hackborn
They have a shared library on their device which provides extended
functionality needed by the app.

This has been a standard part of the platform since 1.5, used for example
for the maps library and any other features that are not part of the base
platform.  I have repeatedly asked people like cyanogen to use this facility
for their own extensions (such as the ability to get root) so that
developers can correctly filter their apps out of device that do not support
such features.

On Fri, Apr 1, 2011 at 8:33 AM, niko20 nikolatesl...@yahoo.com wrote:

 So I saw that all the games for Xperia play somehow know they are only
 allowed to be installed on that approved device. How are they doing
 that? Did they have Google update the  market up or something to
 filter in some other ways? I know we certainly can't filter based on
 device!


 -nik

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Layout spacing question

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 2:15 PM, Chris Stewart cstewart...@gmail.com wrote:
 I have a ScrollView, in a fragment, which takes up the remaining width of
 the screen.  There are two fragments that proceed this fragment on the left
 side of the screen.
 What I'd like to do is add another layout to the right of the ScrollView
 that only takes up a small amount of width and hugs the right side of the
 screen, and effectively lets the ScrollView take up what's left.  I've
 done things like set the ScrollView's marginRight to 10dp and similar to
 leave some space for the final layout, but it doesn't seem to work.  I've
 tried searching for similar scenarios but maybe I just haven't found the
 right keyword combination to yield the results I'm after.
 Does this ring any bells for anyone?  Any insight would be helpful, thanks.

Wrap the ScrollView in a RelativeLayout, anchor your right thingy to
the right/top/bottom, and anchor your ScrollView to the
left/top/bottom + the right thingy.

Or, wrap the ScrollView in a LinearLayout, assign it 0px width but a
weight of 1, and put the right thingy after it.

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

-- 
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] Is anyone using OpenX for android ads? - If not, which ad server?

2011-04-01 Thread pawpaw17
Hi Guys,

I want to serve house ads in my app, but also integrate 3rd party ad
sources like mobfox.

Has anyone used OpenX to serve ads? There are a couple of widgets out
there, but I'm not sure
how well OpenX works with the app paradigm. I want to host the
server myself, and I've
considered ad whirl, but I'm hesitant because it is so tied to admob.
Of course the goal
is to add a widget to the appropriate places in the app and then never
change the app-side
code - instead only changing what's on the server side.

Any posts with experience would be greatly appreciated!!

pawpaw17

-- 
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: Use one handler for multiple activties

2011-04-01 Thread Streets Of Boston
Listener interface example:
public interface Listener {
  public void notifyMe(Object someParam);
}
 
 
Listener example (e.g. your Activity that will implement Listener):
...
   protected void onResume() {
  ...
  backgroundThread.registerListener(this);
   }
 
   protected void onPause() {
  ...
  backgroundThread.unRegisterListener(this);
   }
 
   public void notifyMe(Object someParam) {
  // do something, like putting data from someParam into the UI.
  ...
   }
 
 
Your background thread implements these:
...
   Listener listener;
...
   public void registerListener(Listener listener) {
  this.listener = listener; // could be added to a list of Listeners as 
well, if necessary, for broadcasting.
   }
 
public void unRegisterListener(Listener listener) {
  if (this.listener == listener)
 this.listener = null; // could be removed from a list of Listeners 
as well, if necessary, for removing from broadcasting.
   }
...
...
  // Somewhere in your background thread's code, where you need to 
update the UI.
  if (this.listener != null) {
 // Be sure that this code here is running on the UI thread!
 this.listener.notifyMe(someData);
  }
...
...
 
 

-- 
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] Java newb question about a public array class member

2011-04-01 Thread trans
I don't really get Java. I'm trying to define a public array member,
like so:

  public class MyClass {

// alphabetical list of words
private String[] wordList;

// constructor
public MyClass() {

  String[] wordList = {
 
American,American,Brown,Christian,Congress,Doctor,England,English
  };

}

public String[] getList() {
  return wordList;
}

  }

When I try to access wordList, as in getList(), I get a null error.
Why?

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


Re: [android-developers] Java newb question about a public array class member

2011-04-01 Thread Marcin Orlowski
On 1 April 2011 21:24, trans transf...@gmail.com wrote:

 I don't really get Java. I'm trying to define a public array member,

Why?


This is not the right group for you question. Put android aside and learn
Java basics, variable scopes etc. then you realise that you in fact
*created* (and then initialized) variable local to constructor.. Once
constructor is done this variable is gone. If you want to init class member,
do not cover it with local variable like you did (do not declare, just
assign). In case (not your) this is intentional, learn about this keyword.
Again - unsubscribe from here, go read some Java books, courses, tutorials
whatever, and get back here after you got some elementary knowledge.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
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: Java newb question about a public array class member

2011-04-01 Thread Michael
Replace: String[] wordList = {

 
American,American,Brown,Christian,Congress,Doctor,England,English
   };

with: this.wordList = new String[]{

 
American,American,Brown,Christian,Congress,Doctor,England,English
   };

On Apr 1, 12:24 pm, trans transf...@gmail.com wrote:
 I don't really get Java. I'm trying to define a public array member,
 like so:

   public class MyClass {

     // alphabetical list of words
     private String[] wordList;

     // constructor
     public MyClass() {

       String[] wordList = {

 American,American,Brown,Christian,Congress,Doctor,England,English
       };

     }

     public String[] getList() {
       return wordList;
     }

   }

 When I try to access wordList, as in getList(), I get a null error.
 Why?

-- 
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: Working With Multiple Widget Sizes

2011-04-01 Thread Jake Colman
 KV == Kostya Vasilyev kmans...@gmail.com writes:

   KV As far as Android is concerned, IntentService knows nothing about
   KV home screen widgets.

   KV Since you know which widget receivers' onUpdate was called, pass
   KV this information to the service (e.g. by setting an intent
   KV extra).

I implemented two Broadcast Receivers, one for each widget size.  Both
receivers have the same set of intent filters.  If I instantiate just
one size widget and broadcast an intent, both receivers respond to that
intent - even though only one size widget has been instantiated.

Does this make sense?  Should the large receiver respond to intents if
only the small widget has been instantiated?

-- 
Jake Colman -- Android Tinkerer

-- 
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: Java newb question about a public array class member

2011-04-01 Thread trans


On Apr 1, 3:35 pm, Michael michaeldh...@gmail.com wrote:
 Replace: String[] wordList = {

 American,American,Brown,Christian,Congress,Doctor,England,En 
 glish
        };

 with: this.wordList = new String[]{

 American,American,Brown,Christian,Congress,Doctor,England,En 
 glish
        };


Thank you.

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


Re: [android-developers] Re: Working With Multiple Widget Sizes

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 3:43 PM, Jake Colman col...@ppllc.com wrote:
 KV == Kostya Vasilyev kmans...@gmail.com writes:

   KV As far as Android is concerned, IntentService knows nothing about
   KV home screen widgets.

   KV Since you know which widget receivers' onUpdate was called, pass
   KV this information to the service (e.g. by setting an intent
   KV extra).

 I implemented two Broadcast Receivers, one for each widget size.  Both
 receivers have the same set of intent filters.  If I instantiate just
 one size widget and broadcast an intent, both receivers respond to that
 intent - even though only one size widget has been instantiated.

 Does this make sense?  Should the large receiver respond to intents if
 only the small widget has been instantiated?

Sure. To paraphrase Kostya, as far as Android is concerned, intent
filters know nothing about home screen app widgets.

If you have one BroadcastReceiver in your manifest with an intent
filter, and you send a broadcast matching that filter, one
BroadcastReceiver will respond.

If you have two BroadcastReceivers in your manifest with the same
intent filter, and you send a broadcast matching that filter, two
BroadcastReceivers will respond.

If you have 1,337 BroadcastReceivers in your manifest with the same
intent filter, and you send a broadcast matching that filter, 1,337
BroadcastReceivers will respond.

This begs the question of why you have multiple AppWidgetProviders.
You only need one.

To tell small from large, call getAppWidgetInfo() on the
AppWidgetManager inside your onUpdate() or wherever. That will return
a Java object mirroring your appwidget-provider XML element. Use the
minWidth and minHeight values, or possibly the initialLayout value, to
determine which size it is.

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

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


Re: [android-developers] Layout spacing question

2011-04-01 Thread Chris Stewart
Thanks Mark, I'll give those a shot tonight.

--
Chris Stewart
http://chriswstewart.com



On Fri, Apr 1, 2011 at 2:31 PM, Mark Murphy mmur...@commonsware.com wrote:

 On Fri, Apr 1, 2011 at 2:15 PM, Chris Stewart cstewart...@gmail.com
 wrote:
  I have a ScrollView, in a fragment, which takes up the remaining width of
  the screen.  There are two fragments that proceed this fragment on the
 left
  side of the screen.
  What I'd like to do is add another layout to the right of the ScrollView
  that only takes up a small amount of width and hugs the right side of the
  screen, and effectively lets the ScrollView take up what's left.  I've
  done things like set the ScrollView's marginRight to 10dp and similar to
  leave some space for the final layout, but it doesn't seem to work.  I've
  tried searching for similar scenarios but maybe I just haven't found the
  right keyword combination to yield the results I'm after.
  Does this ring any bells for anyone?  Any insight would be helpful,
 thanks.

 Wrap the ScrollView in a RelativeLayout, anchor your right thingy to
 the right/top/bottom, and anchor your ScrollView to the
 left/top/bottom + the right thingy.

 Or, wrap the ScrollView in a LinearLayout, assign it 0px width but a
 weight of 1, and put the right thingy after it.

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

 Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

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

Re: [android-developers] dialog placement

2011-04-01 Thread Dianne Hackborn
The dialog is just centered on the screen based on the entire contents.  I
assume you have some alpha around the edges that make the positioning look
off.  You just need to have the image designed so that it will visually
appeared center for you.

If the red lines are showing the edges of your actual image, then you have
something else going on that has nothing to do with the image.

On Fri, Apr 1, 2011 at 9:36 AM, pskink psk...@gmail.com wrote:

 hi,

 i want to create a dialog with custom background. in order to do that i use
 windowBackground style pointing to my 9-patch drawable.

 the problem is that 9-patch drawable is a big rectangular area with some
 icon on the top-left position and when i use it i get dialog which is
 centered within entire bounds (see *have_it.png* image, the thin red line
 outlines dialog bounds)

 what i'd like to get is *want_it.png* image. i tried to play with 9-patch
 padding lines (the bottom  right black lines) but it doesn't help.

 what is possible solution for this? maybe InsetDrawable?

 thanks
 pskink

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: Working With Multiple Widget Sizes

2011-04-01 Thread Jake Colman
 MM == Mark Murphy mmur...@commonsware.com writes:

   MM On Fri, Apr 1, 2011 at 3:43 PM, Jake Colman col...@ppllc.com wrote:

KV == Kostya Vasilyev kmans...@gmail.com writes:

  KV As far as Android is concerned, IntentService knows nothing
about   KV home screen widgets.

  KV Since you know which widget receivers' onUpdate was called,
pass   KV this information to the service (e.g. by setting an
intent   KV extra).

I implemented two Broadcast Receivers, one for each widget
size.  Both receivers have the same set of intent filters.  If I
instantiate just one size widget and broadcast an intent, both
receivers respond to that intent - even though only one size
widget has been instantiated.

Does this make sense?  Should the large receiver respond to
intents if only the small widget has been instantiated?

   MM Sure. To paraphrase Kostya, as far as Android is concerned,
   MM intent filters know nothing about home screen app widgets.

   MM If you have one BroadcastReceiver in your manifest with an intent
   MM filter, and you send a broadcast matching that filter, one
   MM BroadcastReceiver will respond.

   MM If you have two BroadcastReceivers in your manifest with the same
   MM intent filter, and you send a broadcast matching that filter, two
   MM BroadcastReceivers will respond.

   MM If you have 1,337 BroadcastReceivers in your manifest with the
   MM same intent filter, and you send a broadcast matching that
   MM filter, 1,337 BroadcastReceivers will respond.

   MM This begs the question of why you have multiple
   MM AppWidgetProviders.  You only need one.

   MM To tell small from large, call getAppWidgetInfo() on the
   MM AppWidgetManager inside your onUpdate() or wherever. That will
   MM return a Java object mirroring your appwidget-provider XML
   MM element. Use the minWidth and minHeight values, or possibly the
   MM initialLayout value, to determine which size it is.

H.  You have asked me a fascinating question.

According to this posting in Stack Overflow
(http://stackoverflow.com/questions/2570004/how-to-add-multiple-widgets-in-one-app)
you need a receiver definition for each widget size.  Unless I'm getting
confused in my terminology (which is certainly possible) this means that
I _do_ need multiple AppWidgetProviders to support different sized
widgets.

Since I have two AppWidgetProviders (Broadcast Receivers, correct?) I
have each receiver add an an extra to the intent that the receiver sends
to the IntentService that actually does the work of updating the remote
view.  The IntentService checks the extra so that it knows which widget
(large or small) is asking for the update and then it updates the
appropriate remote view.

I fully understand why each receiver is responding to the broadcasted
intent.  But it certainly seems like a waste of resources to have the
receiver for the uninstantiated widget get events for a remote view that
isn't even displayed.  Is this the way it just has to be or am I missing
the Android Way.

-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Re: Working With Multiple Widget Sizes

2011-04-01 Thread Kostya Vasilyev
Mark --

You left out what happens with 1338 receivers... :)

Jake --

I implemented my two widget sizes as two receivers, the reason being that
meta-data that references the widget_info_widget_size_variation.xml goes
under receiver. The metadata is important because it specifies minimum
widget size, which differs between my widgets (3x1 and 2x1). Besides, that's
how the home screen app knows that there are two widgets.

Multiple broadcasts haven't been a problem with my setup, because my code
double checks widget Ids against my own known widget Id list for that
particular widget size. The list is maintained by the widget configuration
activity (add) and the receiver's onDeleted (remove).

The update action never crosses into the wrong receiver, apparently because
it has the Java class name set.

And actually, this is one solution you could try. For your own broadcast
intents (I presume, triggering a widget update in response to application
logic) you can set the class name in the intent, to make large broadcasts
go to large receiver, and small go to small.

For intents broadcast by the system (if you widgets watch some system state
changes), you could implement just one receiver as Mark recommends, and
update both large and small widget lists.

In my code I just let both sets of widgets update from their own intent
filters, each having the same system intents that I care about. With the
widget Id checking as descibed above, it affects only widgets managed by
that particular reciever.

-- Kostya

2011/4/1 Mark Murphy mmur...@commonsware.com

 On Fri, Apr 1, 2011 at 3:43 PM, Jake Colman col...@ppllc.com wrote:
  KV == Kostya Vasilyev kmans...@gmail.com writes:
 
KV As far as Android is concerned, IntentService knows nothing about
KV home screen widgets.
 
KV Since you know which widget receivers' onUpdate was called, pass
KV this information to the service (e.g. by setting an intent
KV extra).
 
  I implemented two Broadcast Receivers, one for each widget size.  Both
  receivers have the same set of intent filters.  If I instantiate just
  one size widget and broadcast an intent, both receivers respond to that
  intent - even though only one size widget has been instantiated.
 
  Does this make sense?  Should the large receiver respond to intents if
  only the small widget has been instantiated?

 Sure. To paraphrase Kostya, as far as Android is concerned, intent
 filters know nothing about home screen app widgets.

 If you have one BroadcastReceiver in your manifest with an intent
 filter, and you send a broadcast matching that filter, one
 BroadcastReceiver will respond.

 If you have two BroadcastReceivers in your manifest with the same
 intent filter, and you send a broadcast matching that filter, two
 BroadcastReceivers will respond.

 If you have 1,337 BroadcastReceivers in your manifest with the same
 intent filter, and you send a broadcast matching that filter, 1,337
 BroadcastReceivers will respond.

 This begs the question of why you have multiple AppWidgetProviders.
 You only need one.

 To tell small from large, call getAppWidgetInfo() on the
 AppWidgetManager inside your onUpdate() or wherever. That will return
 a Java object mirroring your appwidget-provider XML element. Use the
 minWidth and minHeight values, or possibly the initialLayout value, to
 determine which size it is.

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

 Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

 --
 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 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] portrait only

2011-04-01 Thread bob
How do I specify on Android that I want an app to run only in portrait
mode and not do anything if the user rotates the device 90 degrees?

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


Re: [android-developers] Re: Working With Multiple Widget Sizes

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 4:43 PM, Jake Colman col...@ppllc.com wrote:
 H.  You have asked me a fascinating question.

 According to this posting in Stack Overflow
 (http://stackoverflow.com/questions/2570004/how-to-add-multiple-widgets-in-one-app)
 you need a receiver definition for each widget size.  Unless I'm getting
 confused in my terminology (which is certainly possible) this means that
 I _do_ need multiple AppWidgetProviders to support different sized
 widgets.

Quoting the accepted SO answer:

This would allow you to have the same AppWidgetProvider class be used
for multiple widgets, with different widget names and different sizes
defined in the appwidget-provider XML.

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

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


Re: [android-developers] portrait only

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 4:47 PM, bob b...@coolgroups.com wrote:
 How do I specify on Android that I want an app to run only in portrait
 mode and not do anything if the user rotates the device 90 degrees?

Put android:screenOrientation=portrait for that activity in the
manifest. You will probably also want to add
android:configChanges=keyboardHidden|orientation, so Android does
not unnecessarily destroy and recreate your activity.

Please note that some tablet users, and eventually all Google TV
users, will tend to use their devices in landscape mode. Google TV
users, in particular, likely will be disinterested in turning their
TVs on the side to use portrait-only activities.

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

-- 
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: Working With Multiple Widget Sizes

2011-04-01 Thread Jake Colman
 MM == Mark Murphy mmur...@commonsware.com writes:

   MM On Fri, Apr 1, 2011 at 4:43 PM, Jake Colman col...@ppllc.com wrote:
H.  You have asked me a fascinating question.

According to this posting in Stack Overflow

(http://stackoverflow.com/questions/2570004/how-to-add-multiple-widgets-in-one-app)
you need a receiver definition for each widget size.  Unless I'm
getting confused in my terminology (which is certainly possible)
this means that I _do_ need multiple AppWidgetProviders to support
different sized widgets.

   MM Quoting the accepted SO answer:

   MM This would allow you to have the same AppWidgetProvider class be
   MM used for multiple widgets, with different widget names and
   MM different sizes defined in the appwidget-provider XML.

Correct, that is what he says.  But if you look at the comments that
follow you will see three that state something like the following:

Hi, thanks for your answer. But it seems that I cannot share the same
widget provider. (if I do, only first in manifest is shown). So,
basically, multiple widget providers would be the answer for me. Is
anyone working with one widget provider?

My own tests showed the same behavior.

-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Re: Working With Multiple Widget Sizes

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 4:55 PM, Jake Colman col...@ppllc.com wrote:
 Correct, that is what he says.  But if you look at the comments that
 follow you will see three that state something like the following:

 Hi, thanks for your answer. But it seems that I cannot share the same
 widget provider. (if I do, only first in manifest is shown). So,
 basically, multiple widget providers would be the answer for me. Is
 anyone working with one widget provider?

 My own tests showed the same behavior.

Whoops. Sorry.

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

-- 
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: Working With Multiple Widget Sizes

2011-04-01 Thread Jake Colman
 KV == Kostya Vasilyev kmans...@gmail.com writes:

   KV Mark --
   KV You left out what happens with 1338 receivers... :)

   KV Jake --

   KV I implemented my two widget sizes as two receivers, the reason
   KV being that meta-data that references the
   KV widget_info_widget_size_variation.xml goes under
   KV receiver. The metadata is important because it specifies
   KV minimum widget size, which differs between my widgets (3x1 and
   KV 2x1). Besides, that's how the home screen app knows that there
   KV are two widgets.

   KV Multiple broadcasts haven't been a problem with my setup, because
   KV my code double checks widget Ids against my own known widget Id
   KV list for that particular widget size. The list is maintained by
   KV the widget configuration activity (add) and the receiver's
   KV onDeleted (remove).

   KV The update action never crosses into the wrong receiver,
   KV apparently because it has the Java class name set.

   KV And actually, this is one solution you could try. For your own
   KV broadcast intents (I presume, triggering a widget update in
   KV response to application logic) you can set the class name in the
   KV intent, to make large broadcasts go to large receiver, and
   KV small go to small.

   KV For intents broadcast by the system (if you widgets watch some
   KV system state changes), you could implement just one receiver as
   KV Mark recommends, and update both large and small widget
   KV lists.

   KV In my code I just let both sets of widgets update from their own
   KV intent filters, each having the same system intents that I care
   KV about. With the widget Id checking as descibed above, it affects
   KV only widgets managed by that particular reciever.

Kostya,

Thanks for the detailed reply.

For those events that are shared by the two receivers, what happens if
only one sized widget is actually on the home screen?  The system sends
the event and it is still processed by unused broadcast receiver even
though its widget is not instantiated?  That's the behavior I am seeing
and it sounds like you see the same.

With regard to your statement Multiple broadcasts haven't been a
problem with my setup, because my code double checks widget Ids against
my own known widget Id list for that particular widget size, you still
get the multiple broadcasts but you are smart enough to ignore them?

-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Re: Working With Multiple Widget Sizes

2011-04-01 Thread Kostya Vasilyev
Perhaps it worked at some point, then the system service that manages a
package's list of receivers was changed to ignore duplicates?
2011/4/2 Mark Murphy mmur...@commonsware.com

 On Fri, Apr 1, 2011 at 4:55 PM, Jake Colman col...@ppllc.com wrote:
  Correct, that is what he says.  But if you look at the comments that
  follow you will see three that state something like the following:
 
  Hi, thanks for your answer. But it seems that I cannot share the same
  widget provider. (if I do, only first in manifest is shown). So,
  basically, multiple widget providers would be the answer for me. Is
  anyone working with one widget provider?
 
  My own tests showed the same behavior.

 Whoops. Sorry.

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

 Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

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

Re: [android-developers] Re: Working With Multiple Widget Sizes

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 5:17 PM, Kostya Vasilyev kmans...@gmail.com wrote:
 Perhaps it worked at some point, then the system service that manages a
 package's list of receivers was changed to ignore duplicates?

Possibly. It'd be cool if we had receiver-alias to go along with
activity-alias, as that'd be one way to eliminate an extraneous
class.

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

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


Re: [android-developers] Re: Working With Multiple Widget Sizes

2011-04-01 Thread Kostya Vasilyev
2011/4/2 Jake Colman col...@ppllc.com

 Kostya,

 Thanks for the detailed reply.

 For those events that are shared by the two receivers, what happens if
 only one sized widget is actually on the home screen?  The system sends
 the event and it is still processed by unused broadcast receiver even
 though its widget is not instantiated?  That's the behavior I am seeing
 and it sounds like you see the same.


For anything other than onUpdate -  widgets are built on top of the
broadcast receiver mechanism, they make use of how receivers work, but don't
change that.

That mechanism doesn't know that there are no widgets of a particular size
on the screen, it just sends those events to all receivers that have
matching intent filters. It doesn't even know (I think) that those receivers
are actually widgets. The home screen app does, but not the intent
dispatcher.

If there are 1337 of those, then all will be invoked. I think it's a safe
guess that with 1338 it works the same way :)



 With regard to your statement Multiple broadcasts haven't been a
 problem with my setup, because my code double checks widget Ids against
 my own known widget Id list for that particular widget size, you still
 get the multiple broadcasts but you are smart enough to ignore them?


Yes. I have to track widget Ids on my own, because there is a fairly well
known problem with stale (ghost) widget Ids.

I posted this before, here is my setup:

http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/

 -- Kostya



 --
 Jake Colman -- Android Tinkerer

 --
 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 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: portrait only

2011-04-01 Thread bob
Thanks.  That seems to have worked.

On Apr 1, 3:54 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Apr 1, 2011 at 4:47 PM, bob b...@coolgroups.com wrote:
  How do I specify on Android that I want an app to run only in portrait
  mode and not do anything if the user rotates the device 90 degrees?

 Put android:screenOrientation=portrait for that activity in the
 manifest. You will probably also want to add
 android:configChanges=keyboardHidden|orientation, so Android does
 not unnecessarily destroy and recreate your activity.

 Please note that some tablet users, and eventually all Google TV
 users, will tend to use their devices in landscape mode. Google TV
 users, in particular, likely will be disinterested in turning their
 TVs on the side to use portrait-only activities.

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

 Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2

-- 
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] preventing screen shutdown

2011-04-01 Thread bob
I'm writing a game for Android that uses the accelerometer.  However,
the phone keeps turning off the screen after about 5 seconds and
locking up.  Anyone know how to stop it from doing 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


Re: [android-developers] preventing screen shutdown

2011-04-01 Thread Mark Murphy
For a game, add android:keepScreenOn=true to one of the widgets in
your layout.

On Fri, Apr 1, 2011 at 5:49 PM, bob b...@coolgroups.com wrote:
 I'm writing a game for Android that uses the accelerometer.  However,
 the phone keeps turning off the screen after about 5 seconds and
 locking up.  Anyone know how to stop it from doing this?

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

-- 
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: Android sqlite and multithreading

2011-04-01 Thread DanH
A  content provider won't provide any function over what you have now
-- it's just a different way to accomplish the same synchronization.
With SQLite you basically can't have two transactions going on at the
same time, so you must either use semaphores or some such to prevent
collisions or use a server (content provider) so that all the
accesses are through a single thread.

If you understand threads and thread synchronization/exclusion then
your way is probably more efficient and just as reliable.  If you
don't understand threads then the content provider technique is safer.

On Apr 1, 7:51 am, Evgeny Nacu evgeny.n...@gmail.com wrote:
 Thanks to everyone!
   I've heard that ContentProviders do not have such problem. May be
 I'll try to use them, but I have many things to change.
 Thanks for the suggestion.

 Evgeny

 On 1 апр, 05:11, gjs garyjamessi...@gmail.com wrote:

  Hi,

  I (strongly?) suggest you wrap access to the sqlite3 database in a
  Content Provider if you are accessing concurrently (doing both
  readwrite) from Activity  Service - particularly if Service is in
  different process.

  Content Provider seems to manage concurrent access for you ok, without
  having to get involved with semaphores/synchronization yourself.

  Regards

  On Apr 1, 9:21 am, lbendlin l...@bendlin.us wrote:

   yes, semaphores are the way to go, especially for bulk write operations. 
   it
   helps if you read some of the data from the database into a buffer. Then 
   you
   can use the buffered data while the database update is processed, and the
   users may not even notice.

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


Re: [android-developers] preventing screen shutdown

2011-04-01 Thread Filip Havlicek
Hi bob,

check this out

http://developer.android.com/reference/android/os/PowerManager.html

Best regards,
Filip Havlicek

2011/4/1 bob b...@coolgroups.com

 I'm writing a game for Android that uses the accelerometer.  However,
 the phone keeps turning off the screen after about 5 seconds and
 locking up.  Anyone know how to stop it from doing 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

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

Re: [android-developers] Android calendar(todolist)

2011-04-01 Thread TreKing
On Thu, Mar 31, 2011 at 6:26 AM, Prashnath ypksdest...@gmail.com wrote:

 Please please help me out


Please please show what you have done so far.

-
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

[android-developers] Re: Help me to realize preferences scheme to use it between activities

2011-04-01 Thread Indicator Veritatis
Ah, but you see, in today's world, nobody should ever talk about
storing a password in preferences unless it IS stored securely.
Anyone who offers the ability to store it without making that secure
should be arrested as an accessory to the computer hackers who commit
crimes by taking advantage of such insecure storage.

On Mar 31, 5:25 pm, TreKing treking...@gmail.com wrote:
 On Thu, Mar 31, 2011 at 7:18 PM, Indicator Veritatis mej1...@yahoo.comwrote:

  Actually, there is a bigger problem here the documentation you refer him to
  will not resolve: how to store the password securely

 Oh yeah, that's a whole 'nother can of worms. But OP only asked about
 storing l+p in preferences, nothing about making it secure :-P

 -
 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


Re: [android-developers] about android application development

2011-04-01 Thread TreKing
On Fri, Apr 1, 2011 at 11:10 AM, kajal patil patil.kaja...@gmail.comwrote:

  How to set edittext background color and edittext border line which seems
 an orange?


What did you try?

-
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

Re: [android-developers] portrait only

2011-04-01 Thread TreKing
On Fri, Apr 1, 2011 at 3:54 PM, Mark Murphy mmur...@commonsware.com wrote:

 Google TV users, in particular, likely will be disinterested in turning
 their TVs on the side to use portrait-only activities.


LOLs ... I'm sure they'll come on a swivel!

-
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

Re: [android-developers] portrait only

2011-04-01 Thread Kostya Vasilyev
Or a swing for the user :)
02.04.2011 2:35 пользователь TreKing treking...@gmail.com написал:
 On Fri, Apr 1, 2011 at 3:54 PM, Mark Murphy mmur...@commonsware.com
wrote:

 Google TV users, in particular, likely will be disinterested in turning
 their TVs on the side to use portrait-only activities.


 LOLs ... I'm sure they'll come on a swivel!


-
 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 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] adb blocks while attempting to connect to server (during most commands)

2011-04-01 Thread Jeffrey Griffin
adb is sometimes blocking while trying to connect via loopback to the adb 
server. Here is a stack trace from gdb while using the froyo branch:

#0  0xf7fdc430 in __kernel_vsyscall ()
#1  0xf7f5ced1 in connect () from /lib32/libpthread.so.0
#2  0x0805e399 in socket_loopback_client (port=value optimized out, 
type=1) at system/core/libcutils/socket_loopback_client.c:51
#3  0x080521e3 in _adb_connect (service=0x80612ce host:version) at 
system/core/adb/adb_client.c:177
#4  0x080525d5 in adb_connect (service=0xc538 host:devices) at 
system/core/adb/adb_client.c:204
#5  0x0805285e in adb_query (service=0xc538 host:devices) at 
system/core/adb/adb_client.c:291
#6  0x08050ff3 in adb_commandline (argc=1, argv=0xd628) at 
system/core/adb/commandline.c:849
#7  0x0804ab62 in main (argc=2, argv=0xd624) at 
system/core/adb/adb.c:1176

Here is the connect syscall from socket_loopback_client.c which is blocking 
adb:

int socket_loopback_client(int port, int type)
{
struct sockaddr_in addr;
socklen_t alen;
int s;
memset(addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
s = socket(AF_INET, type, 0);
if(s  0) return -1;
=  if(connect(s, (struct sockaddr *) addr, sizeof(addr))  0) {
close(s);
return -1;
}
return s;
}

Anyone have any ideas as to whats going on? adb used to work properly. It is 
probably a system setup or library upgrade thing. Or maybe a routing problem 
on my machine? Any suggestions? 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] Video Playback within a service component...

2011-04-01 Thread droid-stricken
Hi All,

My question has been asked once before -

http://groups.google.com/group/android-developers/msg/03372af088048de6

I could not see any replies to that one or find other questions on the
forum that were similar to this one.

Do anyone have any idea how to handle or work-around the above issue?

TIA

-- 
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: CursorLoader not receiving change notifications

2011-04-01 Thread Pete Doyle
Oops :) Turns out I was supposed to be setting
Cursor.setNotificationUri(...) in my ContentProvider.  My bad.

On Thu, Mar 24, 2011 at 12:10 PM, Pete Doyle petedo...@gmail.com wrote:
 Just wanted to report an issue I'm seeing in CursorLoader with the
 Android Compatibility Package r1 (on a Droid / 2.2).

 Basically, it doesn't seem to be receiving calls internally to
 ContentObserver.onChange(), so it doesn't reload its data on a change.

 I was able to make things work by adding a call to
 Cursor.setNotificationUri(...) in
 CursorLoader.registerContentObserver():

 Before:
     void registerContentObserver(Cursor cursor, ContentObserver observer) {
          cursor.registerContentObserver(mObserver);
      }

 After:
     void registerContentObserver(Cursor cursor, ContentObserver observer) {
          cursor.setNotificationUri( getContext().getContentResolver(), mUri );
          cursor.registerContentObserver(mObserver);
      }

 Not sure if its really a bug, or if there's something wrong in my code
 that this change covers up.  Thanks again for releasing the
 compatibility package, I'm really excited to be able to use Fragments
 and Loaders in my app.

 Thanks,
 Pete


-- 
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] .Net Developer Job Opening - Valencia, CA

2011-04-01 Thread Makro Tech
Hi

This is Vignesh with Makro Technologies, Inc.
We have been in business for over 10 years and we are one of the Fast 500
National IT staffing and Solution firms in USA. Our clients include
country’s top-notch IT, Healthcare, Pharmaceutical, Financial,
Telecom,Government and other industries.

Staying current with technology, finding great consultants and exceeding our
clients' expectations are our primary objectives.

Thanks for your time and attention to this e-mail.  Please let me know if
you have any candidates available, please find the Job description as
mentioned below.

*Title : .Net Developer
Location : Valencia, CA
Duration :6 Months*
*Responsibilities:*
• Work closely with business representatives and other team members to
understand business requirements that drive the analysis, design and
development of quality technical solutions that align with business and IT
strategies and comply with corporate and regulatory standards
• Direct and participate in the full software development lifecycle
• Make recommendations towards the development of new systems or reuse of
existing systems
• Work on medium to large, varied and complex projects that require skill in
multiple technical environments and knowledge in various business areas
• Work on multiple simultaneous projects as a project team member and/or as
a project lead
• Coach and/or mentor more junior technical staff
*
Required Skills*
• Bachelor degree in Computer Science or a related area
• 7+ years of programming/systems analysis experience
• Waterfall SDLC experience
• Ability to be a self-starter in a dynamic and fast paced environment
• Microsoft technologies, including .Net, C#, VB.Net, ASP.Net, XML, HTML,
JavaScript.
• Tools: Visual Studio .Net 2008, SQL Server 2000-2008, SVN
• Database technologies: Microsoft SQL, Oracle PL/SQL
• Reporting systems: Crystal Reports Server 2008
• Regulatory software validation experience a plus

Thanks
*Vignesh
*Sr Talent Acquisation Consultant
Tel: 973-481-0100  Ext: 3069
Fax: 973 883 1488
*E mail:* vignesh.renik...@makrohealth.com
Linkedin: 
*http://www.linkedin.com/in/vignesh1*http://www.linkedin.com/in/vignesh1
(Accept
All Invitations to your's and My Professional Network)
http://www.twitter.com/Makro_Tech (follow me get Followed back)

For current openings please visit
http://jobs.makrotech.com/searchjobs.aspx

Candidate HelpDesk: 973-679-5005
*
Makro Technologies Inc.*
www.makrotech.com
Corporate Headquarters: New Jersey
One Washington Park, Suite 1502, Newark, NJ 07102
*Other Offices:* Pennsylvania, Illinois, California
** Makro is a 3-time INC 5000 company for 2007/2008/2009
** Makro is a 3-time FAST 50 firm in NJ for 2005/2006/2007 (by Deloitte)
** Makro is a 3-time FAST 500 firm in USA for 2005/2006/2007 (by
Deloitte)

-- 
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: dialog placement

2011-04-01 Thread lbendlin
does the bubble have to be part of the image? Or could it be a separate 
image, positioned relative to your nine-patch?

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

Re: [android-developers] preventing screen shutdown

2011-04-01 Thread Dianne Hackborn
On Fri, Apr 1, 2011 at 2:52 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 check this out
 http://developer.android.com/reference/android/os/PowerManager.html


No, please don't.  I am sad every time I see a game requesting the power
permission.  It is not needed.  Just set the flag on your window to keep the
screen on, like the previous poster suggested.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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] openGL texture render size

2011-04-01 Thread a a
Why should bitmap with 2, 4, 8, 16, 32, 64, 128.otherwise, it
will be white board?

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


  1   2   >