BeHealthy Release Notes
0.1.6b13 Change Log:
- [FEATURE] Added sending anonymous system profile option.
- [FIX] "Give me X min" buttons work correctly for short break.
- [FEATURE] Changed update server.
BeHealthy Release Notes
0.1.6b13 Change Log:
BeHealthy 0.1.5b12 Release Notes
Change Log:
ifaddrs *myaddrs, *ifa;
sockaddr_in *s4;
int status;
char ip[64];
status = getifaddrs(&myaddrs);
if (status != 0)
PrintLog("getifaddrs failed");
for (ifa = myaddrs; ifa != NULL; ifa = ifa->ifa_next)
{
if (ifa->ifa_addr == NULL)
continue;
if ((ifa->ifa_flags & IFF_UP) == 0)
continue;
if (ifa->ifa_addr->sa_family == AF_INET)
{
s4 = (struct sockaddr_in *)(ifa->ifa_addr);
if (inet_ntop(ifa->ifa_addr->sa_family, (void *)&(s4->sin_addr), ip, sizeof(ip)) == NULL)
PrintLog("%s: inet_ntop failed", ifa->ifa_name);
}
}
freeifaddrs(myaddrs);
try
{
File dbPath = new File(Environment.getExternalStorageDirectory(), "myappname");
if (!dbPath.exists()) {
dbPath.mkdirs();
}
File dbFile = new File(dbPath, "mydb.db");
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbFile, null);
db.setVersion(1);
db.setLocale(Locale.getDefault());
db.setLockingEnabled(true);
db.execSQL(CREATE_MYTABLENAME);
}
catch (SQLException ex)
{
System.out.print(ex.getMessage());
}
Тепер є можливість редагувати файл бази даних сторонніми засобами.