[android-developers] Re: Fragment Pager Support sample

2011-09-07 Thread Jalal
Hi,

I did all the steps in the instructions to use this library but still
can't do the imports. I see the .jar in the libs folder and in the
Reference Libraries and nothing. Has someone solved the issue? Thanks

Cheers,
On 31 ago, 15:23, Mark Murphy mmur...@commonsware.com wrote:
 You need to add the Android Compatibility Library to your project.









 On Wed, Aug 31, 2011 at 9:18 AM, Harald harald.kron...@gmail.com wrote:
  I am trying to run the sample Fragment Pager Support but I get the
  error:
  The import com.example.android.supportv4.R cannot be resolved
  at this line:
  import com.example.android.supportv4.R;

  any ideas?

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

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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] Activity finish() not working properly

2011-07-14 Thread Jalal
Dear Android Community,

I'm having a strage problem and have no idea what might be wrong. I
have an option menu in an Activity, let's call it A, in which one of
the options needs to start a new Activity, B, and close A. The problem
is that the caller activity, B, is not closing. Instead Activity B is
launched, closes and goes back to Activity A. Weird!

Here's a sample of my code...

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case x:
...//do something
break;
case y:
..//do something else
break;
case z:
Intent intent = new Intent(A.this, B.class);
startActivity(intent);
this.finish();
break;
}
return true;
}

I have tried moving the order in every way possible and some other
workarounds I have found online, but nothing seems to work. I hope
someone has encountered this problem before or has an idea of what
might be wrong. Thanks in advance.

Cheers,
Jalal

-- 
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] Signing application with multiple certificates

2011-06-09 Thread Jalal
Dear Android community,

I'm having a big problem with the application certificates and I
haven't found any official info regarding the possibility of signing
an application with more than one certificate. I have an application
with package name com.example.myapp signed with certificate A and
the same app with the same package name but signed with certificate B.
The application signed with A comes preinstalled in device X and the
app signed with B comes preinstalled in device Y.

Now I need to publish a the app in the Market with the next version.
How can I publish this update so I don't leave any of my users
hanging. If i sign the update with certificate A, only users with the
device X will be able to install the update and the same thing with
certificate B and device Y.

I saw some posts from other developers in different forums and groups
saying that it's possible to sign an apk with two certificates. When I
try this I get the worst result possible, device X nor device Y can
install the update.

Another thing, is it possible to do some kind of device
differentiation in the Market so users with device X can download one
app and the users with device Y the other?

Thank you all in advance. I hope you can help me with this issue.

Cheers,
Jalal

-- 
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: Focus problem in GridView inside Dialog

2010-07-01 Thread Jalal
Hi Piotr,

I'm facing exactly the same problem: untouchable GridView items inside
a Dialog, they can only be clicked after gain focus with the
TrackBall. Can you explain me better the solution you found? I didn't
understand it. Thanks,

Jalal

On 9 jun, 19:09, Piotr Buła piotr.b...@gmail.com wrote:
 Just for the record, I resolved the problem. The problem was in
 ListAdapter, or rather, the way it interacted with the rest of the
 program. As a result, call to getItem() triggered unnecessary list
 change notification, which caused this weird behavior.

 Cheers,
 Piotr

 On 7 Cze, 19:44, Piotr Buła piotr.b...@gmail.com wrote:



  H there,

  I have a little problem with selecting items that are insideGridView
  that is displayed inside adialog.

  What I want to achieve is adialogwindow that shows a grid of images
  that user can select (click on them) and some action is executed. I
  figured I'd just create aGridViewbacked by ListAdapter and set that
  on theDialog. But that causes some problems. Once you scroll the list
  of images, they becomeunselectable. Using trackball brings the
  selection back to the items and they become clickable again, until you
  scroll the list. This really gives me a headache.

  Below is the code I use to create mydialog:

  GridViewmyView = newGridView(MyActivity.this);
  myView.setNumColumns(2);
  myView.setAdapter(myImages.getListAdapter());
  myView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
      @Override
      public void onItemClick(AdapterView? parent, View view,
              int position, long id) {
          Log.i(TAG, onItemClick: );
      }

  });

  DialogmyDialog = newDialog(MyActivity.this);
  myDialog.setTitle(My Cool Images);
  myDialog.setContentView(myView);

  return myDialog;

  Am I missing something here? The sample code from ApiDemos is not much
  different, except that it does not involve Dialogs, so I'm thinking it
  might be something related toDialogstuff.

  Cheers,
  Piotr

-- 
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] Which is the bestAndroid Devs Device?

2010-03-06 Thread Jalal
Hello everyone,

I'm developing an Android application in my school department. We are
interested in purchasing a Developer Device to have more testing
capabilities than the Android emulatior has offer. Which one supports
the largest amount of platforms? Which one is faster, more reliable?.
What should I be looking for?

If you could give me some info about this or tell me some of your
developing-on-device experiences I would really appreciated. Thanks in
advance.

Regards,
Jalal

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