|
That's helpful...
I'm currently trying to run the uiautomator from within an app in android... and I'm not being able to...
It keeps returning an exit code of 9.
I have no idea where the uiautomator is located in the android os.
Do you have any idea?
|
|
|
|
|
|
|
Hi,
Were you able to run this?
I've tried various solutions but none worked.
Please share solution if you have got one.
It would be great help.
|
|
|
|
|
How to display student record on screen by click on single button in android eclipse
|
|
|
|
|
|
Ok, overlooking my naivety in things Android, I'm looking to get into Android development and am thinking it maybe a good idea to get a phone to test with. I don't otherwise have anything Android so would it be worth getting a physical device?
Is there a specific device anyone can recommend? There seem to be a lot of cheapie Walmart/Walgreen specials that seem like they might fit the bill.
Is there a minimum threshold to look for? Example nothing below Lollipop(5.0)?
Thanks, 
|
|
|
|
|
|
Thanks Richard, it's a good point, I probably should make a few apps first.
|
|
|
|
|
Thousands of apps are being released to major app stores every day. Yet, most of them wither before they even have a chance to bloom.
The effort, money, and time that is put into developing apps are enormous. Once you’ve got a lot of negative feedback from the users, there will be hardly any second chance given to prove the worth of your app. So ensuring security should be a major step taken by app development companies.
what are some of the most common security vulnerabilities of android app development
|
|
|
|
|
|
Hi All ;
I developed an Android application which is a custom keyboard with a custom font.
I developed the keyboard successfully but I'm stuck for changing the font. How can I install and setup a custom font in my Android device ? I need to setup the font with my keyboard in the same application.
I used the iFont application to install the font on the device without root access. I searched if I could find code do the same function than the iFont application. How can I install a font programmatically?
|
|
|
|
|
Put the font in your project's assets folder. Assign the font to a control like:
Typeface font = Typeface.createFromAsset(getActivity().getAssets(), "myfont.ttf");
m_control.setTypeface(font);
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Your homework is set to test what you know, not what a bunch of random people on the Internet know.
Go back to your course notes; this is almost certainly something you will have covered recently. If you can't find it, or don't understand it, then talk to your teacher.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i created one android simple alaram app in eclipse editor. when i click the button in alaram app, it shows "unfortunately appname has stopped".
this is my layout file
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"
="" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<textview
android:id="@+id/TextView1"
="" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Android Alarm example:\n\rsetup an alarm event after 10 seconds from current time. so just press setup alaram button and wait for 10 seconds.you can see a toast message when your alarm time will reach.">
<button
android:id="@+id/setAlarm"
="" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/TextView1" android:layout_centerhorizontal="true" android:layout_margintop="25dp" android:onclick="onClicksetAlarm" android:text="Set Alarm">
this is my mainactivity.java file
package com.example.alarm;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Toast;
public class MainActivity extends Activity {
PendingIntent pendingIntent;
AlarmManager alarmManager;
BroadcastReceiver mReceiver;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
RegisterAlarmBroadcast();
}
public void OnClickSetAlarm(View v)
{
alarmManager.set( AlarmManager.RTC_WAKEUP,System.currentTimeMillis()+10000,pendingIntent);
}
private void RegisterAlarmBroadcast()
{
Log.i("Alarm Example:RegisterAlarmBroadcast()","Going to Register Intent.RegisterAlarmBroadcast");
mReceiver=new BroadcastReceiver()
{
private static final String TAG="AlarmExample Receiver";
@Override
public void onReceive(Context context,Intent intent)
{
Log.i(TAG,"BroadcastReceiver::OnReceive()>>>>>>>>>>>>>>>>>>>>>>");
Toast.makeText(context,"Wake wakeup.TimeAchu Friends",Toast.LENGTH_LONG).show();
}
};
registerReceiver(mReceiver,new IntentFilter("com.techblogon.alarmexample"));
pendingIntent=PendingIntent.getBroadcast(this,0,new Intent("com.techblogon.alarmexample"),0);
alarmManager=(AlarmManager)(this.getSystemService(Context.ALARM_SERVICE));
}
private void UnregisterAlarmBroadcast()
{
alarmManager.cancel(pendingIntent);
getBaseContext().unregisterReceiver(mReceiver);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
protected void onDestroy()
{
unregisterReceiver(mReceiver);
super.onDestroy();
}
}
|
|
|
|
|
You need to look at the diagnostic log messages to see what happened. We cannot guess what your code is doing wrong.
|
|
|
|
|
ok sir i will check in log cat and post that error..thanks for replie me sir.
|
|
|
|
|
Not one bit of error checking or exception handling in your code. How are you supposed to track down problems? Do you just assume that everything is going to work?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
DavidCrow wrote: Do you just assume that everything is going to work? Doesn't everyone? 
|
|
|
|
|
I am listening to this topic quietly, this also belongs and reflects my under developing app situation.
|
|
|
|
|
I have android project in which i have to fetch value from Spinner and store it into database how can i do it ? pls help me out give me source code if anyone have pls 
|
|
|
|
|
Sorry, but this site does not provIde code to order. If you study the documentation for the Spinner class, and whichever database you are using, you will quickly find the answers.
|
|
|
|
|
viraj138 wrote: i have to fetch value from Spinner and store it into database how can i do it ? Which piece ("fetch"ing value from Spinner, or storing it in a database) do you need help with, and how much of that do you have done?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Probably by going to the Google website and downloading the app.
|
|
|
|
|
Not sure exactly what you expect here, these forums are really for programming questions.
|
|
|
|