[android-developers] Re: instal different versions of same app

2013-05-02 Thread Piren
you need to refactor the whole code base to use a different package name in 
addition to changing the *package name *in the manifest.. the name of the 
app is meaningless, that's just the value that shows on the icon. 

On Saturday, April 27, 2013 8:26:04 PM UTC+3, Carlos Costa wrote:

 Hi guys

 I am developing a game with eclipse, I try it in my mobile phone, to get 
 the real feeling

 Sometimes I do little changes in my app and I want to install it in the 
 phone but without remove the previous version, which is the best way to do 
 it?

 I tried to change the app name in the manifest, but it doesn't work

 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Problems playing diferents songs with Android MediaPlayer

2013-05-02 Thread Piren
You should consider patenting that idea,  apparently it isnt as obvious as 
you believe it to be :-D

On Wednesday, May 1, 2013 10:22:36 PM UTC+3, TreKing wrote:


 On Mon, Apr 29, 2013 at 4:44 PM, Luis Torres Coronel 
 bra...@gmail.comjavascript:
  wrote:

 Return to the previous activity, select a new song and this also is 
 playing together with the above at once, how could avoid this?


 Seems like the obvious solution is to stop whatever song is currently 
 playing before starting a new one.


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

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




[android-developers] Re: program crashes when i try to create a table for my app

2013-05-02 Thread Piren
You're creating a table using a non initialized members to name the 
columns... any reason those are not static either? (and with values...)

Honestly, that's one clusterfuck of code... especially when it comes to the 
naming scheme and structuring of the code.. you should really start it over 
from scratch. after getting some info on how to write such types of 
classes. You'll feel better in the long run when you'd have to work with 
this code again when you wont remember it (or worse, if someone else will 
need to read it... like us)

P.S - onUpgrade drops all the tables... that's no upgrade.

On Tuesday, April 23, 2013 4:43:06 PM UTC+3, Manish Jain wrote:

 here is the code of my database java file

 package com.example.docterapp;

 import java.util.ArrayList;
 import java.util.List;

 import android.content.ContentValues;
 import android.content.Context;
 import android.database.Cursor;
 import android.database.sqlite.SQLiteDatabase;
 import android.database.sqlite.SQLiteOpenHelper;
 import android.util.Log;

 public class DatabaseHandler extends SQLiteOpenHelper {

 // private dbhelper ourdbhelper;

 // private final Context ourContext;

 // private SQLiteDatabase ourdatabase;

 SQLiteDatabase db;
 private String Doctor_ID;
 private String Online_status;
 private String Appointment;
 private String Department;
 private String Password;
 private String Name;
 private String Address1;
 private String Address2;
 private String mobile_no;
 private String Patient_ID;
 private String age;
 private String gender;
 private String Ailment;
 private String Previous_report;
 private String Hospital;
 private String Degree;
 private String Grad_College;
 private String Experience;
 private String Avail_time;
 public static String DBNAME = DO.db;
 public static String TABLE1 = patient_pers_rec;
 public static String TABLE2 = doctor_pers_rec;
 public static String TABLE3 = Patient_medical_rec;
 public static String TABLE4 = doctor_professional_details;
 public static String TABLE5 = doctor_availability;
 public static final int DATABASE_VERSION = 1;

 public DatabaseHandler(Context context) {
 super(context, DBNAME, null, DATABASE_VERSION);

 }

 @Override
 public void onCreate(SQLiteDatabase db) {
 
 
 //db.openOrCreateDatabase(DBNAME, , null);
 //db = openOrCreateDatabase(;
 db.execSQL(CREATE TABLE  + TABLE1 +  ( + Patient_ID
 +  INTEGER PRIMARY KEY, + Password +  TEXT, + Name
 +  TEXT, + age +  INTEGER, + gender +  TEXT, + 
 mobile_no
 +  INTEGER););
 // }
 Log.i(INFO,Tb1 made);
 // public void onCreate(SQLiteDatabase db)
 // {

 db.execSQL(CREATE TABLE  + TABLE2 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Password +  TEXT, + Name
 +  TEXT, + Address1 +  TEXT, + Address2 +  TEXT,
 + mobile_no +  INTEGER, + ););

 db.execSQL(CREATE TABLE  + TABLE3 +  ( + Patient_ID
 +  INTEGER PRIMARY KEY, + Ailment +  TEXT,
 + Previous_report +  TEXT, + ););

 db.execSQL(CREATE TABLE  + TABLE4 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Hospital +  TEXT, + Degree
 +  TEXT, + Grad_College +  TEXT, + Department +  
 TEXT,
 + Experience +  INTEGER, + ););

 db.execSQL(CREATE TABLE  + TABLE5 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Avail_time +  INTEGER,
 + Online_status +  TEXT, + Appointment +  TEXT ););
 db.close();
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldversion, int 
 newversion) {
 db.execSQL(DROP TABLE IF EXISTS + TABLE1);
 db.execSQL(drop table if exists + TABLE2);
 db.execSQL(drop table if exists + TABLE3);
 db.execSQL(drop table if exists + TABLE4);
 db.execSQL(drop table if exists + TABLE5);
 onCreate(db);
 }

 void add(patient_pers_rec patient_pers_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(Patient_ID, patient_pers_rec.getPatient_ID());
 values.put(Password, patient_pers_rec.getPassword());
 values.put(Name, patient_pers_rec.getName());
 values.put(age, patient_pers_rec.getage());
 values.put(gender, patient_pers_rec.getGender());

 // Inserting Row
 db.insert(TABLE1, null, values);
 db.close(); // Closing database connection
 }

 void add(doctor_pers_rec doctor_pers_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(Patient_ID, doctor_pers_rec.getDoctor_ID());
 values.put(Password, doctor_pers_rec.getPassword());
 

[android-developers] Re: My published app does not appear in Google Play

2013-05-02 Thread Rizwan Baloch
Well, I can open this and install it on my Samsung Captivate. May be it is 
new app and not coming in search results, but this will be fixed soon 
enough. 
 
You better wait some more time. There is no problem in your manifest at 
all..
 

On Wednesday, May 1, 2013 7:29:02 AM UTC+5, scrayne wrote:

 It appears on the website, but not in Google Play on my phone, even using 
 the direct url.  I have attached the manifest, and I don't think there are 
 any filtering problems.  The phone is a Droid Razr M running Android 
 version 4.1.2.  I have successfully run this app on the phone during 
 development.  Any help would be much appreciated.

 Susan


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




[android-developers] dial a predefined number directly from app

2013-05-02 Thread Rahul Kumar


I am writing an app using Eclipse, in my app i have a panic button, onclick 
it should automatically call a predefined number.

How can i make a direct call from the app?

Thanks!

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




[android-developers] install apps to sd card

2013-05-02 Thread Sethamz Corvete
I use a smartphone with jelly bean android os 4.1.2, how to install apps to 
sd card. please help ..

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




[android-developers] how to make a sorting letter as alphabets

2013-05-02 Thread Reham Arnaout


am new to android ,I am making app for sorting letters as alphabets the 
alphabets will be in buttons and the user have to sort 
it alphabetically, like when i click button1, then button2 the text view 
will show a b,,, but if I clicked button2 then button1 it will show b a

now I did it using the getText  setText but the app crash when I open it 
and  the condition(if statement) if its correct or not is not working plz 
help !! what is wrong with it and is my method correct?

public class Wordgame2 extends Activity implements OnClickListener {
Button[] buttons; TextView t1;ImageView i1, i2;int i;@Overrideprotected void 
onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
// Full screen
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
 WindowManager.LayoutParams.FLAG_FULLSCREEN);

setContentView(R.layout.wordgame2);

for(int i=0; i5; i++) {  
{
 String buttonID = bu + (i+1);
 int resID = getResources().getIdentifier(buttonID, id, 
getPackageName());
 buttons[i] = ((Button) findViewById(resID));
 buttons[i].setOnClickListener(this);
}
}
t1 = (TextView) findViewById(R.id.t1);

i1 = (ImageView) findViewById(R.id.i1);
i2 = (ImageView) findViewById(R.id.i2);






}public void onClick(View v) {
// TODO Auto-generated method stub

switch (v.getId()){

case R.id.bu1:
t1.setText(t1.getText().toString()+ +buttons[i].getText().toString());
break;

case R.id.bu2:
t1.setText(t1.getText().toString()+ +buttons[i].getText().toString());
break;

case R.id.bu3:
t1.setText(t1.getText().toString()+ +buttons[i].getText().toString());
break;

case R.id.bu4:
t1.setText(t1.getText().toString()+ +buttons[i].getText().toString());
break;

/when they click bu5 if t1 is correct as a b c d it will show picture

case R.id.bu5:


if(t1.getText().toString().equals(a b c d)) //this is not working
{

i1.setVisibility(View.VISIBLE);
i2.setVisibility(View.INVISIBLE);
}   

else {
i2.setVisibility(View.VISIBLE);
i1.setVisibility(View.INVISIBLE);
}

break;

}}


and this is my logcat

04-21 07:00:48.690: E/AndroidRuntime(23874): FATAL EXCEPTION: main
04-21 07:00:48.690: E/AndroidRuntime(23874): java.lang.RuntimeException: Unable 
to start activity 
ComponentInfo{com.arabicalphabets.reham/com.arabicalphabets.reham.Wordgame2}: 
java.lang.NullPointerException
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1970)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.ActivityThread.access$600(ActivityThread.java:127)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.os.Handler.dispatchMessage(Handler.java:99)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.os.Looper.loop(Looper.java:137)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.ActivityThread.main(ActivityThread.java:4512)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
java.lang.reflect.Method.invokeNative(Native Method)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
java.lang.reflect.Method.invoke(Method.java:511)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:982)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:749)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
dalvik.system.NativeStart.main(Native Method)
04-21 07:00:48.690: E/AndroidRuntime(23874): Caused by: 
java.lang.NullPointerException
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
com.arabicalphabets.reham.Wordgame2.onCreate(Wordgame2.java:36)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.Activity.performCreate(Activity.java:4465)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)
04-21 07:00:48.690: E/AndroidRuntime(23874):at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1934)
04-21 07:00:48.690: E/AndroidRuntime(23874):... 11 more


-- 
-- 
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] Analysis tools that detect common bugs in Android app development

2013-05-02 Thread subtask


I am looking for analysis tools specific for Android app development!

I have found many tools online that are not specific for Android, only for 
Java, either free or commercial, like the famous FindBugs but it is not 
interprocedural so for example it loses several bad NullPointerExceptions 
that may occur at runtime! Other tools (like CheckStyle) perform just a 
syntax check that sometimes is not so powerful, and other tools are not 
suitable for Android app development :(

   - What are, among the available tools, those that you prefer and really 
   use?
   - What kind of properties do these tools check?
   - What kind of bugs do these tools detect and remove (among the most 
   common errors that an Android developer may do)?

Please help me with sharing your experiences and 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Proxy support for ALL apps (when?)

2013-05-02 Thread Tobias Fuss
Hey guys, 
one of the most important features for using android devices at 
universities, companys, governments etc. is still missing in android!

*It's proxy support (with authentication) for ALL apps and not just the 
browser...*

There are a few issue-threads on google code (
https://code.google.com/p/android/issues/detail?id=36481, 
https://code.google.com/p/android/issues/detail?id=35930), where many 
people beg for proxy support, but no one seems to care about!
So i opened up this thread to gain some more attention on this issue and i 
hope it will finally be integrated into the next version of android, that 
will be presented at google io 2013.

I really hope, that some folks from google (eg. JBQ) read this and pass it 
over to their developers, if not already done...
This feature is essential for some of us, and it's sad to see that iOS has 
support since 4.3 (it's just one simple checkbox labeled Use this proxy 
for all apps), while android still doesn't!

I'm sure this isn't a big deal for the great devs at google, so please 
finally implement it, we really need this in android 4.3.

PS: none of the root solutions (eg. proxy droid) worked for me and this 
must be possible WITHOUT root, as rooting your device is not allowed at 
some companies etc.

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




[android-developers] New to Android

2013-05-02 Thread rlloyd
I have a java file that I would like to incorporate in to an android 
application. I'm not sure where in the code I put my java that I've made. I 
use Eclipse with the newest SDKs. Where in the following code am I supposed 
to input my code? Also, The code of mine takes input data, manipulates it, 
and gives back 5 data sets (words, letters etc.). How on the interface 
builder do I connect text boxes to use for input and output? I have used 
xcode before but I am completely lost with the JAVA and the whole android 
thing. I didn't think this would be a necessarily hard project though.

Code that appears with new project:

package com.example.f;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class DNA extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dn);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.dn, menu);
return true;
}

}


My Code:

Begins with:

import java.util.Scanner;

class beta

 { //entire program brackets

public static void main (String[] args)

 { //meat of program

Scanner scan = new Scanner( System.in );


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




[android-developers] Syncing Java touch events with native C thread

2013-05-02 Thread Rick
Hello Droid devs,

I'm porting C application using NDK and have problems with proper touch 
events handling. I tried to apply the solution with event queue (here 
http://www.rbgrn.net/content/342-using-input-pipelines-your-android-game)  but 
from some reason the event processing locks the aplication when events are 
rapidly fired on the Java side. Here is the scenario:
-The native C code is executed in separate thread.(precisely HandlerThread)
-Once the native code is executed it goes to SELECT() based loop waiting 
for network changes.
-then in the SELECT() loop it calls Java side(thru JNI) to poll for any 
touch events (pollEvents()) that could be available in the Java event queue.
-Events in the queue are processed using native call (dispatchEvent()) back 
to the C code

But at some point(when lot of MOVE events is generated by user) the 
pollEvents() 
function stops being called (because the C side is busy with all the event 
processing??) and only feedInput() calls are made. This leads to 
application lock because there is no more free event instances available in 
the Java pool putting the inputObjectPool.take() call to waiting and the 
app stops responding.
It all seems to be logical to me but I don't understand why the C thread 
stops processing when inputObjectPool.take() call waits in the UI thread? I 
thought while the UI thread waits the C thread can catch up, process the 
pending events and put 'used' event instances back to the pool so the 
waiting is canceled and UI thread can continue? Am I missing something here?

I hope my explanation is not too confusing so if you get to this point you 
may look at the code below to see what I'm trying to achieve.
Any helpful feedback is welcome!

Thanks,

Rick

Here is simplified code part:

loop on the C side:

while (1) {
if (halted) break;
...
//poll for network changes etc.(using BSD sockets)
...
//call pollEvents() on Java side to check and process events
(*jni_env)-CallVoidMethod(jni_env, jni_obj, jni_pollEvents);
..
select(...); //wait for 16msecs
}

Java side:

private final Object inputQueueMutex = new Object();
private native void dispatchEvent(int action, int x, int y);

public void pollEvents(){
synchronized(inputQueueMutex) {
ArrayBlockingQueueInputObject inputQueue = this.inputQueue;
while (!inputQueue.isEmpty()) {
//process the events in queue
try {
InputObject input = inputQueue.take();
//following function dispathes the event for processing on the C side
dispatchEvent(input.action, input.x, input.y);
input.returnToPool();
} catch (InterruptedException e) {
}
}
}
}

public void feedInput(InputObject input) {
synchronized(inputQueueMutex) {
try {
//queue the event
inputQueue.put(input);
} catch (InterruptedException e) {
}
}
}

@Override
public boolean onTouchEvent(final MotionEvent event) {
try {
//get free instance from the pool
InputObject input = inputObjectPool.take();
//fill the event data and detect event type 
if (!input.useEvent(event)) {
//let OS process events we don't care about
input.returnToPool();
return false;
}
//queue the event
feedInput(input);
} catch (InterruptedException e) {
}
// don't allow more than 60 motion events per second
try {
Thread.sleep(16);
} catch (InterruptedException e) {
}
return true;
} 


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




[android-developers] Multiple VideoView failed on Samsung Galaxy S2 ICS

2013-05-02 Thread Kan Wu
Hi Android Developers,

I meet some problems playing multiple videos at the same time on Samsung 
Galaxy S2.
I am trying to play multiple videos at the same time in a screen. Then I 
initialize multiple VideoView on the same screen, and load the different 
videos. While only the first VideoView is being played successfully.

The device is running on Android 4.0.4
I am trying to read the source code of VideoView, I found out that the 
VideoView is a holder of SurfaceView + MediaPlayer. And I locate the error 
is caused by multiple MediaPlayer trying to prepare video at the same time.
After the error is occurred, it seems all the Media service is error on the 
device, e.g. the native Camera app, and native VideoPlayer app cannot work 
until I reboot the device.
The error only happen on the S2, while the same code works well on my other 
devices (e.g., Galaxy S3 JB, Nexus 4 JB_MR1, and some other ICS devices).

My question is what is the difference between S2 (SGH-T989) and other 
devices in their Media framework?

The source code is already attached in message.
The logcat looks like below:
04-30 14:30:24.218: I/Adreno200-EGLSUB(7938): ConfigWindowMatch:2078: 
Format RGBA_.
04-30 14:30:24.338: E/MediaPlayer(7938): error (1, -12)
04-30 14:30:24.368: E/MediaPlayer(7938): error (1, -12)
04-30 14:30:24.408: E/MediaPlayer(7938): Error (1,-12)
04-30 14:30:24.408: D/VideoView(7938): Error: 1,-12
04-30 14:30:24.408: E/VideoPlayActivity(7938): onError. what=1 extra=-12
04-30 14:30:24.428: E/MediaPlayer(7938): Error (1,-12)
04-30 14:30:24.428: D/VideoView(7938): Error: 1,-12
04-30 14:30:24.428: E/VideoPlayActivity(7938): onError. what=1 extra=-12

Thanks.

-- Kan Wu
wuk...@gmail.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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




activity_video_play.xml
Description: XML document
package com.example.videoplayer;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.VideoView;

public class VideoPlayActivity extends Activity {

final private static String TAG = VideoPlayActivity.class.getSimpleName();

private int socketPort;

private VideoView mActiveVideoView;
private VideoView mPrevVideoView;
private VideoView mNextVideoView;
private MediaPlayerCallback mCallback;

private int mPlayIndex = 0;

private Handler mHandler;
private Runnable mStartNextVideoThread;

private String[] mVideoFiles;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_video_play);

mVideoFiles = getVideosList();

mActiveVideoView = (VideoView) findViewById(R.id.video_view_1);
mActiveVideoView.setVisibility(View.VISIBLE);

mPrevVideoView = (VideoView) findViewById(R.id.video_view_2);
mPrevVideoView.setVisibility(View.VISIBLE);

mNextVideoView = (VideoView) findViewById(R.id.video_view_3);
mNextVideoView.setVisibility(View.VISIBLE);

mCallback = new MediaPlayerCallback();
mActiveVideoView.setOnCompletionListener(mCallback);
mPrevVideoView.setOnCompletionListener(mCallback);
mNextVideoView.setOnCompletionListener(mCallback);
mActiveVideoView.setOnPreparedListener(mCallback);
mPrevVideoView.setOnPreparedListener(mCallback);
mNextVideoView.setOnPreparedListener(mCallback);
mActiveVideoView.setOnErrorListener(mCallback);
mPrevVideoView.setOnErrorListener(mCallback);
mNextVideoView.setOnErrorListener(mCallback);
}

@Override
protected void onResume() {
super.onResume();

mActiveVideoView.setVideoPath(mVideoFiles[mPlayIndex]);
int nextIdx = (mPlayIndex + 1) == mVideoFiles.length ? 0 : mPlayIndex + 1;
mNextVideoView.setVideoPath(mVideoFiles[nextIdx]);
   	int prevIdx = (mPlayIndex - 1)  0 ? mVideoFiles.length - 1 : mPlayIndex - 1;
  	mPrevVideoView.setVideoPath(mVideoFiles[prevIdx]);

mActiveVideoView.start();
   	mPrevVideoView.start();
   	mNextVideoView.start();

   

[android-developers] How to add a footer to each list item dynamically?

2013-05-02 Thread robhic


Hello, I need help with the following, I need to do something like this:

https://lh3.googleusercontent.com/-VnI5tq7Q-dg/UXGHwpfHMeI/AAs/j3IrUfMfWbg/s1600/app1.PNG
achieved do everything but I lack the foot (More items...) per item, which 
when 
selected, to obtain the other items:

https://lh4.googleusercontent.com/-pQ0bIL3rh3Q/UXGIDwUTStI/AA0/jl7RyCMwhP0/s1600/app2.PNG

I failed to do, and I wonder if someone can help me with this, please...

Regards, Robert


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




[android-developers] Need bit help with android

2013-05-02 Thread Saqib Vohra


I need bit help . I need to implement it in my app.

I was wondering if i can launch an activity or application when a text is 
selected in any application like browser, messages etc.

Like when we select a text at any where a small pop-up appears mentioning 
cut, copy, paste option. can i add another button there? to launch my 
application? or something like that?

i know it is possible because similar work is done in screenshot apps. that 
a service is running and when a user shakes his mobile it send a screenshot 
to the service and save it. or it can also be done using overlay button, 
power button, volume button.

but i dont know how to trigger and send selected text to my app.

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Analysis tools that detect common bugs in Android app development

2013-05-02 Thread subtask
Hi! Are there Android Apps developer willing and available to spend their 2 
minutes talking about the tools you use to detect and solve bugs during 
development?
I am looking for analysis tools specific for Android and any suggestion 
would be appreciated! 
Thanks!!

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




[android-developers] HLS : Http Live video Streaming player for android

2013-05-02 Thread Rosh PR
how to make Http Live Streaming (HLS) video play in android browsers.
Since flash player is not supported we in Android anymore we are unable to 
play HLS videos.
The other way to play videos in Android is to use HTML5 player which does 
not seam to support HLS.

Watchy.in

watchy.in

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




[android-developers] How to acquire a log file from Android Application on BlackBerry 10 device?

2013-05-02 Thread Noob
*Hello Devs, *

I'm definitely new to the IT industry but here I am sitting at work and 
they asked me to figure out how to get logs via Command Prompt from a 
BlackBerry 10 device...(android application that was sideloaded)

*Are there basic command prompts that I could use to acquire a log?*
*For example when running CMD to acquire a logcat for an android 
application on an android device I input the following into the Command 
Prompt:*

cd Desktop\adt-bundle-windows-x86_64-20130219\sdk\platform-tools (enter)
adb devices (enter)
adb logcat –v time  name.txt (enter)

*(Log files are now being acquired)*


If you could tell me a way to get into the blackberry like that I would 
very much appreciate it!
All i need is to be able to send the txt file of the issues created while 
the log was running via email. 
It's for testing/debugging purposes. I'm not trying to create anything or 
manipulate something. 



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




[android-developers] Wifi POC - AP wifi connect using GPRS?

2013-05-02 Thread Ran Cohen
Dear All,

i am working on a Wifi POC and have the next question:

if i am to connect to a wifi AP using my cell (sony erricsson experia arc S 
android version 2.3.4* in that case*) can i still configure my cell to use 
GPRS?* if so:* can it be done via a program or only manualy? *if not:*could i 
expect future devices to support this feature? (e.g. wifi direct)

Thank you in advanced and BR,
Ran

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




[android-developers] Is it possible to do this? (Playlists and Youtube player API´s)

2013-05-02 Thread Rafael García Fernández
Hi

Im wondering if something like this is possible to do: Anywhere in my view 
I want to see a list of youtube videos (from my channel or youtube account 
if its possible), so the user could click in any of them and using the 
youtube player API it would start to be visualized in the bottom of the 
screen for example. Ive been practising with the youtube player API and I 
know its possible to load playlists but I want the user to see the title of 
a few videos and select the one to be watched.

So...having in mind that im amateur in android (not in programming), what 
do you think guys? Ive heard about a Youtube Data API but Ive read is to be 
used with the youtube application so its not what Im looking for.

Thanks a lot!

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




[android-developers] web server for android ndk with ssl support

2013-05-02 Thread Ranga ks
Hi,
I have cross compiled some native code to android , and my current 
application requires Nginx webserver with openssl(new AES_ccm support) .

But I need it for very minimal functional requires , example maxium of 4 
Clients will post the data to this server , this server has to receive that 
data and send back the response , this all happens over TLS , that's it .  

Can somebody suggest a simple web server which can do this for me .. In 
case if I can't get any , pls through some light on how to write my own 
simple web Server .

--Ranga

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




[android-developers] Help with Google terms for in app payments for extra content addition. Thanks.

2013-05-02 Thread Dale Sharp
Hi all,
 
Recently started looking at monetizing an app via purchases for people to 
'add content' not to buy to 'receive content'.
 
a) The app is free to use by anyone.
b) Users will not pay anything to look at content.
 
The app provides listings of specific companies in a local area.
 
I would like to charge business owners to promote their listing, get it 
highlighted, or bumped to the top of search results that I display in the 
app.
 
The added information is distributed in the app and also on a main 
'regular' website.
 
I note these terms ...
 
*In-app purchases:* Developers offering additional content, services or 
functionality within an application downloaded from Google Play must use 
Google Play's payment system as the method of payment, except: 

   - where payment is primarily for physical goods or services (e.g. buying 
   movie tickets; e.g. buying a publication where the price also includes a 
   hard copy subscription); or 
   - where payment is for digital content or goods that may be consumed 
   outside of the application itself (e.g. buying songs that can be played on 
   other music players)

So, I'm wondering, do I have to use the Google Play payment system 
for obtaining payment if I wish to sell the upgrade in the app? Or is this 
considered a service or function and I have to use the Google Play payment 
system?
 
I suppose a further question is also - what is to stop me obtaining payment 
for adding the promotional content on the website outside of Google Play, 
and only displaying the content inside the app - i.e. all is free in the 
app to everyone and payments are never taken in the app for any additional 
services or functions?
 
Hope you can help.
 
Thank you.
 
Dale.
 

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




[android-developers] Re: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2013-05-02 Thread Daniel König
Sorry for asking, but i searching the Web for now a week, and im not able 
to unlock the bootloader of my Xperia J donno which Year it is from. In the 
System Information it said Unlock allowed = Yes im running under Windows 8 
and getting Crazy someone knows a really dumb noob tut, im not a noob at 
Jailbreaking and stuff HELP

Am Donnerstag, 14. April 2011 09:11:13 UTC+2 schrieb Carl:

 Hi, 

 It is now possible to unlock the boot loader for certain series of 
 Sony Ericsson 2011 Android™ Gingerbread phones. 

 Go to http://unlockbootloader.sonyericsson.com to get instructions and 
 a key to unlock the boot loader. 

 Please note that you may void the warranty of your phone if you unlock 
 the boot loader. See your phone’s warranty statement for details. 
 More information is available on the unlock boot loader web site. 

 For any questions, Sony Ericsson will monitor this thread on Google 
 groups. However, we cannot guarantee an answer for every question 
 asked in this forum. Please remember that you are unlocking the boot 
 loader at your own risk. 

 Br, 
 Carl Johansson 
 Sony Ericsson Developer World 


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




[android-developers] Re: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2013-05-02 Thread Daniel König
how to unlock Xperia J ? Error Message fail to unlock

Am Donnerstag, 14. April 2011 09:11:13 UTC+2 schrieb Carl:

 Hi, 

 It is now possible to unlock the boot loader for certain series of 
 Sony Ericsson 2011 Android™ Gingerbread phones. 

 Go to http://unlockbootloader.sonyericsson.com to get instructions and 
 a key to unlock the boot loader. 

 Please note that you may void the warranty of your phone if you unlock 
 the boot loader. See your phone’s warranty statement for details. 
 More information is available on the unlock boot loader web site. 

 For any questions, Sony Ericsson will monitor this thread on Google 
 groups. However, we cannot guarantee an answer for every question 
 asked in this forum. Please remember that you are unlocking the boot 
 loader at your own risk. 

 Br, 
 Carl Johansson 
 Sony Ericsson Developer World 


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




[android-developers] Re: suggest me good mobile tracker application from play store.Which is used to track the mobile location when lost,or change the sim,etc

2013-05-02 Thread Aarnav Rajput
Try Mobisecurity App
It not only track the location of lost mobile but also gets *SIM change 
alert http://www.mobisecurity.net *along with new changed number.
You can also secretly call the changed number to listen surrounding sounds 
and conversation and also get details of call logs and sms.


On Wednesday, January 16, 2013 12:58:11 PM UTC+5:30, SIVAKUMAR.J wrote:

 Dear All,

   suggest me good mobile tracker application from play store.Which is used 
 to track the mobile location when lost,or change the sim,etc
   Which is free.

   That application is used to find the device when it is lost or sim is 
 changed,etc.

 -- 
 *Thanks  Regards,
 SIVAKUMAR.J http://stackoverflow.com/users/385138/sivakumar-j
 * 

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




[android-developers] Developer console language

2013-05-02 Thread Stratos B
Hello, 
for some strange reason, *my developer console* is *not* displaying the *
reviews* of *my* application in *my language*. 
How can I fix this? 
Thank you.

Stratos

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




[android-developers] Name of Binder_1 thread

2013-05-02 Thread Durgadoss Ramanathan
Hi,

I am debugging a service under system_server process.

Under /proc/pidof system_server/task/, I see some services like
PowerManagerService, that are named as such, but there are few services
which are not named and show up as 'Binder_1' 'Binder_4' etc..

Is there a way to figure out the names of these services ?

-- 
Regards
Durgadoss

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




[android-developers] WebView inside SherlockFragment - FragmentTransaction.Detach() or Remove() does not remove the webview when fragment is removed.

2013-05-02 Thread Puneet Maloo
I am using ActionBarSherlock's action bar tabs in my application with
each tab populated by a single fragment inside a SherlockActivity
Tabs.

One of my Tabs contains a fragment, FragmentHome, with a list of news
articles. When an article is selected, FragmentHome is replaced by
another fragment, FragmentNews.

FragmentNews just contains a webview to load the selected article. The
article is loaded fine. I override the onBackPressed in my activity so
that FragmentHome is reattached and FragmentNews is removed.

While there are no errors, the webview inside FragmentHome is never
removed from the view and overlaps with other fragments. (See
screenshots). Tested it for API Level 9 and 17.
1) FragmentHome - Displayed normally - 
http://s16.postimg.org/bzq5xv7c5/SC20130427_184700.png
2) FragmentNews - Displayed normally - 
http://s15.postimg.org/l88zyy23f/SC20130427_184705.png
3) Webview from FragmentNews overlapping FragmentHome after fragment
transactioon -http://s22.postimg.org/6mg8aaze9/SC20130427_184710.png

Its weird because the same code works for another SherlockFragment
with ListView in it but is messed up when using a WebView.

Here is the code to replace FragmentHome with FragmentNews initially:
--
@Override
public void onItemClick(AdapterView? parent, View view, int
position,
long id) {
listNews.setItemChecked(position, true);
Bundle bundle = new Bundle();
bundle.putStringArray(NEWS,
new String[] {
mNews.newsFeed.get(position).getTitle(),
mNews.newsFeed.get(position).getLink()
.toExternalForm() });

FragmentTransaction ft = getSherlockActivity()
.getSupportFragmentManager().beginTransaction();
Fragment frag =
SherlockFragment.instantiate(getSherlockActivity(),
FragmentNews.class.getName(), bundle);
ft.detach(getSherlockActivity().getSupportFragmentManager()
.findFragmentById(getId()));
ft.add(android.R.id.content, frag, Tabs.FRAG_NEWS);
ft.commit();
}

Code in onBackPressed in the Activity hosting the fragments:
--
@Override

public void onBackPressed() {
Fragment frag = getSupportFragmentManager().findFragmentByTag(
FRAG_DETAILS);

if (frag != null  frag.isVisible()) {
FragmentTransaction ft =
getSupportFragmentManager().beginTransaction();
ft.remove(frag);

Fragment mFragment =
getSupportFragmentManager().findFragmentByTag(
TAB_PORTFOLIO);
if (mFragment == null) {
mFragment = SherlockFragment.instantiate(this,
FragmentPortfolioList.class.getName(), null);
ft.add(android.R.id.content, mFragment, TAB_PORTFOLIO);
} else {
ft.attach(mFragment);

}
ft.commit();
} else {

// Code to replace FragmentNews which contains the webview.

frag =
getSupportFragmentManager().findFragmentByTag(FRAG_NEWS);
if (frag != null  frag.isVisible()) {
Log.e(onBackPressed, for  + frag.getTag());

FragmentTransaction ft =
getSupportFragmentManager().beginTransaction();
ft.remove(frag);

Fragment mFragment = getSupportFragmentManager()
.findFragmentByTag(TAB_HOME);
if (mFragment == null) {
mFragment = SherlockFragment.instantiate(this,
FragmentHome.class.getName(), null);
ft.add(android.R.id.content, mFragment, TAB_HOME);
} else {
ft.attach(mFragment);
}
ft.commit();
} else {
Log.e(onBackPressed, inside else);
super.onBackPressed();
}
}
}

I have seen posts talking about FlashPlayer causing issues because of
SurfaceView cutting a hole but I am just displaying simple webpages
without any videos. Help highly appreciated.

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




[android-developers] How to give each node unique name ?

2013-05-02 Thread Reza Moayd
I want to display a tree having the individual name of its parent, second 
node, and its child nodes. 
I've coded by using : 
http://www.allappsdevelopers.com/TopicDetail.aspx?TopicID=c991d70a-4570-4e4b-8378-2191a4247a84
This code display tree has all second and child nodes with the same names. 
How can I give an unique name to each node of a tree?

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




[android-developers] ActionBar tab content always recreated while switching between tabs.

2013-05-02 Thread Karthick Raja
I have created the action bar and tabs dynamically like the below code.

For creating the action bar:

public void addTabBar(Context context)
{   
sActiveContext=context;  
sActionBar = getActionBar(); 
sActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
}

For dynamically creating the tab bars in the action bar:
public void addTabItem(final String url, String tabTitle)
{   
arrayList.add(url);
Tab tab = sActionBar.newTab();
if(tabTitle.equals())
{
int childcount=sActionBar.getTabCount();
tabTitle=Tab + String.valueOf(childcount+1);  
}
tab.setText(tabTitle);  
tab.setTabListener(this);
sActionBar.addTab(tab);
}

  @Override
public void onTabSelected(Tab tab, FragmentTransaction ft) {
// TODO Auto-generated method stub
linearLayout=new LinearLayout(sActiveContext);  
linearLayout.setLayoutParams(new 
LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)); 
linearLayout.setOrientation(LinearLayout.VERTICAL); 
setContentView(linearLayout);
CustomWebView webview=new CustomWebView(sActiveContext);
FrameLayout layout=webview.createwebview();

for (int i = 0; i  arrayList.size(); i++) {
if(tab.getPosition()==i)
{
webview.initwebview(arrayList.get(i));
break;
}
}
linearLayout.addView(layout);
}

I am having the customized webview inside the framelayout. So, I directly 
call the method and get the webview in framelayout and add this into the 
linearlayout and added the linearlayout as the content of the created tab 
item. I am nothing doing in the onTabUnselected() method. Now, my question 
is, If I am switching between the tabs, the content of the tab is newly 
created. If I am switch this concept to fragments means, I have to create 
the Fragment class dynamically not the fragment. Now, how can I control the 
tab content re-creating issue.

Regards
Karthick Raja

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




[android-developers] Bug in APKExpansionSupport.java

2013-05-02 Thread psiegel
Hi -

I'm using the expansion file library as provided in 
extras/google/play_apk_expansion and discovered a bug in the code included. 
 I'm not sure where to report the bug, if anyone can point me in the right 
direction I'd be happy to write up an official bug report.  Here's the bug:

In 
file: 
extras\google\play_apk_expansion\zip_file\src\com\android\vending\expansion\zipfile\APKExpansionSupport.java,
 
line 50:
  
String strPatchPath = expPath + File.separator + patch. + mainVersion 
+ . + packageName + .obb;

the incorrect version number is used to assemble the name of the patch 
file.  It should instead be:

String strPatchPath = expPath + File.separator + patch. + 
patchVersion+ . + packageName + .obb;

Note, this bug is also visible in the online documentation here:

http://developer.android.com/google/play/expansion-files.html#GettingFilenames

Thanks.

Paul Siegel
Lead Engineer
Subatomic Studios, LLC

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




Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 15 Messages in 9 Topics

2013-05-02 Thread Priyanka Rana
hi can you give me solution i had made application which use sqlite
database when i run .apk file on android based mobile it not run in mob
cant fetch data .. can you tell me where i store test.db file


On Sun, Apr 28, 2013 at 12:22 PM, android-developers@googlegroups.comwrote:

   Today's Topic Summary

 Group: http://groups.google.com/group/android-developers/topics

- HLS audio and getDuration / seekTo 
 strangeness#13e4f6dc3f1a7fd8_group_thread_0[5 Updates]
- Questions when querying recurring events in
CalendarContracts.Instances #13e4f6dc3f1a7fd8_group_thread_1 [1
Update]
- Maps api key v1? #13e4f6dc3f1a7fd8_group_thread_2 [2 Updates]
- How to create JAR libs in Android #13e4f6dc3f1a7fd8_group_thread_3[1 
 Update]
- Paper Folding animation #13e4f6dc3f1a7fd8_group_thread_4 [1 Update]
- gradle build with custom views #13e4f6dc3f1a7fd8_group_thread_5 [1
Update]
- 2 Media players can not run 
 simulateneously#13e4f6dc3f1a7fd8_group_thread_6[2 Updates]
- Custome widget analog clock #13e4f6dc3f1a7fd8_group_thread_7 [1
Update]
- Regarding Android SQlite NDK #13e4f6dc3f1a7fd8_group_thread_8 [1
Update]

   HLS audio and getDuration / seekTo 
 strangenesshttp://groups.google.com/group/android-developers/t/259f5b779169b124

Larry Meadors larry.mead...@gmail.com Apr 27 01:45PM -0600

I'm trying to play an hls audio stream, and start playback at a
specific
point in the stream. It's an audio book, and in trying to resume where
it
was stopped the last time the app was used.

 ...morehttp://groups.google.com/group/android-developers/msg/53a2f56dea213d48


bob b...@coolfone.comze.com Apr 27 06:35PM -0700

Did you call *prepare*() before you called seekTo?

Maybe post a snippet?

Thanks.


On Saturday, April 27, 2013 2:45:33 PM UTC-5, Larry Meadors wrote:

 ...morehttp://groups.google.com/group/android-developers/msg/8f0c4e7922ea0361


Larry Meadors larry.mead...@gmail.com Apr 27 09:10PM -0600

Yes, I call prepareAsync after I register a OnPreparedListenter - this
is happening after that gets triggered (as a test, in the onPrepared
method, I log the duration: It's zero there, too).

 ...morehttp://groups.google.com/group/android-developers/msg/cee722d1d67868da


bob b...@coolfone.comze.com Apr 27 08:27PM -0700

Why are you using HTTP Live Streaming for pre-recorded audio?

This doesn't sound like the best tool for the job.

Thanks.


On Saturday, April 27, 2013 10:10:55 PM UTC-5, Larry Meadors wrote:

 ...morehttp://groups.google.com/group/android-developers/msg/5cda01de5c4c3bee


Larry Meadors larry.mead...@gmail.com Apr 27 11:54PM -0600

Because downloading a 12 hour audiobook is not exactly a good user
experience.

Hls allows them to have the experience of having it locally without the
massive download.

Larry

 ...morehttp://groups.google.com/group/android-developers/msg/b1ada871367fd8bf

   Questions when querying recurring events in 
 CalendarContracts.Instanceshttp://groups.google.com/group/android-developers/t/979a5d2ec389c2d9

littledot littledot5...@gmail.com Apr 27 08:30PM -0700

Hello AD,

I'm having some trouble querying CalendarContracts.Instances.

It seems that the Events table is updated immediately when a recurring
event is created, however, Android does not 
 ...morehttp://groups.google.com/group/android-developers/msg/1b3631c8c5288a78

   Maps api key 
 v1?http://groups.google.com/group/android-developers/t/476770096c82dd34

user123 ivanschu...@gmail.com Apr 27 04:01PM -0700

I have a key but for the debug keystore. That is what I was using
during
development. I didn't know that I need a new key for the release
keystore.
Probably I just missed that information - or 
 ...morehttp://groups.google.com/group/android-developers/msg/f04cb8251aaf3ee0


user123 ivanschu...@gmail.com Apr 27 04:05PM -0700

I have a key but for the debug keystore. That is what I was using
during
development. I didn't think about that I need a new key for the
release
keystore. Or probably I let it for later (don't 
 ...morehttp://groups.google.com/group/android-developers/msg/d5be3c2dfa941ad

   How to create JAR libs in 
 Androidhttp://groups.google.com/group/android-developers/t/8624018be1fe9207

mbarbiero marco.barbi...@gmail.com Apr 27 01:27PM -0700

Em quarta-feira, 24 de abril de 2013 09h42min52s UTC-3, mbarbiero
escreveu:

 ...morehttp://groups.google.com/group/android-developers/msg/155af2ee8665

   Paper Folding 
 animationhttp://groups.google.com/group/android-developers/t/8939389d555e4a37

Dan dan.schm...@gmail.com Apr 27 12:22PM -0700

On Friday, April 26, 2013 4:16:44 PM UTC-4, Lew wrote:

 Code that you convert for work was not written to teach you a moral
lesson.

Perhaps you are being intentionally thick headed (in an 
 

[android-developers] Running JUnit Tests on multiple emulators simulatenously

2013-05-02 Thread Akshat Jain
Hi,

I am trying to run our android testcases on different emulators one after 
the other.

Is there a way I can run all the tests in parallel on all the running 
emulators? I saw that during the Google GTAC conf, but there is no 
blog/post that mentions how to do it.

-Akshat

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




[android-developers] Seeking font tool

2013-05-02 Thread Simon Giddings
Does anyone know of a tool to correctly convert a truetype font so that it 
is compatible with Android ?
At least with Android 4.0.

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




[android-developers] Re: Console stopped giving output.

2013-05-02 Thread Vishal Pawale
Follow what Piren said.And again if it fails then goto command line  type 
adb logcat.
Make sure you have set path vars. correctly.

On Wednesday, May 1, 2013 3:20:13 AM UTC+5:30, Tobiah wrote:

 That's about it.  I went as far as to reboot my system, 
 but when I run or debug Android apps, I get nothing anymore 
 out of the Console.  I'm pretty new to Eclipse so thanks 
 for any help. 

 Tobiah 


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




[android-developers] Re: Android widget layout doesn't change after rotation

2013-05-02 Thread zhiyazw
who can help, please!

On Apr 26, 4:10 pm, zhiyazw zhiy...@gmail.com wrote:
 See the layout xml:

     LinearLayout xmlns:tools=http://schemas.android.com/tools;
     android:layout_width=match_parent
     android:layout_height=match_parent
     android:orientation=vertical
     tools:context=.MainActivity 
 xmlns:android=http://schemas.android.com/apk/res/android;

     TextView
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:layout_gravity=center_horizontal
         android:layout_marginBottom=10dp
         android:layout_marginTop=10dp
         android:text=Temperature Chart
         android:textAppearance=?android:attr/textAppearanceLarge /

     LinearLayout
         android:id=@+id/chartContainer
         android:layout_width=match_parent
         android:layout_height=wrap_content 

         TextView
             android:id=@+id/textTemperature
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_gravity=center_vertical
             android:transformPivotX=0sp
             android:translationY=0sp
             android:rotation=-90
             android:text=Temperature /

     /LinearLayout
 /LinearLayout

 then I insert a chart view into the chartContainer LinearLayout. The
 executing result is as the following picture:
 you can see the problem is, after textTemperature is rotated, it still
 occupy the room as before it rotated, bellow layout view confirmed this.

 https://lh4.googleusercontent.com/-qw0ryGAA_6A/UXo1t4C2RjI/AA...

 My question is how can I make the textTemperature widget only occupy the
 width as it is looked like? that's, there is no additional blank between
 textTemperature and the chart.
 I know writing a customized widget or putting the rotated widget in an
 individual FrameLayout could accomplish this, I mean to seek there is any
 lighter way, such as a property, etc.

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




Re: [android-developers] Running logcat from an application only shows the apps logs.

2013-05-02 Thread b0b


On Wednesday, 1 May 2013 23:13:44 UTC+2, TreKing wrote:


 On Fri, Apr 19, 2013 at 1:28 PM, Federico Cesari 
 ficoc...@gmail.comjavascript:
  wrote:

 I'm developing an application on JB 4.2 that needs to read the logs from 
 all processes running in the device.


 That is no longer possible as of 4.1. Apps can only read the logs from 
 their own processes.



That's possible, but requires root. 

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




[android-developers] WebView FileUploader

2013-05-02 Thread Rahul Kaushik
Hi,

I am using Webview as container for a website,Web site  have an option
Upload File ,this button is not working for me am using Android
Version(3.0.1)

Any Suggestions??

Thanks
RK

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




[android-developers] How to send a xml file from one device to another ?

2013-05-02 Thread mohammed Nuhail
Hi
 I want to send xml file from one device to another device ? please help me
with it ..

  Thanks

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




Re: [android-developers] Re: progaurd.cfg built apk not working

2013-05-02 Thread vani reddy
Hi ,
Thanks a lot,it really worked..:)


On Wed, May 1, 2013 at 7:23 PM, Piren gpi...@gmail.com wrote:

 remove the curly braces at the end...
 just this is enough:

 -keep public class * extends android.app.Application

 On Wednesday, May 1, 2013 3:40:45 PM UTC+3, vani wrote:

 Hi All,

 I have a class which extends android.app.Application.

 In the progaurd.cfg file I have given

 -keep public class * extends android.app.Application{*;}
 -keep public class  packagename.application class name

 -dontwarn   packagename.**application class name.**

 I am able to export the apk successfully but after installing it in
 device its throwing
 ClassNotFoundException for application class.


 How to solve this issue??

 --
 Regards,
 Vani Reddy

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






-- 
Regards,
Vani Reddy

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




[android-developers] Re: I require Code for profile changing

2013-05-02 Thread Gaurav Wable


I too want to do something similar. My Requirement is to get the list of 
predefined profiles and user defined profiles.

These profile names exist on Android 4.0.4 under settings:

Settings  (Device) User profiles  (USER DEFINED PROFILES) MyHome, 
(PREDEFINED PROFILES) General, Silent, Meeting, Outdoor

How can i get these profile names ?

On Monday, 9 May 2011 10:24:53 UTC+5:30, aashva services wrote:

 I require source code for profile changing in android can any one 
 please assist me provide me code

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




[android-developers] Re: program crashes when i try to create a table for my app

2013-05-02 Thread bob
 

I think there should not be a *db.close()* in the onCreate method.


Thanks.



On Tuesday, April 23, 2013 8:43:06 AM UTC-5, Manish Jain wrote:

 here is the code of my database java file

 package com.example.docterapp;

 import java.util.ArrayList;
 import java.util.List;

 import android.content.ContentValues;
 import android.content.Context;
 import android.database.Cursor;
 import android.database.sqlite.SQLiteDatabase;
 import android.database.sqlite.SQLiteOpenHelper;
 import android.util.Log;

 public class DatabaseHandler extends SQLiteOpenHelper {

 // private dbhelper ourdbhelper;

 // private final Context ourContext;

 // private SQLiteDatabase ourdatabase;

 SQLiteDatabase db;
 private String Doctor_ID;
 private String Online_status;
 private String Appointment;
 private String Department;
 private String Password;
 private String Name;
 private String Address1;
 private String Address2;
 private String mobile_no;
 private String Patient_ID;
 private String age;
 private String gender;
 private String Ailment;
 private String Previous_report;
 private String Hospital;
 private String Degree;
 private String Grad_College;
 private String Experience;
 private String Avail_time;
 public static String DBNAME = DO.db;
 public static String TABLE1 = patient_pers_rec;
 public static String TABLE2 = doctor_pers_rec;
 public static String TABLE3 = Patient_medical_rec;
 public static String TABLE4 = doctor_professional_details;
 public static String TABLE5 = doctor_availability;
 public static final int DATABASE_VERSION = 1;

 public DatabaseHandler(Context context) {
 super(context, DBNAME, null, DATABASE_VERSION);

 }

 @Override
 public void onCreate(SQLiteDatabase db) {
 
 
 //db.openOrCreateDatabase(DBNAME, , null);
 //db = openOrCreateDatabase(;
 db.execSQL(CREATE TABLE  + TABLE1 +  ( + Patient_ID
 +  INTEGER PRIMARY KEY, + Password +  TEXT, + Name
 +  TEXT, + age +  INTEGER, + gender +  TEXT, + 
 mobile_no
 +  INTEGER););
 // }
 Log.i(INFO,Tb1 made);
 // public void onCreate(SQLiteDatabase db)
 // {

 db.execSQL(CREATE TABLE  + TABLE2 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Password +  TEXT, + Name
 +  TEXT, + Address1 +  TEXT, + Address2 +  TEXT,
 + mobile_no +  INTEGER, + ););

 db.execSQL(CREATE TABLE  + TABLE3 +  ( + Patient_ID
 +  INTEGER PRIMARY KEY, + Ailment +  TEXT,
 + Previous_report +  TEXT, + ););

 db.execSQL(CREATE TABLE  + TABLE4 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Hospital +  TEXT, + Degree
 +  TEXT, + Grad_College +  TEXT, + Department +  
 TEXT,
 + Experience +  INTEGER, + ););

 db.execSQL(CREATE TABLE  + TABLE5 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Avail_time +  INTEGER,
 + Online_status +  TEXT, + Appointment +  TEXT ););
 db.close();
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldversion, int 
 newversion) {
 db.execSQL(DROP TABLE IF EXISTS + TABLE1);
 db.execSQL(drop table if exists + TABLE2);
 db.execSQL(drop table if exists + TABLE3);
 db.execSQL(drop table if exists + TABLE4);
 db.execSQL(drop table if exists + TABLE5);
 onCreate(db);
 }

 void add(patient_pers_rec patient_pers_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(Patient_ID, patient_pers_rec.getPatient_ID());
 values.put(Password, patient_pers_rec.getPassword());
 values.put(Name, patient_pers_rec.getName());
 values.put(age, patient_pers_rec.getage());
 values.put(gender, patient_pers_rec.getGender());

 // Inserting Row
 db.insert(TABLE1, null, values);
 db.close(); // Closing database connection
 }

 void add(doctor_pers_rec doctor_pers_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(Patient_ID, doctor_pers_rec.getDoctor_ID());
 values.put(Password, doctor_pers_rec.getPassword());
 values.put(Name, doctor_pers_rec.getName());
 values.put(Address1, doctor_pers_rec.getAddress1());
 values.put(Address2, doctor_pers_rec.getAddress2());
 values.put(mobile_no, doctor_pers_rec.getMobile_no());

 // Inserting Row
 db.insert(TABLE2, null, values);
 db.close(); // Closing database connection
 }

 void add(Patient_medical_rec Patient_medical_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new 

Re: [android-developers] Wifi POC - AP wifi connect using GPRS?

2013-05-02 Thread Robert Greenwalt
What is a POC?

What are you trying to use the cellular data for?  Do you want most traffic
to use wifi, but some traffic to use cellular?

R


On Tue, Apr 30, 2013 at 11:38 PM, Ran Cohen ranco...@gmail.com wrote:

 Dear All,

 i am working on a Wifi POC and have the next question:

 if i am to connect to a wifi AP using my cell (sony erricsson experia arc
 S android version 2.3.4* in that case*) can i still configure my cell to
 use GPRS?* if so:* can it be done via a program or only manualy? *if 
 not:*could i expect future devices to support this feature? (e.g. wifi direct)

 Thank you in advanced and BR,
 Ran

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




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




[android-developers] Re: Concurrent 3G and WiFi : Socket creation problem

2013-05-02 Thread Ty
Glex,
   I've been following your work and I am trying to do something similar, 
but instead of using wifi/rmnet0 I am looking to use USB/Ethernet and 
rmnet0 simultaneously. My work isn't using stock AOSP I've been pretty much 
working with CM 10.1 and so far my USB/Ethernet connection is successful 
and rmnet0 works as it always did, but trying to combine the two (basically 
making the phone a router) the USB/Ethernet interface takes priority and 
shuts down the rmnet0. Do you have any suggestions? I'm digging through the 
CM 10.1 kernel to maybe find a work around/patch, but I'm up for any 
alternatives.

~Ty

On Sunday, September 16, 2012 7:17:46 PM UTC-4, glex wrote:

 The problem has been solved.

 I updated my routing table for appropriate source routing and two default 
 gateways (for different source IP addresses)

 Thanks,
 GLEX

 On Wednesday, 29 August 2012 13:09:29 UTC-4, glex wrote:

 I am aware that concurrent usage of WiFi and 3G/4G is not supported on 
 Android devices right now. I am working on a research project which tries 
 to analyse the pros and cons for the same.

 I used the approach used by Android WiFi tether to reload the WiFi driver 
 and configure the routing table and appropriate interfaces. I summarized my 
 work in the 
 followinglinkhttps://sites.google.com/site/lotuseaterarpit/news/3g4gwififorandroidconcurrently.
  
 I tested my setup using the *ping -I eth0/rmnet0 web server. * Till 
 this phase everything is running smoothly. 

 As a next step I tried to establish a socket connection using the two 
 interfaces. Everything works fine as I use 3G interface, but when I try 
 using the WiFi (eth0), socket connection is not successful. Though I can 
 see that bind operation is successful. 

 The code I used for this socket establishment is:

 *NetworkInterface nif = NetworkInterface.getByName(eth0);*
 * Log.d(TAG,Interface detected S);*
 * EnumerationInetAddress nifAddresses = nif.getInetAddresses();*
 * Log.d(TAG,Interface IP Address Retrieved S: );*
 * Socket socket = new Socket();*
 * try{*
 * socket.bind(new InetSocketAddress(nifAddresses.nextElement(),1027));*
 * Log.d(TAG,Socket Bind S);*
 * socket.connect(new 
 InetSocketAddress(InetAddress.getByName(152.14.93.160),80));*
 * Log.d(TAG,Socket Creation Success);*
 * socket.close();*
 * Log.d(TAG,Socket Closed S);*
 * } catch (Exception e1){*
 * socket.close();*
 * Log.d(TAG,Socket Bind Error);*
 * e1.printStackTrace();*
 * }*
 * *
 * *
 * } catch (Exception e1) {*
 * *
 * // TODO Auto-generated catch block*
 * Log.d(TAG,Socket Creation Error);*
 * e1.printStackTrace();*
 * }*
 *
 *
 *
 *
 Also from the logcat the exception I see for the same is:

 *W/System.err(10996): java.net.SocketTimeoutException: Connection timed 
 out*
 *W/System.err(10996):  at 
 org.apache.harmony.luni.platform.OSNetworkSystem.connect(Native Method)*
 *W/System.err(10996):  at 
 dalvik.system.BlockGuard$WrappedNetworkSystem.connect(BlockGuard.java:357)
 *
 *W/System.err(10996):  at 
 org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
 *
 *W/System.err(10996):  at 
 org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:440)
 *
 *W/System.err(10996):  at java.net.Socket.connect(Socket.java:1013)*
 *W/System.err(10996):  at java.net.Socket.connect(Socket.java:956)*
 *W/System.err(10996):  at 
 com.example.pdwn.TService.onCreate(TService.java:98)*
 *W/System.err(10996):  at 
 android.app.ActivityThread.handleCreateService(ActivityThread.java:2223)*
 *W/System.err(10996):  at 
 android.app.ActivityThread.access$2500(ActivityThread.java:132)*
 *W/System.err(10996):  at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1102)*
 *W/System.err(10996):  at 
 android.os.Handler.dispatchMessage(Handler.java:99)*
 *W/System.err(10996):  at android.os.Looper.loop(Looper.java:150)*
 *W/System.err(10996):  at 
 android.app.ActivityThread.main(ActivityThread.java:4293)*
 *W/System.err(10996):  at java.lang.reflect.Method.invokeNative(Native 
 Method)*
 *W/System.err(10996):  at 
 java.lang.reflect.Method.invoke(Method.java:507)*
 *W/System.err(10996):  at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
 *
 *W/System.err(10996):  at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)*
 *W/System.err(10996):  at dalvik.system.NativeStart.main(Native Method)*

  I am not sure why, the connect function is timing out. Specially given 
 that ping operation is successful. Any help will be greatly appreciated.

 Thanks,
 Arpit.



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

Re: [android-developers] Help with Google terms for in app payments for extra content addition. Thanks.

2013-05-02 Thread TreKing
On Mon, Apr 22, 2013 at 1:57 PM, Dale Sharp pubuto...@googlemail.comwrote:

 *In-app purchases:* Developers offering additional content, services or
 functionality within an application downloaded from Google Play must use
 Google Play's payment system as the method of payment, except:

- where payment is primarily for physical goods or services (e.g.
buying movie tickets; e.g. buying a publication where the price also
includes a hard copy subscription); or
- where payment is for digital content or goods that may be consumed
outside of the application itself (e.g. buying songs that can be played on
other music players)

 So, I'm wondering, do I have to use the Google Play payment system
 for obtaining payment if I wish to sell the upgrade in the app? Or is this
 considered a service or function and I have to use the Google Play payment
 system?


These are questions for a lawyer.

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

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




Re: [android-developers] Need bit help with android

2013-05-02 Thread TreKing
On Wed, May 1, 2013 at 3:16 AM, Saqib Vohra svh...@gmail.com wrote:

 I was wondering if i can launch an activity or application when a text is
 selected in any application like browser, messages etc.

 Like when we select a text at any where a small pop-up appears mentioning
 cut, copy, paste option. can i add another button there? to launch my
 application? or something like that?

You cannot add anything to that context menu.

 i know it is possible because similar work is done in screenshot apps.
 that a service is running and when a user shakes his mobile it send a
 screenshot to the service and save it. or it can also be done using overlay
 button, power button, volume button.

What you can do is have your app respond to Share Intents and your app will
be an option when the user attempts to share something.

Google handle share intent or something.

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

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




[android-developers] Share Loader data for three fragments

2013-05-02 Thread MathieuB
Hi there,

I'm using ActionBarSherlock and a FragmentPagerAdapter to display three 
tabs which are each associated to a fragment.

Each fragment consists in a listview. The data are all the same for each 
listview, only difference is that they are filtered differently depending 
of the tab.

So for the moment, I got a Loader in each fragment that gets the data from 
a webservice. Because the data is the same for each fragment, I'd like to 
find a way to only get the data once and share it across all three 
fragments.

Can you guys give me some cues?

Thanks!

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




Re: [android-developers] Re: Webapp with in-app Billing

2013-05-02 Thread Geet Handa
Hi,
Can any body please tell me how to import odata proxy to sencha architect
and how I can build package for iPhone and Android..
Thanks in Advance
Regards
Mona



On Wed, Nov 14, 2012 at 12:15 AM, Ian Ni-Lewis ile...@google.com wrote:

 If you're using someone else's wrapper, then you're probably dependent on
 them to support in-app billing. Contact Phonegap tech support.
 Ian


 On Thu, Nov 8, 2012 at 2:39 PM, Juan Manuel Rodriguez Castro 
 lostuse...@gmail.com wrote:

 I'm making an HTML5-based application, then i want to sell X thing
 through Google store, but how im going to call the billing service and
 others from my HTML5. Im using Phonegap to wrap it.

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




 --
 Ian Ni-Lewis
 Developer Advocate
 Android Developer Relations


  --
 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Service onDestroy() not being called...

2013-05-02 Thread Larry Meadors
I have a bound service that I'm using to play audio.

An activity binds to the service in onResume() and sets the service as
a foreground service.

The onPause() checks to see if the media player on the service is
playing, and if it is NOT, calls stopForeground(true), then unbinds
(in either case - playing or not).

I've got code in the onDestroy with log calls, but while other logs
messages from the service show up...it doesn't appear that the
onDestroy() is getting called.

Am I misunderstanding the lifecycle here, or is there something I can
check to see why the service remains running?

Larry

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




Re: [android-developers] Share Loader data for three fragments

2013-05-02 Thread TreKing
On Thu, May 2, 2013 at 12:25 PM, MathieuB blanc...@gmail.com wrote:

 So for the moment, I got a Loader in each fragment that gets the data from
 a webservice. Because the data is the same for each fragment, I'd like to
 find a way to only get the data once and share it across all three
 fragments.

 Can you guys give me some cues?


Find some object - possibly the parent Activity or a singleton - that can
hold the data, then check if that thing already has the data from each
fragment before trying to download it.

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

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




[android-developers] Who's going to AnDevCon V? Discount available. . .

2013-05-02 Thread Nathan
Who is going to AnDevCON in Boston this month?

I will be there speaking at two sessions about Driving App Success. 
Much smarter people than me also are speaking there. Some of them, you know 
from this forum. 

Use the discount code 'MELLOR' to save $20. I f you register before May 10, 
you can save a total of $500.  

If you do come, I will try to meet you while I am there. 

Nathan

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




[android-developers] Re: Who's going to AnDevCon V? Discount available. . .

2013-05-02 Thread Nathan
I should include the link:

http://www.andevcon.com/AndevCon_boston/index.html

You can check out the schedule and register there if you haven't already. 

Nathan

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




Re: [android-developers] dial a predefined number directly from app

2013-05-02 Thread TreKing
On Tue, Apr 30, 2013 at 2:35 AM, Rahul Kumar rishu2...@gmail.com wrote:

 How can i make a direct call from the app?


Type that, exactly, into Google.

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

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




[android-developers] Re: To play gif from a file

2013-05-02 Thread bob
No problem.

Also, what you may want to do is simply use the *GifDecoderView* class that 
is also in that project:


*FileInputStream fis = null;*
*try {*
* fis = new FileInputStream(/mnt/sdcard/piggy.gif);*
*} catch (FileNotFoundException e) {*
* **e.printStackTrace();*
*}*
*
*
*GifDecoderView view = new GifDecoderView(this, fis);*
*
*
*setContentView(view);*

It seems to work well.


Thanks.


On Wednesday, May 1, 2013 3:50:47 PM UTC-5, Beyza Nur Kökcan wrote:

 Thank you so much, it works fine now

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




[android-developers]

2013-05-02 Thread Kaushik Pendurthi
can the seekbar be at an angle instead of being horizontal ?

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




Re: [android-developers] dial a predefined number directly from app

2013-05-02 Thread Kaushik Pendurthi
ITs a very simple intent call .. :)


On Thu, May 2, 2013 at 4:56 PM, TreKing treking...@gmail.com wrote:


 On Tue, Apr 30, 2013 at 2:35 AM, Rahul Kumar rishu2...@gmail.com wrote:

 How can i make a direct call from the app?


 Type that, exactly, into Google.


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

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






-- 
ThanksRegards
Kaushik Pendurthi

http://kaushikpendurthi.blogspot.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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Google Play Developer console testing access issue

2013-05-02 Thread Gary Blakely
All my apps use Google Play License testing.  On the settings page in the 
GP Developer console, there is a box where I have my gmail email address. 
 I have a Google account on my android phone with the same address and I am 
able to test with different license responses very well.  It all works fine.

However, another developer in our organization has a different android 
phone and we want to license test with that phone which has a google 
account but with a different gmail email address.  I tried adding that 
persons gmail email address to the box but it complains saying INVALID 
TESTER EMAIL ADDRESS.

I even registered the other person onto the developer account and she is 
now listed on the account but it will still not accept here email address 
in the license testing box

What am I forgetting to do?  Do I have to enter the other developers 
address somewhere in the developer console?

Thanks,
Gary

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




[android-developers] Application background image auto resize problem

2013-05-02 Thread Gerson Felipe
Hi,

I have an application using custom theme in the activity. This theme using
android: windowBackground. The problem lies in how the image is displayed.
I am setting up gravity to top or center but out instead of the image
display only part of the image corresponding to the device screen. The
Andorid is resizing the image so that it fits entirely on the screen. How
do I transpose the image it leaves the device screen?

Any idea?

?xml version=1.0 encoding=utf-8?

resources xmlns:android=http://schemas.android.com/apk/res/android;

style name=CustomWindowTitleBackground

item name=android:background@android:color/transparent/item

/style



style name=CustomTheme parent=android:Theme

item name=android:windowTitleSize48dip/item

item name=android:windowTitleBackgroundStyle
@style/CustomWindowTitleBackground/item

item name=android:windowContentOverlay@null/item

item name=android:windowBackground@drawable/bk/item

/style/resources

Atenciosamente,
Gerson Novais

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




[android-developers] Re: Use MediaRecorder for video without preview Surface

2013-05-02 Thread Baodong Chen
Hi,James:
have you got a workaround for this issue?

在 2010年7月7日星期三UTC+8上午10时57分23秒,James Aguilar写道:

 I asked a couple of questions about the MediaRecorder a few weeks ago, 
 and have finally gotten around to doing some more digging on the 
 topic, actually testing out recording media myself. The goal is to 
 record video without interrupting whatever else the user might be 
 doing. One of the things I was able to discover about MediaRecorder is 
 that the preview surface is not optional if you want to record video. 

 Earlier today I asked about getting a Surface without a foreground UI, 
 and that apparently is a non-starter. So instead I'd like to ask 
 whether it would be possible to make the MediaRecorder able to record 
 video without access to a foreground UI. It seems like several 
 different classes of application (time-lapse photograph taker or 
 dashboard video camera, to name a pair of examples) could benefit from 
 not needing to be onscreen while recording videos. What do you guys 
 think? 

 I have filed a feature request to track this issue. (http:// 
 code.google.com/p/android/issues/detail?id=9570) 

 -- James

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




Re: [android-developers] New to Android

2013-05-02 Thread TreKing
On Tue, Apr 16, 2013 at 8:10 PM, rlloyd riley.lloy...@gmail.com wrote:

 I have a java file that I would like to incorporate in to an android
 application. I'm not sure where in the code I put my java that I've made. I
 use Eclipse with the newest SDKs. Where in the following code am I supposed
 to input my code?


As is, nowhere. Android does not use a static main method (at least that
you care about) nor does it use System.in.


  Also, The code of mine takes input data, manipulates it, and gives back 5
 data sets (words, letters etc.). How on the interface builder do I connect
 text boxes to use for input and output?


Have you read the documentation at all yet?


 I have used xcode before but I am completely lost with the JAVA and the
 whole android thing. I didn't think this would be a necessarily hard
 project though.


Please consult the documentation and work through some samples.

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

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




Re: [android-developers] getVoiceMessageCount?

2013-05-02 Thread Todd Grigsby
Does the version of the source you're looking at match the version you're
compiling against?
On Apr 30, 2013 12:37 AM, steveg1...@gmail.com wrote:

 I am trying to get the number of voicemails on an Android using
 TelephonyManager, seems it should be easy enough using the
 getVoiceMessageCount() nethod (not documented but its in the source code!
 But I get an error saying there is no such method ;-(

 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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




Re: [android-developers] how can i delete data from item listview android ?plz help

2013-05-02 Thread Todd Grigsby
Delete the item from the container behind the adapter and then notify the
adapter that the list has changed.
On Apr 30, 2013 12:37 AM, Maka ahmed thuglive...@gmail.com wrote:


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




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




Re: [android-developers] Re: How to get scrolling to just scroll endlessly when you swipe the screen up or down?

2013-05-02 Thread Daniel Chacon
thanks, I update the xml layout to match your example and still doing the
same thing,

Now here is my code as it stands now and everything is returned, but not
scrolling as expected.


package MyProject.Maintenance;



import org.ksoap2.SoapEnvelope;

import org.ksoap2.serialization.PropertyInfo;

import org.ksoap2.serialization.SoapObject;

import org.ksoap2.serialization.SoapSerializationEnvelope;

import org.ksoap2.transport.HttpTransportSE;



import android.app.Activity;

import android.os.Bundle;

import android.os.StrictMode;

import android.text.method.ScrollingMovementMethod;

import android.widget.TextView;



public class HistoryActivity extends Activity

{

private static final String SOAP_ACTION = 
http://www.mywebservice.com/Services/Provided;;

private static final String METHOD_NAME = Provided;

private static final String WSDL_TARGET_NAMESPACE = 
http://www. mywebservice.com /Services/;

private static final String URL = http://www.
mywebservice.com /Services/AppServices.asmx?wsdl;





/** Called when the activity is first created. */

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);



// TODO Auto-generated method stub

 super.onCreate(savedInstanceState);

TextView textView = new TextView(this);

setContentView(textView);

textView.setMovementMethod(new
ScrollingMovementMethod());

StrictMode.setThreadPolicy(new
StrictMode.ThreadPolicy.Builder()

.detectDiskReads()


.detectDiskWrites()


.detectNetwork()

.penaltyLog()

.build());



SoapObject request = new
SoapObject(WSDL_TARGET_NAMESPACE,METHOD_NAME);

 PropertyInfo email = new PropertyInfo();



String emailAddress = m...@email.com;

email.setName(email);

email.setValue(emailAddress);

request.addProperty(email);

SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);

envelope.dotNet = true;

envelope.setOutputSoapObject(request);

HttpTransportSE httpTransport = new
HttpTransportSE(URL);

try

{

httpTransport.call(SOAP_ACTION, envelope);

SoapObject response = (SoapObject)envelope.bodyIn;

if(response != null)

{

SoapObject nameResult = (SoapObject)
response.getProperty(0);

SoapObject serviceRecords = (SoapObject)
nameResult.getProperty(1);

//Returns all records in table

SoapObject dar = (SoapObject)
serviceRecords.getProperty(0);

int recCount = dar.getPropertyCount();

textView.setText(Soap Response:\n\n +
dar.toString() + \n\nRecord Count:  + recCount);

StringBuilder sb = new StringBuilder();

for (int i=0;irecCount;i++)

{

SoapObject suvas =
(SoapObject) dar.getProperty(i);

String ex =
suvas.getProperty(ep).toString();

String sd =
suvas.getProperty(sd).toString();

String dp =
suvas.getProperty(dp).toString();

sb.append(Service Date: 
+ sd + \n + Expected Payment: $ + ex + \n + Date Paid:  + dp +
\n\n);

}

textView.setText(sb.toString());

}

}

catch (Exception exception)

{

textView.setText(exception.toString());

}

}

}


On Tue, Apr 30, 2013 at 4:32 PM, bob b...@coolfone.comze.com wrote:

 I've tested this layout:

 *ScrollView xmlns:android=http://schemas.android.com/apk/res/android*
 *android:layout_width=fill_parent*
 *android:layout_height=fill_parent *
 *
 *
 *TextView*
 *android:id=@+id/tv*
 *android:layout_width=wrap_content*
 *android:layout_height=wrap_content*
 *

Re: [android-developers] Re: How to get scrolling to just scroll endlessly when you swipe the screen up or down?

2013-05-02 Thread TreKing
On Thu, May 2, 2013 at 11:07 PM, Daniel Chacon cuban...@gmail.com wrote:

 thanks, I update the xml layout to match your example and still doing the
 same thing,

 Now here is my code as it stands now and everything is returned, but not
 scrolling as expected.


What are you testing on? Have you tried a different device or emulator?

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

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